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
868 ac_subst_files='MCOMMON'
869 ac_precious_vars='build_alias
886 # Initialize some variables set by options.
888 ac_init_version=false
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
898 program_transform_name=s,x,x,
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE}'
923 infodir='${datarootdir}/info'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
991 { (exit 1); exit 1; }; }
992 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
993 eval enable_$ac_feature=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012 eval enable_$ac_feature=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1176 -site=* | --site=* | --sit=*)
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1209 eval with_$ac_package=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=no ;;
1221 # Obsolete; use --with-x.
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option
1239 Try \`$0 --help' for more information." >&2
1240 { (exit 1); exit 1; }; }
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1248 { (exit 1); exit 1; }; }
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 { echo "$as_me: error: missing argument to $ac_option" >&2
1266 { (exit 1); exit 1; }; }
1269 # Be sure to have absolute directory names.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$0" ||
1323 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$0" : 'X\(//\)[^/]' \| \
1325 X"$0" : 'X\(//\)$' \| \
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --x-includes=DIR X include files are in DIR
1445 --x-libraries=DIR X library files are in DIR
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 if test -n "$ac_init_help"; then
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-nls do not use Native Language Support
1461 --disable-rpath do not hardcode runtime library paths
1462 --enable-gnome enable build of bgnome-console GUI disabled
1463 --enable-bat enable build of bat Qt4 GUI disabled
1464 --enable-bwx-console enable build of wxWidgets console disabled
1465 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1466 --enable-smartalloc enable smartalloc debugging support disabled
1467 --enable-static-tools enable static tape tools disabled
1468 --enable-static-fd enable static File daemon disabled
1469 --enable-static-sd enable static Storage daemon disabled
1470 --enable-static-dir enable static Director disabled
1471 --enable-static-cons enable static Console disabled
1472 --enable-client-only build client (File daemon) only disabled
1473 --enable-build-dird enable building of dird (Director) enabled
1474 --enable-build-stored enable building of stored (Storage daemon) enabled
1475 --disable-conio disable conio support enabled
1477 --enable-ipv6 enable ipv6 support enabled
1479 --disable-readline disable readline support disable
1481 --enable-batch-insert enable the DB batch insert code disabled
1482 --enable-batch-insert enable the DB batch insert code disabled
1483 --disable-largefile omit support for large files
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld default=no
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1492 --without-libintl-prefix don't search for libintl in includedir and libdir
1493 --with-included-gettext use the GNU gettext library included here
1494 --with-qwt[=DIR] specify qwt library directory
1495 --with-readline[=DIR] specify readline library directory
1497 --with-python[=DIR] Include Python support. DIR is the Python base
1498 install directory, default is to search through
1499 a number of common places for the Python files.
1500 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1501 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1502 --with-working-dir=PATH specify path of Bacula working directory
1503 --with-archivedir=PATH specify path of SD archive directory
1504 --with-scriptdir=PATH specify path of Bacula scripts directory
1505 --with-dump-email=EMAIL dump email address
1506 --with-job-email=EMAIL job output email address
1507 --with-smtp-host=HOST SMTP mail host address
1508 --with-pid-dir=PATH specify location of Bacula pid files
1509 --with-subsys-dir=PATH specify location of Bacula subsys file
1510 --with-baseport=PORT specify base port address for daemons
1511 --with-dir-password=PASSWORD specify Director's password
1512 --with-fd-password=PASSWORD specify Client's password
1513 --with-sd-password=PASSWORD specify Storage daemon's password
1514 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1515 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1516 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1517 --with-db-name=DBNAME specify database name (default bacula)
1518 --with-db-user=UNAME specify database user (default bacula)
1519 --with-db-password=UNAME specify database password (default *none*)
1520 --with-db-port=DBPORT specify a database port (default null)
1521 --with-dir-user=USER specify user for Director daemon
1522 --with-dir-group=GROUP specify group for Director daemon
1523 --with-sd-user=USER specify user for Storage daemon
1524 --with-sd-group=GROUP specify group for Storage daemon
1525 --with-fd-user=USER specify user for File daemon
1526 --with-fd-group=GROUP specify group for File daemon
1527 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1528 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1529 base install directory, defaults to /usr/local/pgsql
1531 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1532 install directory, default is to search through
1533 a number of common places for the MySQL files.
1535 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1536 install directory, default is to search through
1537 a number of common places for the MySQL files.
1539 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1540 install directory, default is to search through
1541 a number of common places for the SQLite3 files.
1543 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1544 install directory, default is to search through
1545 a number of common places for the SQLite files.
1547 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1548 install directory, default is to search through
1549 a number of common places for the DBI files.
1551 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1552 the one DBI driver like Mysql, Postgresql, others.
1553 Default is to not configure any driver.
1554 --with-x use the X Window System
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1567 WXCONFIG wx-config command. On some systems, you must set it to
1568 wx-config-2.6 to use wxWidgets 2.6.
1569 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1570 XMKMF Path to xmkmf, Makefile generator for X Window System
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1579 if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582 test -d "$ac_dir" || continue
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1636 generated by GNU Autoconf 2.61
1638 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1639 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1649 It was created by $as_me, which was
1650 generated by GNU Autoconf 2.61. Invocation command line was
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 echo "PATH: $as_dir"
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_must_keep_next=false
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1721 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
1728 ac_must_keep_next=false # Got value, back to normal.
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 -* ) ac_must_keep_next=true ;;
1742 ac_configure_args="$ac_configure_args '$ac_arg'"
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log. We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1803 for ac_var in $ac_subst_vars
1805 eval ac_val=\$$ac_var
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 echo "$ac_var='\''$ac_val'\''"
1813 if test -n "$ac_subst_files"; then
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1820 for ac_var in $ac_subst_files
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 echo "$ac_var='\''$ac_val'\''"
1831 if test -s confdefs.h; then
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 # Predefined preprocessor variables.
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 set x "$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE; then
1889 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 set x "$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
1897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2002 if test -f "$ac_dir/install-sh"; then
2004 ac_install_sh="$ac_aux_dir/install-sh -c"
2006 elif test -f "$ac_dir/install.sh"; then
2008 ac_install_sh="$ac_aux_dir/install.sh -c"
2010 elif test -f "$ac_dir/shtool"; then
2012 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 if test -z "$ac_aux_dir"; then
2017 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2018 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2019 { (exit 1); exit 1; }; }
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2031 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 TRUEPRG=$ac_cv_path_TRUEPRG
2070 if test -n "$TRUEPRG"; then
2071 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2072 echo "${ECHO_T}$TRUEPRG" >&6; }
2074 { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2079 test -n "$TRUEPRG" && break
2081 test -n "$TRUEPRG" || TRUEPRG=":"
2083 for ac_prog in false
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 FALSEPRG=$ac_cv_path_FALSEPRG
2116 if test -n "$FALSEPRG"; then
2117 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2118 echo "${ECHO_T}$FALSEPRG" >&6; }
2120 { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2125 test -n "$FALSEPRG" && break
2127 test -n "$FALSEPRG" || FALSEPRG=":"
2131 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2132 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2133 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2134 echo "configuring for bacula $VERSION ($DATE)"
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 if test -n "$CC"; then
2173 { echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6; }
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2182 if test -z "$ac_cv_prog_CC"; then
2184 # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_ac_ct_CC="gcc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 echo "${ECHO_T}$ac_ct_CC" >&6; }
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2220 if test "x$ac_ct_CC" = x; then
2223 case $cross_compiling:$ac_tool_warned in
2225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&5
2228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2229 whose name does not start with the host triplet. If you think this
2230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2231 ac_tool_warned=yes ;;
2239 if test -z "$CC"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}cc; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_CC="${ac_tool_prefix}cc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 if test -n "$CC"; then
2270 { echo "$as_me:$LINENO: result: $CC" >&5
2271 echo "${ECHO_T}$CC" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2280 if test -z "$CC"; then
2281 # Extract the first word of "cc", so it can be a program name with args.
2282 set dummy cc; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2300 ac_prog_rejected=yes
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 if test $ac_prog_rejected = yes; then
2312 # We found a bogon in the path, so make sure we never use it.
2313 set dummy $ac_cv_prog_CC
2315 if test $# != 0; then
2316 # We chose a different compiler from the bogus one.
2317 # However, it has the same basename, so the bogon will be chosen
2318 # first if we set CC to just the basename; use the full file name.
2320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2326 if test -n "$CC"; then
2327 { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2336 if test -z "$CC"; then
2337 if test -n "$ac_tool_prefix"; then
2338 for ac_prog in cl.exe
2340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_CC+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test -n "$CC"; then
2369 { echo "$as_me:$LINENO: result: $CC" >&5
2370 echo "${ECHO_T}$CC" >&6; }
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2377 test -n "$CC" && break
2380 if test -z "$CC"; then
2382 for ac_prog in cl.exe
2384 # Extract the first word of "$ac_prog", so it can be a program name with args.
2385 set dummy $ac_prog; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_CC="$ac_prog"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412 if test -n "$ac_ct_CC"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2414 echo "${ECHO_T}$ac_ct_CC" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2421 test -n "$ac_ct_CC" && break
2424 if test "x$ac_ct_CC" = x; then
2427 case $cross_compiling:$ac_tool_warned in
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&2;}
2448 { (exit 1); exit 1; }; }
2450 # Provide some information about the compiler.
2451 echo "$as_me:$LINENO: checking for C compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (ac_try="$ac_compiler --version >&5"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459 (eval "$ac_compiler --version >&5") 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463 { (ac_try="$ac_compiler -v >&5"
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_compiler -v >&5") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }
2473 { (ac_try="$ac_compiler -V >&5"
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_compiler -V >&5") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 ac_clean_files_save=$ac_clean_files
2500 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2501 # Try to create an executable without -o first, disregard a.out.
2502 # It will help us diagnose broken compilers, and finding out an intuition
2504 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2505 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2506 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2508 # List of possible output files, starting from the most likely.
2509 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2510 # only as a last resort. b.out is created by i960 compilers.
2511 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2513 # The IRIX 6 linker writes into existing files which may not be
2514 # executable, retaining their permissions. Remove them first so a
2515 # subsequent execution test works.
2517 for ac_file in $ac_files
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2526 if { (ac_try="$ac_link_default"
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_link_default") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2539 # so that the user can short-circuit this test for compilers unknown to
2541 for ac_file in $ac_files ''
2543 test -f "$ac_file" || continue
2545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2548 # We found the default executable, but exeext='' is most
2552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556 # We set ac_cv_exeext here because the later test for it is not
2557 # safe: cross compilers may not add the suffix if given an `-o'
2558 # argument, so we may need to know it at that point already.
2559 # Even if this section looks crufty: it has the advantage of
2566 test "$ac_cv_exeext" = no && ac_cv_exeext=
2572 { echo "$as_me:$LINENO: result: $ac_file" >&5
2573 echo "${ECHO_T}$ac_file" >&6; }
2574 if test -z "$ac_file"; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&2;}
2582 { (exit 77); exit 77; }; }
2585 ac_exeext=$ac_cv_exeext
2587 # Check that the compiler produces executables we can run. If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2592 # If not cross compiling, check that we can run a simple program.
2593 if test "$cross_compiling" != yes; then
2594 if { ac_try='./$ac_file'
2595 { (case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_try") 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2606 if test "$cross_compiling" = maybe; then
2609 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2619 { echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6; }
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check that the compiler produces executables we can run. If not, either
2625 # the compiler is broken, or we cross compile.
2626 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2628 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6; }
2631 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2633 if { (ac_try="$ac_link"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_link") 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2664 rm -f conftest$ac_cv_exeext
2665 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2671 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2673 if test "${ac_cv_objext+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.o conftest.obj
2692 if { (ac_try="$ac_compile"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; then
2702 for ac_file in conftest.o conftest.obj conftest.*; do
2703 test -f "$ac_file" || continue;
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6; }
2725 OBJEXT=$ac_cv_objext
2727 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2750 rm -f conftest.$ac_objext
2751 if { (ac_try="$ac_compile"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compile") 2>conftest.er1
2759 grep -v '^ *+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } && {
2764 test -z "$ac_c_werror_flag" ||
2765 test ! -s conftest.err
2766 } && test -s conftest.$ac_objext; then
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2779 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2781 GCC=`test $ac_compiler_gnu = yes && echo yes`
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 ac_save_c_werror_flag=$ac_c_werror_flag
2790 ac_c_werror_flag=yes
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2808 rm -f conftest.$ac_objext
2809 if { (ac_try="$ac_compile"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compile") 2>conftest.er1
2817 grep -v '^ *+' conftest.er1 >conftest.err
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest.$ac_objext; then
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2846 rm -f conftest.$ac_objext
2847 if { (ac_try="$ac_compile"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compile") 2>conftest.er1
2855 grep -v '^ *+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } && {
2860 test -z "$ac_c_werror_flag" ||
2861 test ! -s conftest.err
2862 } && test -s conftest.$ac_objext; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 ac_c_werror_flag=$ac_save_c_werror_flag
2919 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2920 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2921 if test "$ac_test_CFLAGS" = set; then
2922 CFLAGS=$ac_save_CFLAGS
2923 elif test $ac_cv_prog_cc_g = yes; then
2924 if test "$GCC" = yes; then
2930 if test "$GCC" = yes; then
2936 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2937 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_cc_c89+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 ac_cv_prog_cc_c89=no
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2951 #include <sys/types.h>
2952 #include <sys/stat.h>
2953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2954 struct buf { int x; };
2955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2956 static char *e (p, i)
2962 static char *f (char * (*g) (char **, int), char **p, ...)
2967 s = g (p, va_arg (v,int));
2972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2973 function prototypes and stuff, but not '\xHH' hex character constants.
2974 These don't provoke an error unfortunately, instead are silently treated
2975 as 'x'. The following induces an error, until -std is added to get
2976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2977 array size at least. It's necessary to write '\x00'==0 to get something
2978 that's true only with -std. */
2979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2982 inside strings and character constants. */
2984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003 CC="$ac_save_CC $ac_arg"
3004 rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3021 ac_cv_prog_cc_c89=$ac_arg
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f core conftest.err conftest.$ac_objext
3030 test "x$ac_cv_prog_cc_c89" != "xno" && break
3032 rm -f conftest.$ac_ext
3037 case "x$ac_cv_prog_cc_c89" in
3039 { echo "$as_me:$LINENO: result: none needed" >&5
3040 echo "${ECHO_T}none needed" >&6; } ;;
3042 { echo "$as_me:$LINENO: result: unsupported" >&5
3043 echo "${ECHO_T}unsupported" >&6; } ;;
3045 CC="$CC $ac_cv_prog_cc_c89"
3046 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3047 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 ac_cpp='$CXXCPP $CPPFLAGS'
3059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3062 if test -z "$CXX"; then
3063 if test -n "$CCC"; then
3066 if test -n "$ac_tool_prefix"; then
3067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_CXX+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 if test -n "$CXX"; then
3077 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 if test -n "$CXX"; then
3098 { echo "$as_me:$LINENO: result: $CXX" >&5
3099 echo "${ECHO_T}$CXX" >&6; }
3101 { echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6; }
3106 test -n "$CXX" && break
3109 if test -z "$CXX"; then
3111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if test -n "$ac_ct_CXX"; then
3121 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_ac_ct_CXX="$ac_prog"
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3141 if test -n "$ac_ct_CXX"; then
3142 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3143 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3145 { echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6; }
3150 test -n "$ac_ct_CXX" && break
3153 if test "x$ac_ct_CXX" = x; then
3156 case $cross_compiling:$ac_tool_warned in
3158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3159 whose name does not start with the host triplet. If you think this
3160 configuration is useful to you, please write to autoconf@gnu.org." >&5
3161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3162 whose name does not start with the host triplet. If you think this
3163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3164 ac_tool_warned=yes ;;
3172 # Provide some information about the compiler.
3173 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3174 ac_compiler=`set X $ac_compile; echo $2`
3175 { (ac_try="$ac_compiler --version >&5"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compiler --version >&5") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185 { (ac_try="$ac_compiler -v >&5"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compiler -v >&5") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }
3195 { (ac_try="$ac_compiler -V >&5"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compiler -V >&5") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3206 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3207 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3208 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_cxx_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3258 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3260 GXX=`test $ac_compiler_gnu = yes && echo yes`
3261 ac_test_CXXFLAGS=${CXXFLAGS+set}
3262 ac_save_CXXFLAGS=$CXXFLAGS
3263 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3264 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_cxx_g+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3269 ac_cxx_werror_flag=yes
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } && {
3301 test -z "$ac_cxx_werror_flag" ||
3302 test ! -s conftest.err
3303 } && test -s conftest.$ac_objext; then
3304 ac_cv_prog_cxx_g=yes
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_cxx_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } && {
3378 test -z "$ac_cxx_werror_flag" ||
3379 test ! -s conftest.err
3380 } && test -s conftest.$ac_objext; then
3381 ac_cv_prog_cxx_g=yes
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3400 if test "$ac_test_CXXFLAGS" = set; then
3401 CXXFLAGS=$ac_save_CXXFLAGS
3402 elif test $ac_cv_prog_cxx_g = yes; then
3403 if test "$GXX" = yes; then
3409 if test "$GXX" = yes; then
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test "x$CC" != xcc; then
3422 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3423 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3425 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3426 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3428 set dummy $CC; ac_cc=`echo $2 |
3429 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3430 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3448 # Make sure it works both with $CC and with simple cc.
3449 # We do the test twice because some compilers refuse to overwrite an
3450 # existing .o file with -o, though they will create one.
3451 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3453 if { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); };
3472 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3473 if test "x$CC" != xcc; then
3474 # Test first that cc exists at all.
3475 if { ac_try='cc -c conftest.$ac_ext >&5'
3476 { (case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_try") 2>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3487 if { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_try") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_try") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); };
3509 # cc exists but doesn't like -o.
3510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3517 rm -f core conftest*
3520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3521 { echo "$as_me:$LINENO: result: yes" >&5
3522 echo "${ECHO_T}yes" >&6; }
3524 { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3527 cat >>confdefs.h <<\_ACEOF
3528 #define NO_MINUS_C_MINUS_O 1
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3539 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3540 # On Suns, sometimes $CPP names a directory.
3541 if test -n "$CPP" && test -d "$CPP"; then
3544 if test -z "$CPP"; then
3545 if test "${ac_cv_prog_CPP+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 # Double quotes because CPP needs to be expanded
3549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3552 for ac_c_preproc_warn_flag in '' yes
3554 # Use a header file that comes with gcc, so configuring glibc
3555 # with a fresh cross-compiler works.
3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557 # <limits.h> exists even on freestanding compilers.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp. "Syntax error" is here to catch this case.
3560 cat >conftest.$ac_ext <<_ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3567 # include <limits.h>
3569 # include <assert.h>
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Broken: fails on valid input.
3598 rm -f conftest.err conftest.$ac_ext
3600 # OK, works on sane cases. Now check whether nonexistent headers
3601 # can be detected and how.
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <ac_nonexistent.h>
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } >/dev/null && {
3623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3626 # Broken: success on invalid input.
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 # Passes both tests.
3637 rm -f conftest.err conftest.$ac_ext
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then
3654 { echo "$as_me:$LINENO: result: $CPP" >&5
3655 echo "${ECHO_T}$CPP" >&6; }
3657 for ac_c_preproc_warn_flag in '' yes
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat >conftest.$ac_ext <<_ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3672 # include <limits.h>
3674 # include <assert.h>
3678 if { (ac_try="$ac_cpp conftest.$ac_ext"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1 >conftest.err
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } >/dev/null && {
3691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 # Broken: fails on valid input.
3703 rm -f conftest.err conftest.$ac_ext
3705 # OK, works on sane cases. Now check whether nonexistent headers
3706 # can be detected and how.
3707 cat >conftest.$ac_ext <<_ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 #include <ac_nonexistent.h>
3715 if { (ac_try="$ac_cpp conftest.$ac_ext"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null && {
3728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3729 test ! -s conftest.err
3731 # Broken: success on invalid input.
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 # Passes both tests.
3742 rm -f conftest.err conftest.$ac_ext
3745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746 rm -f conftest.err conftest.$ac_ext
3747 if $ac_preproc_ok; then
3750 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&5
3752 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details." >&2;}
3754 { (exit 1); exit 1; }; }
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3765 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3766 if test "${ac_cv_path_GREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 # Extract the first word of "grep ggrep" to use in msg output
3770 if test -z "$GREP"; then
3771 set dummy grep ggrep; ac_prog_name=$2
3772 if test "${ac_cv_path_GREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in grep ggrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3786 # Check for GNU ac_path_GREP and select it if it is found.
3787 # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3793 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 echo 'GREP' >> "conftest.nl"
3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 ac_count=`expr $ac_count + 1`
3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_GREP="$ac_path_GREP"
3806 ac_path_GREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815 $ac_path_GREP_found && break 3
3825 GREP="$ac_cv_path_GREP"
3826 if test -z "$GREP"; then
3827 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3829 { (exit 1); exit 1; }; }
3833 ac_cv_path_GREP=$GREP
3838 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3839 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3840 GREP="$ac_cv_path_GREP"
3843 { echo "$as_me:$LINENO: checking for egrep" >&5
3844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3845 if test "${ac_cv_path_EGREP+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3849 then ac_cv_path_EGREP="$GREP -E"
3851 # Extract the first word of "egrep" to use in msg output
3852 if test -z "$EGREP"; then
3853 set dummy egrep; ac_prog_name=$2
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 ac_path_EGREP_found=false
3858 # Loop through the user's path and test for each of PROGNAME-LIST
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in egrep; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3867 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3868 # Check for GNU ac_path_EGREP and select it if it is found.
3869 # Check for GNU $ac_path_EGREP
3870 case `"$ac_path_EGREP" --version 2>&1` in
3872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3875 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3878 cat "conftest.in" "conftest.in" >"conftest.tmp"
3879 mv "conftest.tmp" "conftest.in"
3880 cp "conftest.in" "conftest.nl"
3881 echo 'EGREP' >> "conftest.nl"
3882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884 ac_count=`expr $ac_count + 1`
3885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3886 # Best one so far, save it but keep looking for a better one
3887 ac_cv_path_EGREP="$ac_path_EGREP"
3888 ac_path_EGREP_max=$ac_count
3890 # 10*(2^10) chars as input seems more than enough
3891 test $ac_count -gt 10 && break
3893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897 $ac_path_EGREP_found && break 3
3907 EGREP="$ac_cv_path_EGREP"
3908 if test -z "$EGREP"; then
3909 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3911 { (exit 1); exit 1; }; }
3915 ac_cv_path_EGREP=$EGREP
3921 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3922 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3923 EGREP="$ac_cv_path_EGREP"
3926 if test $ac_cv_c_compiler_gnu = yes; then
3927 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3928 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_pattern="Autoconf.*'x'"
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3944 ac_cv_prog_gcc_traditional=yes
3946 ac_cv_prog_gcc_traditional=no
3951 if test $ac_cv_prog_gcc_traditional = no; then
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3962 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3963 ac_cv_prog_gcc_traditional=yes
3969 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3970 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3971 if test $ac_cv_prog_gcc_traditional = yes; then
3972 CC="$CC -traditional"
3976 BASECC=`basename $CC`
3978 if test "x$BASECC" = xgcc; then
3979 cat >>confdefs.h <<\_ACEOF
3985 # Extract the first word of "$CXX", so it can be a program name with args.
3986 set dummy $CXX; ac_word=$2
3987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_CXX+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4017 if test -n "$CXX"; then
4018 { echo "$as_me:$LINENO: result: $CXX" >&5
4019 echo "${ECHO_T}$CXX" >&6; }
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4026 if test ! -e $CXX; then
4027 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4028 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4029 { (exit 1); exit 1; }; }
4032 # Find a good install program. We prefer a C program (faster),
4033 # so one script is as good as another. But avoid the broken or
4034 # incompatible versions:
4035 # SysV /etc/install, /usr/sbin/install
4036 # SunOS /usr/etc/install
4037 # IRIX /sbin/install
4039 # AmigaOS /C/install, which installs bootblocks on floppy discs
4040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4043 # OS/2's system install, which has a completely different semantic
4044 # ./install, which can be erroneously created by make from ./install.sh.
4045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4047 if test -z "$INSTALL"; then
4048 if test "${ac_cv_path_install+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 # Account for people who put trailing slashes in PATH elements.
4058 ./ | .// | /cC/* | \
4059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4060 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4063 # OSF1 and SCO ODT 3.0 have their own names for install.
4064 # Don't use installbsd from OSF since it installs stuff as root
4066 for ac_prog in ginstall scoinst install; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4069 if test $ac_prog = install &&
4070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071 # AIX install. It has an incompatible calling convention.
4073 elif test $ac_prog = install &&
4074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4075 # program-specific install script used by HP pwplus--don't use.
4078 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4091 if test "${ac_cv_path_install+set}" = set; then
4092 INSTALL=$ac_cv_path_install
4094 # As a last resort, use the slow shell script. Don't cache a
4095 # value for INSTALL within a source directory, because that will
4096 # break other packages using the cache if that directory is
4097 # removed, or if the value is a relative name.
4098 INSTALL=$ac_install_sh
4101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4102 echo "${ECHO_T}$INSTALL" >&6; }
4104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4105 # It thinks the first close brace ends the variable substitution.
4106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_prog_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$RANLIB"; then
4121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 RANLIB=$ac_cv_prog_RANLIB
4141 if test -n "$RANLIB"; then
4142 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4143 echo "${ECHO_T}$RANLIB" >&6; }
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4151 if test -z "$ac_cv_prog_RANLIB"; then
4152 ac_ct_RANLIB=$RANLIB
4153 # Extract the first word of "ranlib", so it can be a program name with args.
4154 set dummy ranlib; ac_word=$2
4155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4157 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 if test -n "$ac_ct_RANLIB"; then
4161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170 ac_cv_prog_ac_ct_RANLIB="ranlib"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4181 if test -n "$ac_ct_RANLIB"; then
4182 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4183 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4185 { echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6; }
4189 if test "x$ac_ct_RANLIB" = x; then
4192 case $cross_compiling:$ac_tool_warned in
4194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet. If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&5
4197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4198 whose name does not start with the host triplet. If you think this
4199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4200 ac_tool_warned=yes ;;
4202 RANLIB=$ac_ct_RANLIB
4205 RANLIB="$ac_cv_prog_RANLIB"
4208 # Extract the first word of "mv", so it can be a program name with args.
4209 set dummy mv; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_path_MV+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4240 if test -n "$MV"; then
4241 { echo "$as_me:$LINENO: result: $MV" >&5
4242 echo "${ECHO_T}$MV" >&6; }
4244 { echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6; }
4249 # Extract the first word of "rm", so it can be a program name with args.
4250 set dummy rm; ac_word=$2
4251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4253 if test "${ac_cv_path_RM+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4281 if test -n "$RM"; then
4282 { echo "$as_me:$LINENO: result: $RM" >&5
4283 echo "${ECHO_T}$RM" >&6; }
4285 { echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6; }
4290 # Extract the first word of "cp", so it can be a program name with args.
4291 set dummy cp; ac_word=$2
4292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4294 if test "${ac_cv_path_CP+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4322 if test -n "$CP"; then
4323 { echo "$as_me:$LINENO: result: $CP" >&5
4324 echo "${ECHO_T}$CP" >&6; }
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4331 # Extract the first word of "sed", so it can be a program name with args.
4332 set dummy sed; ac_word=$2
4333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4335 if test "${ac_cv_path_SED+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4363 if test -n "$SED"; then
4364 { echo "$as_me:$LINENO: result: $SED" >&5
4365 echo "${ECHO_T}$SED" >&6; }
4367 { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4372 # Extract the first word of "echo", so it can be a program name with args.
4373 set dummy echo; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_path_ECHO+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4403 ECHO=$ac_cv_path_ECHO
4404 if test -n "$ECHO"; then
4405 { echo "$as_me:$LINENO: result: $ECHO" >&5
4406 echo "${ECHO_T}$ECHO" >&6; }
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4413 # Extract the first word of "cmp", so it can be a program name with args.
4414 set dummy cmp; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_path_CMP+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4445 if test -n "$CMP"; then
4446 { echo "$as_me:$LINENO: result: $CMP" >&5
4447 echo "${ECHO_T}$CMP" >&6; }
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4454 # Extract the first word of "tbl", so it can be a program name with args.
4455 set dummy tbl; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_path_TBL+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4486 if test -n "$TBL"; then
4487 { echo "$as_me:$LINENO: result: $TBL" >&5
4488 echo "${ECHO_T}$TBL" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 # Extract the first word of "ar", so it can be a program name with args.
4496 set dummy ar; ac_word=$2
4497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4499 if test "${ac_cv_path_AR+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4527 if test -n "$AR"; then
4528 { echo "$as_me:$LINENO: result: $AR" >&5
4529 echo "${ECHO_T}$AR" >&6; }
4531 { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4536 # Extract the first word of "openssl", so it can be a program name with args.
4537 set dummy openssl; ac_word=$2
4538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540 if test "${ac_cv_path_OPENSSL+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4567 OPENSSL=$ac_cv_path_OPENSSL
4568 if test -n "$OPENSSL"; then
4569 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4570 echo "${ECHO_T}$OPENSSL" >&6; }
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4577 # Extract the first word of "mtx", so it can be a program name with args.
4578 set dummy mtx; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_path_MTX+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4609 if test -n "$MTX"; then
4610 { echo "$as_me:$LINENO: result: $MTX" >&5
4611 echo "${ECHO_T}$MTX" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 # Extract the first word of "dd", so it can be a program name with args.
4619 set dummy dd; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_path_DD+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4650 if test -n "$DD"; then
4651 { echo "$as_me:$LINENO: result: $DD" >&5
4652 echo "${ECHO_T}$DD" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4659 # Extract the first word of "mkisofs", so it can be a program name with args.
4660 set dummy mkisofs; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_path_MKISOFS+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4690 MKISOFS=$ac_cv_path_MKISOFS
4691 if test -n "$MKISOFS"; then
4692 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4693 echo "${ECHO_T}$MKISOFS" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 # Extract the first word of "python", so it can be a program name with args.
4701 set dummy python; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_path_PYTHON+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4731 PYTHON=$ac_cv_path_PYTHON
4732 if test -n "$PYTHON"; then
4733 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4734 echo "${ECHO_T}$PYTHON" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 # Extract the first word of "growisofs", so it can be a program name with args.
4742 set dummy growisofs; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4772 GROWISOFS=$ac_cv_path_GROWISOFS
4773 if test -n "$GROWISOFS"; then
4774 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4775 echo "${ECHO_T}$GROWISOFS" >&6; }
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4783 set dummy dvd+rw-mediainfo; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 case $DVDRWMEDIAINFO in
4791 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4813 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4814 if test -n "$DVDRWMEDIAINFO"; then
4815 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4816 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4824 set dummy dvd+rw-format; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 case $DVDRWFORMAT in
4832 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4854 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4855 if test -n "$DVDRWFORMAT"; then
4856 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4857 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 # Extract the first word of "pkg-config", so it can be a program name with args.
4865 set dummy pkg-config; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4895 PKGCONFIG=$ac_cv_path_PKGCONFIG
4896 if test -n "$PKGCONFIG"; then
4897 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4898 echo "${ECHO_T}$PKGCONFIG" >&6; }
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 # Extract the first word of "qmake", so it can be a program name with args.
4906 set dummy qmake; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_path_QMAKE+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4936 QMAKE=$ac_cv_path_QMAKE
4937 if test -n "$QMAKE"; then
4938 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4939 echo "${ECHO_T}$QMAKE" >&6; }
4941 { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4946 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4947 set dummy qmake-qt4; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4977 QMAKEQT4=$ac_cv_path_QMAKEQT4
4978 if test -n "$QMAKEQT4"; then
4979 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4980 echo "${ECHO_T}$QMAKEQT4" >&6; }
4982 { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4988 if test "x$WXCONFIG" = x; then
4991 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4992 set dummy ${WXCONFIG}; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5022 WXCONFIG=$ac_cv_path_WXCONFIG
5023 if test -n "$WXCONFIG"; then
5024 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5025 echo "${ECHO_T}$WXCONFIG" >&6; }
5027 { echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6; }
5033 # Extract the first word of "cdrecord", so it can be a program name with args.
5034 set dummy cdrecord; ac_word=$2
5035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037 if test "${ac_cv_path_CDRECORD+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5064 CDRECORD=$ac_cv_path_CDRECORD
5065 if test -n "$CDRECORD"; then
5066 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5067 echo "${ECHO_T}$CDRECORD" >&6; }
5069 { echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6; }
5074 # Extract the first word of "pidof", so it can be a program name with args.
5075 set dummy pidof; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_path_PIDOF+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5105 PIDOF=$ac_cv_path_PIDOF
5106 if test -n "$PIDOF"; then
5107 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5108 echo "${ECHO_T}$PIDOF" >&6; }
5110 { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5115 for ac_prog in gawk mawk nawk awk
5117 # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5121 if test "${ac_cv_prog_AWK+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 if test -n "$AWK"; then
5125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_AWK="$ac_prog"
5135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 if test -n "$AWK"; then
5146 { echo "$as_me:$LINENO: result: $AWK" >&5
5147 echo "${ECHO_T}$AWK" >&6; }
5149 { echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6; }
5154 test -n "$AWK" && break
5157 # Some AWK programs fail, so test it and warn the user
5158 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5159 { if ((prog == $2) || (("(" prog ")") == $2) ||
5160 (("" prog "") == $2) ||
5161 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5163 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164 The regex engine of $AWK is too broken to be used you
5165 might want to install GNU AWK.
5166 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5167 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5168 The regex engine of $AWK is too broken to be used you
5169 might want to install GNU AWK.
5170 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5171 { (exit 1); exit 1; }; }
5174 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5175 set dummy $THE_AWK; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_AWK+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5206 if test -n "$AWK"; then
5207 { echo "$as_me:$LINENO: result: $AWK" >&5
5208 echo "${ECHO_T}$AWK" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5217 test -n "$ARFLAG" || ARFLAGS="cr"
5228 # Make sure we can run config.sub.
5229 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5230 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5231 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5232 { (exit 1); exit 1; }; }
5234 { echo "$as_me:$LINENO: checking build system type" >&5
5235 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5236 if test "${ac_cv_build+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_build_alias=$build_alias
5240 test "x$ac_build_alias" = x &&
5241 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5242 test "x$ac_build_alias" = x &&
5243 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5245 { (exit 1); exit 1; }; }
5246 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5247 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5249 { (exit 1); exit 1; }; }
5252 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5253 echo "${ECHO_T}$ac_cv_build" >&6; }
5254 case $ac_cv_build in
5256 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5257 echo "$as_me: error: invalid value of canonical build" >&2;}
5258 { (exit 1); exit 1; }; };;
5261 ac_save_IFS=$IFS; IFS='-'
5267 # Remember, the first character of IFS is used to create $*,
5268 # except with old shells:
5271 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5275 { echo "$as_me:$LINENO: checking host system type" >&5
5276 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5277 if test "${ac_cv_host+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 if test "x$host_alias" = x; then
5281 ac_cv_host=$ac_cv_build
5283 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5284 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5285 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5286 { (exit 1); exit 1; }; }
5290 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5291 echo "${ECHO_T}$ac_cv_host" >&6; }
5294 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5295 echo "$as_me: error: invalid value of canonical host" >&2;}
5296 { (exit 1); exit 1; }; };;
5299 ac_save_IFS=$IFS; IFS='-'
5305 # Remember, the first character of IFS is used to create $*,
5306 # except with old shells:
5309 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5313 *cygwin* ) CYGWIN=yes;;
5317 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5323 HAVE_SUN_OS_FALSE='#'
5325 HAVE_SUN_OS_TRUE='#'
5328 cat >>confdefs.h <<\_ACEOF
5329 #define HAVE_SUN_OS 1
5337 HAVE_SUN_OS_FALSE='#'
5339 HAVE_SUN_OS_TRUE='#'
5344 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5350 HAVE_OSF1_OS_FALSE='#'
5352 HAVE_OSF1_OS_TRUE='#'
5355 cat >>confdefs.h <<\_ACEOF
5356 #define HAVE_OSF1_OS 1
5364 HAVE_OSF1_OS_FALSE='#'
5366 HAVE_OSF1_OS_TRUE='#'
5371 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5377 HAVE_AIX_OS_FALSE='#'
5379 HAVE_AIX_OS_TRUE='#'
5382 cat >>confdefs.h <<\_ACEOF
5383 #define HAVE_AIX_OS 1
5391 HAVE_AIX_OS_FALSE='#'
5393 HAVE_AIX_OS_TRUE='#'
5398 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5404 HAVE_HPUX_OS_FALSE='#'
5406 HAVE_HPUX_OS_TRUE='#'
5409 cat >>confdefs.h <<\_ACEOF
5410 #define HAVE_HPUX_OS 1
5418 HAVE_HPUX_OS_FALSE='#'
5420 HAVE_HPUX_OS_TRUE='#'
5425 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5431 HAVE_LINUX_OS_FALSE='#'
5433 HAVE_LINUX_OS_TRUE='#'
5434 HAVE_LINUX_OS_FALSE=
5436 cat >>confdefs.h <<\_ACEOF
5437 #define HAVE_LINUX_OS 1
5445 HAVE_LINUX_OS_FALSE='#'
5447 HAVE_LINUX_OS_TRUE='#'
5448 HAVE_LINUX_OS_FALSE=
5452 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5457 HAVE_FREEBSD_OS_TRUE=
5458 HAVE_FREEBSD_OS_FALSE='#'
5460 HAVE_FREEBSD_OS_TRUE='#'
5461 HAVE_FREEBSD_OS_FALSE=
5463 cat >>confdefs.h <<\_ACEOF
5464 #define HAVE_FREEBSD_OS 1
5471 HAVE_FREEBSD_OS_TRUE=
5472 HAVE_FREEBSD_OS_FALSE='#'
5474 HAVE_FREEBSD_OS_TRUE='#'
5475 HAVE_FREEBSD_OS_FALSE=
5479 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5484 HAVE_NETBSD_OS_TRUE=
5485 HAVE_NETBSD_OS_FALSE='#'
5487 HAVE_NETBSD_OS_TRUE='#'
5488 HAVE_NETBSD_OS_FALSE=
5490 cat >>confdefs.h <<\_ACEOF
5491 #define HAVE_NETBSD_OS 1
5498 HAVE_NETBSD_OS_TRUE=
5499 HAVE_NETBSD_OS_FALSE='#'
5501 HAVE_NETBSD_OS_TRUE='#'
5502 HAVE_NETBSD_OS_FALSE=
5506 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5511 HAVE_OPENBSD_OS_TRUE=
5512 HAVE_OPENBSD_OS_FALSE='#'
5514 HAVE_OPENBSD_OS_TRUE='#'
5515 HAVE_OPENBSD_OS_FALSE=
5517 cat >>confdefs.h <<\_ACEOF
5518 #define HAVE_OPENBSD_OS 1
5525 HAVE_OPENBSD_OS_TRUE=
5526 HAVE_OPENBSD_OS_FALSE='#'
5528 HAVE_OPENBSD_OS_TRUE='#'
5529 HAVE_OPENBSD_OS_FALSE=
5533 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5539 HAVE_BSDI_OS_FALSE='#'
5541 HAVE_BSDI_OS_TRUE='#'
5544 cat >>confdefs.h <<\_ACEOF
5545 #define HAVE_BSDI_OS 1
5553 HAVE_BSDI_OS_FALSE='#'
5555 HAVE_BSDI_OS_TRUE='#'
5560 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5566 HAVE_SGI_OS_FALSE='#'
5568 HAVE_SGI_OS_TRUE='#'
5571 cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_SGI_OS 1
5580 HAVE_SGI_OS_FALSE='#'
5582 HAVE_SGI_OS_TRUE='#'
5587 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5593 HAVE_IRIX_OS_FALSE='#'
5595 HAVE_IRIX_OS_TRUE='#'
5598 cat >>confdefs.h <<\_ACEOF
5599 #define HAVE_IRIX_OS 1
5607 HAVE_IRIX_OS_FALSE='#'
5609 HAVE_IRIX_OS_TRUE='#'
5614 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5619 HAVE_DARWIN_OS_TRUE=
5620 HAVE_DARWIN_OS_FALSE='#'
5622 HAVE_DARWIN_OS_TRUE='#'
5623 HAVE_DARWIN_OS_FALSE=
5625 cat >>confdefs.h <<\_ACEOF
5626 #define HAVE_DARWIN_OS 1
5633 HAVE_DARWIN_OS_TRUE=
5634 HAVE_DARWIN_OS_FALSE='#'
5636 HAVE_DARWIN_OS_TRUE='#'
5637 HAVE_DARWIN_OS_FALSE=
5642 # -----------------------------------------------------------
5643 # ----------------------------------------------------------
5644 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5645 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5646 if test "x$DISTNAME" != "x"
5648 echo "distname set to $DISTNAME"
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5676 elif test -f /etc/SuSE-release
5679 elif test -d /etc/SuSEconfig
5682 elif test -f /etc/mandrake-release
5685 elif test -f /etc/whitebox-release
5688 elif test -f /etc/redhat-release
5691 elif test -f /etc/gentoo-release
5694 elif test -f /etc/debian_version
5697 elif test -f /etc/slackware-version
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5703 elif test -f /etc/engarde-version
5706 elif test "$CYGWIN" = yes
5709 cat >>confdefs.h <<\_ACEOF
5710 #define HAVE_CYGWIN 1
5716 { echo "$as_me:$LINENO: result: done" >&5
5717 echo "${ECHO_T}done" >&6; }
5720 # --------------------------------------------------
5721 # Suppport for gettext (translations)
5722 # By default, $datadir is ${prefix}/share
5723 # --------------------------------------------------
5724 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5725 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5726 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5727 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.make <<\_ACEOF
5733 @echo '@@@%%%=$(MAKE)=@@@%%%'
5735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5738 eval ac_cv_prog_make_${ac_make}_set=yes;;
5740 eval ac_cv_prog_make_${ac_make}_set=no;;
5744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5745 { echo "$as_me:$LINENO: result: yes" >&5
5746 echo "${ECHO_T}yes" >&6; }
5749 { echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6; }
5751 SET_MAKE="MAKE=${MAKE-make}"
5757 if test -n "$ac_aux_dir"; then
5758 case "$ac_aux_dir" in
5759 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5760 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5763 if test -z "$MKINSTALLDIRS"; then
5764 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5769 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5770 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5771 # Check whether --enable-nls was given.
5772 if test "${enable_nls+set}" = set; then
5773 enableval=$enable_nls; USE_NLS=$enableval
5778 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5779 echo "${ECHO_T}$USE_NLS" >&6; }
5786 # Prepare PATH_SEPARATOR.
5787 # The user is always right.
5788 if test "${PATH_SEPARATOR+set}" != set; then
5789 echo "#! /bin/sh" >conf$$.sh
5790 echo "exit 0" >>conf$$.sh
5792 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5800 # Find out how to test for executable files. Don't use a zero-byte file,
5801 # as systems may use methods other than mode bits to determine executability.
5802 cat >conf$$.file <<_ASEOF
5806 chmod +x conf$$.file
5807 if test -x conf$$.file >/dev/null 2>&1; then
5808 ac_executable_p="test -x"
5810 ac_executable_p="test -f"
5814 # Extract the first word of "msgfmt", so it can be a program name with args.
5815 set dummy msgfmt; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_path_MSGFMT+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5826 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5827 for ac_dir in $PATH; do
5829 test -z "$ac_dir" && ac_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5832 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5833 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5834 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5835 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5842 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5846 MSGFMT="$ac_cv_path_MSGFMT"
5847 if test "$MSGFMT" != ":"; then
5848 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5849 echo "${ECHO_T}$MSGFMT" >&6; }
5851 { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5856 set dummy gmsgfmt; ac_word=$2
5857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5859 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5886 GMSGFMT=$ac_cv_path_GMSGFMT
5887 if test -n "$GMSGFMT"; then
5888 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5889 echo "${ECHO_T}$GMSGFMT" >&6; }
5891 { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5898 # Prepare PATH_SEPARATOR.
5899 # The user is always right.
5900 if test "${PATH_SEPARATOR+set}" != set; then
5901 echo "#! /bin/sh" >conf$$.sh
5902 echo "exit 0" >>conf$$.sh
5904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5912 # Find out how to test for executable files. Don't use a zero-byte file,
5913 # as systems may use methods other than mode bits to determine executability.
5914 cat >conf$$.file <<_ASEOF
5918 chmod +x conf$$.file
5919 if test -x conf$$.file >/dev/null 2>&1; then
5920 ac_executable_p="test -x"
5922 ac_executable_p="test -f"
5926 # Extract the first word of "xgettext", so it can be a program name with args.
5927 set dummy xgettext; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5938 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5939 for ac_dir in $PATH; do
5941 test -z "$ac_dir" && ac_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5944 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5945 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5946 (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
5947 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5954 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5958 XGETTEXT="$ac_cv_path_XGETTEXT"
5959 if test "$XGETTEXT" != ":"; then
5960 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5961 echo "${ECHO_T}$XGETTEXT" >&6; }
5963 { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5970 # Prepare PATH_SEPARATOR.
5971 # The user is always right.
5972 if test "${PATH_SEPARATOR+set}" != set; then
5973 echo "#! /bin/sh" >conf$$.sh
5974 echo "exit 0" >>conf$$.sh
5976 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5984 # Find out how to test for executable files. Don't use a zero-byte file,
5985 # as systems may use methods other than mode bits to determine executability.
5986 cat >conf$$.file <<_ASEOF
5990 chmod +x conf$$.file
5991 if test -x conf$$.file >/dev/null 2>&1; then
5992 ac_executable_p="test -x"
5994 ac_executable_p="test -f"
5998 # Extract the first word of "msgmerge", so it can be a program name with args.
5999 set dummy msgmerge; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6010 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6011 for ac_dir in $PATH; do
6013 test -z "$ac_dir" && ac_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6016 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6017 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6018 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6025 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6029 MSGMERGE="$ac_cv_path_MSGMERGE"
6030 if test "$MSGMERGE" != ":"; then
6031 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6032 echo "${ECHO_T}$MSGMERGE" >&6; }
6034 { echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6; }
6039 if test "$GMSGFMT" != ":"; then
6040 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6041 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6044 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6045 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6046 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6051 if test "$XGETTEXT" != ":"; then
6052 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6053 (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
6056 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6057 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6063 ac_config_commands="$ac_config_commands default-1"
6067 if test "X$prefix" = "XNONE"; then
6068 acl_final_prefix="$ac_default_prefix"
6070 acl_final_prefix="$prefix"
6072 if test "X$exec_prefix" = "XNONE"; then
6073 acl_final_exec_prefix='${prefix}'
6075 acl_final_exec_prefix="$exec_prefix"
6077 acl_save_prefix="$prefix"
6078 prefix="$acl_final_prefix"
6079 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6080 prefix="$acl_save_prefix"
6083 # Check whether --with-gnu-ld was given.
6084 if test "${with_gnu_ld+set}" = set; then
6085 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6090 # Prepare PATH_SEPARATOR.
6091 # The user is always right.
6092 if test "${PATH_SEPARATOR+set}" != set; then
6093 echo "#! /bin/sh" >conf$$.sh
6094 echo "exit 0" >>conf$$.sh
6096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6104 if test "$GCC" = yes; then
6105 # Check if gcc -print-prog-name=ld gives a path.
6106 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6107 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6110 # gcc leaves a trailing carriage return which upsets mingw
6111 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6113 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6116 # Accept absolute paths.
6117 [\\/]* | [A-Za-z]:[\\/]*)
6118 re_direlt='/[^/][^/]*/\.\./'
6119 # Canonicalize the path of ld
6120 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6121 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6122 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6124 test -z "$LD" && LD="$ac_prog"
6127 # If it fails, then pretend we aren't using GCC.
6131 # If it is relative, then search for the first ld in PATH.
6135 elif test "$with_gnu_ld" = yes; then
6136 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6137 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6139 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6140 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6142 if test "${acl_cv_path_LD+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 if test -z "$LD"; then
6146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6147 for ac_dir in $PATH; do
6148 test -z "$ac_dir" && ac_dir=.
6149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6150 acl_cv_path_LD="$ac_dir/$ac_prog"
6151 # Check to see if the program is GNU ld. I'd rather use --version,
6152 # but apparently some GNU ld's only accept -v.
6153 # Break only if it was the GNU/non-GNU ld that we prefer.
6154 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6155 *GNU* | *'with BFD'*)
6156 test "$with_gnu_ld" != no && break ;;
6158 test "$with_gnu_ld" != yes && break ;;
6164 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6168 LD="$acl_cv_path_LD"
6169 if test -n "$LD"; then
6170 { echo "$as_me:$LINENO: result: $LD" >&5
6171 echo "${ECHO_T}$LD" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6178 { (exit 1); exit 1; }; }
6179 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6181 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6185 case `$LD -v 2>&1 </dev/null` in
6186 *GNU* | *'with BFD'*)
6187 acl_cv_prog_gnu_ld=yes ;;
6189 acl_cv_prog_gnu_ld=no ;;
6192 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6193 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6194 with_gnu_ld=$acl_cv_prog_gnu_ld
6199 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6200 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6201 if test "${acl_cv_rpath+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6212 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6213 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6215 libext="$acl_cv_libext"
6216 shlibext="$acl_cv_shlibext"
6217 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6218 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6219 hardcode_direct="$acl_cv_hardcode_direct"
6220 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6221 # Check whether --enable-rpath was given.
6222 if test "${enable_rpath+set}" = set; then
6223 enableval=$enable_rpath; :
6237 acl_save_prefix="$prefix"
6238 prefix="$acl_final_prefix"
6239 acl_save_exec_prefix="$exec_prefix"
6240 exec_prefix="$acl_final_exec_prefix"
6242 eval additional_includedir=\"$includedir\"
6243 eval additional_libdir=\"$libdir\"
6245 exec_prefix="$acl_save_exec_prefix"
6246 prefix="$acl_save_prefix"
6249 # Check whether --with-libiconv-prefix was given.
6250 if test "${with_libiconv_prefix+set}" = set; then
6251 withval=$with_libiconv_prefix;
6252 if test "X$withval" = "Xno"; then
6255 if test "X$withval" = "X"; then
6257 acl_save_prefix="$prefix"
6258 prefix="$acl_final_prefix"
6259 acl_save_exec_prefix="$exec_prefix"
6260 exec_prefix="$acl_final_exec_prefix"
6262 eval additional_includedir=\"$includedir\"
6263 eval additional_libdir=\"$libdir\"
6265 exec_prefix="$acl_save_exec_prefix"
6266 prefix="$acl_save_prefix"
6269 additional_includedir="$withval/include"
6270 additional_libdir="$withval/lib"
6281 names_already_handled=
6282 names_next_round='iconv '
6283 while test -n "$names_next_round"; do
6284 names_this_round="$names_next_round"
6286 for name in $names_this_round; do
6288 for n in $names_already_handled; do
6289 if test "$n" = "$name"; then
6294 if test -z "$already_handled"; then
6295 names_already_handled="$names_already_handled $name"
6296 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6297 eval value=\"\$HAVE_LIB$uppername\"
6298 if test -n "$value"; then
6299 if test "$value" = yes; then
6300 eval value=\"\$LIB$uppername\"
6301 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6302 eval value=\"\$LTLIB$uppername\"
6303 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6312 if test $use_additional = yes; then
6313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6314 found_dir="$additional_libdir"
6315 found_so="$additional_libdir/lib$name.$shlibext"
6316 if test -f "$additional_libdir/lib$name.la"; then
6317 found_la="$additional_libdir/lib$name.la"
6320 if test -f "$additional_libdir/lib$name.$libext"; then
6321 found_dir="$additional_libdir"
6322 found_a="$additional_libdir/lib$name.$libext"
6323 if test -f "$additional_libdir/lib$name.la"; then
6324 found_la="$additional_libdir/lib$name.la"
6329 if test "X$found_dir" = "X"; then
6330 for x in $LDFLAGS $LTLIBICONV; do
6332 acl_save_prefix="$prefix"
6333 prefix="$acl_final_prefix"
6334 acl_save_exec_prefix="$exec_prefix"
6335 exec_prefix="$acl_final_exec_prefix"
6337 exec_prefix="$acl_save_exec_prefix"
6338 prefix="$acl_save_prefix"
6342 dir=`echo "X$x" | sed -e 's/^X-L//'`
6343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6345 found_so="$dir/lib$name.$shlibext"
6346 if test -f "$dir/lib$name.la"; then
6347 found_la="$dir/lib$name.la"
6350 if test -f "$dir/lib$name.$libext"; then
6352 found_a="$dir/lib$name.$libext"
6353 if test -f "$dir/lib$name.la"; then
6354 found_la="$dir/lib$name.la"
6360 if test "X$found_dir" != "X"; then
6365 if test "X$found_dir" != "X"; then
6366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6367 if test "X$found_so" != "X"; then
6368 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6372 for x in $ltrpathdirs; do
6373 if test "X$x" = "X$found_dir"; then
6378 if test -z "$haveit"; then
6379 ltrpathdirs="$ltrpathdirs $found_dir"
6381 if test "$hardcode_direct" = yes; then
6382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6387 for x in $rpathdirs; do
6388 if test "X$x" = "X$found_dir"; then
6393 if test -z "$haveit"; then
6394 rpathdirs="$rpathdirs $found_dir"
6398 for x in $LDFLAGS $LIBICONV; do
6400 acl_save_prefix="$prefix"
6401 prefix="$acl_final_prefix"
6402 acl_save_exec_prefix="$exec_prefix"
6403 exec_prefix="$acl_final_exec_prefix"
6405 exec_prefix="$acl_save_exec_prefix"
6406 prefix="$acl_save_prefix"
6408 if test "X$x" = "X-L$found_dir"; then
6413 if test -z "$haveit"; then
6414 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6416 if test "$hardcode_minus_L" != no; then
6417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6419 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6425 if test "X$found_a" != "X"; then
6426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6431 additional_includedir=
6432 case "$found_dir" in
6434 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6435 additional_includedir="$basedir/include"
6438 if test "X$additional_includedir" != "X"; then
6439 if test "X$additional_includedir" != "X/usr/include"; then
6441 if test "X$additional_includedir" = "X/usr/local/include"; then
6442 if test -n "$GCC"; then
6444 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6448 if test -z "$haveit"; then
6449 for x in $CPPFLAGS $INCICONV; do
6451 acl_save_prefix="$prefix"
6452 prefix="$acl_final_prefix"
6453 acl_save_exec_prefix="$exec_prefix"
6454 exec_prefix="$acl_final_exec_prefix"
6456 exec_prefix="$acl_save_exec_prefix"
6457 prefix="$acl_save_prefix"
6459 if test "X$x" = "X-I$additional_includedir"; then
6464 if test -z "$haveit"; then
6465 if test -d "$additional_includedir"; then
6466 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6472 if test -n "$found_la"; then
6473 save_libdir="$libdir"
6475 */* | *\\*) . "$found_la" ;;
6476 *) . "./$found_la" ;;
6478 libdir="$save_libdir"
6479 for dep in $dependency_libs; do
6482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6483 if test "X$additional_libdir" != "X/usr/lib"; then
6485 if test "X$additional_libdir" = "X/usr/local/lib"; then
6486 if test -n "$GCC"; then
6488 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6492 if test -z "$haveit"; then
6494 for x in $LDFLAGS $LIBICONV; do
6496 acl_save_prefix="$prefix"
6497 prefix="$acl_final_prefix"
6498 acl_save_exec_prefix="$exec_prefix"
6499 exec_prefix="$acl_final_exec_prefix"
6501 exec_prefix="$acl_save_exec_prefix"
6502 prefix="$acl_save_prefix"
6504 if test "X$x" = "X-L$additional_libdir"; then
6509 if test -z "$haveit"; then
6510 if test -d "$additional_libdir"; then
6511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6515 for x in $LDFLAGS $LTLIBICONV; do
6517 acl_save_prefix="$prefix"
6518 prefix="$acl_final_prefix"
6519 acl_save_exec_prefix="$exec_prefix"
6520 exec_prefix="$acl_final_exec_prefix"
6522 exec_prefix="$acl_save_exec_prefix"
6523 prefix="$acl_save_prefix"
6525 if test "X$x" = "X-L$additional_libdir"; then
6530 if test -z "$haveit"; then
6531 if test -d "$additional_libdir"; then
6532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6539 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6540 if test "$enable_rpath" != no; then
6542 for x in $rpathdirs; do
6543 if test "X$x" = "X$dir"; then
6548 if test -z "$haveit"; then
6549 rpathdirs="$rpathdirs $dir"
6552 for x in $ltrpathdirs; do
6553 if test "X$x" = "X$dir"; then
6558 if test -z "$haveit"; then
6559 ltrpathdirs="$ltrpathdirs $dir"
6564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6570 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6577 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6584 if test "X$rpathdirs" != "X"; then
6585 if test -n "$hardcode_libdir_separator"; then
6587 for found_dir in $rpathdirs; do
6588 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6590 acl_save_libdir="$libdir"
6592 eval flag=\"$hardcode_libdir_flag_spec\"
6593 libdir="$acl_save_libdir"
6594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6596 for found_dir in $rpathdirs; do
6597 acl_save_libdir="$libdir"
6599 eval flag=\"$hardcode_libdir_flag_spec\"
6600 libdir="$acl_save_libdir"
6601 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6605 if test "X$ltrpathdirs" != "X"; then
6606 for found_dir in $ltrpathdirs; do
6607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6628 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6629 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6630 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 gt_save_CPPFLAGS="$CPPFLAGS"
6634 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6635 gt_save_LIBS="$LIBS"
6636 LIBS="$LIBS -framework CoreFoundation"
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 #include <CFPreferences.h>
6647 CFPreferencesCopyAppValue(NULL, NULL)
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (ac_try="$ac_link"
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_link") 2>conftest.er1
6661 grep -v '^ *+' conftest.er1 >conftest.err
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest$ac_exeext &&
6669 $as_test_x conftest$ac_exeext; then
6670 gt_cv_func_CFPreferencesCopyAppValue=yes
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 gt_cv_func_CFPreferencesCopyAppValue=no
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679 conftest$ac_exeext conftest.$ac_ext
6680 CPPFLAGS="$gt_save_CPPFLAGS"
6681 LIBS="$gt_save_LIBS"
6683 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6684 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6685 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6692 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6693 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6694 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 gt_save_CPPFLAGS="$CPPFLAGS"
6698 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6699 gt_save_LIBS="$LIBS"
6700 LIBS="$LIBS -framework CoreFoundation"
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <CFLocale.h>
6711 CFLocaleCopyCurrent();
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (ac_try="$ac_link"
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_link") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest$ac_exeext &&
6733 $as_test_x conftest$ac_exeext; then
6734 gt_cv_func_CFLocaleCopyCurrent=yes
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 gt_cv_func_CFLocaleCopyCurrent=no
6742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6743 conftest$ac_exeext conftest.$ac_ext
6744 CPPFLAGS="$gt_save_CPPFLAGS"
6745 LIBS="$gt_save_LIBS"
6747 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6748 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6749 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_CFLOCALECOPYCURRENT 1
6757 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6758 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6764 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6765 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6766 # Check whether --enable-nls was given.
6767 if test "${enable_nls+set}" = set; then
6768 enableval=$enable_nls; USE_NLS=$enableval
6773 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6774 echo "${ECHO_T}$USE_NLS" >&6; }
6783 if test "$USE_NLS" = "yes"; then
6784 gt_use_preinstalled_gnugettext=no
6791 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6792 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6793 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <libintl.h>
6803 extern int _nl_msg_cat_cntr;
6804 extern int *_nl_domain_bindings;
6808 bindtextdomain ("", "");
6809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_link") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest$ac_exeext &&
6831 $as_test_x conftest$ac_exeext; then
6832 gt_cv_func_gnugettext1_libc=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 gt_cv_func_gnugettext1_libc=no
6840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6841 conftest$ac_exeext conftest.$ac_ext
6843 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6844 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6846 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6852 am_save_CPPFLAGS="$CPPFLAGS"
6854 for element in $INCICONV; do
6856 for x in $CPPFLAGS; do
6858 acl_save_prefix="$prefix"
6859 prefix="$acl_final_prefix"
6860 acl_save_exec_prefix="$exec_prefix"
6861 exec_prefix="$acl_final_exec_prefix"
6863 exec_prefix="$acl_save_exec_prefix"
6864 prefix="$acl_save_prefix"
6866 if test "X$x" = "X$element"; then
6871 if test -z "$haveit"; then
6872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6877 { echo "$as_me:$LINENO: checking for iconv" >&5
6878 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6879 if test "${am_cv_func_iconv+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 am_cv_func_iconv="no, consider installing GNU libiconv"
6885 cat >conftest.$ac_ext <<_ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6896 iconv_t cd = iconv_open("","");
6897 iconv(cd,NULL,NULL,NULL,NULL);
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (ac_try="$ac_link"
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_link") 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest$ac_exeext &&
6920 $as_test_x conftest$ac_exeext; then
6921 am_cv_func_iconv=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6930 conftest$ac_exeext conftest.$ac_ext
6931 if test "$am_cv_func_iconv" != yes; then
6932 am_save_LIBS="$LIBS"
6933 LIBS="$LIBS $LIBICONV"
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6945 iconv_t cd = iconv_open("","");
6946 iconv(cd,NULL,NULL,NULL,NULL);
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_link") 2>conftest.er1
6961 grep -v '^ *+' conftest.er1 >conftest.err
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest$ac_exeext &&
6969 $as_test_x conftest$ac_exeext; then
6971 am_cv_func_iconv=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS="$am_save_LIBS"
6985 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6986 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6987 if test "$am_cv_func_iconv" = yes; then
6989 cat >>confdefs.h <<\_ACEOF
6990 #define HAVE_ICONV 1
6994 if test "$am_cv_lib_iconv" = yes; then
6995 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6996 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6997 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6998 echo "${ECHO_T}$LIBICONV" >&6; }
7000 CPPFLAGS="$am_save_CPPFLAGS"
7012 acl_save_prefix="$prefix"
7013 prefix="$acl_final_prefix"
7014 acl_save_exec_prefix="$exec_prefix"
7015 exec_prefix="$acl_final_exec_prefix"
7017 eval additional_includedir=\"$includedir\"
7018 eval additional_libdir=\"$libdir\"
7020 exec_prefix="$acl_save_exec_prefix"
7021 prefix="$acl_save_prefix"
7024 # Check whether --with-libintl-prefix was given.
7025 if test "${with_libintl_prefix+set}" = set; then
7026 withval=$with_libintl_prefix;
7027 if test "X$withval" = "Xno"; then
7030 if test "X$withval" = "X"; then
7032 acl_save_prefix="$prefix"
7033 prefix="$acl_final_prefix"
7034 acl_save_exec_prefix="$exec_prefix"
7035 exec_prefix="$acl_final_exec_prefix"
7037 eval additional_includedir=\"$includedir\"
7038 eval additional_libdir=\"$libdir\"
7040 exec_prefix="$acl_save_exec_prefix"
7041 prefix="$acl_save_prefix"
7044 additional_includedir="$withval/include"
7045 additional_libdir="$withval/lib"
7056 names_already_handled=
7057 names_next_round='intl '
7058 while test -n "$names_next_round"; do
7059 names_this_round="$names_next_round"
7061 for name in $names_this_round; do
7063 for n in $names_already_handled; do
7064 if test "$n" = "$name"; then
7069 if test -z "$already_handled"; then
7070 names_already_handled="$names_already_handled $name"
7071 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7072 eval value=\"\$HAVE_LIB$uppername\"
7073 if test -n "$value"; then
7074 if test "$value" = yes; then
7075 eval value=\"\$LIB$uppername\"
7076 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7077 eval value=\"\$LTLIB$uppername\"
7078 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7087 if test $use_additional = yes; then
7088 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7089 found_dir="$additional_libdir"
7090 found_so="$additional_libdir/lib$name.$shlibext"
7091 if test -f "$additional_libdir/lib$name.la"; then
7092 found_la="$additional_libdir/lib$name.la"
7095 if test -f "$additional_libdir/lib$name.$libext"; then
7096 found_dir="$additional_libdir"
7097 found_a="$additional_libdir/lib$name.$libext"
7098 if test -f "$additional_libdir/lib$name.la"; then
7099 found_la="$additional_libdir/lib$name.la"
7104 if test "X$found_dir" = "X"; then
7105 for x in $LDFLAGS $LTLIBINTL; do
7107 acl_save_prefix="$prefix"
7108 prefix="$acl_final_prefix"
7109 acl_save_exec_prefix="$exec_prefix"
7110 exec_prefix="$acl_final_exec_prefix"
7112 exec_prefix="$acl_save_exec_prefix"
7113 prefix="$acl_save_prefix"
7117 dir=`echo "X$x" | sed -e 's/^X-L//'`
7118 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7120 found_so="$dir/lib$name.$shlibext"
7121 if test -f "$dir/lib$name.la"; then
7122 found_la="$dir/lib$name.la"
7125 if test -f "$dir/lib$name.$libext"; then
7127 found_a="$dir/lib$name.$libext"
7128 if test -f "$dir/lib$name.la"; then
7129 found_la="$dir/lib$name.la"
7135 if test "X$found_dir" != "X"; then
7140 if test "X$found_dir" != "X"; then
7141 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7142 if test "X$found_so" != "X"; then
7143 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7144 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7147 for x in $ltrpathdirs; do
7148 if test "X$x" = "X$found_dir"; then
7153 if test -z "$haveit"; then
7154 ltrpathdirs="$ltrpathdirs $found_dir"
7156 if test "$hardcode_direct" = yes; then
7157 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7159 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7160 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7162 for x in $rpathdirs; do
7163 if test "X$x" = "X$found_dir"; then
7168 if test -z "$haveit"; then
7169 rpathdirs="$rpathdirs $found_dir"
7173 for x in $LDFLAGS $LIBINTL; do
7175 acl_save_prefix="$prefix"
7176 prefix="$acl_final_prefix"
7177 acl_save_exec_prefix="$exec_prefix"
7178 exec_prefix="$acl_final_exec_prefix"
7180 exec_prefix="$acl_save_exec_prefix"
7181 prefix="$acl_save_prefix"
7183 if test "X$x" = "X-L$found_dir"; then
7188 if test -z "$haveit"; then
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7191 if test "$hardcode_minus_L" != no; then
7192 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7194 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7200 if test "X$found_a" != "X"; then
7201 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7206 additional_includedir=
7207 case "$found_dir" in
7209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7210 additional_includedir="$basedir/include"
7213 if test "X$additional_includedir" != "X"; then
7214 if test "X$additional_includedir" != "X/usr/include"; then
7216 if test "X$additional_includedir" = "X/usr/local/include"; then
7217 if test -n "$GCC"; then
7219 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7223 if test -z "$haveit"; then
7224 for x in $CPPFLAGS $INCINTL; do
7226 acl_save_prefix="$prefix"
7227 prefix="$acl_final_prefix"
7228 acl_save_exec_prefix="$exec_prefix"
7229 exec_prefix="$acl_final_exec_prefix"
7231 exec_prefix="$acl_save_exec_prefix"
7232 prefix="$acl_save_prefix"
7234 if test "X$x" = "X-I$additional_includedir"; then
7239 if test -z "$haveit"; then
7240 if test -d "$additional_includedir"; then
7241 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7247 if test -n "$found_la"; then
7248 save_libdir="$libdir"
7250 */* | *\\*) . "$found_la" ;;
7251 *) . "./$found_la" ;;
7253 libdir="$save_libdir"
7254 for dep in $dependency_libs; do
7257 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7258 if test "X$additional_libdir" != "X/usr/lib"; then
7260 if test "X$additional_libdir" = "X/usr/local/lib"; then
7261 if test -n "$GCC"; then
7263 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7267 if test -z "$haveit"; then
7269 for x in $LDFLAGS $LIBINTL; do
7271 acl_save_prefix="$prefix"
7272 prefix="$acl_final_prefix"
7273 acl_save_exec_prefix="$exec_prefix"
7274 exec_prefix="$acl_final_exec_prefix"
7276 exec_prefix="$acl_save_exec_prefix"
7277 prefix="$acl_save_prefix"
7279 if test "X$x" = "X-L$additional_libdir"; then
7284 if test -z "$haveit"; then
7285 if test -d "$additional_libdir"; then
7286 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7290 for x in $LDFLAGS $LTLIBINTL; do
7292 acl_save_prefix="$prefix"
7293 prefix="$acl_final_prefix"
7294 acl_save_exec_prefix="$exec_prefix"
7295 exec_prefix="$acl_final_exec_prefix"
7297 exec_prefix="$acl_save_exec_prefix"
7298 prefix="$acl_save_prefix"
7300 if test "X$x" = "X-L$additional_libdir"; then
7305 if test -z "$haveit"; then
7306 if test -d "$additional_libdir"; then
7307 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7314 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7315 if test "$enable_rpath" != no; then
7317 for x in $rpathdirs; do
7318 if test "X$x" = "X$dir"; then
7323 if test -z "$haveit"; then
7324 rpathdirs="$rpathdirs $dir"
7327 for x in $ltrpathdirs; do
7328 if test "X$x" = "X$dir"; then
7333 if test -z "$haveit"; then
7334 ltrpathdirs="$ltrpathdirs $dir"
7339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7345 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7346 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7352 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7353 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7359 if test "X$rpathdirs" != "X"; then
7360 if test -n "$hardcode_libdir_separator"; then
7362 for found_dir in $rpathdirs; do
7363 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7365 acl_save_libdir="$libdir"
7367 eval flag=\"$hardcode_libdir_flag_spec\"
7368 libdir="$acl_save_libdir"
7369 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7371 for found_dir in $rpathdirs; do
7372 acl_save_libdir="$libdir"
7374 eval flag=\"$hardcode_libdir_flag_spec\"
7375 libdir="$acl_save_libdir"
7376 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7380 if test "X$ltrpathdirs" != "X"; then
7381 for found_dir in $ltrpathdirs; do
7382 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7386 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7387 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7388 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 gt_save_CPPFLAGS="$CPPFLAGS"
7392 CPPFLAGS="$CPPFLAGS $INCINTL"
7393 gt_save_LIBS="$LIBS"
7394 LIBS="$LIBS $LIBINTL"
7395 cat >conftest.$ac_ext <<_ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 #include <libintl.h>
7402 extern int _nl_msg_cat_cntr;
7407 const char *_nl_expand_alias (const char *);
7411 bindtextdomain ("", "");
7412 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_link") 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest$ac_exeext &&
7434 $as_test_x conftest$ac_exeext; then
7435 gt_cv_func_gnugettext1_libintl=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 gt_cv_func_gnugettext1_libintl=no
7443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444 conftest$ac_exeext conftest.$ac_ext
7445 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7446 LIBS="$LIBS $LIBICONV"
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <libintl.h>
7454 extern int _nl_msg_cat_cntr;
7459 const char *_nl_expand_alias (const char *);
7463 bindtextdomain ("", "");
7464 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (ac_try="$ac_link"
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_link") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest$ac_exeext &&
7486 $as_test_x conftest$ac_exeext; then
7487 LIBINTL="$LIBINTL $LIBICONV"
7488 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7489 gt_cv_func_gnugettext1_libintl=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499 conftest$ac_exeext conftest.$ac_ext
7501 CPPFLAGS="$gt_save_CPPFLAGS"
7502 LIBS="$gt_save_LIBS"
7504 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7505 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7508 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7509 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7510 && test "$PACKAGE" != gettext-runtime \
7511 && test "$PACKAGE" != gettext-tools; }; then
7512 gt_use_preinstalled_gnugettext=yes
7521 if test -n "$INTL_MACOSX_LIBS"; then
7522 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7523 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7524 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7525 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7529 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7530 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7532 cat >>confdefs.h <<\_ACEOF
7533 #define ENABLE_NLS 1
7541 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7542 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7543 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7544 echo "${ECHO_T}$USE_NLS" >&6; }
7545 if test "$USE_NLS" = "yes"; then
7546 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7547 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7548 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7549 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7550 gt_source="external libintl"
7555 gt_source="included intl directory"
7557 { echo "$as_me:$LINENO: result: $gt_source" >&5
7558 echo "${ECHO_T}$gt_source" >&6; }
7561 if test "$USE_NLS" = "yes"; then
7563 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7564 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7565 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7566 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7567 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7568 echo "${ECHO_T}$LIBINTL" >&6; }
7570 for element in $INCINTL; do
7572 for x in $CPPFLAGS; do
7574 acl_save_prefix="$prefix"
7575 prefix="$acl_final_prefix"
7576 acl_save_exec_prefix="$exec_prefix"
7577 exec_prefix="$acl_final_exec_prefix"
7579 exec_prefix="$acl_save_exec_prefix"
7580 prefix="$acl_save_prefix"
7582 if test "X$x" = "X$element"; then
7587 if test -z "$haveit"; then
7588 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_GETTEXT 1
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_DCGETTEXT 1
7618 if test x${prefix} = xNONE ; then
7619 if test `eval echo ${datadir}` = NONE/share ; then
7624 # ------------------------------------------------------------------
7625 # If the user has not set --prefix, we set our default to nothing.
7626 # In this case, if the user has not set --sysconfdir, we set it
7627 # to the package default of /etc/bacula. If either --prefix or
7628 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7629 # ------------------------------------------------------------------
7630 if test x${prefix} = xNONE ; then
7631 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7632 sysconfdir=/etc/bacula
7636 sysconfdir=`eval echo ${sysconfdir}`
7637 datadir=`eval echo ${datadir}`
7638 localedir=`eval echo ${datadir}/locale`
7639 cat >>confdefs.h <<_ACEOF
7640 #define LOCALEDIR "$localedir"
7643 cat >>confdefs.h <<_ACEOF
7644 #define SYSCONFDIR "$sysconfdir"
7648 # -------------------------------------------------------------------------
7649 # If the user has not set --exec-prefix, we default to ${prefix}
7650 # -------------------------------------------------------------------------
7651 if test x${exec_prefix} = xNONE ; then
7652 exec_prefix=${prefix}
7655 # ------------------------------------------------------------------
7656 # If the user has not set --sbindir, we set our default as /sbin
7657 # ------------------------------------------------------------------
7658 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7659 sbindir=${exec_prefix}/sbin
7661 sbindir=`eval echo ${sbindir}`
7664 # -------------------------------------------------------------------------
7665 # If the user has not set --mandir, we default to /usr/share/man
7666 # -------------------------------------------------------------------------
7667 if test x$mandir = x'${prefix}/man' ; then
7668 mandir=/usr/share/man
7672 for ac_prog in msgfmt
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_MSGFMT+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 MSGFMT=$ac_cv_path_MSGFMT
7705 if test -n "$MSGFMT"; then
7706 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7707 echo "${ECHO_T}$MSGFMT" >&6; }
7709 { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7714 test -n "$MSGFMT" && break
7716 test -n "$MSGFMT" || MSGFMT="no"
7718 if test "$MSGFMT" = "no"
7720 echo 'msgfmt program not found, disabling NLS !'
7722 USE_INCLUDED_LIBINTL=no
7725 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7726 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7727 if test "${ac_cv_gnu_library_2+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 #include <features.h>
7738 #ifdef __GNU_LIBRARY__
7739 #if (__GLIBC__ >= 2)
7745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7747 ac_cv_gnu_library_2=yes
7749 ac_cv_gnu_library_2=no
7756 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7757 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7759 GLIBC2="$ac_cv_gnu_library_2"
7763 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7764 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7765 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-lcposix $LIBS"
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7777 /* Override any GCC internal prototype to avoid an error.
7778 Use char because int might match the return type of a GCC
7779 builtin and then its argument prototype would still apply. */
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (ac_try="$ac_link"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_link") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest$ac_exeext &&
7809 $as_test_x conftest$ac_exeext; then
7810 ac_cv_lib_cposix_strerror=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_cv_lib_cposix_strerror=no
7818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7822 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7823 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7824 if test $ac_cv_lib_cposix_strerror = yes; then
7825 LIBS="$LIBS -lcposix"
7830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7832 if test "${ac_cv_header_stdc+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 ac_cv_header_stdc=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_cv_header_stdc=no
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 if test $ac_cv_header_stdc = yes; then
7882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7883 cat >conftest.$ac_ext <<_ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893 $EGREP "memchr" >/dev/null 2>&1; then
7896 ac_cv_header_stdc=no
7902 if test $ac_cv_header_stdc = yes; then
7903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "free" >/dev/null 2>&1; then
7917 ac_cv_header_stdc=no
7923 if test $ac_cv_header_stdc = yes; then
7924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7925 if test "$cross_compiling" = yes; then
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7936 #if ((' ' & 0x0FF) == 0x020)
7937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7940 # define ISLOWER(c) \
7941 (('a' <= (c) && (c) <= 'i') \
7942 || ('j' <= (c) && (c) <= 'r') \
7943 || ('s' <= (c) && (c) <= 'z'))
7944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7952 for (i = 0; i < 256; i++)
7953 if (XOR (islower (i), ISLOWER (i))
7954 || toupper (i) != TOUPPER (i))
7959 rm -f conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_link") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7981 echo "$as_me: program exited with status $ac_status" >&5
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_cv_header_stdc=no
7988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7996 if test $ac_cv_header_stdc = yes; then
7998 cat >>confdefs.h <<\_ACEOF
7999 #define STDC_HEADERS 1
8004 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8005 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8006 if test "${ac_cv_c_const+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8019 /* FIXME: Include the comments suggested by Paul. */
8021 /* Ultrix mips cc rejects this. */
8022 typedef int charset[2];
8024 /* SunOS 4.1.1 cc rejects this. */
8025 char const *const *pcpcc;
8027 /* NEC SVR4.0.2 mips cc rejects this. */
8028 struct point {int x, y;};
8029 static struct point const zero = {0,0};
8030 /* AIX XL C 1.02.0.0 rejects this.
8031 It does not let you subtract one const X* pointer from another in
8032 an arm of an if-expression whose if-part is not a constant
8034 const char *g = "string";
8035 pcpcc = &g + (g ? g-g : 0);
8036 /* HPUX 7.0 cc rejects these. */
8038 ppc = (char**) pcpcc;
8039 pcpcc = (char const *const *) ppc;
8040 { /* SCO 3.2v4 cc rejects this. */
8042 char const *s = 0 ? (char *) 0 : (char const *) 0;
8047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8049 const int *foo = &x[0];
8052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8053 typedef const int *iptr;
8057 { /* AIX XL C 1.02.0.0 rejects this saying
8058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8059 struct s { int j; const int *ap[3]; };
8060 struct s *b; b->j = 5;
8062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8066 return !cs[0] && !zero.x;
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_compile") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest.$ac_objext; then
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8101 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8102 if test $ac_cv_c_const = no; then
8104 cat >>confdefs.h <<\_ACEOF
8111 { echo "$as_me:$LINENO: checking for signed" >&5
8112 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8113 if test "${bh_cv_c_signed+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8159 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8160 if test $bh_cv_c_signed = no; then
8162 cat >>confdefs.h <<\_ACEOF
8168 { echo "$as_me:$LINENO: checking for inline" >&5
8169 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8170 if test "${ac_cv_c_inline+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 for ac_kw in inline __inline__ __inline; do
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8183 static $ac_kw foo_t static_foo () {return 0; }
8184 $ac_kw foo_t foo () {return 0; }
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_compile") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
8205 ac_cv_c_inline=$ac_kw
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 test "$ac_cv_c_inline" != no && break
8218 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8219 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8222 case $ac_cv_c_inline in
8225 case $ac_cv_c_inline in
8227 *) ac_val=$ac_cv_c_inline;;
8229 cat >>confdefs.h <<_ACEOF
8231 #define inline $ac_val
8237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8248 inttypes.h stdint.h unistd.h
8250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8264 #include <$ac_header>
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 eval "$as_ac_Header=yes"
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 eval "$as_ac_Header=no"
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8297 cat >>confdefs.h <<_ACEOF
8298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 { echo "$as_me:$LINENO: checking for off_t" >&5
8307 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8308 if test "${ac_cv_type_off_t+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 $ac_includes_default
8318 typedef off_t ac__type_new_;
8322 if ((ac__type_new_ *) 0)
8324 if (sizeof (ac__type_new_))
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_type_off_t=yes
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8358 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8359 if test $ac_cv_type_off_t = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define off_t long int
8369 { echo "$as_me:$LINENO: checking for size_t" >&5
8370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8371 if test "${ac_cv_type_size_t+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef size_t ac__type_new_;
8385 if ((ac__type_new_ *) 0)
8387 if (sizeof (ac__type_new_))
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.$ac_objext; then
8410 ac_cv_type_size_t=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_type_size_t=no
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8421 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8422 if test $ac_cv_type_size_t = yes; then
8426 cat >>confdefs.h <<_ACEOF
8427 #define size_t unsigned int
8433 { echo "$as_me:$LINENO: checking for long long" >&5
8434 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8435 if test "${ac_cv_type_long_long+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 long long ll = 1LL; int i = 63;
8448 long long llmax = (long long) -1;
8449 return ll << i | ll >> i | llmax / ll | llmax % ll;
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest$ac_exeext &&
8471 $as_test_x conftest$ac_exeext; then
8472 ac_cv_type_long_long=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_cv_type_long_long=no
8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8481 conftest$ac_exeext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8484 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8485 if test $ac_cv_type_long_long = yes; then
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_LONG_LONG 1
8494 { echo "$as_me:$LINENO: checking for long double" >&5
8495 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8496 if test "${gt_cv_c_long_double+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 if test "$GCC" = yes; then
8500 gt_cv_c_long_double=yes
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8509 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8510 long double foo = 0.0;
8511 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8512 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest.$ac_objext; then
8539 gt_cv_c_long_double=yes
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 gt_cv_c_long_double=no
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8551 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8552 if test $gt_cv_c_long_double = yes; then
8554 cat >>confdefs.h <<\_ACEOF
8555 #define HAVE_LONG_DOUBLE 1
8561 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8562 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8563 if test "${gt_cv_c_wchar_t+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 wchar_t foo = (wchar_t)'\0';
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8610 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8611 if test $gt_cv_c_wchar_t = yes; then
8613 cat >>confdefs.h <<\_ACEOF
8614 #define HAVE_WCHAR_T 1
8620 { echo "$as_me:$LINENO: checking for wint_t" >&5
8621 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8622 if test "${gt_cv_c_wint_t+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 wint_t foo = (wchar_t)'\0';
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8669 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8670 if test $gt_cv_c_wint_t = yes; then
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_WINT_T 1
8679 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8680 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8681 if test "${gl_cv_header_inttypes_h+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 #include <sys/types.h>
8691 #include <inttypes.h>
8695 uintmax_t i = (uintmax_t) -1;
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.$ac_objext; then
8717 gl_cv_header_inttypes_h=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 gl_cv_header_inttypes_h=no
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8728 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8729 if test $gl_cv_header_inttypes_h = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8738 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8739 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8740 if test "${gl_cv_header_stdint_h+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <sys/types.h>
8754 uintmax_t i = (uintmax_t) -1;
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 gl_cv_header_stdint_h=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 gl_cv_header_stdint_h=no
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8787 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8788 if test $gl_cv_header_stdint_h = yes; then
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_STDINT_H_WITH_UINTMAX 1
8799 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8800 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8801 if test "${gt_cv_c_intmax_t+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8813 #if HAVE_STDINT_H_WITH_UINTMAX
8816 #if HAVE_INTTYPES_H_WITH_UINTMAX
8817 #include <inttypes.h>
8828 rm -f conftest.$ac_objext
8829 if { (ac_try="$ac_compile"
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_compile") 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest.$ac_objext; then
8845 gt_cv_c_intmax_t=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8856 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8857 if test $gt_cv_c_intmax_t = yes; then
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_INTMAX_T 1
8867 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8868 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8869 if test "${gt_cv_func_printf_posix+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 if test "$cross_compiling" = yes; then
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8882 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8888 $EGREP "notposix" >/dev/null 2>&1; then
8889 gt_cv_func_printf_posix="guessing no"
8891 gt_cv_func_printf_posix="guessing yes"
8897 cat >conftest.$ac_ext <<_ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8906 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8907 dollar expansion (possibly an autoconf bug). */
8908 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8909 static char buf[100];
8912 sprintf (buf, format, 33, 55);
8913 return (strcmp (buf, "55 33") != 0);
8916 rm -f conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 gt_cv_func_printf_posix=yes
8938 echo "$as_me: program exited with status $ac_status" >&5
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8943 gt_cv_func_printf_posix=no
8945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8951 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8952 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8953 case $gt_cv_func_printf_posix in
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_POSIX_PRINTF 1
8963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8964 # for constant arguments. Useless!
8965 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8966 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8967 if test "${ac_cv_working_alloca_h+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 cat >conftest.$ac_ext <<_ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8980 char *p = (char *) alloca (2 * sizeof (int));
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (ac_try="$ac_link"
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_link") 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest$ac_exeext &&
9003 $as_test_x conftest$ac_exeext; then
9004 ac_cv_working_alloca_h=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_cv_working_alloca_h=no
9012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9013 conftest$ac_exeext conftest.$ac_ext
9015 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9016 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9017 if test $ac_cv_working_alloca_h = yes; then
9019 cat >>confdefs.h <<\_ACEOF
9020 #define HAVE_ALLOCA_H 1
9025 { echo "$as_me:$LINENO: checking for alloca" >&5
9026 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9027 if test "${ac_cv_func_alloca_works+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 # define alloca __builtin_alloca
9040 # include <malloc.h>
9041 # define alloca _alloca
9043 # ifdef HAVE_ALLOCA_H
9044 # include <alloca.h>
9049 # ifndef alloca /* predefined by HP cc +Olibcalls */
9060 char *p = (char *) alloca (1);
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } && {
9080 test -z "$ac_c_werror_flag" ||
9081 test ! -s conftest.err
9082 } && test -s conftest$ac_exeext &&
9083 $as_test_x conftest$ac_exeext; then
9084 ac_cv_func_alloca_works=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_cv_func_alloca_works=no
9092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9093 conftest$ac_exeext conftest.$ac_ext
9095 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9096 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9098 if test $ac_cv_func_alloca_works = yes; then
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_ALLOCA 1
9105 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9106 # that cause trouble. Some versions do not even contain alloca or
9107 # contain a buggy version. If you still want to use their alloca,
9108 # use ar to extract alloca.o from them instead of compiling alloca.c.
9110 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9112 cat >>confdefs.h <<\_ACEOF
9117 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9118 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9119 if test "${ac_cv_os_cray+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #if defined CRAY && ! defined CRAY2
9135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9136 $EGREP "webecray" >/dev/null 2>&1; then
9144 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9145 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9146 if test $ac_cv_os_cray = yes; then
9147 for ac_func in _getb67 GETB67 getb67; do
9148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9162 #define $ac_func innocuous_$ac_func
9164 /* System header to define __stub macros and hopefully few prototypes,
9165 which can conflict with char $ac_func (); below.
9166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9167 <limits.h> exists even on freestanding compilers. */
9170 # include <limits.h>
9172 # include <assert.h>
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined __stub_$ac_func || defined __stub___$ac_func
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (ac_try="$ac_link"
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_link") 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest$ac_exeext &&
9216 $as_test_x conftest$ac_exeext; then
9217 eval "$as_ac_var=yes"
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 eval "$as_ac_var=no"
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226 conftest$ac_exeext conftest.$ac_ext
9228 ac_res=`eval echo '${'$as_ac_var'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_var'}'` = yes; then
9233 cat >>confdefs.h <<_ACEOF
9234 #define CRAY_STACKSEG_END $ac_func
9243 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9244 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9245 if test "${ac_cv_c_stack_direction+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 if test "$cross_compiling" = yes; then
9249 ac_cv_c_stack_direction=0
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9259 find_stack_direction ()
9261 static char *addr = 0;
9266 return find_stack_direction ();
9269 return (&dummy > addr) ? 1 : -1;
9275 return find_stack_direction () < 0;
9278 rm -f conftest$ac_exeext
9279 if { (ac_try="$ac_link"
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_link") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9289 { (case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_try") 2>&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_c_stack_direction=1
9300 echo "$as_me: program exited with status $ac_status" >&5
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_c_stack_direction=-1
9307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9312 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9313 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9315 cat >>confdefs.h <<_ACEOF
9316 #define STACK_DIRECTION $ac_cv_c_stack_direction
9324 for ac_header in stdlib.h unistd.h
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest.$ac_objext; then
9366 ac_header_compiler=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_compiler=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9376 echo "${ECHO_T}$ac_header_compiler" >&6; }
9378 # Is the header present?
9379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <$ac_header>
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null && {
9402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9405 ac_header_preproc=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_header_preproc=no
9413 rm -f conftest.err conftest.$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6; }
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 eval "$as_ac_Header=\$ac_header_preproc"
9449 ac_res=`eval echo '${'$as_ac_Header'}'`
9450 { echo "$as_me:$LINENO: result: $ac_res" >&5
9451 echo "${ECHO_T}$ac_res" >&6; }
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9464 for ac_func in getpagesize
9466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9480 #define $ac_func innocuous_$ac_func
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char $ac_func (); below.
9484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 <limits.h> exists even on freestanding compilers. */
9488 # include <limits.h>
9490 # include <assert.h>
9495 /* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined __stub_$ac_func || defined __stub___$ac_func
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (ac_try="$ac_link"
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_link") 2>conftest.er1
9526 grep -v '^ *+' conftest.er1 >conftest.err
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest$ac_exeext &&
9534 $as_test_x conftest$ac_exeext; then
9535 eval "$as_ac_var=yes"
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 eval "$as_ac_var=no"
9543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9544 conftest$ac_exeext conftest.$ac_ext
9546 ac_res=`eval echo '${'$as_ac_var'}'`
9547 { echo "$as_me:$LINENO: result: $ac_res" >&5
9548 echo "${ECHO_T}$ac_res" >&6; }
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550 cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557 { echo "$as_me:$LINENO: checking for working mmap" >&5
9558 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9559 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 if test "$cross_compiling" = yes; then
9563 ac_cv_func_mmap_fixed_mapped=no
9565 cat >conftest.$ac_ext <<_ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 $ac_includes_default
9572 /* malloc might have been renamed as rpl_malloc. */
9575 /* Thanks to Mike Haertel and Jim Avera for this test.
9576 Here is a matrix of mmap possibilities:
9577 mmap private not fixed
9578 mmap private fixed at somewhere currently unmapped
9579 mmap private fixed at somewhere already mapped
9580 mmap shared not fixed
9581 mmap shared fixed at somewhere currently unmapped
9582 mmap shared fixed at somewhere already mapped
9583 For private mappings, we should verify that changes cannot be read()
9584 back from the file, nor mmap's back from the file at a different
9585 address. (There have been systems where private was not correctly
9586 implemented like the infamous i386 svr4.0, and systems where the
9587 VM page cache was not coherent with the file system buffer cache
9588 like early versions of FreeBSD and possibly contemporary NetBSD.)
9589 For shared mappings, we should conversely verify that changes get
9590 propagated back to all the places they're supposed to be.
9592 Grep wants private fixed already mapped.
9593 The main things grep needs to know about mmap are:
9594 * does it exist and is it safe to write into the mmap'd area
9595 * how to use it (BSD variants) */
9598 #include <sys/mman.h>
9600 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9604 /* This mess was copied from the GNU getpagesize.h. */
9605 #ifndef HAVE_GETPAGESIZE
9606 /* Assume that all systems that can run configure have sys/param.h. */
9607 # ifndef HAVE_SYS_PARAM_H
9608 # define HAVE_SYS_PARAM_H 1
9611 # ifdef _SC_PAGESIZE
9612 # define getpagesize() sysconf(_SC_PAGESIZE)
9613 # else /* no _SC_PAGESIZE */
9614 # ifdef HAVE_SYS_PARAM_H
9615 # include <sys/param.h>
9616 # ifdef EXEC_PAGESIZE
9617 # define getpagesize() EXEC_PAGESIZE
9618 # else /* no EXEC_PAGESIZE */
9620 # define getpagesize() NBPG * CLSIZE
9623 # endif /* no CLSIZE */
9624 # else /* no NBPG */
9626 # define getpagesize() NBPC
9627 # else /* no NBPC */
9629 # define getpagesize() PAGESIZE
9630 # endif /* PAGESIZE */
9631 # endif /* no NBPC */
9632 # endif /* no NBPG */
9633 # endif /* no EXEC_PAGESIZE */
9634 # else /* no HAVE_SYS_PARAM_H */
9635 # define getpagesize() 8192 /* punt totally */
9636 # endif /* no HAVE_SYS_PARAM_H */
9637 # endif /* no _SC_PAGESIZE */
9639 #endif /* no HAVE_GETPAGESIZE */
9644 char *data, *data2, *data3;
9648 pagesize = getpagesize ();
9650 /* First, make a file with some known garbage in it. */
9651 data = (char *) malloc (pagesize);
9654 for (i = 0; i < pagesize; ++i)
9655 *(data + i) = rand ();
9657 fd = creat ("conftest.mmap", 0600);
9660 if (write (fd, data, pagesize) != pagesize)
9664 /* Next, try to mmap the file at a fixed address which already has
9665 something else allocated at it. If we can, also make sure that
9666 we see the same garbage. */
9667 fd = open ("conftest.mmap", O_RDWR);
9670 data2 = (char *) malloc (2 * pagesize);
9673 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9674 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9675 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9677 for (i = 0; i < pagesize; ++i)
9678 if (*(data + i) != *(data2 + i))
9681 /* Finally, make sure that changes to the mapped area do not
9682 percolate back to the file as seen by read(). (This is a bug on
9683 some variants of i386 svr4.0.) */
9684 for (i = 0; i < pagesize; ++i)
9685 *(data2 + i) = *(data2 + i) + 1;
9686 data3 = (char *) malloc (pagesize);
9689 if (read (fd, data3, pagesize) != pagesize)
9691 for (i = 0; i < pagesize; ++i)
9692 if (*(data + i) != *(data3 + i))
9698 rm -f conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_func_mmap_fixed_mapped=yes
9720 echo "$as_me: program exited with status $ac_status" >&5
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_func_mmap_fixed_mapped=no
9727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9733 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9736 cat >>confdefs.h <<\_ACEOF
9744 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9745 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9746 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9756 #include <features.h>
9757 #ifdef __GNU_LIBRARY__
9758 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9765 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9766 ac_cv_gnu_library_2_1=yes
9768 ac_cv_gnu_library_2_1=no
9775 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9776 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9778 GLIBC21="$ac_cv_gnu_library_2_1"
9783 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9784 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9785 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 if test "$cross_compiling" = yes; then
9791 # Guess based on the CPU.
9793 alpha* | i3456786 | m68k | s390*)
9794 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9796 gt_cv_int_divbyzero_sigfpe="guessing no";;
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9812 sigfpe_handler (int sig)
9814 sigfpe_handler (sig) int sig;
9817 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9818 exit (sig != SIGFPE);
9828 signal (SIGFPE, sigfpe_handler);
9829 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9830 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9831 signal (SIGTRAP, sigfpe_handler);
9833 /* Linux/SPARC yields signal SIGILL. */
9834 #if defined (__sparc__) && defined (__linux__)
9835 signal (SIGILL, sigfpe_handler);
9844 rm -f conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 gt_cv_int_divbyzero_sigfpe=yes
9866 echo "$as_me: program exited with status $ac_status" >&5
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9871 gt_cv_int_divbyzero_sigfpe=no
9873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9880 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9881 case "$gt_cv_int_divbyzero_sigfpe" in
9886 cat >>confdefs.h <<_ACEOF
9887 #define INTDIV0_RAISES_SIGFPE $value
9892 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9893 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9894 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 unsigned long long ull = 1ULL; int i = 63;
9907 unsigned long long ullmax = (unsigned long long) -1;
9908 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest$ac_exeext &&
9930 $as_test_x conftest$ac_exeext; then
9931 ac_cv_type_unsigned_long_long=yes
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 ac_cv_type_unsigned_long_long=no
9939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940 conftest$ac_exeext conftest.$ac_ext
9942 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9943 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9944 if test $ac_cv_type_unsigned_long_long = yes; then
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_UNSIGNED_LONG_LONG 1
9955 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9957 test $ac_cv_type_unsigned_long_long = yes \
9958 && ac_type='unsigned long long' \
9959 || ac_type='unsigned long'
9961 cat >>confdefs.h <<_ACEOF
9962 #define uintmax_t $ac_type
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_UINTMAX_T 1
9974 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9975 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9976 if test "${gt_cv_header_inttypes_h+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <sys/types.h>
9987 #include <inttypes.h>
9996 rm -f conftest.$ac_objext
9997 if { (ac_try="$ac_compile"
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_compile") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest.$ac_objext; then
10013 gt_cv_header_inttypes_h=yes
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 gt_cv_header_inttypes_h=no
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10025 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10026 if test $gt_cv_header_inttypes_h = yes; then
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_INTTYPES_H 1
10036 if test $gt_cv_header_inttypes_h = yes; then
10037 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10038 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10039 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <inttypes.h>
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_compile") 2>conftest.er1
10071 grep -v '^ *+' conftest.er1 >conftest.err
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && {
10076 test -z "$ac_c_werror_flag" ||
10077 test ! -s conftest.err
10078 } && test -s conftest.$ac_objext; then
10079 gt_cv_inttypes_pri_broken=no
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 gt_cv_inttypes_pri_broken=yes
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10091 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10093 if test "$gt_cv_inttypes_pri_broken" = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096 #define PRI_MACROS_BROKEN 1
10103 for ac_header in stdint.h
10105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 ac_res=`eval echo '${'$as_ac_Header'}'`
10113 { echo "$as_me:$LINENO: result: $ac_res" >&5
10114 echo "${ECHO_T}$ac_res" >&6; }
10116 # Is the header compilable?
10117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 $ac_includes_default
10126 #include <$ac_header>
10128 rm -f conftest.$ac_objext
10129 if { (ac_try="$ac_compile"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_compile") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest.$ac_objext; then
10145 ac_header_compiler=yes
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ac_header_compiler=no
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10155 echo "${ECHO_T}$ac_header_compiler" >&6; }
10157 # Is the header present?
10158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #include <$ac_header>
10168 if { (ac_try="$ac_cpp conftest.$ac_ext"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10176 grep -v '^ *+' conftest.er1 >conftest.err
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } >/dev/null && {
10181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10184 ac_header_preproc=yes
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_header_preproc=no
10192 rm -f conftest.err conftest.$ac_ext
10193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10194 echo "${ECHO_T}$ac_header_preproc" >&6; }
10196 # So? What about this header?
10197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10203 ac_header_preproc=yes
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 eval "$as_ac_Header=\$ac_header_preproc"
10228 ac_res=`eval echo '${'$as_ac_Header'}'`
10229 { echo "$as_me:$LINENO: result: $ac_res" >&5
10230 echo "${ECHO_T}$ac_res" >&6; }
10233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10234 cat >>confdefs.h <<_ACEOF
10235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10242 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10243 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10252 #include <limits.h>
10254 #include <stdint.h>
10261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10262 $EGREP "Found it" >/dev/null 2>&1; then
10267 if test -z "$result"; then
10268 if test "$cross_compiling" = yes; then
10269 # Depending upon the size, compute the lo and hi bounds.
10270 cat >conftest.$ac_ext <<_ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276 #include <stddef.h>
10280 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 #include <stddef.h>
10316 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_hi=$ac_mid; break
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_lo=`expr $ac_mid + 1`
10346 if test $ac_lo -le $ac_mid; then
10350 ac_mid=`expr 2 '*' $ac_mid + 1`
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <stddef.h>
10369 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10376 rm -f conftest.$ac_objext
10377 if { (ac_try="$ac_compile"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_compile") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && {
10390 test -z "$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 } && test -s conftest.$ac_objext; then
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 #include <stddef.h>
10405 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10412 rm -f conftest.$ac_objext
10413 if { (ac_try="$ac_compile"
10414 case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_compile") 2>conftest.er1
10421 grep -v '^ *+' conftest.er1 >conftest.err
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest.$ac_objext; then
10429 ac_lo=$ac_mid; break
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_hi=`expr '(' $ac_mid ')' - 1`
10435 if test $ac_mid -le $ac_hi; then
10439 ac_mid=`expr 2 '*' $ac_mid`
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 # Binary search between lo and hi bounds.
10456 while test "x$ac_lo" != "x$ac_hi"; do
10457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 #include <stddef.h>
10468 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10475 rm -f conftest.$ac_objext
10476 if { (ac_try="$ac_compile"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_compile") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest.$ac_objext; then
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_lo=`expr '(' $ac_mid ')' + 1`
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 ?*) res_hi=$ac_lo;;
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 #include <stddef.h>
10514 static long int longval () { return ~(size_t)0 / 10; }
10515 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10517 #include <stdlib.h>
10522 FILE *f = fopen ("conftest.val", "w");
10525 if ((~(size_t)0 / 10) < 0)
10527 long int i = longval ();
10528 if (i != (~(size_t)0 / 10))
10530 fprintf (f, "%ld\n", i);
10534 unsigned long int i = ulongval ();
10535 if (i != (~(size_t)0 / 10))
10537 fprintf (f, "%lu\n", i);
10539 return ferror (f) || fclose (f) != 0;
10545 rm -f conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 res_hi=`cat conftest.val`
10567 echo "$as_me: program exited with status $ac_status" >&5
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ( exit $ac_status )
10574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10578 if test "$cross_compiling" = yes; then
10579 # Depending upon the size, compute the lo and hi bounds.
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <stddef.h>
10590 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_compile") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest.$ac_objext; then
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <stddef.h>
10626 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10633 rm -f conftest.$ac_objext
10634 if { (ac_try="$ac_compile"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_compile") 2>conftest.er1
10642 grep -v '^ *+' conftest.er1 >conftest.err
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } && {
10647 test -z "$ac_c_werror_flag" ||
10648 test ! -s conftest.err
10649 } && test -s conftest.$ac_objext; then
10650 ac_hi=$ac_mid; break
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_lo=`expr $ac_mid + 1`
10656 if test $ac_lo -le $ac_mid; then
10660 ac_mid=`expr 2 '*' $ac_mid + 1`
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 #include <stddef.h>
10679 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_compile") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest.$ac_objext; then
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 #include <stddef.h>
10715 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10722 rm -f conftest.$ac_objext
10723 if { (ac_try="$ac_compile"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_compile") 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest.$ac_objext; then
10739 ac_lo=$ac_mid; break
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_hi=`expr '(' $ac_mid ')' - 1`
10745 if test $ac_mid -le $ac_hi; then
10749 ac_mid=`expr 2 '*' $ac_mid`
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 # Binary search between lo and hi bounds.
10766 while test "x$ac_lo" != "x$ac_hi"; do
10767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <stddef.h>
10778 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10785 rm -f conftest.$ac_objext
10786 if { (ac_try="$ac_compile"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_compile") 2>conftest.er1
10794 grep -v '^ *+' conftest.er1 >conftest.err
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest.$ac_objext; then
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_lo=`expr '(' $ac_mid ')' + 1`
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 ?*) res_lo=$ac_lo;;
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <stddef.h>
10824 static long int longval () { return ~(size_t)0 % 10; }
10825 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10827 #include <stdlib.h>
10832 FILE *f = fopen ("conftest.val", "w");
10835 if ((~(size_t)0 % 10) < 0)
10837 long int i = longval ();
10838 if (i != (~(size_t)0 % 10))
10840 fprintf (f, "%ld\n", i);
10844 unsigned long int i = ulongval ();
10845 if (i != (~(size_t)0 % 10))
10847 fprintf (f, "%lu\n", i);
10849 return ferror (f) || fclose (f) != 0;
10855 rm -f conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_link") 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 res_lo=`cat conftest.val`
10877 echo "$as_me: program exited with status $ac_status" >&5
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ( exit $ac_status )
10884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10888 if test "$cross_compiling" = yes; then
10889 # Depending upon the size, compute the lo and hi bounds.
10890 cat >conftest.$ac_ext <<_ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <stddef.h>
10900 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_compile") 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest.$ac_objext; then
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 #include <stddef.h>
10936 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_hi=$ac_mid; break
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_lo=`expr $ac_mid + 1`
10966 if test $ac_lo -le $ac_mid; then
10970 ac_mid=`expr 2 '*' $ac_mid + 1`
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 #include <stddef.h>
10989 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1 >conftest.err
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest.$ac_objext; then
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #include <stddef.h>
11025 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11032 rm -f conftest.$ac_objext
11033 if { (ac_try="$ac_compile"
11034 case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_compile") 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest.$ac_objext; then
11049 ac_lo=$ac_mid; break
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_hi=`expr '(' $ac_mid ')' - 1`
11055 if test $ac_mid -le $ac_hi; then
11059 ac_mid=`expr 2 '*' $ac_mid`
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 # Binary search between lo and hi bounds.
11076 while test "x$ac_lo" != "x$ac_hi"; do
11077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <stddef.h>
11088 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_compile") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_c_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest.$ac_objext; then
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_lo=`expr '(' $ac_mid ')' + 1`
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 ?*) fits_in_uint=$ac_lo;;
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <stddef.h>
11134 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11135 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11137 #include <stdlib.h>
11142 FILE *f = fopen ("conftest.val", "w");
11145 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11147 long int i = longval ();
11148 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11150 fprintf (f, "%ld\n", i);
11154 unsigned long int i = ulongval ();
11155 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11157 fprintf (f, "%lu\n", i);
11159 return ferror (f) || fclose (f) != 0;
11165 rm -f conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_link") 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 fits_in_uint=`cat conftest.val`
11187 echo "$as_me: program exited with status $ac_status" >&5
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ( exit $ac_status )
11194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11198 if test "$fits_in_uint" = 1; then
11199 cat >conftest.$ac_ext <<_ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <stddef.h>
11207 extern unsigned long foo;
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 if test -z "$result"; then
11245 if test "$fits_in_uint" = 1; then
11246 result="$res_hi$res_lo"U
11248 result="$res_hi$res_lo"UL
11251 result='~(size_t)0'
11254 { echo "$as_me:$LINENO: result: $result" >&5
11255 echo "${ECHO_T}$result" >&6; }
11256 if test "$result" != yes; then
11258 cat >>confdefs.h <<_ACEOF
11259 #define SIZE_MAX $result
11268 for ac_header in stdint.h
11270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11281 # Is the header compilable?
11282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 $ac_includes_default
11291 #include <$ac_header>
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_compile") 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest.$ac_objext; then
11310 ac_header_compiler=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <$ac_header>
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null && {
11346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11349 ac_header_preproc=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_header_preproc=no
11357 rm -f conftest.err conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11359 echo "${ECHO_T}$ac_header_preproc" >&6; }
11361 # So? What about this header?
11362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11368 ac_header_preproc=yes
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 eval "$as_ac_Header=\$ac_header_preproc"
11393 ac_res=`eval echo '${'$as_ac_Header'}'`
11394 { echo "$as_me:$LINENO: result: $ac_res" >&5
11395 echo "${ECHO_T}$ac_res" >&6; }
11398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11399 cat >>confdefs.h <<_ACEOF
11400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11414 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11415 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11416 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 typedef ptrdiff_t ac__type_new_;
11430 if ((ac__type_new_ *) 0)
11432 if (sizeof (ac__type_new_))
11438 rm -f conftest.$ac_objext
11439 if { (ac_try="$ac_compile"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_compile") 2>conftest.er1
11447 grep -v '^ *+' conftest.er1 >conftest.err
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } && {
11452 test -z "$ac_c_werror_flag" ||
11453 test ! -s conftest.err
11454 } && test -s conftest.$ac_objext; then
11455 ac_cv_type_ptrdiff_t=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_cv_type_ptrdiff_t=no
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11466 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11467 if test $ac_cv_type_ptrdiff_t = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define ptrdiff_t long
11488 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11489 stdlib.h string.h unistd.h sys/param.h
11491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 ac_res=`eval echo '${'$as_ac_Header'}'`
11499 { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11502 # Is the header compilable?
11503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $ac_includes_default
11512 #include <$ac_header>
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.$ac_objext; then
11531 ac_header_compiler=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_compiler=no
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } >/dev/null && {
11567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11570 ac_header_preproc=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_header_preproc=no
11578 rm -f conftest.err conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11582 # So? What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589 ac_header_preproc=yes
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 eval "$as_ac_Header=\$ac_header_preproc"
11614 ac_res=`eval echo '${'$as_ac_Header'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11651 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11652 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11653 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11670 #define $ac_func innocuous_$ac_func
11672 /* System header to define __stub macros and hopefully few prototypes,
11673 which can conflict with char $ac_func (); below.
11674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11675 <limits.h> exists even on freestanding compilers. */
11678 # include <limits.h>
11680 # include <assert.h>
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11692 /* The GNU C library defines this for functions which it implements
11693 to always fail with ENOSYS. Some functions are actually named
11694 something starting with __ and the normal name is an alias. */
11695 #if defined __stub_$ac_func || defined __stub___$ac_func
11702 return $ac_func ();
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (ac_try="$ac_link"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_link") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest$ac_exeext &&
11724 $as_test_x conftest$ac_exeext; then
11725 eval "$as_ac_var=yes"
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734 conftest$ac_exeext conftest.$ac_ext
11736 ac_res=`eval echo '${'$as_ac_var'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11749 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11750 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11751 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11766 char *p = (char *) _snprintf;
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_cv_have_decl__snprintf=yes
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_have_decl__snprintf=no
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11801 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11802 if test $ac_cv_have_decl__snprintf = yes; then
11808 cat >>confdefs.h <<_ACEOF
11809 #define HAVE_DECL__SNPRINTF $gt_value
11814 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11815 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11816 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11831 char *p = (char *) _snwprintf;
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11855 ac_cv_have_decl__snwprintf=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_have_decl__snwprintf=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11866 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11867 if test $ac_cv_have_decl__snwprintf = yes; then
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_DECL__SNWPRINTF $gt_value
11880 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11881 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11882 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11896 #ifndef feof_unlocked
11897 char *p = (char *) feof_unlocked;
11904 rm -f conftest.$ac_objext
11905 if { (ac_try="$ac_compile"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_compile") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } && {
11918 test -z "$ac_c_werror_flag" ||
11919 test ! -s conftest.err
11920 } && test -s conftest.$ac_objext; then
11921 ac_cv_have_decl_feof_unlocked=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_cv_have_decl_feof_unlocked=no
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11932 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11933 if test $ac_cv_have_decl_feof_unlocked = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11945 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11946 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11947 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11961 #ifndef fgets_unlocked
11962 char *p = (char *) fgets_unlocked;
11969 rm -f conftest.$ac_objext
11970 if { (ac_try="$ac_compile"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11986 ac_cv_have_decl_fgets_unlocked=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_cv_have_decl_fgets_unlocked=no
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11997 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11998 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12010 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12011 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12012 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12026 #ifndef getc_unlocked
12027 char *p = (char *) getc_unlocked;
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_compile") 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } && {
12048 test -z "$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12050 } && test -s conftest.$ac_objext; then
12051 ac_cv_have_decl_getc_unlocked=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ac_cv_have_decl_getc_unlocked=no
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12062 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12063 if test $ac_cv_have_decl_getc_unlocked = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12075 case $gt_cv_func_printf_posix in
12076 *yes) HAVE_POSIX_PRINTF=1 ;;
12077 *) HAVE_POSIX_PRINTF=0 ;;
12080 if test "$ac_cv_func_asprintf" = yes; then
12086 if test "$ac_cv_func_snprintf" = yes; then
12092 if test "$ac_cv_func_wprintf" = yes; then
12104 am_save_CPPFLAGS="$CPPFLAGS"
12106 for element in $INCICONV; do
12108 for x in $CPPFLAGS; do
12110 acl_save_prefix="$prefix"
12111 prefix="$acl_final_prefix"
12112 acl_save_exec_prefix="$exec_prefix"
12113 exec_prefix="$acl_final_exec_prefix"
12115 exec_prefix="$acl_save_exec_prefix"
12116 prefix="$acl_save_prefix"
12118 if test "X$x" = "X$element"; then
12123 if test -z "$haveit"; then
12124 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12129 { echo "$as_me:$LINENO: checking for iconv" >&5
12130 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12131 if test "${am_cv_func_iconv+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 am_cv_func_iconv="no, consider installing GNU libiconv"
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 #include <stdlib.h>
12148 iconv_t cd = iconv_open("","");
12149 iconv(cd,NULL,NULL,NULL,NULL);
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_link") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest$ac_exeext &&
12172 $as_test_x conftest$ac_exeext; then
12173 am_cv_func_iconv=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12182 conftest$ac_exeext conftest.$ac_ext
12183 if test "$am_cv_func_iconv" != yes; then
12184 am_save_LIBS="$LIBS"
12185 LIBS="$LIBS $LIBICONV"
12186 cat >conftest.$ac_ext <<_ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <stdlib.h>
12197 iconv_t cd = iconv_open("","");
12198 iconv(cd,NULL,NULL,NULL,NULL);
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext &&
12221 $as_test_x conftest$ac_exeext; then
12222 am_cv_lib_iconv=yes
12223 am_cv_func_iconv=yes
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232 conftest$ac_exeext conftest.$ac_ext
12233 LIBS="$am_save_LIBS"
12237 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12238 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12239 if test "$am_cv_func_iconv" = yes; then
12241 cat >>confdefs.h <<\_ACEOF
12242 #define HAVE_ICONV 1
12246 if test "$am_cv_lib_iconv" = yes; then
12247 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12248 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12249 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12250 echo "${ECHO_T}$LIBICONV" >&6; }
12252 CPPFLAGS="$am_save_CPPFLAGS"
12259 if test "$am_cv_func_iconv" = yes; then
12260 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12261 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12262 if test "${am_cv_proto_iconv+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 #include <stdlib.h>
12279 #if defined(__STDC__) || defined(__cplusplus)
12280 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12293 rm -f conftest.$ac_objext
12294 if { (ac_try="$ac_compile"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.$ac_objext; then
12310 am_cv_proto_iconv_arg1=""
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 am_cv_proto_iconv_arg1="const"
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 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);"
12322 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12323 { echo "$as_me:$LINENO: result: ${ac_t:-
12324 }$am_cv_proto_iconv" >&5
12325 echo "${ECHO_T}${ac_t:-
12326 }$am_cv_proto_iconv" >&6; }
12328 cat >>confdefs.h <<_ACEOF
12329 #define ICONV_CONST $am_cv_proto_iconv_arg1
12335 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12336 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12337 if test "${am_cv_langinfo_codeset+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <langinfo.h>
12350 char* cs = nl_langinfo(CODESET);
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest$ac_exeext &&
12372 $as_test_x conftest$ac_exeext; then
12373 am_cv_langinfo_codeset=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 am_cv_langinfo_codeset=no
12381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12382 conftest$ac_exeext conftest.$ac_ext
12385 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12386 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12387 if test $am_cv_langinfo_codeset = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_LANGINFO_CODESET 1
12395 if test $ac_cv_header_locale_h = yes; then
12397 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12398 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12399 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 #include <locale.h>
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } && {
12431 test -z "$ac_c_werror_flag" ||
12432 test ! -s conftest.err
12433 } && test -s conftest$ac_exeext &&
12434 $as_test_x conftest$ac_exeext; then
12435 gt_cv_val_LC_MESSAGES=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 gt_cv_val_LC_MESSAGES=no
12443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12444 conftest$ac_exeext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12447 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12448 if test $gt_cv_val_LC_MESSAGES = yes; then
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_LC_MESSAGES 1
12458 if test -n "$INTL_MACOSX_LIBS"; then
12459 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12462 for ac_prog in bison
12464 # Extract the first word of "$ac_prog", so it can be a program name with args.
12465 set dummy $ac_prog; ac_word=$2
12466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12468 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 if test -n "$INTLBISON"; then
12472 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_prog_INTLBISON="$ac_prog"
12482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 INTLBISON=$ac_cv_prog_INTLBISON
12492 if test -n "$INTLBISON"; then
12493 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12494 echo "${ECHO_T}$INTLBISON" >&6; }
12496 { echo "$as_me:$LINENO: result: no" >&5
12497 echo "${ECHO_T}no" >&6; }
12501 test -n "$INTLBISON" && break
12504 if test -z "$INTLBISON"; then
12507 { echo "$as_me:$LINENO: checking version of bison" >&5
12508 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12509 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12510 case $ac_prog_version in
12511 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12512 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12513 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12514 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12516 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12517 echo "${ECHO_T}$ac_prog_version" >&6; }
12519 if test $ac_verc_fail = yes; then
12538 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12539 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12540 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 gt_save_CPPFLAGS="$CPPFLAGS"
12544 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12545 gt_save_LIBS="$LIBS"
12546 LIBS="$LIBS -framework CoreFoundation"
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #include <CFPreferences.h>
12557 CFPreferencesCopyAppValue(NULL, NULL)
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (ac_try="$ac_link"
12564 case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_link") 2>conftest.er1
12571 grep -v '^ *+' conftest.er1 >conftest.err
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } && {
12576 test -z "$ac_c_werror_flag" ||
12577 test ! -s conftest.err
12578 } && test -s conftest$ac_exeext &&
12579 $as_test_x conftest$ac_exeext; then
12580 gt_cv_func_CFPreferencesCopyAppValue=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 gt_cv_func_CFPreferencesCopyAppValue=no
12588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12589 conftest$ac_exeext conftest.$ac_ext
12590 CPPFLAGS="$gt_save_CPPFLAGS"
12591 LIBS="$gt_save_LIBS"
12593 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12594 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12595 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12602 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12603 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12604 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 gt_save_CPPFLAGS="$CPPFLAGS"
12608 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12609 gt_save_LIBS="$LIBS"
12610 LIBS="$LIBS -framework CoreFoundation"
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 #include <CFLocale.h>
12621 CFLocaleCopyCurrent();
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest$ac_exeext &&
12643 $as_test_x conftest$ac_exeext; then
12644 gt_cv_func_CFLocaleCopyCurrent=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 gt_cv_func_CFLocaleCopyCurrent=no
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12654 CPPFLAGS="$gt_save_CPPFLAGS"
12655 LIBS="$gt_save_LIBS"
12657 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12658 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12659 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_CFLOCALECOPYCURRENT 1
12667 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12668 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12674 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12675 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12676 # Check whether --enable-nls was given.
12677 if test "${enable_nls+set}" = set; then
12678 enableval=$enable_nls; USE_NLS=$enableval
12683 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12684 echo "${ECHO_T}$USE_NLS" >&6; }
12689 BUILD_INCLUDED_LIBINTL=no
12690 USE_INCLUDED_LIBINTL=no
12696 if test "$USE_NLS" = "yes"; then
12697 gt_use_preinstalled_gnugettext=no
12699 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12700 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12702 # Check whether --with-included-gettext was given.
12703 if test "${with_included_gettext+set}" = set; then
12704 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12706 nls_cv_force_use_gnu_gettext=no
12709 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12710 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12712 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12713 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12720 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12721 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12722 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 #include <libintl.h>
12732 extern int _nl_msg_cat_cntr;
12733 extern int *_nl_domain_bindings;
12737 bindtextdomain ("", "");
12738 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12743 rm -f conftest.$ac_objext conftest$ac_exeext
12744 if { (ac_try="$ac_link"
12745 case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_link") 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest$ac_exeext &&
12760 $as_test_x conftest$ac_exeext; then
12761 gt_cv_func_gnugettext1_libc=yes
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 gt_cv_func_gnugettext1_libc=no
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770 conftest$ac_exeext conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12773 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12775 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12781 acl_save_prefix="$prefix"
12782 prefix="$acl_final_prefix"
12783 acl_save_exec_prefix="$exec_prefix"
12784 exec_prefix="$acl_final_exec_prefix"
12786 eval additional_includedir=\"$includedir\"
12787 eval additional_libdir=\"$libdir\"
12789 exec_prefix="$acl_save_exec_prefix"
12790 prefix="$acl_save_prefix"
12793 # Check whether --with-libintl-prefix was given.
12794 if test "${with_libintl_prefix+set}" = set; then
12795 withval=$with_libintl_prefix;
12796 if test "X$withval" = "Xno"; then
12799 if test "X$withval" = "X"; then
12801 acl_save_prefix="$prefix"
12802 prefix="$acl_final_prefix"
12803 acl_save_exec_prefix="$exec_prefix"
12804 exec_prefix="$acl_final_exec_prefix"
12806 eval additional_includedir=\"$includedir\"
12807 eval additional_libdir=\"$libdir\"
12809 exec_prefix="$acl_save_exec_prefix"
12810 prefix="$acl_save_prefix"
12813 additional_includedir="$withval/include"
12814 additional_libdir="$withval/lib"
12825 names_already_handled=
12826 names_next_round='intl '
12827 while test -n "$names_next_round"; do
12828 names_this_round="$names_next_round"
12830 for name in $names_this_round; do
12832 for n in $names_already_handled; do
12833 if test "$n" = "$name"; then
12834 already_handled=yes
12838 if test -z "$already_handled"; then
12839 names_already_handled="$names_already_handled $name"
12840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12841 eval value=\"\$HAVE_LIB$uppername\"
12842 if test -n "$value"; then
12843 if test "$value" = yes; then
12844 eval value=\"\$LIB$uppername\"
12845 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12846 eval value=\"\$LTLIB$uppername\"
12847 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12856 if test $use_additional = yes; then
12857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12858 found_dir="$additional_libdir"
12859 found_so="$additional_libdir/lib$name.$shlibext"
12860 if test -f "$additional_libdir/lib$name.la"; then
12861 found_la="$additional_libdir/lib$name.la"
12864 if test -f "$additional_libdir/lib$name.$libext"; then
12865 found_dir="$additional_libdir"
12866 found_a="$additional_libdir/lib$name.$libext"
12867 if test -f "$additional_libdir/lib$name.la"; then
12868 found_la="$additional_libdir/lib$name.la"
12873 if test "X$found_dir" = "X"; then
12874 for x in $LDFLAGS $LTLIBINTL; do
12876 acl_save_prefix="$prefix"
12877 prefix="$acl_final_prefix"
12878 acl_save_exec_prefix="$exec_prefix"
12879 exec_prefix="$acl_final_exec_prefix"
12881 exec_prefix="$acl_save_exec_prefix"
12882 prefix="$acl_save_prefix"
12886 dir=`echo "X$x" | sed -e 's/^X-L//'`
12887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12889 found_so="$dir/lib$name.$shlibext"
12890 if test -f "$dir/lib$name.la"; then
12891 found_la="$dir/lib$name.la"
12894 if test -f "$dir/lib$name.$libext"; then
12896 found_a="$dir/lib$name.$libext"
12897 if test -f "$dir/lib$name.la"; then
12898 found_la="$dir/lib$name.la"
12904 if test "X$found_dir" != "X"; then
12909 if test "X$found_dir" != "X"; then
12910 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12911 if test "X$found_so" != "X"; then
12912 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12913 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12916 for x in $ltrpathdirs; do
12917 if test "X$x" = "X$found_dir"; then
12922 if test -z "$haveit"; then
12923 ltrpathdirs="$ltrpathdirs $found_dir"
12925 if test "$hardcode_direct" = yes; then
12926 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12929 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12931 for x in $rpathdirs; do
12932 if test "X$x" = "X$found_dir"; then
12937 if test -z "$haveit"; then
12938 rpathdirs="$rpathdirs $found_dir"
12942 for x in $LDFLAGS $LIBINTL; do
12944 acl_save_prefix="$prefix"
12945 prefix="$acl_final_prefix"
12946 acl_save_exec_prefix="$exec_prefix"
12947 exec_prefix="$acl_final_exec_prefix"
12949 exec_prefix="$acl_save_exec_prefix"
12950 prefix="$acl_save_prefix"
12952 if test "X$x" = "X-L$found_dir"; then
12957 if test -z "$haveit"; then
12958 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12960 if test "$hardcode_minus_L" != no; then
12961 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12963 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12969 if test "X$found_a" != "X"; then
12970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12972 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12975 additional_includedir=
12976 case "$found_dir" in
12978 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12979 additional_includedir="$basedir/include"
12982 if test "X$additional_includedir" != "X"; then
12983 if test "X$additional_includedir" != "X/usr/include"; then
12985 if test "X$additional_includedir" = "X/usr/local/include"; then
12986 if test -n "$GCC"; then
12988 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12992 if test -z "$haveit"; then
12993 for x in $CPPFLAGS $INCINTL; do
12995 acl_save_prefix="$prefix"
12996 prefix="$acl_final_prefix"
12997 acl_save_exec_prefix="$exec_prefix"
12998 exec_prefix="$acl_final_exec_prefix"
13000 exec_prefix="$acl_save_exec_prefix"
13001 prefix="$acl_save_prefix"
13003 if test "X$x" = "X-I$additional_includedir"; then
13008 if test -z "$haveit"; then
13009 if test -d "$additional_includedir"; then
13010 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13016 if test -n "$found_la"; then
13017 save_libdir="$libdir"
13018 case "$found_la" in
13019 */* | *\\*) . "$found_la" ;;
13020 *) . "./$found_la" ;;
13022 libdir="$save_libdir"
13023 for dep in $dependency_libs; do
13026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13027 if test "X$additional_libdir" != "X/usr/lib"; then
13029 if test "X$additional_libdir" = "X/usr/local/lib"; then
13030 if test -n "$GCC"; then
13032 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13036 if test -z "$haveit"; then
13038 for x in $LDFLAGS $LIBINTL; do
13040 acl_save_prefix="$prefix"
13041 prefix="$acl_final_prefix"
13042 acl_save_exec_prefix="$exec_prefix"
13043 exec_prefix="$acl_final_exec_prefix"
13045 exec_prefix="$acl_save_exec_prefix"
13046 prefix="$acl_save_prefix"
13048 if test "X$x" = "X-L$additional_libdir"; then
13053 if test -z "$haveit"; then
13054 if test -d "$additional_libdir"; then
13055 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13059 for x in $LDFLAGS $LTLIBINTL; do
13061 acl_save_prefix="$prefix"
13062 prefix="$acl_final_prefix"
13063 acl_save_exec_prefix="$exec_prefix"
13064 exec_prefix="$acl_final_exec_prefix"
13066 exec_prefix="$acl_save_exec_prefix"
13067 prefix="$acl_save_prefix"
13069 if test "X$x" = "X-L$additional_libdir"; then
13074 if test -z "$haveit"; then
13075 if test -d "$additional_libdir"; then
13076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13083 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13084 if test "$enable_rpath" != no; then
13086 for x in $rpathdirs; do
13087 if test "X$x" = "X$dir"; then
13092 if test -z "$haveit"; then
13093 rpathdirs="$rpathdirs $dir"
13096 for x in $ltrpathdirs; do
13097 if test "X$x" = "X$dir"; then
13102 if test -z "$haveit"; then
13103 ltrpathdirs="$ltrpathdirs $dir"
13108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13114 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13122 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13128 if test "X$rpathdirs" != "X"; then
13129 if test -n "$hardcode_libdir_separator"; then
13131 for found_dir in $rpathdirs; do
13132 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13134 acl_save_libdir="$libdir"
13136 eval flag=\"$hardcode_libdir_flag_spec\"
13137 libdir="$acl_save_libdir"
13138 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13140 for found_dir in $rpathdirs; do
13141 acl_save_libdir="$libdir"
13142 libdir="$found_dir"
13143 eval flag=\"$hardcode_libdir_flag_spec\"
13144 libdir="$acl_save_libdir"
13145 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13149 if test "X$ltrpathdirs" != "X"; then
13150 for found_dir in $ltrpathdirs; do
13151 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13155 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13156 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13157 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 gt_save_CPPFLAGS="$CPPFLAGS"
13161 CPPFLAGS="$CPPFLAGS $INCINTL"
13162 gt_save_LIBS="$LIBS"
13163 LIBS="$LIBS $LIBINTL"
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 #include <libintl.h>
13171 extern int _nl_msg_cat_cntr;
13176 const char *_nl_expand_alias (const char *);
13180 bindtextdomain ("", "");
13181 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_link") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest$ac_exeext &&
13203 $as_test_x conftest$ac_exeext; then
13204 gt_cv_func_gnugettext1_libintl=yes
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 gt_cv_func_gnugettext1_libintl=no
13212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13213 conftest$ac_exeext conftest.$ac_ext
13214 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13215 LIBS="$LIBS $LIBICONV"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <libintl.h>
13223 extern int _nl_msg_cat_cntr;
13228 const char *_nl_expand_alias (const char *);
13232 bindtextdomain ("", "");
13233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest$ac_exeext &&
13255 $as_test_x conftest$ac_exeext; then
13256 LIBINTL="$LIBINTL $LIBICONV"
13257 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13258 gt_cv_func_gnugettext1_libintl=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268 conftest$ac_exeext conftest.$ac_ext
13270 CPPFLAGS="$gt_save_CPPFLAGS"
13271 LIBS="$gt_save_LIBS"
13273 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13274 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13277 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13278 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13279 && test "$PACKAGE" != gettext-runtime \
13280 && test "$PACKAGE" != gettext-tools; }; then
13281 gt_use_preinstalled_gnugettext=yes
13289 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13290 nls_cv_use_gnu_gettext=yes
13294 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13295 BUILD_INCLUDED_LIBINTL=yes
13296 USE_INCLUDED_LIBINTL=yes
13297 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13298 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13299 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13303 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13304 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13309 if test -n "$INTL_MACOSX_LIBS"; then
13310 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13311 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13312 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13313 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13317 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13318 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13320 cat >>confdefs.h <<\_ACEOF
13321 #define ENABLE_NLS 1
13329 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13330 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13331 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13332 echo "${ECHO_T}$USE_NLS" >&6; }
13333 if test "$USE_NLS" = "yes"; then
13334 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13335 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13336 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13337 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13338 gt_source="external libintl"
13343 gt_source="included intl directory"
13345 { echo "$as_me:$LINENO: result: $gt_source" >&5
13346 echo "${ECHO_T}$gt_source" >&6; }
13349 if test "$USE_NLS" = "yes"; then
13351 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13352 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13353 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13354 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13355 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13356 echo "${ECHO_T}$LIBINTL" >&6; }
13358 for element in $INCINTL; do
13360 for x in $CPPFLAGS; do
13362 acl_save_prefix="$prefix"
13363 prefix="$acl_final_prefix"
13364 acl_save_exec_prefix="$exec_prefix"
13365 exec_prefix="$acl_final_exec_prefix"
13367 exec_prefix="$acl_save_exec_prefix"
13368 prefix="$acl_save_prefix"
13370 if test "X$x" = "X$element"; then
13375 if test -z "$haveit"; then
13376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_GETTEXT 1
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_DCGETTEXT 1
13398 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13399 BUILD_INCLUDED_LIBINTL=yes
13406 nls_cv_header_intl=
13407 nls_cv_header_libgt=
13419 if test "$USE_INCLUDED_LIBINTL" = yes; then
13420 INTLOBJS="\$(GETTOBJS)"
13424 INTL_LIBTOOL_SUFFIX_PREFIX=
13428 INTLLIBS="$LIBINTL"
13440 support_postgresql=no
13442 support_smartalloc=yes
13443 support_readline=yes
13447 support_wx_console=no
13452 support_static_tools=no
13453 support_static_fd=no
13454 support_static_sd=no
13455 support_static_dir=no
13456 support_static_cons=no
13458 build_client_only=no
13466 # -------------------------------------------
13467 # gnome (default off)
13468 # -------------------------------------------
13469 # Check whether --enable-gnome was given.
13470 if test "${enable_gnome+set}" = set; then
13471 enableval=$enable_gnome; if test x$enableval = xyes; then
13478 if test x$support_gnome = xyes; then
13479 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13481 if test $pkg = 0; then
13482 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13483 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13484 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13485 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13490 GNOME_DIR=src/gnome2-console
13491 gnome_version="Version 2.x"
13493 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13494 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13495 { (exit 1); exit 1; }; }
13500 # -------------------------------------------
13501 # bat (default off)
13502 # -------------------------------------------
13503 # Check whether --enable-bat was given.
13504 if test "${enable_bat+set}" = set; then
13505 enableval=$enable_bat; if test x$enableval = xyes; then
13507 cat >>confdefs.h <<\_ACEOF
13517 if test x$support_bat = xyes; then
13518 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13520 if test $pkg = 0; then
13521 BAT_DIR=src/qt-console
13523 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13524 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13525 { (exit 1); exit 1; }; }
13530 # If bat is enabled, we need the qwt library
13537 if test x$support_bat = xyes; then
13538 { echo "$as_me:$LINENO: checking for qwt support" >&5
13539 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13541 # Check whether --with-qwt was given.
13542 if test "${with_qwt+set}" = set; then
13544 case "$with_qwt" in
13549 if test -f ${with_qwt}/include/qwt.h; then
13550 QWT_INC="${with_qwt}/include"
13551 QWT_LDFLAGS="-L${with_qwt}/lib"
13562 # Search in standard places, or --with-qwt not specified
13564 if test $no_qwt = no; then
13565 if test x$QWT_INC = x; then
13566 for root in /usr /usr/local; do
13567 for ver in qwt qwt5 qwt-qt4; do
13568 if test -f ${root}/include/${ver}/qwt.h; then
13569 QWT_INC="${root}/include/${ver}"
13570 if test -d ${root}/lib64/; then
13571 QWT_LDFLAGS="-L${root}/lib64"
13573 QWT_LDFLAGS="-L${root}/lib"
13584 if test x$QWT_INC = x; then
13585 { echo "$as_me:$LINENO: result: no" >&5
13586 echo "${ECHO_T}no" >&6; }
13589 cat >>confdefs.h <<\_ACEOF
13593 { echo "$as_me:$LINENO: result: yes" >&5
13594 echo "${ECHO_T}yes" >&6; }
13605 # -------------------------------------------
13606 # bwx-console (default off)
13607 # -------------------------------------------
13608 # Check whether --enable-bwx-console was given.
13609 if test "${enable_bwx_console+set}" = set; then
13610 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13611 support_wx_console=yes
13617 if test x$support_wx_console = xyes; then
13618 abc=`$WXCONFIG $WXFLAGS --cppflags`
13620 if test $pkg = 0; then
13621 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13622 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13623 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13627 WX_DIR=src/wx-console
13630 echo "wx-config program not found. bwx-console disabled."
13632 support_wx_console=no
13638 # -------------------------------------------
13639 # tray-monitor (default off)
13640 # -------------------------------------------
13641 # Check whether --enable-tray-monitor was given.
13642 if test "${enable_tray_monitor+set}" = set; then
13643 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13644 support_tray_monitor=yes
13650 if test x$support_tray_monitor = xyes; then
13651 abc=`$PKGCONFIG --exists gtk+-2.0`
13653 if test $pkg = 0; then
13654 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13655 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13658 TRAY_MONITOR_DIR=src/tray-monitor
13659 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13661 if test $pkg = 0; then
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_GTK_2_4 1
13672 # -------------------------------------------
13673 # smartalloc (default off)
13674 # -------------------------------------------
13675 # Check whether --enable-smartalloc was given.
13676 if test "${enable_smartalloc+set}" = set; then
13677 enableval=$enable_smartalloc; if test x$enableval = xno; then
13678 support_smartalloc=no
13683 if test x$support_smartalloc = xyes; then
13685 cat >>confdefs.h <<\_ACEOF
13686 #define SMARTALLOC 1
13691 # -------------------------------------------
13692 # static-tools (default off)
13693 # -------------------------------------------
13694 # Check whether --enable-static-tools was given.
13695 if test "${enable_static_tools+set}" = set; then
13696 enableval=$enable_static_tools; if test x$enableval = xyes; then
13697 support_static_tools=yes
13703 if test x$support_static_tools = xyes; then
13704 TTOOL_LDFLAGS="-static"
13708 # -------------------------------------------
13709 # static-fd (default off)
13710 # -------------------------------------------
13711 # Check whether --enable-static-fd was given.
13712 if test "${enable_static_fd+set}" = set; then
13713 enableval=$enable_static_fd; if test x$enableval = xyes; then
13714 support_static_fd=yes
13720 if test x$support_static_fd = xyes; then
13721 STATIC_FD="static-bacula-fd"
13725 # -------------------------------------------
13726 # static-sd (default off)
13727 # -------------------------------------------
13728 # Check whether --enable-static-sd was given.
13729 if test "${enable_static_sd+set}" = set; then
13730 enableval=$enable_static_sd; if test x$enableval = xyes; then
13731 support_static_sd=yes
13737 if test x$support_static_sd = xyes; then
13738 STATIC_SD="static-bacula-sd"
13742 # -------------------------------------------
13743 # static-dir (default off)
13744 # -------------------------------------------
13745 # Check whether --enable-static-dir was given.
13746 if test "${enable_static_dir+set}" = set; then
13747 enableval=$enable_static_dir; if test x$enableval = xyes; then
13748 support_static_dir=yes
13754 if test x$support_static_dir = xyes; then
13755 STATIC_DIR="static-bacula-dir"
13759 # -------------------------------------------
13760 # static-cons (default off)
13761 # -------------------------------------------
13762 # Check whether --enable-static-cons was given.
13763 if test "${enable_static_cons+set}" = set; then
13764 enableval=$enable_static_cons; if test x$enableval = xyes; then
13765 support_static_cons=yes
13773 if test x$support_static_cons = xyes; then
13774 STATIC_CONS="static-bconsole"
13775 STATIC_GNOME_CONS="static-bgnome-console"
13776 STATIC_WX_CONS="static-bwx-console"
13782 # -------------------------------------------
13783 # client_only (default off)
13784 # -------------------------------------------
13785 # Check whether --enable-client-only was given.
13786 if test "${enable_client_only+set}" = set; then
13787 enableval=$enable_client_only; if test x$enableval = xyes; then
13788 build_client_only=yes
13794 if test x$build_client_only = xno; then
13801 # -------------------------------------------
13802 # director (default on)
13803 # -------------------------------------------
13804 # Check whether --enable-build-dird was given.
13805 if test "${enable_build_dird+set}" = set; then
13806 enableval=$enable_build_dird; if test x$enableval = xno; then
13811 if test x$build_dird = xyes; then
13812 DIRD_DIR="src/dird"
13813 DIR_TOOLS="DIRTOOLS"
13816 DIR_TOOLS="NODIRTOOLS"
13821 # -------------------------------------------
13822 # stored (default on)
13823 # -------------------------------------------
13824 # Check whether --enable-build-stored was given.
13825 if test "${enable_build_stored+set}" = set; then
13826 enableval=$enable_build_stored; if test x$enableval = xno; then
13831 if test x$build_stored = xyes; then
13832 STORED_DIR="src/stored"
13838 # ---------------------------------------------------
13839 # Check for conio (Bacula readline substitute)(
13840 # ---------------------------------------------------
13841 # this allows you to turn it completely off
13842 # Check whether --enable-conio was given.
13843 if test "${enable_conio+set}" = set; then
13844 enableval=$enable_conio; if test x$enableval = xno; then
13852 # ---------------------------------------------------
13853 # Check for IPv6 support
13854 # ---------------------------------------------------
13855 # this allows you to turn it completely off
13857 # Check whether --enable-ipv6 was given.
13858 if test "${enable_ipv6+set}" = set; then
13859 enableval=$enable_ipv6; if test x$enableval = xno; then
13866 if test x$support_ipv6 = xyes; then
13867 cat >conftest.$ac_ext <<_ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <sys/types.h>
13874 #include <sys/socket.h>
13875 #include <netinet/in.h>
13879 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext &&
13901 $as_test_x conftest$ac_exeext; then
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13914 if test x$support_ipv6 = xyes; then
13916 cat >>confdefs.h <<\_ACEOF
13917 #define HAVE_IPV6 1
13925 if test x$support_conio = xyes; then
13926 if test "${ac_cv_header_termcap_h+set}" = set; then
13927 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13928 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_termcap_h+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13933 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13935 # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13937 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 #include <termcap.h>
13947 rm -f conftest.$ac_objext
13948 if { (ac_try="$ac_compile"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13978 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <termcap.h>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev/null && {
14000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14003 ac_header_preproc=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_header_preproc=no
14011 rm -f conftest.err conftest.$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14021 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14022 ac_header_preproc=yes
14025 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14034 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14040 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14041 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_termcap_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_cv_header_termcap_h=$ac_header_preproc
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14051 if test $ac_cv_header_termcap_h = yes; then
14052 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14053 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-ltermcap $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest$ac_exeext &&
14098 $as_test_x conftest$ac_exeext; then
14099 ac_cv_lib_termcap_tgetent=yes
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_cv_lib_termcap_tgetent=no
14107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14112 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14113 if test $ac_cv_lib_termcap_tgetent = yes; then
14114 CONS_LIBS="-ltermcap"
14118 support_readline=no
14120 cat >>confdefs.h <<\_ACEOF
14121 #define HAVE_CONIO 1
14126 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14127 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lncurses $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_ncurses_tgetent=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_lib_ncurses_tgetent=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14186 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14187 if test $ac_cv_lib_ncurses_tgetent = yes; then
14188 CONS_LIBS="-lncurses"
14192 support_readline=no
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_CONIO 1
14208 for ac_header in curses.h
14210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 ac_res=`eval echo '${'$as_ac_Header'}'`
14218 { echo "$as_me:$LINENO: result: $ac_res" >&5
14219 echo "${ECHO_T}$ac_res" >&6; }
14221 # Is the header compilable?
14222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 $ac_includes_default
14231 #include <$ac_header>
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_compile") 2>conftest.er1
14242 grep -v '^ *+' conftest.er1 >conftest.err
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest.$ac_objext; then
14250 ac_header_compiler=yes
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_header_compiler=no
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6; }
14262 # Is the header present?
14263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <$ac_header>
14273 if { (ac_try="$ac_cpp conftest.$ac_ext"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } >/dev/null && {
14286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14289 ac_header_preproc=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_header_preproc=no
14297 rm -f conftest.err conftest.$ac_ext
14298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14299 echo "${ECHO_T}$ac_header_preproc" >&6; }
14301 # So? What about this header?
14302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14308 ac_header_preproc=yes
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 eval "$as_ac_Header=\$ac_header_preproc"
14333 ac_res=`eval echo '${'$as_ac_Header'}'`
14334 { echo "$as_me:$LINENO: result: $ac_res" >&5
14335 echo "${ECHO_T}$ac_res" >&6; }
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14347 { echo "$as_me:$LINENO: checking for term.h" >&5
14348 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_term_h+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 #include <curses.h>
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest.$ac_objext; then
14382 ac_cv_header_term_h=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_cv_header_term_h=no
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14393 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14394 if test $ac_cv_header_term_h = yes; then
14395 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14396 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14397 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lcurses $LIBS"
14402 cat >conftest.$ac_ext <<_ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (ac_try="$ac_link"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_link") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } && {
14438 test -z "$ac_c_werror_flag" ||
14439 test ! -s conftest.err
14440 } && test -s conftest$ac_exeext &&
14441 $as_test_x conftest$ac_exeext; then
14442 ac_cv_lib_curses_tgetent=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_cv_lib_curses_tgetent=no
14450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS
14454 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14455 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14456 if test $ac_cv_lib_curses_tgetent = yes; then
14457 CONS_LIBS="-lcurses"
14461 support_readline=no
14463 cat >>confdefs.h <<\_ACEOF
14464 #define HAVE_CONIO 1
14472 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14483 # ---------------------------------------------------
14484 # Check for readline support/directory (default off)
14485 # ---------------------------------------------------
14486 # this allows you to turn it completely off
14487 # Check whether --enable-readline was given.
14488 if test "${enable_readline+set}" = set; then
14489 enableval=$enable_readline; if test x$enableval = xno; then
14490 support_readline=no
14497 if test x$support_readline = xyes; then
14499 # Check whether --with-readline was given.
14500 if test "${with_readline+set}" = set; then
14501 withval=$with_readline;
14502 case "$with_readline" in
14505 if test -f ${with_readline}/readline.h; then
14506 CONS_INC="-I${with_readline}"
14507 CONS_LDFLAGS="-L$with_readline"
14508 elif test -f ${with_readline}/include/readline/readline.h; then
14509 CONS_INC="-I${with_readline}/include/readline"
14510 CONS_LDFLAGS="-L${with_readline}/lib"
14511 with_readline="${with_readline}/include/readline"
14513 with_readline="/usr/include/readline"
14515 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14518 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 ac_res=`eval echo '${'$as_ac_Header'}'`
14523 { echo "$as_me:$LINENO: result: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14526 # Is the header compilable?
14527 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14528 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14536 #include <${with_readline}/readline.h>
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
14555 ac_header_compiler=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 ac_header_compiler=no
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14565 echo "${ECHO_T}$ac_header_compiler" >&6; }
14567 # Is the header present?
14568 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14569 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 #include <${with_readline}/readline.h>
14578 if { (ac_try="$ac_cpp conftest.$ac_ext"
14579 case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } >/dev/null && {
14591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14592 test ! -s conftest.err
14594 ac_header_preproc=yes
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ac_header_preproc=no
14602 rm -f conftest.err conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14604 echo "${ECHO_T}$ac_header_preproc" >&6; }
14606 # So? What about this header?
14607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14609 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14610 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14613 ac_header_preproc=yes
14616 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14617 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14623 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14625 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14627 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14631 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14632 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 eval "$as_ac_Header=\$ac_header_preproc"
14638 ac_res=`eval echo '${'$as_ac_Header'}'`
14639 { echo "$as_me:$LINENO: result: $ac_res" >&5
14640 echo "${ECHO_T}$ac_res" >&6; }
14643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14645 cat >>confdefs.h <<\_ACEOF
14646 #define HAVE_READLINE 1
14649 CONS_LIBS="-lreadline -lhistory -ltermcap"
14654 echo "readline.h not found. readline turned off ..."
14666 # check for standard readline library
14667 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14668 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14669 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14674 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14676 # Is the header compilable?
14677 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14678 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 $ac_includes_default
14686 #include </usr/include/readline/readline.h>
14688 rm -f conftest.$ac_objext
14689 if { (ac_try="$ac_compile"
14690 case "(($ac_try" in
14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692 *) ac_try_echo=$ac_try;;
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695 (eval "$ac_compile") 2>conftest.er1
14697 grep -v '^ *+' conftest.er1 >conftest.err
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } && {
14702 test -z "$ac_c_werror_flag" ||
14703 test ! -s conftest.err
14704 } && test -s conftest.$ac_objext; then
14705 ac_header_compiler=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_header_compiler=no
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715 echo "${ECHO_T}$ac_header_compiler" >&6; }
14717 # Is the header present?
14718 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14719 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14720 cat >conftest.$ac_ext <<_ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include </usr/include/readline/readline.h>
14728 if { (ac_try="$ac_cpp conftest.$ac_ext"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } >/dev/null && {
14741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14742 test ! -s conftest.err
14744 ac_header_preproc=yes
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14749 ac_header_preproc=no
14752 rm -f conftest.err conftest.$ac_ext
14753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 echo "${ECHO_T}$ac_header_preproc" >&6; }
14756 # So? What about this header?
14757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14759 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14760 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14763 ac_header_preproc=yes
14766 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14767 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14773 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14777 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14781 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14782 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14783 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14788 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14789 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14792 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_READLINE 1
14799 CONS_INC="-I/usr/include/readline"
14800 CONS_LIBS="-lreadline -ltermcap"
14804 # Did not find standard library, so try Bacula's default
14805 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14807 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14808 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 ac_res=`eval echo '${'$as_ac_Header'}'`
14813 { echo "$as_me:$LINENO: result: $ac_res" >&5
14814 echo "${ECHO_T}$ac_res" >&6; }
14816 # Is the header compilable?
14817 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14818 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 $ac_includes_default
14826 #include <${TOP_DIR}/depkgs/readline/readline.h>
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest.$ac_objext; then
14845 ac_header_compiler=yes
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_compiler=no
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 echo "${ECHO_T}$ac_header_compiler" >&6; }
14857 # Is the header present?
14858 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14859 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <${TOP_DIR}/depkgs/readline/readline.h>
14868 if { (ac_try="$ac_cpp conftest.$ac_ext"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } >/dev/null && {
14881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14882 test ! -s conftest.err
14884 ac_header_preproc=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_header_preproc=no
14892 rm -f conftest.err conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894 echo "${ECHO_T}$ac_header_preproc" >&6; }
14896 # So? What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14900 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14903 ac_header_preproc=yes
14906 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14907 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14913 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14915 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14917 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14921 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14922 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 eval "$as_ac_Header=\$ac_header_preproc"
14928 ac_res=`eval echo '${'$as_ac_Header'}'`
14929 { echo "$as_me:$LINENO: result: $ac_res" >&5
14930 echo "${ECHO_T}$ac_res" >&6; }
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_READLINE 1
14940 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14941 CONS_LIBS="-lreadline -lhistory -ltermcap"
14942 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14943 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14947 echo "readline.h not found. readline turned off ..."
14974 # Minimal stuff for readline Makefile configuration
14977 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14978 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14979 if test "${ac_cv_header_stat_broken+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #include <sys/types.h>
14989 #include <sys/stat.h>
14991 #if defined S_ISBLK && defined S_IFDIR
14992 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14995 #if defined S_ISBLK && defined S_IFCHR
14996 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14999 #if defined S_ISLNK && defined S_IFREG
15000 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15003 #if defined S_ISSOCK && defined S_IFREG
15004 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest.$ac_objext; then
15025 ac_cv_header_stat_broken=no
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_cv_header_stat_broken=yes
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15036 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15037 if test $ac_cv_header_stat_broken = yes; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define STAT_MACROS_BROKEN 1
15050 ac_header_dirent=no
15051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15052 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15053 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <sys/types.h>
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
15092 } && test -s conftest.$ac_objext; then
15093 eval "$as_ac_Header=yes"
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 eval "$as_ac_Header=no"
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 ac_res=`eval echo '${'$as_ac_Header'}'`
15104 { echo "$as_me:$LINENO: result: $ac_res" >&5
15105 echo "${ECHO_T}$ac_res" >&6; }
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15111 ac_header_dirent=$ac_hdr; break
15115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15116 if test $ac_header_dirent = dirent.h; then
15117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15119 if test "${ac_cv_search_opendir+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 ac_func_search_save_LIBS=$LIBS
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15145 for ac_lib in '' dir; do
15146 if test -z "$ac_lib"; then
15147 ac_res="none required"
15150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_link") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest$ac_exeext &&
15169 $as_test_x conftest$ac_exeext; then
15170 ac_cv_search_opendir=$ac_res
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180 if test "${ac_cv_search_opendir+set}" = set; then
15184 if test "${ac_cv_search_opendir+set}" = set; then
15187 ac_cv_search_opendir=no
15189 rm conftest.$ac_ext
15190 LIBS=$ac_func_search_save_LIBS
15192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15194 ac_res=$ac_cv_search_opendir
15195 if test "$ac_res" != no; then
15196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15203 if test "${ac_cv_search_opendir+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 ac_func_search_save_LIBS=$LIBS
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply. */
15229 for ac_lib in '' x; do
15230 if test -z "$ac_lib"; then
15231 ac_res="none required"
15234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (ac_try="$ac_link"
15238 case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_link") 2>conftest.er1
15245 grep -v '^ *+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } && {
15250 test -z "$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15252 } && test -s conftest$ac_exeext &&
15253 $as_test_x conftest$ac_exeext; then
15254 ac_cv_search_opendir=$ac_res
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 if test "${ac_cv_search_opendir+set}" = set; then
15268 if test "${ac_cv_search_opendir+set}" = set; then
15271 ac_cv_search_opendir=no
15273 rm conftest.$ac_ext
15274 LIBS=$ac_func_search_save_LIBS
15276 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15277 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15278 ac_res=$ac_cv_search_opendir
15279 if test "$ac_res" != no; then
15280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15293 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 cat >conftest.$ac_ext <<_ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15309 #define $ac_func innocuous_$ac_func
15311 /* System header to define __stub macros and hopefully few prototypes,
15312 which can conflict with char $ac_func (); below.
15313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15314 <limits.h> exists even on freestanding compilers. */
15317 # include <limits.h>
15319 # include <assert.h>
15324 /* Override any GCC internal prototype to avoid an error.
15325 Use char because int might match the return type of a GCC
15326 builtin and then its argument prototype would still apply. */
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined __stub_$ac_func || defined __stub___$ac_func
15341 return $ac_func ();
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (ac_try="$ac_link"
15348 case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_link") 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && {
15360 test -z "$ac_c_werror_flag" ||
15361 test ! -s conftest.err
15362 } && test -s conftest$ac_exeext &&
15363 $as_test_x conftest$ac_exeext; then
15364 eval "$as_ac_var=yes"
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15369 eval "$as_ac_var=no"
15372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15373 conftest$ac_exeext conftest.$ac_ext
15375 ac_res=`eval echo '${'$as_ac_var'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15388 for ac_func in nanosleep nl_langinfo
15390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15404 #define $ac_func innocuous_$ac_func
15406 /* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char $ac_func (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15412 # include <limits.h>
15414 # include <assert.h>
15419 /* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined __stub_$ac_func || defined __stub___$ac_func
15436 return $ac_func ();
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 eval "$as_ac_var=yes"
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 eval "$as_ac_var=no"
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15470 ac_res=`eval echo '${'$as_ac_var'}'`
15471 { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15482 for ac_header in varargs.h
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 ac_res=`eval echo '${'$as_ac_Header'}'`
15492 { echo "$as_me:$LINENO: result: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15495 # Is the header compilable?
15496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15505 #include <$ac_header>
15507 rm -f conftest.$ac_objext
15508 if { (ac_try="$ac_compile"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_compile") 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest.$ac_objext; then
15524 ac_header_compiler=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_header_compiler=no
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15534 echo "${ECHO_T}$ac_header_compiler" >&6; }
15536 # Is the header present?
15537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 #include <$ac_header>
15547 if { (ac_try="$ac_cpp conftest.$ac_ext"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } >/dev/null && {
15560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15561 test ! -s conftest.err
15563 ac_header_preproc=yes
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 ac_header_preproc=no
15571 rm -f conftest.err conftest.$ac_ext
15572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15573 echo "${ECHO_T}$ac_header_preproc" >&6; }
15575 # So? What about this header?
15576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15582 ac_header_preproc=yes
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 eval "$as_ac_Header=\$ac_header_preproc"
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15622 # End of readline/conio stuff
15623 # -----------------------------------------------------------------------
15625 # -----------------------------------------------------------------------
15626 # Check for Python support
15628 { echo "$as_me:$LINENO: checking for Python support" >&5
15629 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15631 # Check whether --with-python was given.
15632 if test "${with_python+set}" = set; then
15633 withval=$with_python;
15636 if test "$withval" != "no"; then
15637 if test "$withval" = "yes"; then
15638 for python_root in /usr /usr/local /usr/sfw; do
15639 for ver in python2.2 python2.3 python2.4 python2.5; do
15640 if test -f $python_root/include/${ver}/Python.h; then
15641 PYTHON_INCDIR=-I$python_root/include/${ver}
15642 if test -d $python_root/lib64/${ver}/config; then
15643 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15645 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15651 if test x$PYTHON_INCDIR = x; then
15652 if test -f $prefix/include/Python.h; then
15653 PYTHON_INCDIR=-I$prefix/include
15654 if test -d $prefix/lib64/config; then
15655 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15657 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15660 { echo "$as_me:$LINENO: result: no" >&5
15661 echo "${ECHO_T}no" >&6; }
15662 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15663 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15664 { (exit 1); exit 1; }; }
15668 if test -f $withval/Python.h; then
15669 PYTHON_INCDIR=-I$withval
15670 PYTHON_LIBS="-L$withval/config -lpython"
15671 elif test -f $withval/include/Python.h; then
15672 PYTHON_INCDIR=-I$withval/include
15673 if test -d $withval/lib64/config; then
15674 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15676 PYTHON_LIBS="-L$withval/lib/config -lpython"
15678 elif test -f $withval/include/python/Python.h; then
15679 PYTHON_INCDIR=-I$withval/include/python
15680 if test -d $withval/lib64/python/config; then
15681 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15683 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15686 { echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6; }
15688 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15689 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15690 { (exit 1); exit 1; }; }
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_PYTHON 1
15697 { echo "$as_me:$LINENO: result: yes" >&5
15698 echo "${ECHO_T}yes" >&6; }
15700 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15701 echo "$as_me: checking for more Python libs" >&6;}
15702 saved_LIBS="$LIBS"; LIBS=
15703 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15704 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15705 if test "${ac_cv_search_shm_open+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 ac_func_search_save_LIBS=$LIBS
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any GCC internal prototype to avoid an error.
15717 Use char because int might match the return type of a GCC
15718 builtin and then its argument prototype would still apply. */
15726 return shm_open ();
15731 for ac_lib in '' rt; do
15732 if test -z "$ac_lib"; then
15733 ac_res="none required"
15736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (ac_try="$ac_link"
15740 case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_link") 2>conftest.er1
15747 grep -v '^ *+' conftest.er1 >conftest.err
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && {
15752 test -z "$ac_c_werror_flag" ||
15753 test ! -s conftest.err
15754 } && test -s conftest$ac_exeext &&
15755 $as_test_x conftest$ac_exeext; then
15756 ac_cv_search_shm_open=$ac_res
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 if test "${ac_cv_search_shm_open+set}" = set; then
15770 if test "${ac_cv_search_shm_open+set}" = set; then
15773 ac_cv_search_shm_open=no
15775 rm conftest.$ac_ext
15776 LIBS=$ac_func_search_save_LIBS
15778 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15779 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15780 ac_res=$ac_cv_search_shm_open
15781 if test "$ac_res" != no; then
15782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15787 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15788 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15789 if test "${ac_cv_lib_util_openpty+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-lutil $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15801 /* Override any GCC internal prototype to avoid an error.
15802 Use char because int might match the return type of a GCC
15803 builtin and then its argument prototype would still apply. */
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (ac_try="$ac_link"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_link") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest$ac_exeext &&
15833 $as_test_x conftest$ac_exeext; then
15834 ac_cv_lib_util_openpty=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_cv_lib_util_openpty=no
15842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15843 conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15846 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15847 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15848 if test $ac_cv_lib_util_openpty = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_LIBUTIL 1
15853 LIBS="-lutil $LIBS"
15857 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15860 { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15866 { echo "$as_me:$LINENO: result: no" >&5
15867 echo "${ECHO_T}no" >&6; }
15875 # Find where sockets are (especially for Solaris)
15876 # Do this before the TCP Wrappers test since tcp wrappers
15877 # uses the socket library and some linkers are stupid.
15879 { echo "$as_me:$LINENO: checking for socket" >&5
15880 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15881 if test "${ac_cv_func_socket+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15892 #define socket innocuous_socket
15894 /* System header to define __stub macros and hopefully few prototypes,
15895 which can conflict with char socket (); below.
15896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15897 <limits.h> exists even on freestanding compilers. */
15900 # include <limits.h>
15902 # include <assert.h>
15907 /* Override any GCC internal prototype to avoid an error.
15908 Use char because int might match the return type of a GCC
15909 builtin and then its argument prototype would still apply. */
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined __stub_socket || defined __stub___socket
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && {
15943 test -z "$ac_c_werror_flag" ||
15944 test ! -s conftest.err
15945 } && test -s conftest$ac_exeext &&
15946 $as_test_x conftest$ac_exeext; then
15947 ac_cv_func_socket=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_func_socket=no
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15958 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15959 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15960 if test $ac_cv_func_socket = yes; then
15961 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15962 echo "${ECHO_T}using libc's socket" >&6; }
15965 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15966 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-lxnet $LIBS"
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15979 /* Override any GCC internal prototype to avoid an error.
15980 Use char because int might match the return type of a GCC
15981 builtin and then its argument prototype would still apply. */
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1 >conftest.err
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest$ac_exeext &&
16011 $as_test_x conftest$ac_exeext; then
16012 ac_cv_lib_xnet_socket=yes
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 ac_cv_lib_xnet_socket=no
16020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021 conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16024 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16025 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16026 if test $ac_cv_lib_xnet_socket = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define HAVE_LIBXNET 1
16031 LIBS="-lxnet $LIBS"
16036 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16037 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16038 if test "${ac_cv_lib_socket_socket+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lsocket $LIBS"
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16050 /* Override any GCC internal prototype to avoid an error.
16051 Use char because int might match the return type of a GCC
16052 builtin and then its argument prototype would still apply. */
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_link") 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 } && test -s conftest$ac_exeext &&
16082 $as_test_x conftest$ac_exeext; then
16083 ac_cv_lib_socket_socket=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_lib_socket_socket=no
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092 conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16095 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16097 if test $ac_cv_lib_socket_socket = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBSOCKET 1
16102 LIBS="-lsocket $LIBS"
16107 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16108 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16109 if test "${ac_cv_lib_inet_socket+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 ac_check_lib_save_LIBS=$LIBS
16113 LIBS="-linet $LIBS"
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16121 /* Override any GCC internal prototype to avoid an error.
16122 Use char because int might match the return type of a GCC
16123 builtin and then its argument prototype would still apply. */
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>conftest.er1
16145 grep -v '^ *+' conftest.er1 >conftest.err
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } && {
16150 test -z "$ac_c_werror_flag" ||
16151 test ! -s conftest.err
16152 } && test -s conftest$ac_exeext &&
16153 $as_test_x conftest$ac_exeext; then
16154 ac_cv_lib_inet_socket=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_lib_inet_socket=no
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163 conftest$ac_exeext conftest.$ac_ext
16164 LIBS=$ac_check_lib_save_LIBS
16166 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16167 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16168 if test $ac_cv_lib_inet_socket = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_LIBINET 1
16173 LIBS="-linet $LIBS"
16181 # -----------------------------------------------------------
16182 # Check whether user wants TCP wrappers support (default off)
16183 # -----------------------------------------------------------
16187 # Check whether --with-tcp-wrappers was given.
16188 if test "${with_tcp_wrappers+set}" = set; then
16189 withval=$with_tcp_wrappers;
16190 if test "x$withval" != "xno" ; then
16192 LIBS="$saved_LIBS -lwrap"
16193 { echo "$as_me:$LINENO: checking for libwrap" >&5
16194 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16195 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16196 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16197 if test "${ac_cv_search_nanosleep+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 ac_func_search_save_LIBS=$LIBS
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 /* Override any GCC internal prototype to avoid an error.
16209 Use char because int might match the return type of a GCC
16210 builtin and then its argument prototype would still apply. */
16218 return nanosleep ();
16223 for ac_lib in '' rt; do
16224 if test -z "$ac_lib"; then
16225 ac_res="none required"
16228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_link") 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
16246 } && test -s conftest$ac_exeext &&
16247 $as_test_x conftest$ac_exeext; then
16248 ac_cv_search_nanosleep=$ac_res
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16258 if test "${ac_cv_search_nanosleep+set}" = set; then
16262 if test "${ac_cv_search_nanosleep+set}" = set; then
16265 ac_cv_search_nanosleep=no
16267 rm conftest.$ac_ext
16268 LIBS=$ac_func_search_save_LIBS
16270 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16271 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16272 ac_res=$ac_cv_search_nanosleep
16273 if test "$ac_res" != no; then
16274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 #include <sys/types.h>
16286 int deny_severity = 0;
16287 int allow_severity = 0;
16288 struct request_info *req;
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (ac_try="$ac_link"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_link") 2>conftest.er1
16306 grep -v '^ *+' conftest.er1 >conftest.err
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest$ac_exeext &&
16314 $as_test_x conftest$ac_exeext; then
16316 { echo "$as_me:$LINENO: result: yes" >&5
16317 echo "${ECHO_T}yes" >&6; }
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_LIBWRAP 1
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16332 LIBS="$saved_LIBS -lwrap -lnsl"
16333 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <sys/types.h>
16342 int deny_severity = 0;
16343 int allow_severity = 0;
16344 struct request_info *req;
16353 rm -f conftest.$ac_objext conftest$ac_exeext
16354 if { (ac_try="$ac_link"
16355 case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_link") 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } && {
16367 test -z "$ac_c_werror_flag" ||
16368 test ! -s conftest.err
16369 } && test -s conftest$ac_exeext &&
16370 $as_test_x conftest$ac_exeext; then
16372 { echo "$as_me:$LINENO: result: yes" >&5
16373 echo "${ECHO_T}yes" >&6; }
16375 cat >>confdefs.h <<\_ACEOF
16376 #define HAVE_LIBWRAP 1
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16388 echo "$as_me: error: *** libwrap missing" >&2;}
16389 { (exit 1); exit 1; }; }
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394 conftest$ac_exeext conftest.$ac_ext
16398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16399 conftest$ac_exeext conftest.$ac_ext
16406 # -----------------------------------------------------------
16407 # Check whether OpenSSL is available
16408 # -----------------------------------------------------------
16409 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16410 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16412 # Check whether --with-openssl was given.
16413 if test "${with_openssl+set}" = set; then
16414 withval=$with_openssl; with_openssl_directory=${withval}
16418 if test "x$with_openssl_directory" != "x"; then
16419 OPENSSL_LIBS="-lssl -lcrypto"
16422 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16423 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16424 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16427 saved_LIBS="${LIBS}"
16428 saved_CFLAGS="${CFLAGS}"
16429 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16430 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <openssl/ssl.h>
16442 CRYPTO_set_id_callback(NULL);
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_link") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } && {
16461 test -z "$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 } && test -s conftest$ac_exeext &&
16464 $as_test_x conftest$ac_exeext; then
16467 support_crypto="yes"
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16478 conftest$ac_exeext conftest.$ac_ext
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #include <openssl/evp.h>
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (ac_try="$ac_link"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_link") 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } && {
16509 test -z "$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 } && test -s conftest$ac_exeext &&
16512 $as_test_x conftest$ac_exeext; then
16513 ac_cv_openssl_sha2="yes"
16515 echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 ac_cv_openssl_sha2="no"
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16525 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16526 # implementation, presumably for export reasons. If 192bit AES
16527 # is available, we assume that we're running with a 'non-export'
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <openssl/evp.h>
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_link") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest$ac_exeext &&
16561 $as_test_x conftest$ac_exeext; then
16562 ac_cv_openssl_export="no"
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 ac_cv_openssl_export="yes"
16571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16572 conftest$ac_exeext conftest.$ac_ext
16574 LIBS="${saved_LIBS}"
16575 CFLAGS="${saved_CFLAGS}"
16577 if test "$support_tls" = "yes"; then
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_OPENSSL 1
16584 cat >>confdefs.h <<\_ACEOF
16589 cat >>confdefs.h <<\_ACEOF
16590 #define HAVE_CRYPTO 1
16595 if test "$ac_cv_openssl_sha2" = "yes"; then
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_SHA2 1
16603 if test "$ac_cv_openssl_export" = "yes"; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16612 support_crypto="no"
16617 { echo "$as_me:$LINENO: result: $support_tls" >&5
16618 echo "${ECHO_T}$support_tls" >&6; }
16623 # -----------------------------------------------------------
16624 # dlopen is needed for plugins
16625 # -----------------------------------------------------------
16626 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16627 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16628 if test "${ac_cv_search_dlopen+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 ac_func_search_save_LIBS=$LIBS
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16639 /* Override any GCC internal prototype to avoid an error.
16640 Use char because int might match the return type of a GCC
16641 builtin and then its argument prototype would still apply. */
16654 for ac_lib in '' dl; do
16655 if test -z "$ac_lib"; then
16656 ac_res="none required"
16659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_link") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest$ac_exeext &&
16678 $as_test_x conftest$ac_exeext; then
16679 ac_cv_search_dlopen=$ac_res
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16689 if test "${ac_cv_search_dlopen+set}" = set; then
16693 if test "${ac_cv_search_dlopen+set}" = set; then
16696 ac_cv_search_dlopen=no
16698 rm conftest.$ac_ext
16699 LIBS=$ac_func_search_save_LIBS
16701 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16703 ac_res=$ac_cv_search_dlopen
16704 if test "$ac_res" != no; then
16705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16710 # ------------------------------------------
16711 # Where to place working dir
16712 # ------------------------------------------
16713 working_dir=`eval echo ${prefix}/var/bacula/working`
16715 # Check whether --with-working-dir was given.
16716 if test "${with_working_dir+set}" = set; then
16717 withval=$with_working_dir;
16718 if test "x$withval" != "xno" ; then
16719 working_dir=$withval
16728 # ------------------------------------------------------------------
16729 # If the user has not set archivedir, we set our default as /tmp
16730 # ------------------------------------------------------------------
16733 # Check whether --with-archivedir was given.
16734 if test "${with_archivedir+set}" = set; then
16735 withval=$with_archivedir;
16736 if test "x$withval" != "xno" ; then
16737 archivedir=$withval
16748 # ------------------------------------------
16749 # Where to place scriptdir (script files)
16750 # ------------------------------------------
16751 scriptdir=`eval echo ${sysconfdir}`
16753 # Check whether --with-scriptdir was given.
16754 if test "${with_scriptdir+set}" = set; then
16755 withval=$with_scriptdir;
16756 if test "x$withval" != "xno" ; then
16767 # ------------------------------------------
16768 # Where to send dump email
16769 # ------------------------------------------
16770 dump_email=root@localhost
16772 # Check whether --with-dump-email was given.
16773 if test "${with_dump_email+set}" = set; then
16774 withval=$with_dump_email;
16775 if test "x$withval" != "xno" ; then
16776 dump_email=$withval
16785 # ------------------------------------------
16786 # Where to send job email
16787 # ------------------------------------------
16788 job_email=root@localhost
16790 # Check whether --with-job-email was given.
16791 if test "${with_job_email+set}" = set; then
16792 withval=$with_job_email;
16793 if test "x$withval" != "xno" ; then
16803 # ------------------------------------------
16804 # Where to find smtp host
16805 # ------------------------------------------
16806 smtp_host=localhost
16808 # Check whether --with-smtp_host was given.
16809 if test "${with_smtp_host+set}" = set; then
16810 withval=$with_smtp_host;
16811 if test "x$withval" != "xno" ; then
16822 # ------------------------------------
16823 # Where to place pid files
16824 # ------------------------------------
16827 # Check whether --with-pid-dir was given.
16828 if test "${with_pid_dir+set}" = set; then
16829 withval=$with_pid_dir;
16830 if test "x$withval" != "xno" ; then
16838 cat >>confdefs.h <<_ACEOF
16839 #define _PATH_BACULA_PIDDIR "$piddir"
16845 # ------------------------------------
16846 # Where to place subsys "lock file"
16847 # ------------------------------------
16848 subsysdir=/var/run/subsys
16849 if test -d /var/run/subsys; then
16850 subsysdir=/var/run/subsys
16851 elif test -d /var/lock/subsys; then
16852 subsysdir=/var/lock/subsys
16854 subsysdir=/var/run/subsys
16857 # Check whether --with-subsys-dir was given.
16858 if test "${with_subsys_dir+set}" = set; then
16859 withval=$with_subsys_dir;
16860 if test "x$withval" != "xno" ; then
16872 # ------------------------------------
16873 # Where to start assigning ports
16874 # ------------------------------------
16877 # Check whether --with-baseport was given.
16878 if test "${with_baseport+set}" = set; then
16879 withval=$with_baseport;
16880 if test "x$withval" != "xno" ; then
16889 dir_port=`expr $baseport`
16890 fd_port=`expr $baseport + 1`
16891 sd_port=`expr $fd_port + 1`
16898 # ------------------------------------------
16899 # Generate passwords
16900 # ------------------------------------------
16903 # Check whether --with-dir-password was given.
16904 if test "${with_dir_password+set}" = set; then
16905 withval=$with_dir_password;
16906 if test "x$withval" != "xno" ; then
16907 dir_password=$withval
16914 if test "x$dir_password" = "x" ; then
16915 if test "x$OPENSSL" = "xnone" ; then
16916 key=`autoconf/randpass 33`
16918 key=`openssl rand -base64 33`
16925 # Check whether --with-fd-password was given.
16926 if test "${with_fd_password+set}" = set; then
16927 withval=$with_fd_password;
16928 if test "x$withval" != "xno" ; then
16929 fd_password=$withval
16936 if test "x$fd_password" = "x" ; then
16937 if test "x$OPENSSL" = "xnone" ; then
16938 key=`autoconf/randpass 37`
16940 key=`openssl rand -base64 33`
16947 # Check whether --with-sd-password was given.
16948 if test "${with_sd_password+set}" = set; then
16949 withval=$with_sd_password;
16950 if test "x$withval" != "xno" ; then
16951 sd_password=$withval
16958 if test "x$sd_password" = "x" ; then
16959 if test "x$OPENSSL" = "xnone" ; then
16960 key=`autoconf/randpass 41`
16962 key=`openssl rand -base64 33`
16969 # Check whether --with-mon-dir-password was given.
16970 if test "${with_mon_dir_password+set}" = set; then
16971 withval=$with_mon_dir_password;
16972 if test "x$withval" != "xno" ; then
16973 mon_dir_password=$withval
16980 if test "x$mon_dir_password" = "x" ; then
16981 if test "x$OPENSSL" = "xnone" ; then
16982 key=`autoconf/randpass 33`
16984 key=`openssl rand -base64 33`
16986 mon_dir_password=$key
16991 # Check whether --with-mon-fd-password was given.
16992 if test "${with_mon_fd_password+set}" = set; then
16993 withval=$with_mon_fd_password;
16994 if test "x$withval" != "xno" ; then
16995 mon_fd_password=$withval
17002 if test "x$mon_fd_password" = "x" ; then
17003 if test "x$OPENSSL" = "xnone" ; then
17004 key=`autoconf/randpass 37`
17006 key=`openssl rand -base64 33`
17008 mon_fd_password=$key
17013 # Check whether --with-mon-sd-password was given.
17014 if test "${with_mon_sd_password+set}" = set; then
17015 withval=$with_mon_sd_password;
17016 if test "x$withval" != "xno" ; then
17017 mon_sd_password=$withval
17024 if test "x$mon_sd_password" = "x" ; then
17025 if test "x$OPENSSL" = "xnone" ; then
17026 key=`autoconf/randpass 41`
17028 key=`openssl rand -base64 33`
17030 mon_sd_password=$key
17041 # Pickup any database name
17045 # Check whether --with-db_name was given.
17046 if test "${with_db_name+set}" = set; then
17047 withval=$with_db_name;
17048 if test "x$withval" != "x" ; then
17059 # Check whether --with-db_user was given.
17060 if test "${with_db_user+set}" = set; then
17061 withval=$with_db_user;
17062 if test "x$withval" != "x" ; then
17073 # Check whether --with-db_password was given.
17074 if test "${with_db_password+set}" = set; then
17075 withval=$with_db_password;
17076 if test "x$withval" != "x" ; then
17077 db_password=$withval
17086 # Pickup a database port
17090 # Check whether --with-db_port was given.
17091 if test "${with_db_port+set}" = set; then
17092 withval=$with_db_port;
17093 if test "x$withval" != "x" ; then
17103 # Handle users and groups for each daemon
17107 # Check whether --with-dir_user was given.
17108 if test "${with_dir_user+set}" = set; then
17109 withval=$with_dir_user;
17110 if test "x$withval" != "x" ; then
17120 # Check whether --with-dir_group was given.
17121 if test "${with_dir_group+set}" = set; then
17122 withval=$with_dir_group;
17123 if test "x$withval" != "x" ; then
17133 # Check whether --with-sd_user was given.
17134 if test "${with_sd_user+set}" = set; then
17135 withval=$with_sd_user;
17136 if test "x$withval" != "x" ; then
17146 # Check whether --with-sd_group was given.
17147 if test "${with_sd_group+set}" = set; then
17148 withval=$with_sd_group;
17149 if test "x$withval" != "x" ; then
17159 # Check whether --with-fd_user was given.
17160 if test "${with_fd_user+set}" = set; then
17161 withval=$with_fd_user;
17162 if test "x$withval" != "x" ; then
17172 # Check whether --with-fd_group was given.
17173 if test "${with_fd_group+set}" = set; then
17174 withval=$with_fd_group;
17175 if test "x$withval" != "x" ; then
17191 # allow setting default executable permissions
17195 # Check whether --with-sbin-perm was given.
17196 if test "${with_sbin_perm+set}" = set; then
17197 withval=$with_sbin_perm;
17198 if test "x$withval" != "x" ; then
17208 # ------------------------------------------------
17209 # Bacula check for various SQL database engines
17210 # ------------------------------------------------
17214 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17215 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17217 # Check whether --with-postgresql was given.
17218 if test "${with_postgresql+set}" = set; then
17219 withval=$with_postgresql;
17220 if test "$withval" != "no"; then
17221 if test "$db_found" = "yes"; then
17222 { echo "$as_me:$LINENO: result: error" >&5
17223 echo "${ECHO_T}error" >&6; }
17224 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17225 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17226 { (exit 1); exit 1; }; };
17228 if test "$withval" = "yes"; then
17229 PG_CONFIG=`which pg_config`
17230 if test -n "$PG_CONFIG";then
17231 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17232 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17233 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17234 elif test -f /usr/local/include/libpq-fe.h; then
17235 POSTGRESQL_INCDIR=/usr/local/include
17236 if test -d /usr/local/lib64; then
17237 POSTGRESQL_LIBDIR=/usr/local/lib64
17239 POSTGRESQL_LIBDIR=/usr/local/lib
17241 POSTGRESQL_BINDIR=/usr/local/bin
17242 elif test -f /usr/include/libpq-fe.h; then
17243 POSTGRESQL_INCDIR=/usr/include
17244 if test -d /usr/lib64; then
17245 POSTGRESQL_LIBDIR=/usr/lib64
17247 POSTGRESQL_LIBDIR=/usr/lib
17249 POSTGRESQL_BINDIR=/usr/bin
17250 elif test -f /usr/include/pgsql/libpq-fe.h; then
17251 POSTGRESQL_INCDIR=/usr/include/pgsql
17252 if test -d /usr/lib64/pgsql; then
17253 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17255 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17257 POSTGRESQL_BINDIR=/usr/bin
17258 elif test -f /usr/include/postgresql/libpq-fe.h; then
17259 POSTGRESQL_INCDIR=/usr/include/postgresql
17260 if test -d /usr/lib64/postgresql; then
17261 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17263 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17265 POSTGRESQL_BINDIR=/usr/bin
17267 { echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6; }
17269 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17270 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17271 { (exit 1); exit 1; }; }
17273 elif test -f $withval/include/libpq-fe.h; then
17274 POSTGRESQL_INCDIR=$withval/include
17275 POSTGRESQL_LIBDIR=$withval/lib
17276 POSTGRESQL_BINDIR=$withval/bin
17277 elif test -f $withval/include/postgresql/libpq-fe.h; then
17278 POSTGRESQL_INCDIR=$withval/include/postgresql
17279 if test -d $withval/lib64; then
17280 POSTGRESQL_LIBDIR=$withval/lib64
17282 POSTGRESQL_LIBDIR=$withval/lib
17284 POSTGRESQL_BINDIR=$withval/bin
17286 { echo "$as_me:$LINENO: result: no" >&5
17287 echo "${ECHO_T}no" >&6; }
17288 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17289 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17290 { (exit 1); exit 1; }; }
17292 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17293 { echo "$as_me:$LINENO: checking for crypt" >&5
17294 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17295 if test "${ac_cv_func_crypt+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306 #define crypt innocuous_crypt
17308 /* System header to define __stub macros and hopefully few prototypes,
17309 which can conflict with char crypt (); below.
17310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311 <limits.h> exists even on freestanding compilers. */
17314 # include <limits.h>
17316 # include <assert.h>
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined __stub_crypt || defined __stub___crypt
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 ac_cv_func_crypt=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_cv_func_crypt=no
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17372 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17373 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17374 if test $ac_cv_func_crypt = yes; then
17377 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17378 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17379 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 ac_check_lib_save_LIBS=$LIBS
17383 LIBS="-lcrypt $LIBS"
17384 cat >conftest.$ac_ext <<_ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_link") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest$ac_exeext &&
17423 $as_test_x conftest$ac_exeext; then
17424 ac_cv_lib_crypt_crypt=yes
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ac_cv_lib_crypt_crypt=no
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433 conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_lib_save_LIBS
17436 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17437 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17438 if test $ac_cv_lib_crypt_crypt = yes; then
17439 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17444 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17445 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17446 SQL_BINDIR=$POSTGRESQL_BINDIR
17447 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_POSTGRESQL 1
17453 { echo "$as_me:$LINENO: result: yes" >&5
17454 echo "${ECHO_T}yes" >&6; }
17456 support_postgresql=yes
17460 { echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6; }
17466 { echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6; }
17479 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17480 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17482 # Check whether --with-mysql was given.
17483 if test "${with_mysql+set}" = set; then
17484 withval=$with_mysql;
17485 if test "$withval" != "no"; then
17486 if test "$withval" = "yes"; then
17487 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17488 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17489 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17490 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17491 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17493 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17495 MYSQL_BINDIR=/usr/local/mysql/bin
17496 elif test -f /usr/include/mysql/mysql.h; then
17497 MYSQL_INCDIR=/usr/include/mysql
17498 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17499 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17500 MYSQL_LIBDIR=/usr/lib64/mysql
17501 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17502 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17503 MYSQL_LIBDIR=/usr/lib/mysql
17505 MYSQL_LIBDIR=/usr/lib
17507 MYSQL_BINDIR=/usr/bin
17508 elif test -f /usr/include/mysql.h; then
17509 MYSQL_INCDIR=/usr/include
17510 if test -f /usr/lib64/libmysqlclient_r.a \
17511 -o -f /usr/lib64/libmysqlclient_r.so; then
17512 MYSQL_LIBDIR=/usr/lib64
17514 MYSQL_LIBDIR=/usr/lib
17516 MYSQL_BINDIR=/usr/bin
17517 elif test -f /usr/local/include/mysql/mysql.h; then
17518 MYSQL_INCDIR=/usr/local/include/mysql
17519 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17520 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17521 MYSQL_LIBDIR=/usr/local/lib64/mysql
17523 MYSQL_LIBDIR=/usr/local/lib/mysql
17525 MYSQL_BINDIR=/usr/local/bin
17526 elif test -f /usr/local/include/mysql.h; then
17527 MYSQL_INCDIR=/usr/local/include
17528 if test -f /usr/local/lib64/libmysqlclient_r.a \
17529 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17530 MYSQL_LIBDIR=/usr/local/lib64
17532 MYSQL_LIBDIR=/usr/local/lib
17534 MYSQL_BINDIR=/usr/local/bin
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17538 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17539 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17540 { (exit 1); exit 1; }; }
17543 if test -f $withval/include/mysql/mysql.h; then
17544 MYSQL_INCDIR=$withval/include/mysql
17545 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17546 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17547 MYSQL_LIBDIR=$withval/lib64/mysql
17549 MYSQL_LIBDIR=$withval/lib/mysql
17551 if test -f $withval/lib/libmysqlclient_r.so; then
17552 MYSQL_LIBDIR=$withval/lib
17555 MYSQL_BINDIR=$withval/bin
17556 elif test -f $withval/include/mysql.h; then
17557 MYSQL_INCDIR=$withval/include
17558 if test -f $withval/lib64/libmysqlclient_r.a \
17559 -o -f $withval/lib64/libmysqlclient_r.so; then
17560 MYSQL_LIBDIR=$withval/lib64
17562 MYSQL_LIBDIR=$withval/lib
17564 MYSQL_BINDIR=$withval/bin
17566 { echo "$as_me:$LINENO: result: no" >&5
17567 echo "${ECHO_T}no" >&6; }
17568 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17569 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17570 { (exit 1); exit 1; }; }
17573 SQL_INCLUDE=-I$MYSQL_INCDIR
17574 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17575 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17576 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_THREAD_SAFE_MYSQL 1
17582 SQL_BINDIR=$MYSQL_BINDIR
17583 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17585 cat >>confdefs.h <<\_ACEOF
17586 #define HAVE_MYSQL 1
17589 { echo "$as_me:$LINENO: result: yes" >&5
17590 echo "${ECHO_T}yes" >&6; }
17597 { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17606 # Check whether --with-embedded-mysql was given.
17607 if test "${with_embedded_mysql+set}" = set; then
17608 withval=$with_embedded_mysql;
17609 if test "$withval" != "no"; then
17610 if test "$withval" = "yes"; then
17611 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17612 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17613 if test -d /usr/local/mysql/lib64/mysql; then
17614 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17616 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17618 MYSQL_BINDIR=/usr/local/mysql/bin
17619 elif test -f /usr/include/mysql/mysql.h; then
17620 MYSQL_INCDIR=/usr/include/mysql
17621 if test -d /usr/lib64/mysql; then
17622 MYSQL_LIBDIR=/usr/lib64/mysql
17624 MYSQL_LIBDIR=/usr/lib/mysql
17626 MYSQL_BINDIR=/usr/bin
17627 elif test -f /usr/include/mysql.h; then
17628 MYSQL_INCDIR=/usr/include
17629 if test -d /usr/lib64; then
17630 MYSQL_LIBDIR=/usr/lib64
17632 MYSQL_LIBDIR=/usr/lib
17634 MYSQL_BINDIR=/usr/bin
17635 elif test -f /usr/local/include/mysql/mysql.h; then
17636 MYSQL_INCDIR=/usr/local/include/mysql
17637 if test -d /usr/local/lib64/mysql; then
17638 MYSQL_LIBDIR=/usr/local/lib64/mysql
17640 MYSQL_LIBDIR=/usr/local/lib/mysql
17642 MYSQL_BINDIR=/usr/local/bin
17643 elif test -f /usr/local/include/mysql.h; then
17644 MYSQL_INCDIR=/usr/local/include
17645 if test -d /usr/local/lib64; then
17646 MYSQL_LIBDIR=/usr/local/lib64
17648 MYSQL_LIBDIR=/usr/local/lib
17650 MYSQL_BINDIR=/usr/local/bin
17652 { echo "$as_me:$LINENO: result: no" >&5
17653 echo "${ECHO_T}no" >&6; }
17654 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17655 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17656 { (exit 1); exit 1; }; }
17659 if test -f $withval/include/mysql/mysql.h; then
17660 MYSQL_INCDIR=$withval/include/mysql
17661 if test -d $withval/lib64/mysql; then
17662 MYSQL_LIBDIR=$withval/lib64/mysql
17664 MYSQL_LIBDIR=$withval/lib/mysql
17666 MYSQL_BINDIR=$withval/bin
17667 elif test -f $withval/include/mysql.h; then
17668 MYSQL_INCDIR=$withval/include
17669 if test -d $withval/lib64; then
17670 MYSQL_LIBDIR=$withval/lib64
17672 MYSQL_LIBDIR=$withval/lib
17674 MYSQL_BINDIR=$withval/bin
17676 { echo "$as_me:$LINENO: result: no" >&5
17677 echo "${ECHO_T}no" >&6; }
17678 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17679 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17680 { (exit 1); exit 1; }; }
17683 SQL_INCLUDE=-I$MYSQL_INCDIR
17684 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17685 SQL_BINDIR=$MYSQL_BINDIR
17686 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17688 cat >>confdefs.h <<\_ACEOF
17689 #define HAVE_MYSQL 1
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_EMBEDDED_MYSQL 1
17696 { echo "$as_me:$LINENO: result: yes" >&5
17697 echo "${ECHO_T}yes" >&6; }
17704 { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17721 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17722 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17724 # Check whether --with-sqlite3 was given.
17725 if test "${with_sqlite3+set}" = set; then
17726 withval=$with_sqlite3;
17727 if test "$withval" != "no"; then
17728 if test "$withval" = "yes"; then
17729 if test -f /usr/local/include/sqlite3.h; then
17730 SQLITE_INCDIR=/usr/local/include
17731 if test -d /usr/local/lib64; then
17732 SQLITE_LIBDIR=/usr/local/lib64
17734 SQLITE_LIBDIR=/usr/local/lib
17736 SQLITE_BINDIR=/usr/local/bin
17737 elif test -f /usr/include/sqlite3.h; then
17738 SQLITE_INCDIR=/usr/include
17739 if test -d /usr/lib64; then
17740 SQLITE_LIBDIR=/usr/lib64
17742 SQLITE_LIBDIR=/usr/lib
17744 SQLITE_BINDIR=/usr/bin
17745 elif test -f $prefix/include/sqlite3.h; then
17746 SQLITE_INCDIR=$prefix/include
17747 if test -d $prefix/lib64; then
17748 SQLITE_LIBDIR=$prefix/lib64
17750 SQLITE_LIBDIR=$prefix/lib
17752 SQLITE_BINDIR=$prefix/bin
17754 { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17757 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17758 { (exit 1); exit 1; }; }
17761 if test -f $withval/sqlite3.h; then
17762 SQLITE_INCDIR=$withval
17763 SQLITE_LIBDIR=$withval
17764 SQLITE_BINDIR=$withval
17765 elif test -f $withval/include/sqlite3.h; then
17766 SQLITE_INCDIR=$withval/include
17767 if test -d $withval/lib64; then
17768 SQLITE_LIBDIR=$withval/lib64
17770 SQLITE_LIBDIR=$withval/lib
17772 SQLITE_BINDIR=$withval/bin
17774 { echo "$as_me:$LINENO: result: no" >&5
17775 echo "${ECHO_T}no" >&6; }
17776 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17777 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17778 { (exit 1); exit 1; }; }
17781 SQL_INCLUDE=-I$SQLITE_INCDIR
17782 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17783 SQL_BINDIR=$SQLITE_BINDIR
17784 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_SQLITE3 1
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17793 support_sqlite3=yes
17798 { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17804 { echo "$as_me:$LINENO: result: no" >&5
17805 echo "${ECHO_T}no" >&6; }
17817 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17818 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17820 # Check whether --with-sqlite was given.
17821 if test "${with_sqlite+set}" = set; then
17822 withval=$with_sqlite;
17823 if test "$withval" != "no"; then
17824 if test "$withval" = "yes"; then
17825 if test -f /usr/local/include/sqlite.h; then
17826 SQLITE_INCDIR=/usr/local/include
17827 if test -d /usr/local/lib64; then
17828 SQLITE_LIBDIR=/usr/local/lib64
17830 SQLITE_LIBDIR=/usr/local/lib
17832 SQLITE_BINDIR=/usr/local/bin
17833 elif test -f /usr/include/sqlite.h; then
17834 SQLITE_INCDIR=/usr/include
17835 if test -d /usr/lib64; then
17836 SQLITE_LIBDIR=/usr/lib64
17838 SQLITE_LIBDIR=/usr/lib
17840 SQLITE_BINDIR=/usr/bin
17841 elif test -f $prefix/include/sqlite.h; then
17842 SQLITE_INCDIR=$prefix/include
17843 if test -d $prefix/lib64; then
17844 SQLITE_LIBDIR=$prefix/lib64
17846 SQLITE_LIBDIR=$prefix/lib
17848 SQLITE_BINDIR=$prefix/bin
17850 { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17853 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17854 { (exit 1); exit 1; }; }
17857 if test -f $withval/sqlite.h; then
17858 SQLITE_INCDIR=$withval
17859 SQLITE_LIBDIR=$withval
17860 SQLITE_BINDIR=$withval
17861 elif test -f $withval/include/sqlite.h; then
17862 SQLITE_INCDIR=$withval/include
17863 if test -d $withval/lib64; then
17864 SQLITE_LIBDIR=$withval/lib64
17866 SQLITE_LIBDIR=$withval/lib
17868 SQLITE_BINDIR=$withval/bin
17870 { echo "$as_me:$LINENO: result: no" >&5
17871 echo "${ECHO_T}no" >&6; }
17872 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17873 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17874 { (exit 1); exit 1; }; }
17877 SQL_INCLUDE=-I$SQLITE_INCDIR
17878 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17879 SQL_BINDIR=$SQLITE_BINDIR
17880 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17882 cat >>confdefs.h <<\_ACEOF
17883 #define HAVE_SQLITE 1
17886 { echo "$as_me:$LINENO: result: yes" >&5
17887 echo "${ECHO_T}yes" >&6; }
17894 { echo "$as_me:$LINENO: result: no" >&5
17895 echo "${ECHO_T}no" >&6; }
17900 { echo "$as_me:$LINENO: result: no" >&5
17901 echo "${ECHO_T}no" >&6; }
17913 { echo "$as_me:$LINENO: checking for DBI support" >&5
17914 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17916 # Check whether --with-dbi was given.
17917 if test "${with_dbi+set}" = set; then
17919 if test "$withval" != "no"; then
17920 if test "$withval" = "yes"; then
17921 if test -f /usr/local/include/dbi/dbi.h; then
17922 DBI_INCDIR=/usr/local/dbi/include
17923 if test -d /usr/local/lib64; then
17924 DBI_LIBDIR=/usr/local/lib64
17926 DBI_LIBDIR=/usr/local/lib
17928 DBI_BINDIR=/usr/local/bin
17929 elif test -f /usr/include/dbi/dbi.h; then
17930 DBI_INCDIR=/usr/include
17931 if test -d /usr/lib64; then
17932 DBI_LIBDIR=/usr/lib64
17934 DBI_LIBDIR=/usr/lib
17936 DBI_BINDIR=/usr/bin
17937 elif test -f $prefix/include/dbi/dbi.h; then
17938 DBI_INCDIR=$prefix/include
17939 if test -d $prefix/lib64; then
17940 DBI_LIBDIR=$prefix/lib64
17942 DBI_LIBDIR=$prefix/lib
17944 DBI_BINDIR=$prefix/bin
17946 { echo "$as_me:$LINENO: result: no" >&5
17947 echo "${ECHO_T}no" >&6; }
17948 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17949 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17950 { (exit 1); exit 1; }; }
17952 if test -d /usr/local/lib/dbd; then
17953 DRIVERDIR=/usr/local/lib/dbd
17954 if test -d /usr/local/lib64/dbd; then
17955 DRIVERDIR=/usr/local/lib64/dbd
17957 DRIVERDIR=/usr/local/lib/dbd
17959 elif test -d /usr/lib/dbd; then
17960 DRIVERDIR=/usr/lib/dbd
17961 if test -d /usr/lib64/dbd; then
17962 DRIVERDIR=/usr/lib64/dbd
17964 DRIVERDIR=/usr/lib/dbd
17966 elif test -d $prefix/lib/dbd; then
17967 if test -d $prefix/lib64/dbd; then
17968 DRIVERDIR=$prefix/lib64/dbd
17970 DRIVERDIR=$prefix/lib/dbd
17973 { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17976 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17977 { (exit 1); exit 1; }; }
17980 if test -f $withval/dbi.h; then
17981 DBI_INCDIR=$withval
17982 DBI_LIBDIR=$withval
17983 DBI_BINDIR=$withval
17984 elif test -f $withval/include/dbi/dbi.h; then
17985 DBI_INCDIR=$withval/include
17986 if test -d $withval/lib64; then
17987 DBI_LIBDIR=$withval/lib64
17989 DBI_LIBDIR=$withval/lib
17991 DBI_BINDIR=$withval/bin
17993 { echo "$as_me:$LINENO: result: no" >&5
17994 echo "${ECHO_T}no" >&6; }
17995 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17996 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17997 { (exit 1); exit 1; }; }
17999 if test -d $withval/dbd; then
18000 DRIVERDIR=$withval/dbd
18001 elif test -d $withval/lib/; then
18002 if test -d $withval/lib64/dbd; then
18003 DRIVERDIR=$withval/lib64/dbd
18005 DRIVERDIR=$withval/lib/dbd
18008 { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18010 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18011 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18012 { (exit 1); exit 1; }; }
18015 SQL_INCLUDE=-I$DBI_INCDIR
18016 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18017 SQL_BINDIR=$DBI_BINDIR
18018 SQL_LIB=$DBI_LIBDIR/libdbi.a
18019 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18022 cat >>confdefs.h <<\_ACEOF
18026 { echo "$as_me:$LINENO: result: yes" >&5
18027 echo "${ECHO_T}yes" >&6; }
18035 { echo "$as_me:$LINENO: result: no" >&5
18036 echo "${ECHO_T}no" >&6; }
18041 { echo "$as_me:$LINENO: result: no" >&5
18042 echo "${ECHO_T}no" >&6; }
18057 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18058 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18060 # Check whether --with-dbi-driver was given.
18061 if test "${with_dbi_driver+set}" = set; then
18062 withval=$with_dbi_driver;
18063 if test "$withval" != "no"; then
18067 if test -f /usr/local/mysql/bin/mysql; then
18068 SQL_BINDIR=/usr/local/mysql/bin
18069 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18070 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18071 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18073 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18075 elif test -f /usr/bin/mysql; then
18076 SQL_BINDIR=/usr/bin
18077 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18078 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18079 SQL_LIBDIR=/usr/lib64/mysql
18080 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18081 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18082 SQL_LIBDIR=/usr/lib/mysql
18084 SQL_LIBDIR=/usr/lib
18086 elif test -f /usr/local/bin/mysql; then
18087 SQL_BINDIR=/usr/local/bin
18088 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18089 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18090 SQL_LIBDIR=/usr/local/lib64/mysql
18091 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18092 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18093 SQL_LIBDIR=/usr/local/lib/mysql
18095 SQL_LIBDIR=/usr/local/lib
18097 elif test -f $withval/bin/mysql; then
18098 SQL_BINDIR=$withval/bin
18099 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18100 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18101 SQL_LIBDIR=$withval/lib64/mysql
18102 elif test -f $withval/lib64/libmysqlclient_r.a \
18103 -o -f $withval/lib64/libmysqlclient_r.so; then
18104 SQL_LIBDIR=$withval/lib64
18105 elif test -f $withval/lib/libmysqlclient_r.a \
18106 -o -f $withval/lib/libmysqlclient_r.so; then
18107 SQL_LIBDIR=$withval/lib/
18109 SQL_LIBDIR=$withval/lib/mysql
18112 { echo "$as_me:$LINENO: result: no" >&5
18113 echo "${ECHO_T}no" >&6; }
18114 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18115 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18116 { (exit 1); exit 1; }; }
18118 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18121 db_prog="postgresql"
18122 PG_CONFIG=`which pg_config`
18123 if test -n "$PG_CONFIG"; then
18124 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18125 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18126 elif test -f /usr/local/bin/psql; then
18127 SQL_BINDIR=/usr/local/bin
18128 if test -d /usr/local/lib64; then
18129 SQL_LIBDIR=/usr/local/lib64
18131 SQL_LIBDIR=/usr/local/lib
18133 elif test -f /usr/bin/psql; then
18134 SQL_BINDIR=/usr/local/bin
18135 if test -d /usr/lib64/postgresql; then
18136 SQL_LIBDIR=/usr/lib64/postgresql
18137 elif test -d /usr/lib/postgresql; then
18138 SQL_LIBDIR=/usr/lib/postgresql
18139 elif test -d /usr/lib64; then
18140 SQL_LIBDIR=/usr/lib64
18142 SQL_LIBDIR=/usr/lib
18144 elif test -f $withval/bin/psql; then
18145 SQL_BINDIR=$withval/bin
18146 if test -d $withval/lib64; then
18147 SQL_LIBDIR=$withval/lib64
18149 SQL_LIBDIR=$withval/lib
18152 { echo "$as_me:$LINENO: result: no" >&5
18153 echo "${ECHO_T}no" >&6; }
18154 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18155 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18156 { (exit 1); exit 1; }; }
18158 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18161 { echo "$as_me:$LINENO: result: no" >&5
18162 echo "${ECHO_T}no" >&6; }
18163 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18164 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18165 { (exit 1); exit 1; }; }
18169 { echo "$as_me:$LINENO: result: yes" >&5
18170 echo "${ECHO_T}yes" >&6; }
18173 { echo "$as_me:$LINENO: result: no" >&5
18174 echo "${ECHO_T}no" >&6; }
18179 { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18193 # -------------------------------------------
18194 # enable batch attribute DB insert (default on)
18195 # -------------------------------------------
18196 support_batch_insert=no
18197 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18199 if test $pkg = 0; then
18200 support_batch_insert=yes
18201 # Check whether --enable-batch-insert was given.
18202 if test "${enable_batch_insert+set}" = set; then
18203 enableval=$enable_batch_insert; if test x$enableval = xno; then
18204 support_batch_insert=no
18206 support_batch_insert=yes
18212 # Check if postgresql support batch mode
18213 if test x$DB_TYPE = xpostgresql; then
18214 A=`nm $SQL_LIB | grep PQputCopyData`
18216 if test $pkg != 0; then
18217 support_batch_insert=no
18221 if test x$DB_TYPE = xdbi; then
18225 # Check for batch insert
18226 if test $DB_PROG = postgresql; then
18227 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18231 if test $DB_PROG = mysql; then
18232 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18236 if test $pkg = 0; then
18237 # Check whether --enable-batch-insert was given.
18238 if test "${enable_batch_insert+set}" = set; then
18239 enableval=$enable_batch_insert; if test x$enableval = xno; then
18240 support_batch_insert=no
18242 support_batch_insert=yes
18248 # If dbi was not chosen, let the comment in file
18254 if test $support_batch_insert = yes ; then
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_BATCH_FILE_INSERT 1
18263 cat >>confdefs.h <<\_ACEOF
18264 #define PROTOTYPES 1
18268 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18269 if test -z "$CCOPTS"; then
18270 CCOPTS='-g -O2 -Wall'
18278 largefile_support="no"
18280 # Check whether --enable-largefile was given.
18281 if test "${enable_largefile+set}" = set; then
18282 enableval=$enable_largefile;
18285 if test "$enable_largefile" != no; then
18286 if test -n "$ac_tool_prefix"; then
18287 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18288 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18291 if test "${ac_cv_prog_GETCONF+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 if test -n "$GETCONF"; then
18295 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18301 test -z "$as_dir" && as_dir=.
18302 for ac_exec_ext in '' $ac_executable_extensions; do
18303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18304 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18314 GETCONF=$ac_cv_prog_GETCONF
18315 if test -n "$GETCONF"; then
18316 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18317 echo "${ECHO_T}$GETCONF" >&6; }
18319 { echo "$as_me:$LINENO: result: no" >&5
18320 echo "${ECHO_T}no" >&6; }
18325 if test -z "$ac_cv_prog_GETCONF"; then
18326 ac_ct_GETCONF=$GETCONF
18327 # Extract the first word of "getconf", so it can be a program name with args.
18328 set dummy getconf; ac_word=$2
18329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18331 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 if test -n "$ac_ct_GETCONF"; then
18335 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18338 for as_dir in $PATH
18341 test -z "$as_dir" && as_dir=.
18342 for ac_exec_ext in '' $ac_executable_extensions; do
18343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18344 ac_cv_prog_ac_ct_GETCONF="getconf"
18345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18354 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18355 if test -n "$ac_ct_GETCONF"; then
18356 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18357 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18359 { echo "$as_me:$LINENO: result: no" >&5
18360 echo "${ECHO_T}no" >&6; }
18363 if test "x$ac_ct_GETCONF" = x; then
18366 case $cross_compiling:$ac_tool_warned in
18368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18369 whose name does not start with the host triplet. If you think this
18370 configuration is useful to you, please write to autoconf@gnu.org." >&5
18371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18372 whose name does not start with the host triplet. If you think this
18373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18374 ac_tool_warned=yes ;;
18376 GETCONF=$ac_ct_GETCONF
18379 GETCONF="$ac_cv_prog_GETCONF"
18382 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18383 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18384 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18388 ac_cv_sys_largefile_CFLAGS=no
18390 # IRIX 6.2 and later require cc -n32.
18391 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18392 if test "$GCC" != yes; then
18393 ac_cv_sys_largefile_CFLAGS=-n32
18396 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18412 rm -f conftest.$ac_objext conftest$ac_exeext
18413 if { (ac_try="$ac_link"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_link") 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest$ac_exeext &&
18429 $as_test_x conftest$ac_exeext; then
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_sys_largefile_CFLAGS=no
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439 conftest$ac_exeext conftest.$ac_ext
18444 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18445 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18446 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18447 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18448 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18452 ac_cv_sys_largefile_LDFLAGS=no
18456 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18457 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18458 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18459 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18460 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18464 ac_cv_sys_largefile_LIBS=no
18468 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18469 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18471 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18474 -D_FILE_OFFSET_BITS=*) ;;
18475 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18476 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18481 case "$CPPFLAGS" in
18482 '') CPPFLAGS="$ac_flag" ;;
18483 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18491 '') CFLAGS="$ac_flag" ;;
18492 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18497 case "$ac_cv_sys_largefile_LDFLAGS" in
18501 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18502 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18505 case "$ac_cv_sys_largefile_LIBS" in
18509 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18510 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18513 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18514 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_cv_sys_file_offset_bits=no
18519 ac_cv_sys_file_offset_bits=64
18520 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18522 -D_FILE_OFFSET_BITS)
18523 ac_cv_sys_file_offset_bits=1 ;;
18524 -D_FILE_OFFSET_BITS=*)
18525 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18530 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18531 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18532 if test "$ac_cv_sys_file_offset_bits" != no; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18539 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18540 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18541 if test "${ac_cv_sys_largefile_source+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 ac_cv_sys_largefile_source=no
18545 ac_cv_sys_largefile_source=1
18546 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18548 -D_LARGEFILE_SOURCE)
18549 ac_cv_sys_largefile_source=1 ;;
18550 -D_LARGEFILE_SOURCE=*)
18551 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18556 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18557 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18558 if test "$ac_cv_sys_largefile_source" != no; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18565 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18566 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18567 if test "${ac_cv_sys_large_files+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 ac_cv_sys_large_files=no
18571 ac_cv_sys_large_files=1
18572 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18575 ac_cv_sys_large_files=1 ;;
18577 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18582 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18583 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18584 if test "$ac_cv_sys_large_files" != no; then
18586 cat >>confdefs.h <<_ACEOF
18587 #define _LARGE_FILES $ac_cv_sys_large_files
18595 { echo "$as_me:$LINENO: checking for X" >&5
18596 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18599 # Check whether --with-x was given.
18600 if test "${with_x+set}" = set; then
18604 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18605 if test "x$with_x" = xno; then
18606 # The user explicitly disabled X.
18609 case $x_includes,$x_libraries in #(
18610 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18611 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18612 { (exit 1); exit 1; }; };; #(
18613 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 # One or both of the vars are not set, and there is no cached value.
18617 ac_x_includes=no ac_x_libraries=no
18618 rm -f -r conftest.dir
18619 if mkdir conftest.dir; then
18621 cat >Imakefile <<'_ACEOF'
18623 @echo incroot='${INCROOT}'
18625 @echo usrlibdir='${USRLIBDIR}'
18627 @echo libdir='${LIBDIR}'
18629 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18631 for ac_var in incroot usrlibdir libdir; do
18632 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18635 for ac_extension in a so sl; do
18636 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18637 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18638 ac_im_usrlibdir=$ac_im_libdir; break
18641 # Screen out bogus values from the imake configuration. They are
18642 # bogus both because they are the default anyway, and because
18643 # using them would break gcc on systems where it needs fixed includes.
18644 case $ac_im_incroot in
18645 /usr/include) ac_x_includes= ;;
18646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18648 case $ac_im_usrlibdir in
18649 /usr/lib | /lib) ;;
18650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18654 rm -f -r conftest.dir
18657 # Standard set of common directories for X headers.
18658 # Check X11 before X11Rn because it is often a symlink to the current release.
18670 /usr/local/X11/include
18671 /usr/local/X11R6/include
18672 /usr/local/X11R5/include
18673 /usr/local/X11R4/include
18675 /usr/local/include/X11
18676 /usr/local/include/X11R6
18677 /usr/local/include/X11R5
18678 /usr/local/include/X11R4
18682 /usr/XFree86/include/X11
18686 /usr/unsupported/include
18687 /usr/athena/include
18688 /usr/local/x11r5/include
18689 /usr/lpp/Xamples/include
18691 /usr/openwin/include
18692 /usr/openwin/share/include'
18694 if test "$ac_x_includes" = no; then
18695 # Guess where to find include files, by looking for Xlib.h.
18696 # First, try using that file with no special directory specified.
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18703 #include <X11/Xlib.h>
18705 if { (ac_try="$ac_cpp conftest.$ac_ext"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } >/dev/null && {
18718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18719 test ! -s conftest.err
18721 # We can compile using X headers with no special include directory.
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 for ac_dir in $ac_x_header_dirs; do
18728 if test -r "$ac_dir/X11/Xlib.h"; then
18729 ac_x_includes=$ac_dir
18735 rm -f conftest.err conftest.$ac_ext
18736 fi # $ac_x_includes = no
18738 if test "$ac_x_libraries" = no; then
18739 # Check for the libraries.
18740 # See if we find them without any special options.
18741 # Don't add to $LIBS permanently.
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 #include <X11/Xlib.h>
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18778 # We can link X programs with no special library path.
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18785 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18787 # Don't even attempt the hair of trying to link an X program!
18788 for ac_extension in a so sl; do
18789 if test -r "$ac_dir/libX11.$ac_extension"; then
18790 ac_x_libraries=$ac_dir
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18799 fi # $ac_x_libraries = no
18801 case $ac_x_includes,$ac_x_libraries in #(
18802 no,* | *,no | *\'*)
18803 # Didn't find X, or a directory has "'" in its name.
18804 ac_cv_have_x="have_x=no";; #(
18806 # Record where we found X for the cache.
18807 ac_cv_have_x="have_x=yes\
18808 ac_x_includes='$ac_x_includes'\
18809 ac_x_libraries='$ac_x_libraries'"
18815 eval "$ac_cv_have_x"
18818 if test "$have_x" != yes; then
18819 { echo "$as_me:$LINENO: result: $have_x" >&5
18820 echo "${ECHO_T}$have_x" >&6; }
18823 # If each of the values was on the command line, it overrides each guess.
18824 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18825 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18826 # Update the cache value to reflect the command line values.
18827 ac_cv_have_x="have_x=yes\
18828 ac_x_includes='$x_includes'\
18829 ac_x_libraries='$x_libraries'"
18830 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18831 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18834 if test "$no_x" = yes; then
18835 # Not all programs may use this symbol, but it does not hurt to define it.
18837 cat >>confdefs.h <<\_ACEOF
18838 #define X_DISPLAY_MISSING 1
18841 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18843 if test -n "$x_includes"; then
18844 X_CFLAGS="$X_CFLAGS -I$x_includes"
18847 # It would also be nice to do this for all -L options, not just this one.
18848 if test -n "$x_libraries"; then
18849 X_LIBS="$X_LIBS -L$x_libraries"
18850 # For Solaris; some versions of Sun CC require a space after -R and
18851 # others require no space. Words are not sufficient . . . .
18852 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18853 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18854 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18855 ac_xsave_c_werror_flag=$ac_c_werror_flag
18856 ac_c_werror_flag=yes
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_link") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest$ac_exeext &&
18889 $as_test_x conftest$ac_exeext; then
18890 { echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6; }
18892 X_LIBS="$X_LIBS -R$x_libraries"
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 LIBS="$ac_xsave_LIBS -R $x_libraries"
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest$ac_exeext &&
18930 $as_test_x conftest$ac_exeext; then
18931 { echo "$as_me:$LINENO: result: yes" >&5
18932 echo "${ECHO_T}yes" >&6; }
18933 X_LIBS="$X_LIBS -R $x_libraries"
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 { echo "$as_me:$LINENO: result: neither works" >&5
18939 echo "${ECHO_T}neither works" >&6; }
18942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18943 conftest$ac_exeext conftest.$ac_ext
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18948 ac_c_werror_flag=$ac_xsave_c_werror_flag
18949 LIBS=$ac_xsave_LIBS
18952 # Check for system-dependent libraries X programs must link with.
18953 # Do this before checking for the system-independent R6 libraries
18954 # (-lICE), since we may need -lsocket or whatever for X linking.
18956 if test "$ISC" = yes; then
18957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18959 # Martyn Johnson says this is needed for Ultrix, if the X
18960 # libraries were built with DECnet support. And Karl Berry says
18961 # the Alpha needs dnet_stub (dnet does not exist).
18962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18976 char XOpenDisplay ();
18980 return XOpenDisplay ();
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (ac_try="$ac_link"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_link") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest$ac_exeext &&
19002 $as_test_x conftest$ac_exeext; then
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19009 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19010 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 ac_check_lib_save_LIBS=$LIBS
19014 LIBS="-ldnet $LIBS"
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19032 return dnet_ntoa ();
19037 rm -f conftest.$ac_objext conftest$ac_exeext
19038 if { (ac_try="$ac_link"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_link") 2>conftest.er1
19046 grep -v '^ *+' conftest.er1 >conftest.err
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } && {
19051 test -z "$ac_c_werror_flag" ||
19052 test ! -s conftest.err
19053 } && test -s conftest$ac_exeext &&
19054 $as_test_x conftest$ac_exeext; then
19055 ac_cv_lib_dnet_dnet_ntoa=yes
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 ac_cv_lib_dnet_dnet_ntoa=no
19063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19064 conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19069 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19070 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19073 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19074 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19075 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-ldnet_stub $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19098 return dnet_ntoa ();
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest$ac_exeext &&
19120 $as_test_x conftest$ac_exeext; then
19121 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19123 echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19126 ac_cv_lib_dnet_stub_dnet_ntoa=no
19129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19130 conftest$ac_exeext conftest.$ac_ext
19131 LIBS=$ac_check_lib_save_LIBS
19133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19134 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19135 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19136 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 LIBS="$ac_xsave_LIBS"
19146 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19147 # to get the SysV transport functions.
19148 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19150 # The nsl library prevents programs from opening the X display
19151 # on Irix 5.2, according to T.E. Dickey.
19152 # The functions gethostbyname, getservbyname, and inet_addr are
19153 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19154 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19155 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_gethostbyname+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19167 #define gethostbyname innocuous_gethostbyname
19169 /* System header to define __stub macros and hopefully few prototypes,
19170 which can conflict with char gethostbyname (); below.
19171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172 <limits.h> exists even on freestanding compilers. */
19175 # include <limits.h>
19177 # include <assert.h>
19180 #undef gethostbyname
19182 /* Override any GCC internal prototype to avoid an error.
19183 Use char because int might match the return type of a GCC
19184 builtin and then its argument prototype would still apply. */
19188 char gethostbyname ();
19189 /* The GNU C library defines this for functions which it implements
19190 to always fail with ENOSYS. Some functions are actually named
19191 something starting with __ and the normal name is an alias. */
19192 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19199 return gethostbyname ();
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_link") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } && {
19218 test -z "$ac_c_werror_flag" ||
19219 test ! -s conftest.err
19220 } && test -s conftest$ac_exeext &&
19221 $as_test_x conftest$ac_exeext; then
19222 ac_cv_func_gethostbyname=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_func_gethostbyname=no
19230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19231 conftest$ac_exeext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19234 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19236 if test $ac_cv_func_gethostbyname = no; then
19237 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19238 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19239 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 ac_check_lib_save_LIBS=$LIBS
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19257 char gethostbyname ();
19261 return gethostbyname ();
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (ac_try="$ac_link"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_link") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest$ac_exeext &&
19283 $as_test_x conftest$ac_exeext; then
19284 ac_cv_lib_nsl_gethostbyname=yes
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ac_cv_lib_nsl_gethostbyname=no
19292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19293 conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_check_lib_save_LIBS
19296 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19297 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19298 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19302 if test $ac_cv_lib_nsl_gethostbyname = no; then
19303 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19304 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19305 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 ac_check_lib_save_LIBS=$LIBS
19310 cat >conftest.$ac_ext <<_ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19317 /* Override any GCC internal prototype to avoid an error.
19318 Use char because int might match the return type of a GCC
19319 builtin and then its argument prototype would still apply. */
19323 char gethostbyname ();
19327 return gethostbyname ();
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (ac_try="$ac_link"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_link") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest$ac_exeext &&
19349 $as_test_x conftest$ac_exeext; then
19350 ac_cv_lib_bsd_gethostbyname=yes
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 ac_cv_lib_bsd_gethostbyname=no
19358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19359 conftest$ac_exeext conftest.$ac_ext
19360 LIBS=$ac_check_lib_save_LIBS
19362 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19363 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19364 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19371 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19372 # socket/setsockopt and other routines are undefined under SCO ODT
19373 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19374 # on later versions), says Simon Leinen: it contains gethostby*
19375 # variants that don't use the name server (or something). -lsocket
19376 # must be given before -lnsl if both are needed. We assume that
19377 # if connect needs -lnsl, so does gethostbyname.
19378 { echo "$as_me:$LINENO: checking for connect" >&5
19379 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19380 if test "${ac_cv_func_connect+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19391 #define connect innocuous_connect
19393 /* System header to define __stub macros and hopefully few prototypes,
19394 which can conflict with char connect (); below.
19395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19396 <limits.h> exists even on freestanding compilers. */
19399 # include <limits.h>
19401 # include <assert.h>
19406 /* Override any GCC internal prototype to avoid an error.
19407 Use char because int might match the return type of a GCC
19408 builtin and then its argument prototype would still apply. */
19413 /* The GNU C library defines this for functions which it implements
19414 to always fail with ENOSYS. Some functions are actually named
19415 something starting with __ and the normal name is an alias. */
19416 #if defined __stub_connect || defined __stub___connect
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext &&
19445 $as_test_x conftest$ac_exeext; then
19446 ac_cv_func_connect=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_func_connect=no
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455 conftest$ac_exeext conftest.$ac_ext
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19458 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19460 if test $ac_cv_func_connect = no; then
19461 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19462 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19463 if test "${ac_cv_lib_socket_connect+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 ac_check_lib_save_LIBS=$LIBS
19467 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest$ac_exeext &&
19507 $as_test_x conftest$ac_exeext; then
19508 ac_cv_lib_socket_connect=yes
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_cv_lib_socket_connect=no
19516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19517 conftest$ac_exeext conftest.$ac_ext
19518 LIBS=$ac_check_lib_save_LIBS
19520 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19521 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19522 if test $ac_cv_lib_socket_connect = yes; then
19523 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19528 # Guillermo Gomez says -lposix is necessary on A/UX.
19529 { echo "$as_me:$LINENO: checking for remove" >&5
19530 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19531 if test "${ac_cv_func_remove+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19542 #define remove innocuous_remove
19544 /* System header to define __stub macros and hopefully few prototypes,
19545 which can conflict with char remove (); below.
19546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19547 <limits.h> exists even on freestanding compilers. */
19550 # include <limits.h>
19552 # include <assert.h>
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19564 /* The GNU C library defines this for functions which it implements
19565 to always fail with ENOSYS. Some functions are actually named
19566 something starting with __ and the normal name is an alias. */
19567 #if defined __stub_remove || defined __stub___remove
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 ac_cv_func_remove=yes
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_func_remove=no
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19608 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19609 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19611 if test $ac_cv_func_remove = no; then
19612 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19613 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_posix_remove+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lposix $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest$ac_exeext &&
19658 $as_test_x conftest$ac_exeext; then
19659 ac_cv_lib_posix_remove=yes
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_lib_posix_remove=no
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19671 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19672 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19673 if test $ac_cv_lib_posix_remove = yes; then
19674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19679 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19680 { echo "$as_me:$LINENO: checking for shmat" >&5
19681 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19682 if test "${ac_cv_func_shmat+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19693 #define shmat innocuous_shmat
19695 /* System header to define __stub macros and hopefully few prototypes,
19696 which can conflict with char shmat (); below.
19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698 <limits.h> exists even on freestanding compilers. */
19701 # include <limits.h>
19703 # include <assert.h>
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined __stub_shmat || defined __stub___shmat
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest$ac_exeext &&
19747 $as_test_x conftest$ac_exeext; then
19748 ac_cv_func_shmat=yes
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_cv_func_shmat=no
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757 conftest$ac_exeext conftest.$ac_ext
19759 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19760 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19762 if test $ac_cv_func_shmat = no; then
19763 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19764 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19765 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 ac_check_lib_save_LIBS=$LIBS
19770 cat >conftest.$ac_ext <<_ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19792 rm -f conftest.$ac_objext conftest$ac_exeext
19793 if { (ac_try="$ac_link"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_link") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest$ac_exeext &&
19809 $as_test_x conftest$ac_exeext; then
19810 ac_cv_lib_ipc_shmat=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_lib_ipc_shmat=no
19818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819 conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19822 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19823 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19824 if test $ac_cv_lib_ipc_shmat = yes; then
19825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19831 # Check for libraries that X11R6 Xt/Xaw programs need.
19832 ac_save_LDFLAGS=$LDFLAGS
19833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19835 # check for ICE first), but we must link in the order -lSM -lICE or
19836 # we get undefined symbols. So assume we have SM if we have ICE.
19837 # These have to be linked with before -lX11, unlike the other
19838 # libraries we check for below, so use a different variable.
19839 # John Interrante, Karl Berry
19840 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19841 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19842 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19854 /* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19860 char IceConnectionNumber ();
19864 return IceConnectionNumber ();
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_link") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest$ac_exeext &&
19886 $as_test_x conftest$ac_exeext; then
19887 ac_cv_lib_ICE_IceConnectionNumber=yes
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_lib_ICE_IceConnectionNumber=no
19895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19896 conftest$ac_exeext conftest.$ac_ext
19897 LIBS=$ac_check_lib_save_LIBS
19899 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19900 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19901 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19902 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19905 LDFLAGS=$ac_save_LDFLAGS
19973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 ac_res=`eval echo '${'$as_ac_Header'}'`
19981 { echo "$as_me:$LINENO: result: $ac_res" >&5
19982 echo "${ECHO_T}$ac_res" >&6; }
19984 # Is the header compilable?
19985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19987 cat >conftest.$ac_ext <<_ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 $ac_includes_default
19994 #include <$ac_header>
19996 rm -f conftest.$ac_objext
19997 if { (ac_try="$ac_compile"
19998 case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_compile") 2>conftest.er1
20005 grep -v '^ *+' conftest.er1 >conftest.err
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest.$ac_objext; then
20013 ac_header_compiler=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_header_compiler=no
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023 echo "${ECHO_T}$ac_header_compiler" >&6; }
20025 # Is the header present?
20026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 #include <$ac_header>
20036 if { (ac_try="$ac_cpp conftest.$ac_ext"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } >/dev/null && {
20049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20052 ac_header_preproc=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 ac_header_preproc=no
20060 rm -f conftest.err conftest.$ac_ext
20061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20062 echo "${ECHO_T}$ac_header_preproc" >&6; }
20064 # So? What about this header?
20065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20071 ac_header_preproc=yes
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 eval "$as_ac_Header=\$ac_header_preproc"
20096 ac_res=`eval echo '${'$as_ac_Header'}'`
20097 { echo "$as_me:$LINENO: result: $ac_res" >&5
20098 echo "${ECHO_T}$ac_res" >&6; }
20101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20102 cat >>confdefs.h <<_ACEOF
20103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20112 if test "${ac_cv_header_stdc+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 #include <stdlib.h>
20122 #include <stdarg.h>
20123 #include <string.h>
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 ac_cv_header_stdc=yes
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_header_stdc=no
20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 if test $ac_cv_header_stdc = yes; then
20162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <string.h>
20172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20173 $EGREP "memchr" >/dev/null 2>&1; then
20176 ac_cv_header_stdc=no
20182 if test $ac_cv_header_stdc = yes; then
20183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 #include <stdlib.h>
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194 $EGREP "free" >/dev/null 2>&1; then
20197 ac_cv_header_stdc=no
20203 if test $ac_cv_header_stdc = yes; then
20204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20205 if test "$cross_compiling" = yes; then
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20215 #include <stdlib.h>
20216 #if ((' ' & 0x0FF) == 0x020)
20217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20220 # define ISLOWER(c) \
20221 (('a' <= (c) && (c) <= 'i') \
20222 || ('j' <= (c) && (c) <= 'r') \
20223 || ('s' <= (c) && (c) <= 'z'))
20224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20232 for (i = 0; i < 256; i++)
20233 if (XOR (islower (i), ISLOWER (i))
20234 || toupper (i) != TOUPPER (i))
20239 rm -f conftest$ac_exeext
20240 if { (ac_try="$ac_link"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_link") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20250 { (case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_try") 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20261 echo "$as_me: program exited with status $ac_status" >&5
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ( exit $ac_status )
20266 ac_cv_header_stdc=no
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20275 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20276 if test $ac_cv_header_stdc = yes; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define STDC_HEADERS 1
20284 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20285 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20286 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <sys/types.h>
20299 return makedev(0, 0);
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (ac_try="$ac_link"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_link") 2>conftest.er1
20313 grep -v '^ *+' conftest.er1 >conftest.err
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && {
20318 test -z "$ac_c_werror_flag" ||
20319 test ! -s conftest.err
20320 } && test -s conftest$ac_exeext &&
20321 $as_test_x conftest$ac_exeext; then
20322 ac_cv_header_sys_types_h_makedev=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_cv_header_sys_types_h_makedev=no
20330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20331 conftest$ac_exeext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20335 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20337 if test $ac_cv_header_sys_types_h_makedev = no; then
20338 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20339 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20340 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20341 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20345 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20347 # Is the header compilable?
20348 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20349 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 $ac_includes_default
20357 #include <sys/mkdev.h>
20359 rm -f conftest.$ac_objext
20360 if { (ac_try="$ac_compile"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_compile") 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && {
20373 test -z "$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20375 } && test -s conftest.$ac_objext; then
20376 ac_header_compiler=yes
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_header_compiler=no
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20386 echo "${ECHO_T}$ac_header_compiler" >&6; }
20388 # Is the header present?
20389 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20390 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 #include <sys/mkdev.h>
20399 if { (ac_try="$ac_cpp conftest.$ac_ext"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20407 grep -v '^ *+' conftest.er1 >conftest.err
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } >/dev/null && {
20412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20415 ac_header_preproc=yes
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ac_header_preproc=no
20423 rm -f conftest.err conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20425 echo "${ECHO_T}$ac_header_preproc" >&6; }
20427 # So? What about this header?
20428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20430 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20431 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20433 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20434 ac_header_preproc=yes
20437 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20438 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20440 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20441 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20442 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20443 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20444 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20446 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20448 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20452 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20453 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20454 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20460 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20463 if test $ac_cv_header_sys_mkdev_h = yes; then
20465 cat >>confdefs.h <<\_ACEOF
20466 #define MAJOR_IN_MKDEV 1
20473 if test $ac_cv_header_sys_mkdev_h = no; then
20474 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20475 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20476 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20477 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20481 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20483 # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20485 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 $ac_includes_default
20493 #include <sys/sysmacros.h>
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.$ac_objext; then
20512 ac_header_compiler=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_compiler=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20526 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <sys/sysmacros.h>
20535 if { (ac_try="$ac_cpp conftest.$ac_ext"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null && {
20548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20551 ac_header_preproc=yes
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_header_preproc=no
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20563 # So? What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20566 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20567 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20569 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20570 ac_header_preproc=yes
20573 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20574 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20576 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20578 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20580 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20582 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20584 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20588 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20589 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20590 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20596 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20599 if test $ac_cv_header_sys_sysmacros_h = yes; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define MAJOR_IN_SYSMACROS 1
20616 ac_header_dirent=no
20617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20618 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20619 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20620 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <sys/types.h>
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_compile") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest.$ac_objext; then
20659 eval "$as_ac_Header=yes"
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 eval "$as_ac_Header=no"
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670 { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20673 cat >>confdefs.h <<_ACEOF
20674 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20677 ac_header_dirent=$ac_hdr; break
20681 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20682 if test $ac_header_dirent = dirent.h; then
20683 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20684 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20685 if test "${ac_cv_search_opendir+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_func_search_save_LIBS=$LIBS
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20696 /* Override any GCC internal prototype to avoid an error.
20697 Use char because int might match the return type of a GCC
20698 builtin and then its argument prototype would still apply. */
20711 for ac_lib in '' dir; do
20712 if test -z "$ac_lib"; then
20713 ac_res="none required"
20716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest$ac_exeext &&
20735 $as_test_x conftest$ac_exeext; then
20736 ac_cv_search_opendir=$ac_res
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20746 if test "${ac_cv_search_opendir+set}" = set; then
20750 if test "${ac_cv_search_opendir+set}" = set; then
20753 ac_cv_search_opendir=no
20755 rm conftest.$ac_ext
20756 LIBS=$ac_func_search_save_LIBS
20758 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20759 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20760 ac_res=$ac_cv_search_opendir
20761 if test "$ac_res" != no; then
20762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20767 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20768 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20769 if test "${ac_cv_search_opendir+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 ac_func_search_save_LIBS=$LIBS
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20795 for ac_lib in '' x; do
20796 if test -z "$ac_lib"; then
20797 ac_res="none required"
20800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_link") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest$ac_exeext &&
20819 $as_test_x conftest$ac_exeext; then
20820 ac_cv_search_opendir=$ac_res
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 if test "${ac_cv_search_opendir+set}" = set; then
20834 if test "${ac_cv_search_opendir+set}" = set; then
20837 ac_cv_search_opendir=no
20839 rm conftest.$ac_ext
20840 LIBS=$ac_func_search_save_LIBS
20842 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20843 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20844 ac_res=$ac_cv_search_opendir
20845 if test "$ac_res" != no; then
20846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20852 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20853 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20854 if test "${ac_cv_header_stat_broken+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 #include <sys/types.h>
20864 #include <sys/stat.h>
20866 #if defined S_ISBLK && defined S_IFDIR
20867 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20870 #if defined S_ISBLK && defined S_IFCHR
20871 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20874 #if defined S_ISLNK && defined S_IFREG
20875 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20878 #if defined S_ISSOCK && defined S_IFREG
20879 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_compile") 2>conftest.er1
20892 grep -v '^ *+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } && {
20897 test -z "$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 } && test -s conftest.$ac_objext; then
20900 ac_cv_header_stat_broken=no
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_header_stat_broken=yes
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20911 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20912 if test $ac_cv_header_stat_broken = yes; then
20914 cat >>confdefs.h <<\_ACEOF
20915 #define STAT_MACROS_BROKEN 1
20920 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20921 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20922 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 cat >conftest.$ac_ext <<_ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <sys/types.h>
20932 #include <sys/wait.h>
20933 #ifndef WEXITSTATUS
20934 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20945 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20967 ac_cv_header_sys_wait_h=yes
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_cv_header_sys_wait_h=no
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20978 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20979 if test $ac_cv_header_sys_wait_h = yes; then
20981 cat >>confdefs.h <<\_ACEOF
20982 #define HAVE_SYS_WAIT_H 1
20987 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20989 if test "${ac_cv_header_time+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 cat >conftest.$ac_ext <<_ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 #include <sys/types.h>
20999 #include <sys/time.h>
21005 if ((struct tm *) 0)
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21028 ac_cv_header_time=yes
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 ac_cv_header_time=no
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21039 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21040 if test $ac_cv_header_time = yes; then
21042 cat >>confdefs.h <<\_ACEOF
21043 #define TIME_WITH_SYS_TIME 1
21048 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21049 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21050 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21063 static struct stat ac_aggr;
21064 if (ac_aggr.st_blksize)
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21087 ac_cv_member_struct_stat_st_blksize=yes
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21102 static struct stat ac_aggr;
21103 if (sizeof ac_aggr.st_blksize)
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 ac_cv_member_struct_stat_st_blksize=yes
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 ac_cv_member_struct_stat_st_blksize=no
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21140 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21141 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21143 cat >>confdefs.h <<_ACEOF
21144 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ST_BLKSIZE 1
21155 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21156 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21157 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 $ac_includes_default
21170 static struct stat ac_aggr;
21171 if (ac_aggr.st_blocks)
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1 >conftest.err
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.$ac_objext; then
21194 ac_cv_member_struct_stat_st_blocks=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 $ac_includes_default
21209 static struct stat ac_aggr;
21210 if (sizeof ac_aggr.st_blocks)
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest.$ac_objext; then
21233 ac_cv_member_struct_stat_st_blocks=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_member_struct_stat_st_blocks=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21248 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21250 cat >>confdefs.h <<_ACEOF
21251 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_ST_BLOCKS 1
21260 case " $LIBOBJS " in
21261 *" fileblocks.$ac_objext "* ) ;;
21262 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21269 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21270 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21271 if test "${ac_cv_struct_tm+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <sys/types.h>
21287 int *p = &tm.tm_sec;
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
21310 ac_cv_struct_tm=time.h
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 ac_cv_struct_tm=sys/time.h
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21321 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21322 if test $ac_cv_struct_tm = sys/time.h; then
21324 cat >>confdefs.h <<\_ACEOF
21325 #define TM_IN_SYS_TIME 1
21330 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21331 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21332 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <sys/types.h>
21342 #include <$ac_cv_struct_tm>
21348 static struct tm ac_aggr;
21349 if (ac_aggr.tm_zone)
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_compile") 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && {
21369 test -z "$ac_c_werror_flag" ||
21370 test ! -s conftest.err
21371 } && test -s conftest.$ac_objext; then
21372 ac_cv_member_struct_tm_tm_zone=yes
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 cat >conftest.$ac_ext <<_ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21383 #include <sys/types.h>
21384 #include <$ac_cv_struct_tm>
21390 static struct tm ac_aggr;
21391 if (sizeof ac_aggr.tm_zone)
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_compile") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest.$ac_objext; then
21414 ac_cv_member_struct_tm_tm_zone=yes
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_cv_member_struct_tm_tm_zone=no
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21428 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21429 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21431 cat >>confdefs.h <<_ACEOF
21432 #define HAVE_STRUCT_TM_TM_ZONE 1
21438 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_TM_ZONE 1
21445 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21446 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21447 if test "${ac_cv_have_decl_tzname+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_compile") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest.$ac_objext; then
21486 ac_cv_have_decl_tzname=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_cv_have_decl_tzname=no
21494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21497 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21498 if test $ac_cv_have_decl_tzname = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define HAVE_DECL_TZNAME 1
21506 cat >>confdefs.h <<_ACEOF
21507 #define HAVE_DECL_TZNAME 0
21514 { echo "$as_me:$LINENO: checking for tzname" >&5
21515 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21516 if test "${ac_cv_var_tzname+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 cat >conftest.$ac_ext <<_ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21526 #if !HAVE_DECL_TZNAME
21527 extern char *tzname[];
21533 return tzname[0][0];
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (ac_try="$ac_link"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_link") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext &&
21555 $as_test_x conftest$ac_exeext; then
21556 ac_cv_var_tzname=yes
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_cv_var_tzname=no
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565 conftest$ac_exeext conftest.$ac_ext
21567 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21568 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21569 if test $ac_cv_var_tzname = yes; then
21571 cat >>confdefs.h <<\_ACEOF
21572 #define HAVE_TZNAME 1
21579 { echo "$as_me:$LINENO: checking for utime.h" >&5
21580 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21581 if test "${ba_cv_header_utime_h+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21591 #include <sys/types.h>
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.$ac_objext; then
21618 ba_cv_header_utime_h=yes
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ba_cv_header_utime_h=no
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21629 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21630 test $ba_cv_header_utime_h = yes &&
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_UTIME_H 1
21636 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21637 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21638 if test "${ba_cv_header_socklen_t+set}" = set; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21648 #include <sys/types.h>
21649 #include <sys/socket.h>
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ba_cv_header_socklen_t=yes
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ba_cv_header_socklen_t=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21686 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21687 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_SOCKLEN_T 1
21692 { echo "$as_me:$LINENO: checking for bigendian" >&5
21693 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21694 if test "${ba_cv_bigendian+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 if test "$cross_compiling" = yes; then
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21708 rm -f conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_link") 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21719 { (case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_try") 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ba_cv_bigendian=yes
21730 echo "$as_me: program exited with status $ac_status" >&5
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ( exit $ac_status )
21737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21742 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21743 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21744 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21745 #define HAVE_BIGENDIAN 1
21750 ac_cpp='$CXXCPP $CPPFLAGS'
21751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21756 { echo "$as_me:$LINENO: checking for typeof" >&5
21757 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21758 if test "${ba_cv_have_typeof+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 if test "$cross_compiling" = yes; then
21762 ba_cv_have_typeof=no
21764 cat >conftest.$ac_ext <<_ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 main(){char *a = 0; a = (typeof a)a;}
21772 rm -f conftest$ac_exeext
21773 if { (ac_try="$ac_link"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_link") 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ba_cv_have_typeof=yes
21794 echo "$as_me: program exited with status $ac_status" >&5
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ( exit $ac_status )
21799 ba_cv_have_typeof=no
21801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21807 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21808 test $ba_cv_have_typeof = yes &&
21809 cat >>confdefs.h <<\_ACEOF
21810 #define HAVE_TYPEOF 1
21814 ac_cpp='$CPP $CPPFLAGS'
21815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21822 if test "${ac_cv_c_const+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21835 /* FIXME: Include the comments suggested by Paul. */
21836 #ifndef __cplusplus
21837 /* Ultrix mips cc rejects this. */
21838 typedef int charset[2];
21840 /* SunOS 4.1.1 cc rejects this. */
21841 char const *const *pcpcc;
21843 /* NEC SVR4.0.2 mips cc rejects this. */
21844 struct point {int x, y;};
21845 static struct point const zero = {0,0};
21846 /* AIX XL C 1.02.0.0 rejects this.
21847 It does not let you subtract one const X* pointer from another in
21848 an arm of an if-expression whose if-part is not a constant
21850 const char *g = "string";
21851 pcpcc = &g + (g ? g-g : 0);
21852 /* HPUX 7.0 cc rejects these. */
21854 ppc = (char**) pcpcc;
21855 pcpcc = (char const *const *) ppc;
21856 { /* SCO 3.2v4 cc rejects this. */
21858 char const *s = 0 ? (char *) 0 : (char const *) 0;
21863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21864 int x[] = {25, 17};
21865 const int *foo = &x[0];
21868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21869 typedef const int *iptr;
21873 { /* AIX XL C 1.02.0.0 rejects this saying
21874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21875 struct s { int j; const int *ap[3]; };
21876 struct s *b; b->j = 5;
21878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21879 const int foo = 10;
21880 if (!foo) return 0;
21882 return !cs[0] && !zero.x;
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_compile") 2>conftest.er1
21898 grep -v '^ *+' conftest.er1 >conftest.err
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } && {
21903 test -z "$ac_c_werror_flag" ||
21904 test ! -s conftest.err
21905 } && test -s conftest.$ac_objext; then
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21918 if test $ac_cv_c_const = no; then
21920 cat >>confdefs.h <<\_ACEOF
21928 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21929 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21931 # The order of these tests is important.
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <sys/statvfs.h>
21939 #include <sys/fstyp.h>
21941 if { (ac_try="$ac_cpp conftest.$ac_ext"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21949 grep -v '^ *+' conftest.er1 >conftest.err
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } >/dev/null && {
21954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21957 cat >>confdefs.h <<\_ACEOF
21958 #define FSTYPE_STATVFS 1
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21968 rm -f conftest.err conftest.$ac_ext
21969 if test $fstype = no; then
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 #include <sys/statfs.h>
21977 #include <sys/fstyp.h>
21979 if { (ac_try="$ac_cpp conftest.$ac_ext"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } >/dev/null && {
21992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21995 cat >>confdefs.h <<\_ACEOF
21996 #define FSTYPE_USG_STATFS 1
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22006 rm -f conftest.err conftest.$ac_ext
22008 if test $fstype = no; then
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <sys/statfs.h>
22016 #include <sys/vmount.h>
22018 if { (ac_try="$ac_cpp conftest.$ac_ext"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } >/dev/null && {
22031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22032 test ! -s conftest.err
22034 cat >>confdefs.h <<\_ACEOF
22035 #define FSTYPE_AIX_STATFS 1
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22045 rm -f conftest.err conftest.$ac_ext
22047 if test $fstype = no; then
22048 cat >conftest.$ac_ext <<_ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22054 #include <mntent.h>
22056 if { (ac_try="$ac_cpp conftest.$ac_ext"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } >/dev/null && {
22069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22072 cat >>confdefs.h <<\_ACEOF
22073 #define FSTYPE_MNTENT 1
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22083 rm -f conftest.err conftest.$ac_ext
22085 if test $fstype = no; then
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 #include <sys/mount.h>
22095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22096 $EGREP "f_type;" >/dev/null 2>&1; then
22097 cat >>confdefs.h <<\_ACEOF
22098 #define FSTYPE_STATFS 1
22105 if test $fstype = no; then
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/mount.h>
22113 #include <sys/fs_types.h>
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } >/dev/null && {
22128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22131 cat >>confdefs.h <<\_ACEOF
22132 #define FSTYPE_GETMNT 1
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22142 rm -f conftest.err conftest.$ac_ext
22144 { echo "$as_me:$LINENO: result: $fstype" >&5
22145 echo "${ECHO_T}$fstype" >&6; }
22147 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22148 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22149 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22150 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22154 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22156 # Is the header compilable?
22157 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22158 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 $ac_includes_default
22166 #include <sys/statvfs.h>
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_compile") 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest.$ac_objext; then
22185 ac_header_compiler=yes
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 ac_header_compiler=no
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22195 echo "${ECHO_T}$ac_header_compiler" >&6; }
22197 # Is the header present?
22198 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22199 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 #include <sys/statvfs.h>
22208 if { (ac_try="$ac_cpp conftest.$ac_ext"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } >/dev/null && {
22221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22224 ac_header_preproc=yes
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ac_header_preproc=no
22232 rm -f conftest.err conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22234 echo "${ECHO_T}$ac_header_preproc" >&6; }
22236 # So? What about this header?
22237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22239 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22240 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22242 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22243 ac_header_preproc=yes
22246 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22251 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22253 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22255 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22257 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22261 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22262 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22263 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22269 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22272 if test $ac_cv_header_sys_statvfs_h = yes; then
22274 cat >>confdefs.h <<\_ACEOF
22275 #define HAVE_SYS_STATVFS_H 1
22282 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22283 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22284 if test "${ac_cv_type_signal+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 cat >conftest.$ac_ext <<_ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 #include <sys/types.h>
22294 #include <signal.h>
22299 return *(signal (0, 0)) (0) == 1;
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_compile") 2>conftest.er1
22313 grep -v '^ *+' conftest.er1 >conftest.err
22315 cat conftest.err >&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && {
22318 test -z "$ac_c_werror_flag" ||
22319 test ! -s conftest.err
22320 } && test -s conftest.$ac_objext; then
22321 ac_cv_type_signal=int
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_cv_type_signal=void
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22332 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22334 cat >>confdefs.h <<_ACEOF
22335 #define RETSIGTYPE $ac_cv_type_signal
22340 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22341 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22342 if test "${bash_cv_signal_vintage+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 #include <signal.h>
22358 struct sigaction sa;
22359 sigemptyset(&ss); sigsuspend(&ss);
22360 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22361 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_link") 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest$ac_exeext &&
22384 $as_test_x conftest$ac_exeext; then
22385 bash_cv_signal_vintage="posix"
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 #include <signal.h>
22402 int mask = sigmask(SIGINT);
22403 sigsetmask(mask); sigblock(mask); sigpause(mask);
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (ac_try="$ac_link"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_link") 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest$ac_exeext &&
22426 $as_test_x conftest$ac_exeext; then
22427 bash_cv_signal_vintage="4.2bsd"
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 #include <signal.h>
22441 RETSIGTYPE foo() { }
22446 int mask = sigmask(SIGINT);
22447 sigset(SIGINT, foo); sigrelse(SIGINT);
22448 sighold(SIGINT); sigpause(SIGINT);
22454 rm -f conftest.$ac_objext conftest$ac_exeext
22455 if { (ac_try="$ac_link"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_link") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest$ac_exeext &&
22471 $as_test_x conftest$ac_exeext; then
22472 bash_cv_signal_vintage="svr3"
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 bash_cv_signal_vintage="v7"
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482 conftest$ac_exeext conftest.$ac_ext
22486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22487 conftest$ac_exeext conftest.$ac_ext
22491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22492 conftest$ac_exeext conftest.$ac_ext
22496 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22497 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22498 if test "$bash_cv_signal_vintage" = "posix"; then
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_POSIX_SIGNALS 1
22503 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22504 cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_BSD_SIGNALS 1
22508 elif test "$bash_cv_signal_vintage" = "svr3"; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_USG_SIGHOLD 1
22515 { echo "$as_me:$LINENO: checking for mode_t" >&5
22516 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22517 if test "${ac_cv_type_mode_t+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 cat >conftest.$ac_ext <<_ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22527 typedef mode_t ac__type_new_;
22531 if ((ac__type_new_ *) 0)
22533 if (sizeof (ac__type_new_))
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_cv_type_mode_t=yes
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_cv_type_mode_t=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22567 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22568 if test $ac_cv_type_mode_t = yes; then
22572 cat >>confdefs.h <<_ACEOF
22578 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22579 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_uid_t+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 #include <sys/types.h>
22592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22593 $EGREP "uid_t" >/dev/null 2>&1; then
22594 ac_cv_type_uid_t=yes
22596 ac_cv_type_uid_t=no
22601 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22602 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22603 if test $ac_cv_type_uid_t = no; then
22605 cat >>confdefs.h <<\_ACEOF
22610 cat >>confdefs.h <<\_ACEOF
22616 { echo "$as_me:$LINENO: checking for size_t" >&5
22617 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22618 if test "${ac_cv_type_size_t+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 cat >conftest.$ac_ext <<_ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h. */
22627 $ac_includes_default
22628 typedef size_t ac__type_new_;
22632 if ((ac__type_new_ *) 0)
22634 if (sizeof (ac__type_new_))
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647 (eval "$ac_compile") 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && {
22654 test -z "$ac_c_werror_flag" ||
22655 test ! -s conftest.err
22656 } && test -s conftest.$ac_objext; then
22657 ac_cv_type_size_t=yes
22659 echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22662 ac_cv_type_size_t=no
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22668 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22669 if test $ac_cv_type_size_t = yes; then
22673 cat >>confdefs.h <<_ACEOF
22674 #define size_t unsigned int
22679 { echo "$as_me:$LINENO: checking for pid_t" >&5
22680 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22681 if test "${ac_cv_type_pid_t+set}" = set; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 cat >conftest.$ac_ext <<_ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22690 $ac_includes_default
22691 typedef pid_t ac__type_new_;
22695 if ((ac__type_new_ *) 0)
22697 if (sizeof (ac__type_new_))
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_compile") 2>conftest.er1
22712 grep -v '^ *+' conftest.er1 >conftest.err
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && {
22717 test -z "$ac_c_werror_flag" ||
22718 test ! -s conftest.err
22719 } && test -s conftest.$ac_objext; then
22720 ac_cv_type_pid_t=yes
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ac_cv_type_pid_t=no
22728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22730 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22731 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22732 if test $ac_cv_type_pid_t = yes; then
22736 cat >>confdefs.h <<_ACEOF
22742 { echo "$as_me:$LINENO: checking for off_t" >&5
22743 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22744 if test "${ac_cv_type_off_t+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 $ac_includes_default
22754 typedef off_t ac__type_new_;
22758 if ((ac__type_new_ *) 0)
22760 if (sizeof (ac__type_new_))
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22775 grep -v '^ *+' conftest.er1 >conftest.err
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } && {
22780 test -z "$ac_c_werror_flag" ||
22781 test ! -s conftest.err
22782 } && test -s conftest.$ac_objext; then
22783 ac_cv_type_off_t=yes
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 ac_cv_type_off_t=no
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22794 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22795 if test $ac_cv_type_off_t = yes; then
22799 cat >>confdefs.h <<_ACEOF
22800 #define off_t long int
22805 { echo "$as_me:$LINENO: checking for ino_t" >&5
22806 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22807 if test "${ac_cv_type_ino_t+set}" = set; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 cat >conftest.$ac_ext <<_ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 typedef ino_t ac__type_new_;
22821 if ((ac__type_new_ *) 0)
22823 if (sizeof (ac__type_new_))
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_compile") 2>conftest.er1
22838 grep -v '^ *+' conftest.er1 >conftest.err
22840 cat conftest.err >&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && {
22843 test -z "$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22845 } && test -s conftest.$ac_objext; then
22846 ac_cv_type_ino_t=yes
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 ac_cv_type_ino_t=no
22854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22857 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22858 if test $ac_cv_type_ino_t = yes; then
22862 cat >>confdefs.h <<_ACEOF
22863 #define ino_t unsigned long
22868 { echo "$as_me:$LINENO: checking for dev_t" >&5
22869 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22870 if test "${ac_cv_type_dev_t+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $ac_includes_default
22880 typedef dev_t ac__type_new_;
22884 if ((ac__type_new_ *) 0)
22886 if (sizeof (ac__type_new_))
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22909 ac_cv_type_dev_t=yes
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_cv_type_dev_t=no
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22920 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22921 if test $ac_cv_type_dev_t = yes; then
22925 cat >>confdefs.h <<_ACEOF
22926 #define dev_t unsigned long
22931 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22932 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22933 if test "${ac_cv_type_daddr_t+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 cat >conftest.$ac_ext <<_ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 $ac_includes_default
22943 typedef daddr_t ac__type_new_;
22947 if ((ac__type_new_ *) 0)
22949 if (sizeof (ac__type_new_))
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_compile") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest.$ac_objext; then
22972 ac_cv_type_daddr_t=yes
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_cv_type_daddr_t=no
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22983 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22984 if test $ac_cv_type_daddr_t = yes; then
22988 cat >>confdefs.h <<_ACEOF
22989 #define daddr_t long
22994 { echo "$as_me:$LINENO: checking for major_t" >&5
22995 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22996 if test "${ac_cv_type_major_t+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 typedef major_t ac__type_new_;
23010 if ((ac__type_new_ *) 0)
23012 if (sizeof (ac__type_new_))
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_compile") 2>conftest.er1
23027 grep -v '^ *+' conftest.er1 >conftest.err
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } && {
23032 test -z "$ac_c_werror_flag" ||
23033 test ! -s conftest.err
23034 } && test -s conftest.$ac_objext; then
23035 ac_cv_type_major_t=yes
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ac_cv_type_major_t=no
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23046 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23047 if test $ac_cv_type_major_t = yes; then
23051 cat >>confdefs.h <<_ACEOF
23052 #define major_t int
23057 { echo "$as_me:$LINENO: checking for minor_t" >&5
23058 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23059 if test "${ac_cv_type_minor_t+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 $ac_includes_default
23069 typedef minor_t ac__type_new_;
23073 if ((ac__type_new_ *) 0)
23075 if (sizeof (ac__type_new_))
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_compile") 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest.$ac_objext; then
23098 ac_cv_type_minor_t=yes
23100 echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23103 ac_cv_type_minor_t=no
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23109 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23110 if test $ac_cv_type_minor_t = yes; then
23114 cat >>confdefs.h <<_ACEOF
23115 #define minor_t int
23120 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23121 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23122 if test "${ac_cv_type_ssize_t+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 $ac_includes_default
23132 typedef ssize_t ac__type_new_;
23136 if ((ac__type_new_ *) 0)
23138 if (sizeof (ac__type_new_))
23144 rm -f conftest.$ac_objext
23145 if { (ac_try="$ac_compile"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151 (eval "$ac_compile") 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } && {
23158 test -z "$ac_c_werror_flag" ||
23159 test ! -s conftest.err
23160 } && test -s conftest.$ac_objext; then
23161 ac_cv_type_ssize_t=yes
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_cv_type_ssize_t=no
23169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23172 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23173 if test $ac_cv_type_ssize_t = yes; then
23177 cat >>confdefs.h <<_ACEOF
23178 #define ssize_t int
23183 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23184 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23185 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23198 static struct stat ac_aggr;
23199 if (ac_aggr.st_blocks)
23205 rm -f conftest.$ac_objext
23206 if { (ac_try="$ac_compile"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_compile") 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest.$ac_objext; then
23222 ac_cv_member_struct_stat_st_blocks=yes
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 $ac_includes_default
23237 static struct stat ac_aggr;
23238 if (sizeof ac_aggr.st_blocks)
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251 (eval "$ac_compile") 2>conftest.er1
23253 grep -v '^ *+' conftest.er1 >conftest.err
23255 cat conftest.err >&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } && {
23258 test -z "$ac_c_werror_flag" ||
23259 test ! -s conftest.err
23260 } && test -s conftest.$ac_objext; then
23261 ac_cv_member_struct_stat_st_blocks=yes
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23266 ac_cv_member_struct_stat_st_blocks=no
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23275 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23276 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23283 cat >>confdefs.h <<\_ACEOF
23284 #define HAVE_ST_BLOCKS 1
23288 case " $LIBOBJS " in
23289 *" fileblocks.$ac_objext "* ) ;;
23290 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23297 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23298 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23299 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 $ac_includes_default
23312 static struct stat ac_aggr;
23313 if (ac_aggr.st_rdev)
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_cv_member_struct_stat_st_rdev=yes
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 $ac_includes_default
23351 static struct stat ac_aggr;
23352 if (sizeof ac_aggr.st_rdev)
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_compile") 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest.$ac_objext; then
23375 ac_cv_member_struct_stat_st_rdev=yes
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_cv_member_struct_stat_st_rdev=no
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23389 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23390 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23392 cat >>confdefs.h <<_ACEOF
23393 #define HAVE_STRUCT_STAT_ST_RDEV 1
23397 cat >>confdefs.h <<\_ACEOF
23398 #define HAVE_ST_RDEV 1
23404 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23406 if test "${ac_cv_struct_tm+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 #include <sys/types.h>
23422 int *p = &tm.tm_sec;
23428 rm -f conftest.$ac_objext
23429 if { (ac_try="$ac_compile"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_compile") 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest.$ac_objext; then
23445 ac_cv_struct_tm=time.h
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_cv_struct_tm=sys/time.h
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23456 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23457 if test $ac_cv_struct_tm = sys/time.h; then
23459 cat >>confdefs.h <<\_ACEOF
23460 #define TM_IN_SYS_TIME 1
23465 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23466 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23467 if test "${ac_cv_c_const+set}" = set; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23480 /* FIXME: Include the comments suggested by Paul. */
23481 #ifndef __cplusplus
23482 /* Ultrix mips cc rejects this. */
23483 typedef int charset[2];
23485 /* SunOS 4.1.1 cc rejects this. */
23486 char const *const *pcpcc;
23488 /* NEC SVR4.0.2 mips cc rejects this. */
23489 struct point {int x, y;};
23490 static struct point const zero = {0,0};
23491 /* AIX XL C 1.02.0.0 rejects this.
23492 It does not let you subtract one const X* pointer from another in
23493 an arm of an if-expression whose if-part is not a constant
23495 const char *g = "string";
23496 pcpcc = &g + (g ? g-g : 0);
23497 /* HPUX 7.0 cc rejects these. */
23499 ppc = (char**) pcpcc;
23500 pcpcc = (char const *const *) ppc;
23501 { /* SCO 3.2v4 cc rejects this. */
23503 char const *s = 0 ? (char *) 0 : (char const *) 0;
23508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23509 int x[] = {25, 17};
23510 const int *foo = &x[0];
23513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23514 typedef const int *iptr;
23518 { /* AIX XL C 1.02.0.0 rejects this saying
23519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23520 struct s { int j; const int *ap[3]; };
23521 struct s *b; b->j = 5;
23523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23524 const int foo = 10;
23525 if (!foo) return 0;
23527 return !cs[0] && !zero.x;
23534 rm -f conftest.$ac_objext
23535 if { (ac_try="$ac_compile"
23536 case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_compile") 2>conftest.er1
23543 grep -v '^ *+' conftest.er1 >conftest.err
23545 cat conftest.err >&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); } && {
23548 test -z "$ac_c_werror_flag" ||
23549 test ! -s conftest.err
23550 } && test -s conftest.$ac_objext; then
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23562 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23563 if test $ac_cv_c_const = no; then
23565 cat >>confdefs.h <<\_ACEOF
23573 { echo "$as_me:$LINENO: checking for char" >&5
23574 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23575 if test "${ac_cv_type_char+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 $ac_includes_default
23585 typedef char ac__type_new_;
23589 if ((ac__type_new_ *) 0)
23591 if (sizeof (ac__type_new_))
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601 *) ac_try_echo=$ac_try;;
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest.$ac_objext; then
23614 ac_cv_type_char=yes
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23624 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23625 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23627 # The cast to long int works around a bug in the HP C Compiler
23628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23630 # This bug is HP SR number 8606223364.
23631 { echo "$as_me:$LINENO: checking size of char" >&5
23632 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23633 if test "${ac_cv_sizeof_char+set}" = set; then
23634 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 if test "$cross_compiling" = yes; then
23637 # Depending upon the size, compute the lo and hi bounds.
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 $ac_includes_default
23645 typedef char ac__type_sizeof_;
23649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_compile") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest.$ac_objext; then
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 typedef char ac__type_sizeof_;
23686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_compile") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest.$ac_objext; then
23710 ac_hi=$ac_mid; break
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 ac_lo=`expr $ac_mid + 1`
23716 if test $ac_lo -le $ac_mid; then
23720 ac_mid=`expr 2 '*' $ac_mid + 1`
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 cat >conftest.$ac_ext <<_ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23735 $ac_includes_default
23736 typedef char ac__type_sizeof_;
23740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_compile") 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest.$ac_objext; then
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23772 $ac_includes_default
23773 typedef char ac__type_sizeof_;
23777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_compile") 2>conftest.er1
23793 grep -v '^ *+' conftest.er1 >conftest.err
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest.$ac_objext; then
23801 ac_lo=$ac_mid; break
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23806 ac_hi=`expr '(' $ac_mid ')' - 1`
23807 if test $ac_mid -le $ac_hi; then
23811 ac_mid=`expr 2 '*' $ac_mid`
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23827 # Binary search between lo and hi bounds.
23828 while test "x$ac_lo" != "x$ac_hi"; do
23829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23830 cat >conftest.$ac_ext <<_ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23836 $ac_includes_default
23837 typedef char ac__type_sizeof_;
23841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23857 grep -v '^ *+' conftest.er1 >conftest.err
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 ac_lo=`expr '(' $ac_mid ')' + 1`
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 ?*) ac_cv_sizeof_char=$ac_lo;;
23877 '') if test "$ac_cv_type_char" = yes; then
23878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23879 See \`config.log' for more details." >&5
23880 echo "$as_me: error: cannot compute sizeof (char)
23881 See \`config.log' for more details." >&2;}
23882 { (exit 77); exit 77; }; }
23884 ac_cv_sizeof_char=0
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23895 typedef char ac__type_sizeof_;
23896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23899 #include <stdlib.h>
23904 FILE *f = fopen ("conftest.val", "w");
23907 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23909 long int i = longval ();
23910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23912 fprintf (f, "%ld\n", i);
23916 unsigned long int i = ulongval ();
23917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23919 fprintf (f, "%lu\n", i);
23921 return ferror (f) || fclose (f) != 0;
23927 rm -f conftest$ac_exeext
23928 if { (ac_try="$ac_link"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934 (eval "$ac_link") 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23938 { (case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943 (eval "$ac_try") 2>&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); }; }; then
23947 ac_cv_sizeof_char=`cat conftest.val`
23949 echo "$as_me: program exited with status $ac_status" >&5
23950 echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23953 ( exit $ac_status )
23954 if test "$ac_cv_type_char" = yes; then
23955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23956 See \`config.log' for more details." >&5
23957 echo "$as_me: error: cannot compute sizeof (char)
23958 See \`config.log' for more details." >&2;}
23959 { (exit 77); exit 77; }; }
23961 ac_cv_sizeof_char=0
23964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23969 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23973 cat >>confdefs.h <<_ACEOF
23974 #define SIZEOF_CHAR $ac_cv_sizeof_char
23978 { echo "$as_me:$LINENO: checking for short int" >&5
23979 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23980 if test "${ac_cv_type_short_int+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 cat >conftest.$ac_ext <<_ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 typedef short int ac__type_new_;
23994 if ((ac__type_new_ *) 0)
23996 if (sizeof (ac__type_new_))
24002 rm -f conftest.$ac_objext
24003 if { (ac_try="$ac_compile"
24004 case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_compile") 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest.$ac_objext; then
24019 ac_cv_type_short_int=yes
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ac_cv_type_short_int=no
24027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24030 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24032 # The cast to long int works around a bug in the HP C Compiler
24033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24035 # This bug is HP SR number 8606223364.
24036 { echo "$as_me:$LINENO: checking size of short int" >&5
24037 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24038 if test "${ac_cv_sizeof_short_int+set}" = set; then
24039 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 if test "$cross_compiling" = yes; then
24042 # Depending upon the size, compute the lo and hi bounds.
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 $ac_includes_default
24050 typedef short int ac__type_sizeof_;
24054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24061 rm -f conftest.$ac_objext
24062 if { (ac_try="$ac_compile"
24063 case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_compile") 2>conftest.er1
24070 grep -v '^ *+' conftest.er1 >conftest.err
24072 cat conftest.err >&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } && {
24075 test -z "$ac_c_werror_flag" ||
24076 test ! -s conftest.err
24077 } && test -s conftest.$ac_objext; then
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24087 typedef short int ac__type_sizeof_;
24091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 ac_hi=$ac_mid; break
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_lo=`expr $ac_mid + 1`
24121 if test $ac_lo -le $ac_mid; then
24125 ac_mid=`expr 2 '*' $ac_mid + 1`
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 $ac_includes_default
24141 typedef short int ac__type_sizeof_;
24145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24161 grep -v '^ *+' conftest.er1 >conftest.err
24163 cat conftest.err >&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 $ac_includes_default
24178 typedef short int ac__type_sizeof_;
24182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24189 rm -f conftest.$ac_objext
24190 if { (ac_try="$ac_compile"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24198 grep -v '^ *+' conftest.er1 >conftest.err
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_lo=$ac_mid; break
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24211 ac_hi=`expr '(' $ac_mid ')' - 1`
24212 if test $ac_mid -le $ac_hi; then
24216 ac_mid=`expr 2 '*' $ac_mid`
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222 echo "$as_me: failed program was:" >&5
24223 sed 's/^/| /' conftest.$ac_ext >&5
24228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24232 # Binary search between lo and hi bounds.
24233 while test "x$ac_lo" != "x$ac_hi"; do
24234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24235 cat >conftest.$ac_ext <<_ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h. */
24241 $ac_includes_default
24242 typedef short int ac__type_sizeof_;
24246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ac_lo=`expr '(' $ac_mid ')' + 1`
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24282 '') if test "$ac_cv_type_short_int" = yes; then
24283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24284 See \`config.log' for more details." >&5
24285 echo "$as_me: error: cannot compute sizeof (short int)
24286 See \`config.log' for more details." >&2;}
24287 { (exit 77); exit 77; }; }
24289 ac_cv_sizeof_short_int=0
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 $ac_includes_default
24300 typedef short int ac__type_sizeof_;
24301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24304 #include <stdlib.h>
24309 FILE *f = fopen ("conftest.val", "w");
24312 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24314 long int i = longval ();
24315 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24317 fprintf (f, "%ld\n", i);
24321 unsigned long int i = ulongval ();
24322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24324 fprintf (f, "%lu\n", i);
24326 return ferror (f) || fclose (f) != 0;
24332 rm -f conftest$ac_exeext
24333 if { (ac_try="$ac_link"
24334 case "(($ac_try" in
24335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336 *) ac_try_echo=$ac_try;;
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339 (eval "$ac_link") 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343 { (case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_try") 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; }; then
24352 ac_cv_sizeof_short_int=`cat conftest.val`
24354 echo "$as_me: program exited with status $ac_status" >&5
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ( exit $ac_status )
24359 if test "$ac_cv_type_short_int" = yes; then
24360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24361 See \`config.log' for more details." >&5
24362 echo "$as_me: error: cannot compute sizeof (short int)
24363 See \`config.log' for more details." >&2;}
24364 { (exit 77); exit 77; }; }
24366 ac_cv_sizeof_short_int=0
24369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24374 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24378 cat >>confdefs.h <<_ACEOF
24379 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24383 { echo "$as_me:$LINENO: checking for int" >&5
24384 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24385 if test "${ac_cv_type_int+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 cat >conftest.$ac_ext <<_ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 $ac_includes_default
24395 typedef int ac__type_new_;
24399 if ((ac__type_new_ *) 0)
24401 if (sizeof (ac__type_new_))
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24416 grep -v '^ *+' conftest.er1 >conftest.err
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24435 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24437 # The cast to long int works around a bug in the HP C Compiler
24438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24440 # This bug is HP SR number 8606223364.
24441 { echo "$as_me:$LINENO: checking size of int" >&5
24442 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24443 if test "${ac_cv_sizeof_int+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24446 if test "$cross_compiling" = yes; then
24447 # Depending upon the size, compute the lo and hi bounds.
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 $ac_includes_default
24455 typedef int ac__type_sizeof_;
24459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24492 typedef int ac__type_sizeof_;
24496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24520 ac_hi=$ac_mid; break
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_lo=`expr $ac_mid + 1`
24526 if test $ac_lo -le $ac_mid; then
24530 ac_mid=`expr 2 '*' $ac_mid + 1`
24533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536 echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 typedef int ac__type_sizeof_;
24550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_compile") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && {
24571 test -z "$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 } && test -s conftest.$ac_objext; then
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 $ac_includes_default
24583 typedef int ac__type_sizeof_;
24587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_compile") 2>conftest.er1
24603 grep -v '^ *+' conftest.er1 >conftest.err
24605 cat conftest.err >&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } && {
24608 test -z "$ac_c_werror_flag" ||
24609 test ! -s conftest.err
24610 } && test -s conftest.$ac_objext; then
24611 ac_lo=$ac_mid; break
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24616 ac_hi=`expr '(' $ac_mid ')' - 1`
24617 if test $ac_mid -le $ac_hi; then
24621 ac_mid=`expr 2 '*' $ac_mid`
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24627 echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 # Binary search between lo and hi bounds.
24638 while test "x$ac_lo" != "x$ac_hi"; do
24639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24640 cat >conftest.$ac_ext <<_ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h. */
24646 $ac_includes_default
24647 typedef int ac__type_sizeof_;
24651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest.$ac_objext; then
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_lo=`expr '(' $ac_mid ')' + 1`
24683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 ?*) ac_cv_sizeof_int=$ac_lo;;
24687 '') if test "$ac_cv_type_int" = yes; then
24688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24689 See \`config.log' for more details." >&5
24690 echo "$as_me: error: cannot compute sizeof (int)
24691 See \`config.log' for more details." >&2;}
24692 { (exit 77); exit 77; }; }
24698 cat >conftest.$ac_ext <<_ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 $ac_includes_default
24705 typedef int ac__type_sizeof_;
24706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24709 #include <stdlib.h>
24714 FILE *f = fopen ("conftest.val", "w");
24717 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24719 long int i = longval ();
24720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24722 fprintf (f, "%ld\n", i);
24726 unsigned long int i = ulongval ();
24727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24729 fprintf (f, "%lu\n", i);
24731 return ferror (f) || fclose (f) != 0;
24737 rm -f conftest$ac_exeext
24738 if { (ac_try="$ac_link"
24739 case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_link") 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24748 { (case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_try") 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
24757 ac_cv_sizeof_int=`cat conftest.val`
24759 echo "$as_me: program exited with status $ac_status" >&5
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24763 ( exit $ac_status )
24764 if test "$ac_cv_type_int" = yes; then
24765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24766 See \`config.log' for more details." >&5
24767 echo "$as_me: error: cannot compute sizeof (int)
24768 See \`config.log' for more details." >&2;}
24769 { (exit 77); exit 77; }; }
24774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24779 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24783 cat >>confdefs.h <<_ACEOF
24784 #define SIZEOF_INT $ac_cv_sizeof_int
24788 { echo "$as_me:$LINENO: checking for long int" >&5
24789 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24790 if test "${ac_cv_type_long_int+set}" = set; then
24791 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24799 $ac_includes_default
24800 typedef long int ac__type_new_;
24804 if ((ac__type_new_ *) 0)
24806 if (sizeof (ac__type_new_))
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_compile") 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } && {
24826 test -z "$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 } && test -s conftest.$ac_objext; then
24829 ac_cv_type_long_int=yes
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24834 ac_cv_type_long_int=no
24837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24840 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24842 # The cast to long int works around a bug in the HP C Compiler
24843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24845 # This bug is HP SR number 8606223364.
24846 { echo "$as_me:$LINENO: checking size of long int" >&5
24847 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24848 if test "${ac_cv_sizeof_long_int+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24851 if test "$cross_compiling" = yes; then
24852 # Depending upon the size, compute the lo and hi bounds.
24853 cat >conftest.$ac_ext <<_ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24859 $ac_includes_default
24860 typedef long int ac__type_sizeof_;
24864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest.$ac_objext; then
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24897 typedef long int ac__type_sizeof_;
24901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24908 rm -f conftest.$ac_objext
24909 if { (ac_try="$ac_compile"
24910 case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_compile") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest.$ac_objext; then
24925 ac_hi=$ac_mid; break
24927 echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24930 ac_lo=`expr $ac_mid + 1`
24931 if test $ac_lo -le $ac_mid; then
24935 ac_mid=`expr 2 '*' $ac_mid + 1`
24938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 cat >conftest.$ac_ext <<_ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24950 $ac_includes_default
24951 typedef long int ac__type_sizeof_;
24955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24962 rm -f conftest.$ac_objext
24963 if { (ac_try="$ac_compile"
24964 case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_compile") 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && {
24976 test -z "$ac_c_werror_flag" ||
24977 test ! -s conftest.err
24978 } && test -s conftest.$ac_objext; then
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 $ac_includes_default
24988 typedef long int ac__type_sizeof_;
24992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_compile") 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest.$ac_objext; then
25016 ac_lo=$ac_mid; break
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25021 ac_hi=`expr '(' $ac_mid ')' - 1`
25022 if test $ac_mid -le $ac_hi; then
25026 ac_mid=`expr 2 '*' $ac_mid`
25029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042 # Binary search between lo and hi bounds.
25043 while test "x$ac_lo" != "x$ac_hi"; do
25044 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25045 cat >conftest.$ac_ext <<_ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25051 $ac_includes_default
25052 typedef long int ac__type_sizeof_;
25056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 ac_lo=`expr '(' $ac_mid ')' + 1`
25088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25091 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25092 '') if test "$ac_cv_type_long_int" = yes; then
25093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25094 See \`config.log' for more details." >&5
25095 echo "$as_me: error: cannot compute sizeof (long int)
25096 See \`config.log' for more details." >&2;}
25097 { (exit 77); exit 77; }; }
25099 ac_cv_sizeof_long_int=0
25103 cat >conftest.$ac_ext <<_ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25110 typedef long int ac__type_sizeof_;
25111 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25112 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25114 #include <stdlib.h>
25119 FILE *f = fopen ("conftest.val", "w");
25122 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25124 long int i = longval ();
25125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25127 fprintf (f, "%ld\n", i);
25131 unsigned long int i = ulongval ();
25132 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25134 fprintf (f, "%lu\n", i);
25136 return ferror (f) || fclose (f) != 0;
25142 rm -f conftest$ac_exeext
25143 if { (ac_try="$ac_link"
25144 case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_link") 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25153 { (case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_try") 2>&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); }; }; then
25162 ac_cv_sizeof_long_int=`cat conftest.val`
25164 echo "$as_me: program exited with status $ac_status" >&5
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25168 ( exit $ac_status )
25169 if test "$ac_cv_type_long_int" = yes; then
25170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25171 See \`config.log' for more details." >&5
25172 echo "$as_me: error: cannot compute sizeof (long int)
25173 See \`config.log' for more details." >&2;}
25174 { (exit 77); exit 77; }; }
25176 ac_cv_sizeof_long_int=0
25179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25183 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25184 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25188 cat >>confdefs.h <<_ACEOF
25189 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25193 { echo "$as_me:$LINENO: checking for long long int" >&5
25194 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25195 if test "${ac_cv_type_long_long_int+set}" = set; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 cat >conftest.$ac_ext <<_ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h. */
25204 $ac_includes_default
25205 typedef long long int ac__type_new_;
25209 if ((ac__type_new_ *) 0)
25211 if (sizeof (ac__type_new_))
25217 rm -f conftest.$ac_objext
25218 if { (ac_try="$ac_compile"
25219 case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_compile") 2>conftest.er1
25226 grep -v '^ *+' conftest.er1 >conftest.err
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && {
25231 test -z "$ac_c_werror_flag" ||
25232 test ! -s conftest.err
25233 } && test -s conftest.$ac_objext; then
25234 ac_cv_type_long_long_int=yes
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ac_cv_type_long_long_int=no
25242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25245 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25247 # The cast to long int works around a bug in the HP C Compiler
25248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25250 # This bug is HP SR number 8606223364.
25251 { echo "$as_me:$LINENO: checking size of long long int" >&5
25252 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25253 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25256 if test "$cross_compiling" = yes; then
25257 # Depending upon the size, compute the lo and hi bounds.
25258 cat >conftest.$ac_ext <<_ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h. */
25264 $ac_includes_default
25265 typedef long long int ac__type_sizeof_;
25269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283 (eval "$ac_compile") 2>conftest.er1
25285 grep -v '^ *+' conftest.er1 >conftest.err
25287 cat conftest.err >&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && {
25290 test -z "$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 } && test -s conftest.$ac_objext; then
25295 cat >conftest.$ac_ext <<_ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 $ac_includes_default
25302 typedef long long int ac__type_sizeof_;
25306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 ac_hi=$ac_mid; break
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_lo=`expr $ac_mid + 1`
25336 if test $ac_lo -le $ac_mid; then
25340 ac_mid=`expr 2 '*' $ac_mid + 1`
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 cat >conftest.$ac_ext <<_ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h. */
25355 $ac_includes_default
25356 typedef long long int ac__type_sizeof_;
25360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25367 rm -f conftest.$ac_objext
25368 if { (ac_try="$ac_compile"
25369 case "(($ac_try" in
25370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25371 *) ac_try_echo=$ac_try;;
25373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25374 (eval "$ac_compile") 2>conftest.er1
25376 grep -v '^ *+' conftest.er1 >conftest.err
25378 cat conftest.err >&5
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } && {
25381 test -z "$ac_c_werror_flag" ||
25382 test ! -s conftest.err
25383 } && test -s conftest.$ac_objext; then
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 $ac_includes_default
25393 typedef long long int ac__type_sizeof_;
25397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25404 rm -f conftest.$ac_objext
25405 if { (ac_try="$ac_compile"
25406 case "(($ac_try" in
25407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408 *) ac_try_echo=$ac_try;;
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411 (eval "$ac_compile") 2>conftest.er1
25413 grep -v '^ *+' conftest.er1 >conftest.err
25415 cat conftest.err >&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } && {
25418 test -z "$ac_c_werror_flag" ||
25419 test ! -s conftest.err
25420 } && test -s conftest.$ac_objext; then
25421 ac_lo=$ac_mid; break
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25426 ac_hi=`expr '(' $ac_mid ')' - 1`
25427 if test $ac_mid -le $ac_hi; then
25431 ac_mid=`expr 2 '*' $ac_mid`
25434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437 echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 # Binary search between lo and hi bounds.
25448 while test "x$ac_lo" != "x$ac_hi"; do
25449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25450 cat >conftest.$ac_ext <<_ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 $ac_includes_default
25457 typedef long long int ac__type_sizeof_;
25461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_lo=`expr '(' $ac_mid ')' + 1`
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25497 '') if test "$ac_cv_type_long_long_int" = yes; then
25498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25499 See \`config.log' for more details." >&5
25500 echo "$as_me: error: cannot compute sizeof (long long int)
25501 See \`config.log' for more details." >&2;}
25502 { (exit 77); exit 77; }; }
25504 ac_cv_sizeof_long_long_int=0
25508 cat >conftest.$ac_ext <<_ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h. */
25514 $ac_includes_default
25515 typedef long long int ac__type_sizeof_;
25516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25519 #include <stdlib.h>
25524 FILE *f = fopen ("conftest.val", "w");
25527 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25529 long int i = longval ();
25530 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25532 fprintf (f, "%ld\n", i);
25536 unsigned long int i = ulongval ();
25537 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25539 fprintf (f, "%lu\n", i);
25541 return ferror (f) || fclose (f) != 0;
25547 rm -f conftest$ac_exeext
25548 if { (ac_try="$ac_link"
25549 case "(($ac_try" in
25550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551 *) ac_try_echo=$ac_try;;
25553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25554 (eval "$ac_link") 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25558 { (case "(($ac_try" in
25559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25560 *) ac_try_echo=$ac_try;;
25562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25563 (eval "$ac_try") 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_cv_sizeof_long_long_int=`cat conftest.val`
25569 echo "$as_me: program exited with status $ac_status" >&5
25570 echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 ( exit $ac_status )
25574 if test "$ac_cv_type_long_long_int" = yes; then
25575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25576 See \`config.log' for more details." >&5
25577 echo "$as_me: error: cannot compute sizeof (long long int)
25578 See \`config.log' for more details." >&2;}
25579 { (exit 77); exit 77; }; }
25581 ac_cv_sizeof_long_long_int=0
25584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25589 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25593 cat >>confdefs.h <<_ACEOF
25594 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25598 { echo "$as_me:$LINENO: checking for int *" >&5
25599 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25600 if test "${ac_cv_type_int_p+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25609 $ac_includes_default
25610 typedef int * ac__type_new_;
25614 if ((ac__type_new_ *) 0)
25616 if (sizeof (ac__type_new_))
25622 rm -f conftest.$ac_objext
25623 if { (ac_try="$ac_compile"
25624 case "(($ac_try" in
25625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626 *) ac_try_echo=$ac_try;;
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629 (eval "$ac_compile") 2>conftest.er1
25631 grep -v '^ *+' conftest.er1 >conftest.err
25633 cat conftest.err >&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); } && {
25636 test -z "$ac_c_werror_flag" ||
25637 test ! -s conftest.err
25638 } && test -s conftest.$ac_objext; then
25639 ac_cv_type_int_p=yes
25641 echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25644 ac_cv_type_int_p=no
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25650 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25652 # The cast to long int works around a bug in the HP C Compiler
25653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25655 # This bug is HP SR number 8606223364.
25656 { echo "$as_me:$LINENO: checking size of int *" >&5
25657 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25658 if test "${ac_cv_sizeof_int_p+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 if test "$cross_compiling" = yes; then
25662 # Depending upon the size, compute the lo and hi bounds.
25663 cat >conftest.$ac_ext <<_ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h. */
25669 $ac_includes_default
25670 typedef int * ac__type_sizeof_;
25674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688 (eval "$ac_compile") 2>conftest.er1
25690 grep -v '^ *+' conftest.er1 >conftest.err
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } && {
25695 test -z "$ac_c_werror_flag" ||
25696 test ! -s conftest.err
25697 } && test -s conftest.$ac_objext; then
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 typedef int * ac__type_sizeof_;
25711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_compile") 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } && {
25732 test -z "$ac_c_werror_flag" ||
25733 test ! -s conftest.err
25734 } && test -s conftest.$ac_objext; then
25735 ac_hi=$ac_mid; break
25737 echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25740 ac_lo=`expr $ac_mid + 1`
25741 if test $ac_lo -le $ac_mid; then
25745 ac_mid=`expr 2 '*' $ac_mid + 1`
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25754 cat >conftest.$ac_ext <<_ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h. */
25760 $ac_includes_default
25761 typedef int * ac__type_sizeof_;
25765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25772 rm -f conftest.$ac_objext
25773 if { (ac_try="$ac_compile"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_compile") 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } && {
25786 test -z "$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25788 } && test -s conftest.$ac_objext; then
25791 cat >conftest.$ac_ext <<_ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 $ac_includes_default
25798 typedef int * ac__type_sizeof_;
25802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_compile") 2>conftest.er1
25818 grep -v '^ *+' conftest.er1 >conftest.err
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } && {
25823 test -z "$ac_c_werror_flag" ||
25824 test ! -s conftest.err
25825 } && test -s conftest.$ac_objext; then
25826 ac_lo=$ac_mid; break
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_hi=`expr '(' $ac_mid ')' - 1`
25832 if test $ac_mid -le $ac_hi; then
25836 ac_mid=`expr 2 '*' $ac_mid`
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852 # Binary search between lo and hi bounds.
25853 while test "x$ac_lo" != "x$ac_hi"; do
25854 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25855 cat >conftest.$ac_ext <<_ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h. */
25861 $ac_includes_default
25862 typedef int * ac__type_sizeof_;
25866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25873 rm -f conftest.$ac_objext
25874 if { (ac_try="$ac_compile"
25875 case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880 (eval "$ac_compile") 2>conftest.er1
25882 grep -v '^ *+' conftest.er1 >conftest.err
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } && {
25887 test -z "$ac_c_werror_flag" ||
25888 test ! -s conftest.err
25889 } && test -s conftest.$ac_objext; then
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25895 ac_lo=`expr '(' $ac_mid ')' + 1`
25898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25902 '') if test "$ac_cv_type_int_p" = yes; then
25903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25904 See \`config.log' for more details." >&5
25905 echo "$as_me: error: cannot compute sizeof (int *)
25906 See \`config.log' for more details." >&2;}
25907 { (exit 77); exit 77; }; }
25909 ac_cv_sizeof_int_p=0
25913 cat >conftest.$ac_ext <<_ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919 $ac_includes_default
25920 typedef int * ac__type_sizeof_;
25921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25924 #include <stdlib.h>
25929 FILE *f = fopen ("conftest.val", "w");
25932 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25934 long int i = longval ();
25935 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25937 fprintf (f, "%ld\n", i);
25941 unsigned long int i = ulongval ();
25942 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25944 fprintf (f, "%lu\n", i);
25946 return ferror (f) || fclose (f) != 0;
25952 rm -f conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959 (eval "$ac_link") 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963 { (case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_try") 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_cv_sizeof_int_p=`cat conftest.val`
25974 echo "$as_me: program exited with status $ac_status" >&5
25975 echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25978 ( exit $ac_status )
25979 if test "$ac_cv_type_int_p" = yes; then
25980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25981 See \`config.log' for more details." >&5
25982 echo "$as_me: error: cannot compute sizeof (int *)
25983 See \`config.log' for more details." >&2;}
25984 { (exit 77); exit 77; }; }
25986 ac_cv_sizeof_int_p=0
25989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25994 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25998 cat >>confdefs.h <<_ACEOF
25999 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26004 # Check for sys/types.h types
26005 { echo "$as_me:$LINENO: checking for u_int type" >&5
26006 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26007 if test "${ac_cv_have_u_int+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26011 cat >conftest.$ac_ext <<_ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26017 #include <sys/types.h>
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_compile") 2>conftest.er1
26035 grep -v '^ *+' conftest.er1 >conftest.err
26037 cat conftest.err >&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } && {
26040 test -z "$ac_c_werror_flag" ||
26041 test ! -s conftest.err
26042 } && test -s conftest.$ac_objext; then
26043 ac_cv_have_u_int="yes"
26045 echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_cv_have_u_int="no"
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26055 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26056 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26057 if test "x$ac_cv_have_u_int" = "xyes" ; then
26058 cat >>confdefs.h <<\_ACEOF
26059 #define HAVE_U_INT 1
26065 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26066 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26067 if test "${ac_cv_have_intmax_t+set}" = set; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <sys/types.h>
26086 rm -f conftest.$ac_objext
26087 if { (ac_try="$ac_compile"
26088 case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093 (eval "$ac_compile") 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest.$ac_objext; then
26103 ac_cv_have_intmax_t="yes"
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26109 cat >conftest.$ac_ext <<_ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 #include <stdint.h>
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_compile") 2>conftest.er1
26133 grep -v '^ *+' conftest.er1 >conftest.err
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } && {
26138 test -z "$ac_c_werror_flag" ||
26139 test ! -s conftest.err
26140 } && test -s conftest.$ac_objext; then
26141 ac_cv_have_intmax_t="yes"
26143 echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26146 ac_cv_have_intmax_t="no"
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26160 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26161 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26162 cat >>confdefs.h <<\_ACEOF
26163 #define HAVE_INTMAX_T 1
26170 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26171 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26172 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 cat >conftest.$ac_ext <<_ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 #include <sys/types.h>
26186 u_intmax_t a; a = 1;
26191 rm -f conftest.$ac_objext
26192 if { (ac_try="$ac_compile"
26193 case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26198 (eval "$ac_compile") 2>conftest.er1
26200 grep -v '^ *+' conftest.er1 >conftest.err
26202 cat conftest.err >&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } && {
26205 test -z "$ac_c_werror_flag" ||
26206 test ! -s conftest.err
26207 } && test -s conftest.$ac_objext; then
26208 ac_cv_have_u_intmax_t="yes"
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 #include <stdint.h>
26224 u_intmax_t a; a = 1;
26229 rm -f conftest.$ac_objext
26230 if { (ac_try="$ac_compile"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_compile") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest.$ac_objext; then
26246 ac_cv_have_u_intmax_t="yes"
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 ac_cv_have_u_intmax_t="no"
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26264 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26265 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_U_INTMAX_T 1
26274 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26275 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26276 if test "${ac_cv_have_intxx_t+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26280 cat >conftest.$ac_ext <<_ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 #include <sys/types.h>
26290 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26295 rm -f conftest.$ac_objext
26296 if { (ac_try="$ac_compile"
26297 case "(($ac_try" in
26298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299 *) ac_try_echo=$ac_try;;
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302 (eval "$ac_compile") 2>conftest.er1
26304 grep -v '^ *+' conftest.er1 >conftest.err
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } && {
26309 test -z "$ac_c_werror_flag" ||
26310 test ! -s conftest.err
26311 } && test -s conftest.$ac_objext; then
26312 ac_cv_have_intxx_t="yes"
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_cv_have_intxx_t="no"
26321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26325 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26326 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26327 cat >>confdefs.h <<\_ACEOF
26328 #define HAVE_INTXX_T 1
26334 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26335 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26336 if test "${ac_cv_have_int64_t+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 #include <sys/types.h>
26355 rm -f conftest.$ac_objext
26356 if { (ac_try="$ac_compile"
26357 case "(($ac_try" in
26358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359 *) ac_try_echo=$ac_try;;
26361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26362 (eval "$ac_compile") 2>conftest.er1
26364 grep -v '^ *+' conftest.er1 >conftest.err
26366 cat conftest.err >&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } && {
26369 test -z "$ac_c_werror_flag" ||
26370 test ! -s conftest.err
26371 } && test -s conftest.$ac_objext; then
26372 ac_cv_have_int64_t="yes"
26374 echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26377 ac_cv_have_int64_t="no"
26381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26384 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26385 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26386 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26387 cat >>confdefs.h <<\_ACEOF
26388 #define HAVE_INT64_T 1
26394 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26395 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26396 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26397 echo $ECHO_N "(cached) $ECHO_C" >&6
26400 cat >conftest.$ac_ext <<_ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26406 #include <sys/types.h>
26410 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26415 rm -f conftest.$ac_objext
26416 if { (ac_try="$ac_compile"
26417 case "(($ac_try" in
26418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419 *) ac_try_echo=$ac_try;;
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_compile") 2>conftest.er1
26424 grep -v '^ *+' conftest.er1 >conftest.err
26426 cat conftest.err >&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } && {
26429 test -z "$ac_c_werror_flag" ||
26430 test ! -s conftest.err
26431 } && test -s conftest.$ac_objext; then
26432 ac_cv_have_u_intxx_t="yes"
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26437 ac_cv_have_u_intxx_t="no"
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26444 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26445 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26446 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26447 cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_U_INTXX_T 1
26454 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26455 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26456 if test "${ac_cv_have_u_int64_t+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26460 cat >conftest.$ac_ext <<_ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 #include <sys/types.h>
26470 u_int64_t a; a = 1;
26475 rm -f conftest.$ac_objext
26476 if { (ac_try="$ac_compile"
26477 case "(($ac_try" in
26478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479 *) ac_try_echo=$ac_try;;
26481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26482 (eval "$ac_compile") 2>conftest.er1
26484 grep -v '^ *+' conftest.er1 >conftest.err
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } && {
26489 test -z "$ac_c_werror_flag" ||
26490 test ! -s conftest.err
26491 } && test -s conftest.$ac_objext; then
26492 ac_cv_have_u_int64_t="yes"
26494 echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 ac_cv_have_u_int64_t="no"
26501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26505 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26506 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26507 cat >>confdefs.h <<\_ACEOF
26508 #define HAVE_U_INT64_T 1
26514 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26515 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26517 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26518 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 #include <sys/bitypes.h>
26529 int8_t a; int16_t b; int32_t c;
26530 u_int8_t e; u_int16_t f; u_int32_t g;
26531 a = b = c = e = f = g = 1;
26536 rm -f conftest.$ac_objext
26537 if { (ac_try="$ac_compile"
26538 case "(($ac_try" in
26539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540 *) ac_try_echo=$ac_try;;
26542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26543 (eval "$ac_compile") 2>conftest.er1
26545 grep -v '^ *+' conftest.er1 >conftest.err
26547 cat conftest.err >&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } && {
26550 test -z "$ac_c_werror_flag" ||
26551 test ! -s conftest.err
26552 } && test -s conftest.$ac_objext; then
26553 cat >>confdefs.h <<\_ACEOF
26554 #define HAVE_U_INTXX_T 1
26557 cat >>confdefs.h <<\_ACEOF
26558 #define HAVE_INTXX_T 1
26561 cat >>confdefs.h <<\_ACEOF
26562 #define HAVE_SYS_BITYPES_H 1
26565 { echo "$as_me:$LINENO: result: yes" >&5
26566 echo "${ECHO_T}yes" >&6; }
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 { echo "$as_me:$LINENO: result: no" >&5
26572 echo "${ECHO_T}no" >&6; }
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 if test -z "$have_u_intxx_t" ; then
26580 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26581 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26582 if test "${ac_cv_have_uintxx_t+set}" = set; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 cat >conftest.$ac_ext <<_ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 #include <sys/types.h>
26596 uint8_t a; uint16_t b;
26597 uint32_t c; a = b = c = 1;
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606 *) ac_try_echo=$ac_try;;
26608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26609 (eval "$ac_compile") 2>conftest.er1
26611 grep -v '^ *+' conftest.er1 >conftest.err
26613 cat conftest.err >&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); } && {
26616 test -z "$ac_c_werror_flag" ||
26617 test ! -s conftest.err
26618 } && test -s conftest.$ac_objext; then
26619 ac_cv_have_uintxx_t="yes"
26621 echo "$as_me: failed program was:" >&5
26622 sed 's/^/| /' conftest.$ac_ext >&5
26624 ac_cv_have_uintxx_t="no"
26628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26631 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26632 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26633 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26634 cat >>confdefs.h <<\_ACEOF
26635 #define HAVE_UINTXX_T 1
26641 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26642 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26644 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26645 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26646 cat >conftest.$ac_ext <<_ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26652 #include <sys/bitypes.h>
26656 int64_t a; u_int64_t b;
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666 *) ac_try_echo=$ac_try;;
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669 (eval "$ac_compile") 2>conftest.er1
26671 grep -v '^ *+' conftest.er1 >conftest.err
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } && {
26676 test -z "$ac_c_werror_flag" ||
26677 test ! -s conftest.err
26678 } && test -s conftest.$ac_objext; then
26679 cat >>confdefs.h <<\_ACEOF
26680 #define HAVE_U_INT64_T 1
26683 cat >>confdefs.h <<\_ACEOF
26684 #define HAVE_INT64_T 1
26687 { echo "$as_me:$LINENO: result: yes" >&5
26688 echo "${ECHO_T}yes" >&6; }
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26693 { echo "$as_me:$LINENO: result: no" >&5
26694 echo "${ECHO_T}no" >&6; }
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26701 if (test -z "$have_uintxx_t" && \
26702 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26704 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26705 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26706 cat >conftest.$ac_ext <<_ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h. */
26712 #include <sys/bitypes.h>
26716 uint8_t a; uint16_t b;
26717 uint32_t c; a = b = c = 1;
26722 rm -f conftest.$ac_objext
26723 if { (ac_try="$ac_compile"
26724 case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_compile") 2>conftest.er1
26731 grep -v '^ *+' conftest.er1 >conftest.err
26733 cat conftest.err >&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } && {
26736 test -z "$ac_c_werror_flag" ||
26737 test ! -s conftest.err
26738 } && test -s conftest.$ac_objext; then
26739 cat >>confdefs.h <<\_ACEOF
26740 #define HAVE_UINTXX_T 1
26743 { echo "$as_me:$LINENO: result: yes" >&5
26744 echo "${ECHO_T}yes" >&6; }
26746 echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26749 { echo "$as_me:$LINENO: result: no" >&5
26750 echo "${ECHO_T}no" >&6; }
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26804 #define $ac_func innocuous_$ac_func
26806 /* System header to define __stub macros and hopefully few prototypes,
26807 which can conflict with char $ac_func (); below.
26808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809 <limits.h> exists even on freestanding compilers. */
26812 # include <limits.h>
26814 # include <assert.h>
26819 /* Override any GCC internal prototype to avoid an error.
26820 Use char because int might match the return type of a GCC
26821 builtin and then its argument prototype would still apply. */
26826 /* The GNU C library defines this for functions which it implements
26827 to always fail with ENOSYS. Some functions are actually named
26828 something starting with __ and the normal name is an alias. */
26829 #if defined __stub_$ac_func || defined __stub___$ac_func
26836 return $ac_func ();
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848 (eval "$ac_link") 2>conftest.er1
26850 grep -v '^ *+' conftest.er1 >conftest.err
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } && {
26855 test -z "$ac_c_werror_flag" ||
26856 test ! -s conftest.err
26857 } && test -s conftest$ac_exeext &&
26858 $as_test_x conftest$ac_exeext; then
26859 eval "$as_ac_var=yes"
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 eval "$as_ac_var=no"
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26868 conftest$ac_exeext conftest.$ac_ext
26870 ac_res=`eval echo '${'$as_ac_var'}'`
26871 { echo "$as_me:$LINENO: result: $ac_res" >&5
26872 echo "${ECHO_T}$ac_res" >&6; }
26873 if test `eval echo '${'$as_ac_var'}'` = yes; then
26874 cat >>confdefs.h <<_ACEOF
26875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26879 echo 'configure: cannot find needed function.'; exit 1
26886 for ac_func in fchdir
26888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26892 echo $ECHO_N "(cached) $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26902 #define $ac_func innocuous_$ac_func
26904 /* System header to define __stub macros and hopefully few prototypes,
26905 which can conflict with char $ac_func (); below.
26906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26907 <limits.h> exists even on freestanding compilers. */
26910 # include <limits.h>
26912 # include <assert.h>
26917 /* Override any GCC internal prototype to avoid an error.
26918 Use char because int might match the return type of a GCC
26919 builtin and then its argument prototype would still apply. */
26924 /* The GNU C library defines this for functions which it implements
26925 to always fail with ENOSYS. Some functions are actually named
26926 something starting with __ and the normal name is an alias. */
26927 #if defined __stub_$ac_func || defined __stub___$ac_func
26934 return $ac_func ();
26939 rm -f conftest.$ac_objext conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_link") 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } && {
26953 test -z "$ac_c_werror_flag" ||
26954 test ! -s conftest.err
26955 } && test -s conftest$ac_exeext &&
26956 $as_test_x conftest$ac_exeext; then
26957 eval "$as_ac_var=yes"
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 eval "$as_ac_var=no"
26965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26966 conftest$ac_exeext conftest.$ac_ext
26968 ac_res=`eval echo '${'$as_ac_var'}'`
26969 { echo "$as_me:$LINENO: result: $ac_res" >&5
26970 echo "${ECHO_T}$ac_res" >&6; }
26971 if test `eval echo '${'$as_ac_var'}'` = yes; then
26972 cat >>confdefs.h <<_ACEOF
26973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26975 cat >>confdefs.h <<\_ACEOF
26976 #define HAVE_FCHDIR 1
26983 for ac_func in strtoll
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26989 echo $ECHO_N "(cached) $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26999 #define $ac_func innocuous_$ac_func
27001 /* System header to define __stub macros and hopefully few prototypes,
27002 which can conflict with char $ac_func (); below.
27003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004 <limits.h> exists even on freestanding compilers. */
27007 # include <limits.h>
27009 # include <assert.h>
27014 /* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27021 /* The GNU C library defines this for functions which it implements
27022 to always fail with ENOSYS. Some functions are actually named
27023 something starting with __ and the normal name is an alias. */
27024 #if defined __stub_$ac_func || defined __stub___$ac_func
27031 return $ac_func ();
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (ac_try="$ac_link"
27038 case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_link") 2>conftest.er1
27045 grep -v '^ *+' conftest.er1 >conftest.err
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } && {
27050 test -z "$ac_c_werror_flag" ||
27051 test ! -s conftest.err
27052 } && test -s conftest$ac_exeext &&
27053 $as_test_x conftest$ac_exeext; then
27054 eval "$as_ac_var=yes"
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27059 eval "$as_ac_var=no"
27062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27063 conftest$ac_exeext conftest.$ac_ext
27065 ac_res=`eval echo '${'$as_ac_var'}'`
27066 { echo "$as_me:$LINENO: result: $ac_res" >&5
27067 echo "${ECHO_T}$ac_res" >&6; }
27068 if test `eval echo '${'$as_ac_var'}'` = yes; then
27069 cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27072 cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_STRTOLL 1
27080 for ac_func in posix_fadvise
27082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27096 #define $ac_func innocuous_$ac_func
27098 /* System header to define __stub macros and hopefully few prototypes,
27099 which can conflict with char $ac_func (); below.
27100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27101 <limits.h> exists even on freestanding compilers. */
27104 # include <limits.h>
27106 # include <assert.h>
27111 /* Override any GCC internal prototype to avoid an error.
27112 Use char because int might match the return type of a GCC
27113 builtin and then its argument prototype would still apply. */
27118 /* The GNU C library defines this for functions which it implements
27119 to always fail with ENOSYS. Some functions are actually named
27120 something starting with __ and the normal name is an alias. */
27121 #if defined __stub_$ac_func || defined __stub___$ac_func
27128 return $ac_func ();
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (ac_try="$ac_link"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_link") 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest$ac_exeext &&
27150 $as_test_x conftest$ac_exeext; then
27151 eval "$as_ac_var=yes"
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 eval "$as_ac_var=no"
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160 conftest$ac_exeext conftest.$ac_ext
27162 ac_res=`eval echo '${'$as_ac_var'}'`
27163 { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27165 if test `eval echo '${'$as_ac_var'}'` = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27174 for ac_func in fdatasync
27176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27190 #define $ac_func innocuous_$ac_func
27192 /* System header to define __stub macros and hopefully few prototypes,
27193 which can conflict with char $ac_func (); below.
27194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27195 <limits.h> exists even on freestanding compilers. */
27198 # include <limits.h>
27200 # include <assert.h>
27205 /* Override any GCC internal prototype to avoid an error.
27206 Use char because int might match the return type of a GCC
27207 builtin and then its argument prototype would still apply. */
27212 /* The GNU C library defines this for functions which it implements
27213 to always fail with ENOSYS. Some functions are actually named
27214 something starting with __ and the normal name is an alias. */
27215 #if defined __stub_$ac_func || defined __stub___$ac_func
27222 return $ac_func ();
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (ac_try="$ac_link"
27229 case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_link") 2>conftest.er1
27236 grep -v '^ *+' conftest.er1 >conftest.err
27238 cat conftest.err >&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest$ac_exeext &&
27244 $as_test_x conftest$ac_exeext; then
27245 eval "$as_ac_var=yes"
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 eval "$as_ac_var=no"
27253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27254 conftest$ac_exeext conftest.$ac_ext
27256 ac_res=`eval echo '${'$as_ac_var'}'`
27257 { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27259 if test `eval echo '${'$as_ac_var'}'` = yes; then
27260 cat >>confdefs.h <<_ACEOF
27261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27269 for ac_func in chflags
27271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 cat >conftest.$ac_ext <<_ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h. */
27283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27285 #define $ac_func innocuous_$ac_func
27287 /* System header to define __stub macros and hopefully few prototypes,
27288 which can conflict with char $ac_func (); below.
27289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27290 <limits.h> exists even on freestanding compilers. */
27293 # include <limits.h>
27295 # include <assert.h>
27300 /* Override any GCC internal prototype to avoid an error.
27301 Use char because int might match the return type of a GCC
27302 builtin and then its argument prototype would still apply. */
27307 /* The GNU C library defines this for functions which it implements
27308 to always fail with ENOSYS. Some functions are actually named
27309 something starting with __ and the normal name is an alias. */
27310 #if defined __stub_$ac_func || defined __stub___$ac_func
27317 return $ac_func ();
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_link") 2>conftest.er1
27331 grep -v '^ *+' conftest.er1 >conftest.err
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest$ac_exeext &&
27339 $as_test_x conftest$ac_exeext; then
27340 eval "$as_ac_var=yes"
27342 echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27345 eval "$as_ac_var=no"
27348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27349 conftest$ac_exeext conftest.$ac_ext
27351 ac_res=`eval echo '${'$as_ac_var'}'`
27352 { echo "$as_me:$LINENO: result: $ac_res" >&5
27353 echo "${ECHO_T}$ac_res" >&6; }
27354 if test `eval echo '${'$as_ac_var'}'` = yes; then
27355 cat >>confdefs.h <<_ACEOF
27356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27367 for ac_func in snprintf vsnprintf gethostid fseeko
27369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27375 cat >conftest.$ac_ext <<_ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h. */
27381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27383 #define $ac_func innocuous_$ac_func
27385 /* System header to define __stub macros and hopefully few prototypes,
27386 which can conflict with char $ac_func (); below.
27387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27388 <limits.h> exists even on freestanding compilers. */
27391 # include <limits.h>
27393 # include <assert.h>
27398 /* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
27405 /* The GNU C library defines this for functions which it implements
27406 to always fail with ENOSYS. Some functions are actually named
27407 something starting with __ and the normal name is an alias. */
27408 #if defined __stub_$ac_func || defined __stub___$ac_func
27415 return $ac_func ();
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } && {
27434 test -z "$ac_c_werror_flag" ||
27435 test ! -s conftest.err
27436 } && test -s conftest$ac_exeext &&
27437 $as_test_x conftest$ac_exeext; then
27438 eval "$as_ac_var=yes"
27440 echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 eval "$as_ac_var=no"
27446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27447 conftest$ac_exeext conftest.$ac_ext
27449 ac_res=`eval echo '${'$as_ac_var'}'`
27450 { echo "$as_me:$LINENO: result: $ac_res" >&5
27451 echo "${ECHO_T}$ac_res" >&6; }
27452 if test `eval echo '${'$as_ac_var'}'` = yes; then
27453 cat >>confdefs.h <<_ACEOF
27454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27461 { echo "$as_me:$LINENO: checking for va_copy" >&5
27462 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27463 if test "${ba_cv_va_copy+set}" = set; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27466 cat >conftest.$ac_ext <<_ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h. */
27473 #include <stdarg.h>
27474 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27475 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27480 call_use_va_copy(1,2,3)
27485 rm -f conftest.$ac_objext conftest$ac_exeext
27486 if { (ac_try="$ac_link"
27487 case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_link") 2>conftest.er1
27494 grep -v '^ *+' conftest.er1 >conftest.err
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } && {
27499 test -z "$ac_c_werror_flag" ||
27500 test ! -s conftest.err
27501 } && test -s conftest$ac_exeext &&
27502 $as_test_x conftest$ac_exeext; then
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27512 conftest$ac_exeext conftest.$ac_ext
27514 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27515 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27516 test $ba_cv_va_copy = yes &&
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_VA_COPY 1
27527 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27543 #define $ac_func innocuous_$ac_func
27545 /* System header to define __stub macros and hopefully few prototypes,
27546 which can conflict with char $ac_func (); below.
27547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27548 <limits.h> exists even on freestanding compilers. */
27551 # include <limits.h>
27553 # include <assert.h>
27558 /* Override any GCC internal prototype to avoid an error.
27559 Use char because int might match the return type of a GCC
27560 builtin and then its argument prototype would still apply. */
27565 /* The GNU C library defines this for functions which it implements
27566 to always fail with ENOSYS. Some functions are actually named
27567 something starting with __ and the normal name is an alias. */
27568 #if defined __stub_$ac_func || defined __stub___$ac_func
27575 return $ac_func ();
27580 rm -f conftest.$ac_objext conftest$ac_exeext
27581 if { (ac_try="$ac_link"
27582 case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_link") 2>conftest.er1
27589 grep -v '^ *+' conftest.er1 >conftest.err
27591 cat conftest.err >&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } && {
27594 test -z "$ac_c_werror_flag" ||
27595 test ! -s conftest.err
27596 } && test -s conftest$ac_exeext &&
27597 $as_test_x conftest$ac_exeext; then
27598 eval "$as_ac_var=yes"
27600 echo "$as_me: failed program was:" >&5
27601 sed 's/^/| /' conftest.$ac_ext >&5
27603 eval "$as_ac_var=no"
27606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27607 conftest$ac_exeext conftest.$ac_ext
27609 ac_res=`eval echo '${'$as_ac_var'}'`
27610 { echo "$as_me:$LINENO: result: $ac_res" >&5
27611 echo "${ECHO_T}$ac_res" >&6; }
27612 if test `eval echo '${'$as_ac_var'}'` = yes; then
27613 cat >>confdefs.h <<_ACEOF
27614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27621 # If resolver functions are not in libc check for -lnsl or -lresolv.
27622 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27623 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27624 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27635 #define gethostbyname_r innocuous_gethostbyname_r
27637 /* System header to define __stub macros and hopefully few prototypes,
27638 which can conflict with char gethostbyname_r (); below.
27639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27640 <limits.h> exists even on freestanding compilers. */
27643 # include <limits.h>
27645 # include <assert.h>
27648 #undef gethostbyname_r
27650 /* Override any GCC internal prototype to avoid an error.
27651 Use char because int might match the return type of a GCC
27652 builtin and then its argument prototype would still apply. */
27656 char gethostbyname_r ();
27657 /* The GNU C library defines this for functions which it implements
27658 to always fail with ENOSYS. Some functions are actually named
27659 something starting with __ and the normal name is an alias. */
27660 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27667 return gethostbyname_r ();
27672 rm -f conftest.$ac_objext conftest$ac_exeext
27673 if { (ac_try="$ac_link"
27674 case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_link") 2>conftest.er1
27681 grep -v '^ *+' conftest.er1 >conftest.err
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } && {
27686 test -z "$ac_c_werror_flag" ||
27687 test ! -s conftest.err
27688 } && test -s conftest$ac_exeext &&
27689 $as_test_x conftest$ac_exeext; then
27690 ac_cv_func_gethostbyname_r=yes
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27695 ac_cv_func_gethostbyname_r=no
27698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27699 conftest$ac_exeext conftest.$ac_ext
27701 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27702 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27703 if test $ac_cv_func_gethostbyname_r = yes; then
27704 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27705 echo "${ECHO_T}using libc's resolver" >&6; }
27708 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27709 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27710 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27713 ac_check_lib_save_LIBS=$LIBS
27715 cat >conftest.$ac_ext <<_ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27722 /* Override any GCC internal prototype to avoid an error.
27723 Use char because int might match the return type of a GCC
27724 builtin and then its argument prototype would still apply. */
27728 char gethostbyname_r ();
27732 return gethostbyname_r ();
27737 rm -f conftest.$ac_objext conftest$ac_exeext
27738 if { (ac_try="$ac_link"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_link") 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } && {
27751 test -z "$ac_c_werror_flag" ||
27752 test ! -s conftest.err
27753 } && test -s conftest$ac_exeext &&
27754 $as_test_x conftest$ac_exeext; then
27755 ac_cv_lib_nsl_gethostbyname_r=yes
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 ac_cv_lib_nsl_gethostbyname_r=no
27763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27764 conftest$ac_exeext conftest.$ac_ext
27765 LIBS=$ac_check_lib_save_LIBS
27767 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27768 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27769 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27770 cat >>confdefs.h <<_ACEOF
27771 #define HAVE_LIBNSL 1
27779 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27780 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27781 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27784 ac_check_lib_save_LIBS=$LIBS
27785 LIBS="-lresolv $LIBS"
27786 cat >conftest.$ac_ext <<_ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27793 /* Override any GCC internal prototype to avoid an error.
27794 Use char because int might match the return type of a GCC
27795 builtin and then its argument prototype would still apply. */
27799 char gethostbyname_r ();
27803 return gethostbyname_r ();
27808 rm -f conftest.$ac_objext conftest$ac_exeext
27809 if { (ac_try="$ac_link"
27810 case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_link") 2>conftest.er1
27817 grep -v '^ *+' conftest.er1 >conftest.err
27819 cat conftest.err >&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); } && {
27822 test -z "$ac_c_werror_flag" ||
27823 test ! -s conftest.err
27824 } && test -s conftest$ac_exeext &&
27825 $as_test_x conftest$ac_exeext; then
27826 ac_cv_lib_resolv_gethostbyname_r=yes
27828 echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27831 ac_cv_lib_resolv_gethostbyname_r=no
27834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27835 conftest$ac_exeext conftest.$ac_ext
27836 LIBS=$ac_check_lib_save_LIBS
27838 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27839 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27840 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27841 cat >>confdefs.h <<_ACEOF
27842 #define HAVE_LIBRESOLV 1
27845 LIBS="-lresolv $LIBS"
27855 for ac_func in inet_pton
27857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27861 echo $ECHO_N "(cached) $ECHO_C" >&6
27863 cat >conftest.$ac_ext <<_ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h. */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27871 #define $ac_func innocuous_$ac_func
27873 /* System header to define __stub macros and hopefully few prototypes,
27874 which can conflict with char $ac_func (); below.
27875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876 <limits.h> exists even on freestanding compilers. */
27879 # include <limits.h>
27881 # include <assert.h>
27886 /* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
27893 /* The GNU C library defines this for functions which it implements
27894 to always fail with ENOSYS. Some functions are actually named
27895 something starting with __ and the normal name is an alias. */
27896 #if defined __stub_$ac_func || defined __stub___$ac_func
27903 return $ac_func ();
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_link") 2>conftest.er1
27917 grep -v '^ *+' conftest.er1 >conftest.err
27919 cat conftest.err >&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } && {
27922 test -z "$ac_c_werror_flag" ||
27923 test ! -s conftest.err
27924 } && test -s conftest$ac_exeext &&
27925 $as_test_x conftest$ac_exeext; then
27926 eval "$as_ac_var=yes"
27928 echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27931 eval "$as_ac_var=no"
27934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27935 conftest$ac_exeext conftest.$ac_ext
27937 ac_res=`eval echo '${'$as_ac_var'}'`
27938 { echo "$as_me:$LINENO: result: $ac_res" >&5
27939 echo "${ECHO_T}$ac_res" >&6; }
27940 if test `eval echo '${'$as_ac_var'}'` = yes; then
27941 cat >>confdefs.h <<_ACEOF
27942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27944 cat >>confdefs.h <<\_ACEOF
27945 #define HAVE_INET_PTON 1
27952 for ac_func in inet_ntop
27954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27968 #define $ac_func innocuous_$ac_func
27970 /* System header to define __stub macros and hopefully few prototypes,
27971 which can conflict with char $ac_func (); below.
27972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27973 <limits.h> exists even on freestanding compilers. */
27976 # include <limits.h>
27978 # include <assert.h>
27983 /* Override any GCC internal prototype to avoid an error.
27984 Use char because int might match the return type of a GCC
27985 builtin and then its argument prototype would still apply. */
27990 /* The GNU C library defines this for functions which it implements
27991 to always fail with ENOSYS. Some functions are actually named
27992 something starting with __ and the normal name is an alias. */
27993 #if defined __stub_$ac_func || defined __stub___$ac_func
28000 return $ac_func ();
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest$ac_exeext &&
28022 $as_test_x conftest$ac_exeext; then
28023 eval "$as_ac_var=yes"
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28028 eval "$as_ac_var=no"
28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28032 conftest$ac_exeext conftest.$ac_ext
28034 ac_res=`eval echo '${'$as_ac_var'}'`
28035 { echo "$as_me:$LINENO: result: $ac_res" >&5
28036 echo "${ECHO_T}$ac_res" >&6; }
28037 if test `eval echo '${'$as_ac_var'}'` = yes; then
28038 cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28041 cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_INET_NTOP 1
28049 for ac_func in gethostbyname2
28051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28065 #define $ac_func innocuous_$ac_func
28067 /* System header to define __stub macros and hopefully few prototypes,
28068 which can conflict with char $ac_func (); below.
28069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28070 <limits.h> exists even on freestanding compilers. */
28073 # include <limits.h>
28075 # include <assert.h>
28080 /* Override any GCC internal prototype to avoid an error.
28081 Use char because int might match the return type of a GCC
28082 builtin and then its argument prototype would still apply. */
28087 /* The GNU C library defines this for functions which it implements
28088 to always fail with ENOSYS. Some functions are actually named
28089 something starting with __ and the normal name is an alias. */
28090 #if defined __stub_$ac_func || defined __stub___$ac_func
28097 return $ac_func ();
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_link") 2>conftest.er1
28111 grep -v '^ *+' conftest.er1 >conftest.err
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } && {
28116 test -z "$ac_c_werror_flag" ||
28117 test ! -s conftest.err
28118 } && test -s conftest$ac_exeext &&
28119 $as_test_x conftest$ac_exeext; then
28120 eval "$as_ac_var=yes"
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 eval "$as_ac_var=no"
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129 conftest$ac_exeext conftest.$ac_ext
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132 { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135 cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28138 cat >>confdefs.h <<\_ACEOF
28139 #define HAVE_GETHOSTBYNAME2 1
28146 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28147 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28148 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 #include <sys/socket.h>
28161 struct sockaddr s; s.sa_len;
28166 rm -f conftest.$ac_objext
28167 if { (ac_try="$ac_compile"
28168 case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_compile") 2>conftest.er1
28175 grep -v '^ *+' conftest.er1 >conftest.err
28177 cat conftest.err >&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } && {
28180 test -z "$ac_c_werror_flag" ||
28181 test ! -s conftest.err
28182 } && test -s conftest.$ac_objext; then
28183 ac_cv_struct_sockaddr_sa_len=yes
28185 echo "$as_me: failed program was:" >&5
28186 sed 's/^/| /' conftest.$ac_ext >&5
28188 ac_cv_struct_sockaddr_sa_len=no
28191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28193 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28194 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28196 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_SA_LEN 1
28208 for ac_func in strftime
28210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28214 echo $ECHO_N "(cached) $ECHO_C" >&6
28216 cat >conftest.$ac_ext <<_ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h. */
28222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28224 #define $ac_func innocuous_$ac_func
28226 /* System header to define __stub macros and hopefully few prototypes,
28227 which can conflict with char $ac_func (); below.
28228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28229 <limits.h> exists even on freestanding compilers. */
28232 # include <limits.h>
28234 # include <assert.h>
28239 /* Override any GCC internal prototype to avoid an error.
28240 Use char because int might match the return type of a GCC
28241 builtin and then its argument prototype would still apply. */
28246 /* The GNU C library defines this for functions which it implements
28247 to always fail with ENOSYS. Some functions are actually named
28248 something starting with __ and the normal name is an alias. */
28249 #if defined __stub_$ac_func || defined __stub___$ac_func
28256 return $ac_func ();
28261 rm -f conftest.$ac_objext conftest$ac_exeext
28262 if { (ac_try="$ac_link"
28263 case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_link") 2>conftest.er1
28270 grep -v '^ *+' conftest.er1 >conftest.err
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } && {
28275 test -z "$ac_c_werror_flag" ||
28276 test ! -s conftest.err
28277 } && test -s conftest$ac_exeext &&
28278 $as_test_x conftest$ac_exeext; then
28279 eval "$as_ac_var=yes"
28281 echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28284 eval "$as_ac_var=no"
28287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28288 conftest$ac_exeext conftest.$ac_ext
28290 ac_res=`eval echo '${'$as_ac_var'}'`
28291 { echo "$as_me:$LINENO: result: $ac_res" >&5
28292 echo "${ECHO_T}$ac_res" >&6; }
28293 if test `eval echo '${'$as_ac_var'}'` = yes; then
28294 cat >>confdefs.h <<_ACEOF
28295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28299 # strftime is in -lintl on SCO UNIX.
28300 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28301 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28302 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28305 ac_check_lib_save_LIBS=$LIBS
28306 LIBS="-lintl $LIBS"
28307 cat >conftest.$ac_ext <<_ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28314 /* Override any GCC internal prototype to avoid an error.
28315 Use char because int might match the return type of a GCC
28316 builtin and then its argument prototype would still apply. */
28324 return strftime ();
28329 rm -f conftest.$ac_objext conftest$ac_exeext
28330 if { (ac_try="$ac_link"
28331 case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_link") 2>conftest.er1
28338 grep -v '^ *+' conftest.er1 >conftest.err
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } && {
28343 test -z "$ac_c_werror_flag" ||
28344 test ! -s conftest.err
28345 } && test -s conftest$ac_exeext &&
28346 $as_test_x conftest$ac_exeext; then
28347 ac_cv_lib_intl_strftime=yes
28349 echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28352 ac_cv_lib_intl_strftime=no
28355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28356 conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28359 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28360 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28361 if test $ac_cv_lib_intl_strftime = yes; then
28362 cat >>confdefs.h <<\_ACEOF
28363 #define HAVE_STRFTIME 1
28366 LIBS="-lintl $LIBS"
28373 for ac_func in vprintf
28375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28381 cat >conftest.$ac_ext <<_ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h. */
28387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28389 #define $ac_func innocuous_$ac_func
28391 /* System header to define __stub macros and hopefully few prototypes,
28392 which can conflict with char $ac_func (); below.
28393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28394 <limits.h> exists even on freestanding compilers. */
28397 # include <limits.h>
28399 # include <assert.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. */
28411 /* The GNU C library defines this for functions which it implements
28412 to always fail with ENOSYS. Some functions are actually named
28413 something starting with __ and the normal name is an alias. */
28414 #if defined __stub_$ac_func || defined __stub___$ac_func
28421 return $ac_func ();
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (ac_try="$ac_link"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_link") 2>conftest.er1
28435 grep -v '^ *+' conftest.er1 >conftest.err
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } && {
28440 test -z "$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 } && test -s conftest$ac_exeext &&
28443 $as_test_x conftest$ac_exeext; then
28444 eval "$as_ac_var=yes"
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 eval "$as_ac_var=no"
28452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28453 conftest$ac_exeext conftest.$ac_ext
28455 ac_res=`eval echo '${'$as_ac_var'}'`
28456 { echo "$as_me:$LINENO: result: $ac_res" >&5
28457 echo "${ECHO_T}$ac_res" >&6; }
28458 if test `eval echo '${'$as_ac_var'}'` = yes; then
28459 cat >>confdefs.h <<_ACEOF
28460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28463 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28464 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28465 if test "${ac_cv_func__doprnt+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 cat >conftest.$ac_ext <<_ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28474 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28476 #define _doprnt innocuous__doprnt
28478 /* System header to define __stub macros and hopefully few prototypes,
28479 which can conflict with char _doprnt (); below.
28480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28481 <limits.h> exists even on freestanding compilers. */
28484 # include <limits.h>
28486 # include <assert.h>
28491 /* Override any GCC internal prototype to avoid an error.
28492 Use char because int might match the return type of a GCC
28493 builtin and then its argument prototype would still apply. */
28498 /* The GNU C library defines this for functions which it implements
28499 to always fail with ENOSYS. Some functions are actually named
28500 something starting with __ and the normal name is an alias. */
28501 #if defined __stub__doprnt || defined __stub____doprnt
28513 rm -f conftest.$ac_objext conftest$ac_exeext
28514 if { (ac_try="$ac_link"
28515 case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_link") 2>conftest.er1
28522 grep -v '^ *+' conftest.er1 >conftest.err
28524 cat conftest.err >&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } && {
28527 test -z "$ac_c_werror_flag" ||
28528 test ! -s conftest.err
28529 } && test -s conftest$ac_exeext &&
28530 $as_test_x conftest$ac_exeext; then
28531 ac_cv_func__doprnt=yes
28533 echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28536 ac_cv_func__doprnt=no
28539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28540 conftest$ac_exeext conftest.$ac_ext
28542 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28543 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28544 if test $ac_cv_func__doprnt = yes; then
28546 cat >>confdefs.h <<\_ACEOF
28547 #define HAVE_DOPRNT 1
28556 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28557 # for constant arguments. Useless!
28558 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28559 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28560 if test "${ac_cv_working_alloca_h+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28563 cat >conftest.$ac_ext <<_ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h. */
28569 #include <alloca.h>
28573 char *p = (char *) alloca (2 * sizeof (int));
28579 rm -f conftest.$ac_objext conftest$ac_exeext
28580 if { (ac_try="$ac_link"
28581 case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_link") 2>conftest.er1
28588 grep -v '^ *+' conftest.er1 >conftest.err
28590 cat conftest.err >&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest$ac_exeext &&
28596 $as_test_x conftest$ac_exeext; then
28597 ac_cv_working_alloca_h=yes
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_working_alloca_h=no
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606 conftest$ac_exeext conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28610 if test $ac_cv_working_alloca_h = yes; then
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_ALLOCA_H 1
28618 { echo "$as_me:$LINENO: checking for alloca" >&5
28619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28620 if test "${ac_cv_func_alloca_works+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 cat >conftest.$ac_ext <<_ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28630 # define alloca __builtin_alloca
28633 # include <malloc.h>
28634 # define alloca _alloca
28636 # ifdef HAVE_ALLOCA_H
28637 # include <alloca.h>
28642 # ifndef alloca /* predefined by HP cc +Olibcalls */
28653 char *p = (char *) alloca (1);
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (ac_try="$ac_link"
28661 case "(($ac_try" in
28662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663 *) ac_try_echo=$ac_try;;
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666 (eval "$ac_link") 2>conftest.er1
28668 grep -v '^ *+' conftest.er1 >conftest.err
28670 cat conftest.err >&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } && {
28673 test -z "$ac_c_werror_flag" ||
28674 test ! -s conftest.err
28675 } && test -s conftest$ac_exeext &&
28676 $as_test_x conftest$ac_exeext; then
28677 ac_cv_func_alloca_works=yes
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ac_cv_func_alloca_works=no
28685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28686 conftest$ac_exeext conftest.$ac_ext
28688 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28689 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28691 if test $ac_cv_func_alloca_works = yes; then
28693 cat >>confdefs.h <<\_ACEOF
28694 #define HAVE_ALLOCA 1
28698 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28699 # that cause trouble. Some versions do not even contain alloca or
28700 # contain a buggy version. If you still want to use their alloca,
28701 # use ar to extract alloca.o from them instead of compiling alloca.c.
28703 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28705 cat >>confdefs.h <<\_ACEOF
28710 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28711 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28712 if test "${ac_cv_os_cray+set}" = set; then
28713 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 #if defined CRAY && ! defined CRAY2
28728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28729 $EGREP "webecray" >/dev/null 2>&1; then
28737 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28738 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28739 if test $ac_cv_os_cray = yes; then
28740 for ac_func in _getb67 GETB67 getb67; do
28741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 cat >conftest.$ac_ext <<_ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h. */
28753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28755 #define $ac_func innocuous_$ac_func
28757 /* System header to define __stub macros and hopefully few prototypes,
28758 which can conflict with char $ac_func (); below.
28759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28760 <limits.h> exists even on freestanding compilers. */
28763 # include <limits.h>
28765 # include <assert.h>
28770 /* Override any GCC internal prototype to avoid an error.
28771 Use char because int might match the return type of a GCC
28772 builtin and then its argument prototype would still apply. */
28777 /* The GNU C library defines this for functions which it implements
28778 to always fail with ENOSYS. Some functions are actually named
28779 something starting with __ and the normal name is an alias. */
28780 #if defined __stub_$ac_func || defined __stub___$ac_func
28787 return $ac_func ();
28792 rm -f conftest.$ac_objext conftest$ac_exeext
28793 if { (ac_try="$ac_link"
28794 case "(($ac_try" in
28795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799 (eval "$ac_link") 2>conftest.er1
28801 grep -v '^ *+' conftest.er1 >conftest.err
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } && {
28806 test -z "$ac_c_werror_flag" ||
28807 test ! -s conftest.err
28808 } && test -s conftest$ac_exeext &&
28809 $as_test_x conftest$ac_exeext; then
28810 eval "$as_ac_var=yes"
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 eval "$as_ac_var=no"
28818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28819 conftest$ac_exeext conftest.$ac_ext
28821 ac_res=`eval echo '${'$as_ac_var'}'`
28822 { echo "$as_me:$LINENO: result: $ac_res" >&5
28823 echo "${ECHO_T}$ac_res" >&6; }
28824 if test `eval echo '${'$as_ac_var'}'` = yes; then
28826 cat >>confdefs.h <<_ACEOF
28827 #define CRAY_STACKSEG_END $ac_func
28836 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28837 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28838 if test "${ac_cv_c_stack_direction+set}" = set; then
28839 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 if test "$cross_compiling" = yes; then
28842 ac_cv_c_stack_direction=0
28844 cat >conftest.$ac_ext <<_ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28850 $ac_includes_default
28852 find_stack_direction ()
28854 static char *addr = 0;
28859 return find_stack_direction ();
28862 return (&dummy > addr) ? 1 : -1;
28868 return find_stack_direction () < 0;
28871 rm -f conftest$ac_exeext
28872 if { (ac_try="$ac_link"
28873 case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_link") 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28882 { (case "(($ac_try" in
28883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884 *) ac_try_echo=$ac_try;;
28886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887 (eval "$ac_try") 2>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; }; then
28891 ac_cv_c_stack_direction=1
28893 echo "$as_me: program exited with status $ac_status" >&5
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ( exit $ac_status )
28898 ac_cv_c_stack_direction=-1
28900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28905 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28906 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28908 cat >>confdefs.h <<_ACEOF
28909 #define STACK_DIRECTION $ac_cv_c_stack_direction
28915 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28916 # -lseq on Dynix/PTX, -lgen on Unixware.
28917 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28918 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28919 if test "${ac_cv_search_getmntent+set}" = set; then
28920 echo $ECHO_N "(cached) $ECHO_C" >&6
28922 ac_func_search_save_LIBS=$LIBS
28923 cat >conftest.$ac_ext <<_ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h. */
28930 /* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28940 return getmntent ();
28945 for ac_lib in '' sun seq gen; do
28946 if test -z "$ac_lib"; then
28947 ac_res="none required"
28950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_link") 2>conftest.er1
28961 grep -v '^ *+' conftest.er1 >conftest.err
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest$ac_exeext &&
28969 $as_test_x conftest$ac_exeext; then
28970 ac_cv_search_getmntent=$ac_res
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28980 if test "${ac_cv_search_getmntent+set}" = set; then
28984 if test "${ac_cv_search_getmntent+set}" = set; then
28987 ac_cv_search_getmntent=no
28989 rm conftest.$ac_ext
28990 LIBS=$ac_func_search_save_LIBS
28992 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28993 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28994 ac_res=$ac_cv_search_getmntent
28995 if test "$ac_res" != no; then
28996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28997 ac_cv_func_getmntent=yes
28999 cat >>confdefs.h <<\_ACEOF
29000 #define HAVE_GETMNTENT 1
29004 ac_cv_func_getmntent=no
29008 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29009 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29010 if test "${ac_cv_func_closedir_void+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29013 if test "$cross_compiling" = yes; then
29014 ac_cv_func_closedir_void=yes
29016 cat >conftest.$ac_ext <<_ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h. */
29022 $ac_includes_default
29023 #include <$ac_header_dirent>
29024 #ifndef __cplusplus
29031 return closedir (opendir (".")) != 0;
29036 rm -f conftest$ac_exeext
29037 if { (ac_try="$ac_link"
29038 case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_link") 2>&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29047 { (case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_try") 2>&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; }; then
29056 ac_cv_func_closedir_void=no
29058 echo "$as_me: program exited with status $ac_status" >&5
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29062 ( exit $ac_status )
29063 ac_cv_func_closedir_void=yes
29065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29070 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29071 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29072 if test $ac_cv_func_closedir_void = yes; then
29074 cat >>confdefs.h <<\_ACEOF
29075 #define CLOSEDIR_VOID 1
29080 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29081 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29082 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29083 echo $ECHO_N "(cached) $ECHO_C" >&6
29085 if test "$cross_compiling" = yes; then
29086 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29087 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29088 { (exit 1); exit 1; }; }
29090 cat >conftest.$ac_ext <<_ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 $ac_includes_default
29100 /* If this system has a BSD-style setpgrp which takes arguments,
29101 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29102 exit successfully. */
29103 return setpgrp (1,1) != -1;
29108 rm -f conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_link") 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29119 { (case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124 (eval "$ac_try") 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29128 ac_cv_func_setpgrp_void=no
29130 echo "$as_me: program exited with status $ac_status" >&5
29131 echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29134 ( exit $ac_status )
29135 ac_cv_func_setpgrp_void=yes
29137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29142 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29143 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29144 if test $ac_cv_func_setpgrp_void = yes; then
29146 cat >>confdefs.h <<\_ACEOF
29147 #define SETPGRP_VOID 1
29151 # AC_FUNC_FNMATCH dnl use local version
29154 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29155 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29156 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29157 echo $ECHO_N "(cached) $ECHO_C" >&6
29159 ac_check_lib_save_LIBS=$LIBS
29160 LIBS="-lintl $LIBS"
29161 cat >conftest.$ac_ext <<_ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h. */
29168 /* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29183 rm -f conftest.$ac_objext conftest$ac_exeext
29184 if { (ac_try="$ac_link"
29185 case "(($ac_try" in
29186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187 *) ac_try_echo=$ac_try;;
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190 (eval "$ac_link") 2>conftest.er1
29192 grep -v '^ *+' conftest.er1 >conftest.err
29194 cat conftest.err >&5
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && {
29197 test -z "$ac_c_werror_flag" ||
29198 test ! -s conftest.err
29199 } && test -s conftest$ac_exeext &&
29200 $as_test_x conftest$ac_exeext; then
29201 ac_cv_lib_intl_gettext=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_cv_lib_intl_gettext=no
29209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29210 conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29213 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29214 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29215 if test $ac_cv_lib_intl_gettext = yes; then
29216 LIBS="$LIBS -lintl"
29222 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29223 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29224 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 ac_check_lib_save_LIBS=$LIBS
29229 cat >conftest.$ac_ext <<_ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29236 /* Override any GCC internal prototype to avoid an error.
29237 Use char because int might match the return type of a GCC
29238 builtin and then its argument prototype would still apply. */
29246 return getpwnam ();
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (ac_try="$ac_link"
29253 case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_link") 2>conftest.er1
29260 grep -v '^ *+' conftest.er1 >conftest.err
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } && {
29265 test -z "$ac_c_werror_flag" ||
29266 test ! -s conftest.err
29267 } && test -s conftest$ac_exeext &&
29268 $as_test_x conftest$ac_exeext; then
29269 ac_cv_lib_sun_getpwnam=yes
29271 echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29274 ac_cv_lib_sun_getpwnam=no
29277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29278 conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29281 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29282 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29283 if test $ac_cv_lib_sun_getpwnam = yes; then
29284 cat >>confdefs.h <<_ACEOF
29285 #define HAVE_LIBSUN 1
29294 for ac_header in zlib.h
29296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29303 ac_res=`eval echo '${'$as_ac_Header'}'`
29304 { echo "$as_me:$LINENO: result: $ac_res" >&5
29305 echo "${ECHO_T}$ac_res" >&6; }
29307 # Is the header compilable?
29308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29310 cat >conftest.$ac_ext <<_ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h. */
29316 $ac_includes_default
29317 #include <$ac_header>
29319 rm -f conftest.$ac_objext
29320 if { (ac_try="$ac_compile"
29321 case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326 (eval "$ac_compile") 2>conftest.er1
29328 grep -v '^ *+' conftest.er1 >conftest.err
29330 cat conftest.err >&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } && {
29333 test -z "$ac_c_werror_flag" ||
29334 test ! -s conftest.err
29335 } && test -s conftest.$ac_objext; then
29336 ac_header_compiler=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_header_compiler=no
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29346 echo "${ECHO_T}$ac_header_compiler" >&6; }
29348 # Is the header present?
29349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29351 cat >conftest.$ac_ext <<_ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h. */
29357 #include <$ac_header>
29359 if { (ac_try="$ac_cpp conftest.$ac_ext"
29360 case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29367 grep -v '^ *+' conftest.er1 >conftest.err
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } >/dev/null && {
29372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29373 test ! -s conftest.err
29375 ac_header_preproc=yes
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_header_preproc=no
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29387 # So? What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 eval "$as_ac_Header=\$ac_header_preproc"
29419 ac_res=`eval echo '${'$as_ac_Header'}'`
29420 { echo "$as_me:$LINENO: result: $ac_res" >&5
29421 echo "${ECHO_T}$ac_res" >&6; }
29424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425 cat >>confdefs.h <<_ACEOF
29426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29433 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29434 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29435 if test "${ac_cv_lib_z_deflate+set}" = set; then
29436 echo $ECHO_N "(cached) $ECHO_C" >&6
29438 ac_check_lib_save_LIBS=$LIBS
29440 cat >conftest.$ac_ext <<_ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29447 /* Override any GCC internal prototype to avoid an error.
29448 Use char because int might match the return type of a GCC
29449 builtin and then its argument prototype would still apply. */
29462 rm -f conftest.$ac_objext conftest$ac_exeext
29463 if { (ac_try="$ac_link"
29464 case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_link") 2>conftest.er1
29471 grep -v '^ *+' conftest.er1 >conftest.err
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } && {
29476 test -z "$ac_c_werror_flag" ||
29477 test ! -s conftest.err
29478 } && test -s conftest$ac_exeext &&
29479 $as_test_x conftest$ac_exeext; then
29480 ac_cv_lib_z_deflate=yes
29482 echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29485 ac_cv_lib_z_deflate=no
29488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29489 conftest$ac_exeext conftest.$ac_ext
29490 LIBS=$ac_check_lib_save_LIBS
29492 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29493 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29494 if test $ac_cv_lib_z_deflate = yes; then
29499 if test x$FDLIBS = x-lz; then
29500 cat >>confdefs.h <<\_ACEOF
29501 #define HAVE_LIBZ 1
29508 # Check for ACL libraries
29511 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29512 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29513 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29514 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29518 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29520 # Is the header compilable?
29521 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29522 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29523 cat >conftest.$ac_ext <<_ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29529 $ac_includes_default
29530 #include <sys/acl.h>
29532 rm -f conftest.$ac_objext
29533 if { (ac_try="$ac_compile"
29534 case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_compile") 2>conftest.er1
29541 grep -v '^ *+' conftest.er1 >conftest.err
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } && {
29546 test -z "$ac_c_werror_flag" ||
29547 test ! -s conftest.err
29548 } && test -s conftest.$ac_objext; then
29549 ac_header_compiler=yes
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 ac_header_compiler=no
29557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29559 echo "${ECHO_T}$ac_header_compiler" >&6; }
29561 # Is the header present?
29562 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29563 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29564 cat >conftest.$ac_ext <<_ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 #include <sys/acl.h>
29572 if { (ac_try="$ac_cpp conftest.$ac_ext"
29573 case "(($ac_try" in
29574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575 *) ac_try_echo=$ac_try;;
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29580 grep -v '^ *+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } >/dev/null && {
29585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29586 test ! -s conftest.err
29588 ac_header_preproc=yes
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ac_header_preproc=no
29596 rm -f conftest.err conftest.$ac_ext
29597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29598 echo "${ECHO_T}$ac_header_preproc" >&6; }
29600 # So? What about this header?
29601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29603 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29604 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29605 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29606 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29607 ac_header_preproc=yes
29610 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29611 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29613 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29615 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29617 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29619 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29621 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29625 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29626 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29627 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 ac_cv_header_sys_acl_h=$ac_header_preproc
29632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29638 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29639 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29640 if test "${ac_cv_func_acl_get_file+set}" = set; then
29641 echo $ECHO_N "(cached) $ECHO_C" >&6
29643 cat >conftest.$ac_ext <<_ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29651 #define acl_get_file innocuous_acl_get_file
29653 /* System header to define __stub macros and hopefully few prototypes,
29654 which can conflict with char acl_get_file (); below.
29655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29656 <limits.h> exists even on freestanding compilers. */
29659 # include <limits.h>
29661 # include <assert.h>
29664 #undef acl_get_file
29666 /* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29672 char acl_get_file ();
29673 /* The GNU C library defines this for functions which it implements
29674 to always fail with ENOSYS. Some functions are actually named
29675 something starting with __ and the normal name is an alias. */
29676 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29683 return acl_get_file ();
29688 rm -f conftest.$ac_objext conftest$ac_exeext
29689 if { (ac_try="$ac_link"
29690 case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_link") 2>conftest.er1
29697 grep -v '^ *+' conftest.er1 >conftest.err
29699 cat conftest.err >&5
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } && {
29702 test -z "$ac_c_werror_flag" ||
29703 test ! -s conftest.err
29704 } && test -s conftest$ac_exeext &&
29705 $as_test_x conftest$ac_exeext; then
29706 ac_cv_func_acl_get_file=yes
29708 echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29711 ac_cv_func_acl_get_file=no
29714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29715 conftest$ac_exeext conftest.$ac_ext
29717 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29718 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29719 if test $ac_cv_func_acl_get_file = yes; then
29722 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29723 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_check_lib_save_LIBS=$LIBS
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29742 char acl_get_file ();
29746 return acl_get_file ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29760 grep -v '^ *+' conftest.er1 >conftest.err
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_c_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest$ac_exeext &&
29768 $as_test_x conftest$ac_exeext; then
29769 ac_cv_lib_acl_acl_get_file=yes
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 ac_cv_lib_acl_acl_get_file=no
29777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29778 conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29782 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29783 if test $ac_cv_lib_acl_acl_get_file = yes; then
29784 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29786 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29787 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29788 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 ac_check_lib_save_LIBS=$LIBS
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29800 /* Override any GCC internal prototype to avoid an error.
29801 Use char because int might match the return type of a GCC
29802 builtin and then its argument prototype would still apply. */
29810 return acltotext ();
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_link") 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } && {
29829 test -z "$ac_c_werror_flag" ||
29830 test ! -s conftest.err
29831 } && test -s conftest$ac_exeext &&
29832 $as_test_x conftest$ac_exeext; then
29833 ac_cv_lib_sec_acltotext=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_cv_lib_sec_acltotext=no
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842 conftest$ac_exeext conftest.$ac_ext
29843 LIBS=$ac_check_lib_save_LIBS
29845 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29846 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29847 if test $ac_cv_lib_sec_acltotext = yes; then
29848 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29857 if test $have_acl = yes; then
29858 cat >>confdefs.h <<\_ACEOF
29865 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29866 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29867 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29868 echo $ECHO_N "(cached) $ECHO_C" >&6
29870 ac_check_lib_save_LIBS=$LIBS
29871 LIBS="-lpthread $LIBS"
29872 cat >conftest.$ac_ext <<_ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h. */
29879 /* Override any GCC internal prototype to avoid an error.
29880 Use char because int might match the return type of a GCC
29881 builtin and then its argument prototype would still apply. */
29885 char pthread_create ();
29889 return pthread_create ();
29894 rm -f conftest.$ac_objext conftest$ac_exeext
29895 if { (ac_try="$ac_link"
29896 case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_link") 2>conftest.er1
29903 grep -v '^ *+' conftest.er1 >conftest.err
29905 cat conftest.err >&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); } && {
29908 test -z "$ac_c_werror_flag" ||
29909 test ! -s conftest.err
29910 } && test -s conftest$ac_exeext &&
29911 $as_test_x conftest$ac_exeext; then
29912 ac_cv_lib_pthread_pthread_create=yes
29914 echo "$as_me: failed program was:" >&5
29915 sed 's/^/| /' conftest.$ac_ext >&5
29917 ac_cv_lib_pthread_pthread_create=no
29920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29921 conftest$ac_exeext conftest.$ac_ext
29922 LIBS=$ac_check_lib_save_LIBS
29924 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29925 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29926 if test $ac_cv_lib_pthread_pthread_create = yes; then
29927 PTHREAD_LIB="-lpthread"
29929 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29930 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29931 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 ac_check_lib_save_LIBS=$LIBS
29935 LIBS="-lpthreads $LIBS"
29936 cat >conftest.$ac_ext <<_ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h. */
29943 /* Override any GCC internal prototype to avoid an error.
29944 Use char because int might match the return type of a GCC
29945 builtin and then its argument prototype would still apply. */
29949 char pthread_create ();
29953 return pthread_create ();
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (ac_try="$ac_link"
29960 case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_link") 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } && {
29972 test -z "$ac_c_werror_flag" ||
29973 test ! -s conftest.err
29974 } && test -s conftest$ac_exeext &&
29975 $as_test_x conftest$ac_exeext; then
29976 ac_cv_lib_pthreads_pthread_create=yes
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29981 ac_cv_lib_pthreads_pthread_create=no
29984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29985 conftest$ac_exeext conftest.$ac_ext
29986 LIBS=$ac_check_lib_save_LIBS
29988 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29989 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29990 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29991 PTHREAD_LIB="-lpthreads"
29993 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29994 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29995 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 ac_check_lib_save_LIBS=$LIBS
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30007 /* Override any GCC internal prototype to avoid an error.
30008 Use char because int might match the return type of a GCC
30009 builtin and then its argument prototype would still apply. */
30013 char pthread_create ();
30017 return pthread_create ();
30022 rm -f conftest.$ac_objext conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_link") 2>conftest.er1
30031 grep -v '^ *+' conftest.er1 >conftest.err
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } && {
30036 test -z "$ac_c_werror_flag" ||
30037 test ! -s conftest.err
30038 } && test -s conftest$ac_exeext &&
30039 $as_test_x conftest$ac_exeext; then
30040 ac_cv_lib_c_r_pthread_create=yes
30042 echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30045 ac_cv_lib_c_r_pthread_create=no
30048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30049 conftest$ac_exeext conftest.$ac_ext
30050 LIBS=$ac_check_lib_save_LIBS
30052 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30053 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30054 if test $ac_cv_lib_c_r_pthread_create = yes; then
30055 PTHREAD_LIB="-lc_r"
30057 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30058 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30059 if test "${ac_cv_func_pthread_create+set}" = set; then
30060 echo $ECHO_N "(cached) $ECHO_C" >&6
30062 cat >conftest.$ac_ext <<_ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30070 #define pthread_create innocuous_pthread_create
30072 /* System header to define __stub macros and hopefully few prototypes,
30073 which can conflict with char pthread_create (); below.
30074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30075 <limits.h> exists even on freestanding compilers. */
30078 # include <limits.h>
30080 # include <assert.h>
30083 #undef pthread_create
30085 /* Override any GCC internal prototype to avoid an error.
30086 Use char because int might match the return type of a GCC
30087 builtin and then its argument prototype would still apply. */
30091 char pthread_create ();
30092 /* The GNU C library defines this for functions which it implements
30093 to always fail with ENOSYS. Some functions are actually named
30094 something starting with __ and the normal name is an alias. */
30095 #if defined __stub_pthread_create || defined __stub___pthread_create
30102 return pthread_create ();
30107 rm -f conftest.$ac_objext conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_link") 2>conftest.er1
30116 grep -v '^ *+' conftest.er1 >conftest.err
30118 cat conftest.err >&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); } && {
30121 test -z "$ac_c_werror_flag" ||
30122 test ! -s conftest.err
30123 } && test -s conftest$ac_exeext &&
30124 $as_test_x conftest$ac_exeext; then
30125 ac_cv_func_pthread_create=yes
30127 echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30130 ac_cv_func_pthread_create=no
30133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30134 conftest$ac_exeext conftest.$ac_ext
30136 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30137 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30150 cat >>confdefs.h <<\_ACEOF
30156 CFLAGS=${CFLAGS--O}
30158 if test x$have_gcc = xyes ; then
30159 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30160 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30162 LDFLAGS=${LDFLAGS--O}
30163 DB_LIBS="${SQL_LFLAGS}"
30164 CPPFLAGS="$CPPFLAGS"
30192 # Finally we set appropriate distribution specific
30193 # variables and defaults
30195 # PFILES are platform specific files
30196 PFILES="platforms/Makefile"
30200 hostname=`uname -n | cut -d '.' -f 1`
30201 if test x${hostname} = x ; then
30202 hostname="localhost"
30204 case "$DISTNAME" in
30207 PSCMD="ps -e -o pid,comm"
30208 PFILES="${PFILES} \
30209 platforms/aix/Makefile"
30210 TAPEDRIVE="/dev/rmt0.1"
30214 PTHREAD_LIB="-lpthread -lexc"
30215 if test "${CC}" = "gcc" ; then
30222 TAPEDRIVE="/dev/nrmt0"
30225 DISTVER=`uname -a |awk '{print $3}'`
30226 TAPEDRIVE="/dev/nrmt0"
30227 PTHREAD_LIB="-pthread"
30228 CFLAGS="${CFLAGS} -pthread"
30229 PSCMD="ps -ax -o pid,command"
30232 PFILES="${PFILES} \
30233 platforms/bsdi/Makefile \
30234 platforms/bsdi/bacula-fd \
30235 platforms/bsdi/bacula-sd \
30236 platforms/bsdi/bacula-dir"
30237 largefile_support="yes"
30240 DISTVER=`uname -a |awk '{print $3}'`
30241 TAPEDRIVE="/dev/nrst0"
30243 WCFLAGS="-mwindows"
30244 WLDFLAGS="-mwindows"
30248 TAPEDRIVE="/dev/nst0"
30249 PSCMD="ps -e -o pid,command"
30251 PFILES="${PFILES} \
30252 platforms/darwin/Makefile"
30255 if `grep -q ubuntu /etc/apt/sources.list`; then
30258 DISTVER=`cat /etc/debian_version`
30259 if test -f /etc/lsb-release ; then
30261 if test "x$DISTRIB_ID" != "x" ; then
30262 DISTNAME=$DISTRIB_ID
30264 if test "x$DISTRIB_RELEASE" != "x" ; then
30265 DISTVER=$DISTRIB_RELEASE
30268 if test "$DISTNAME" = "Ubuntu" ; then
30271 TAPEDRIVE="/dev/nst0"
30272 PSCMD="ps -e -o pid,command"
30273 if test "$DISTNAME" = "ubuntu" ; then
30274 PFILES="${PFILES} \
30275 platforms/ubuntu/Makefile \
30276 platforms/ubuntu/bacula-fd \
30277 platforms/ubuntu/bacula-sd \
30278 platforms/ubuntu/bacula-dir"
30280 PFILES="${PFILES} \
30281 platforms/debian/Makefile \
30282 platforms/debian/bacula-fd \
30283 platforms/debian/bacula-sd \
30284 platforms/debian/bacula-dir"
30288 DISTVER=`uname -a |awk '{print $3}'`
30289 VER=`echo $DISTVER | cut -c 1`
30290 if test x$VER = x4 ; then
30291 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30292 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30296 TAPEDRIVE="/dev/nrsa0"
30297 PSCMD="ps -ax -o pid,command"
30298 PFILES="${PFILES} \
30299 platforms/freebsd/Makefile \
30300 platforms/freebsd/bacula-fd \
30301 platforms/freebsd/bacula-sd \
30302 platforms/freebsd/bacula-dir"
30303 largefile_support="yes"
30306 PSCMD="UNIX95=1; ps -e -o pid,comm"
30307 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30309 TAPEDRIVE="/dev/rmt/0hnb"
30310 PTHREAD_LIB="-lpthread"
30311 cat >>confdefs.h <<\_ACEOF
30312 #define _INCLUDE_LONGLONG 1
30318 TAPEDRIVE="/dev/rmt/0cbn"
30319 PSCMD="ps -e -o pid,comm"
30320 PFILES="${PFILES} \
30321 platforms/irix/Makefile \
30322 platforms/irix/bacula-fd \
30323 platforms/irix/bacula-sd \
30324 platforms/irix/bacula-dir"
30327 DISTVER=`uname -a |awk '{print $3}'`
30330 TAPEDRIVE="/dev/nrst0"
30331 PSCMD="ps -ax -o pid,command"
30332 PTHREAD_LIB="-pthread"
30333 CFLAGS="${CFLAGS} -pthread"
30336 DISTVER=`uname -a |awk '{print $3}'`
30339 TAPEDRIVE="/dev/nrst0"
30340 PSCMD="ps -ax -o pid,command"
30341 PTHREAD_LIB="-pthread"
30342 CFLAGS="${CFLAGS} -pthread"
30343 PFILES="${PFILES} \
30344 platforms/openbsd/Makefile \
30345 platforms/openbsd/bacula-fd \
30346 platforms/openbsd/bacula-sd \
30347 platforms/openbsd/bacula-dir"
30350 if test -f /etc/whitebox-release ; then
30351 f=/etc/whitebox-release
30353 f=/etc/redhat-release
30355 if test `cat $f | grep release |\
30356 cut -f 3 -d ' '`x = "Enterprise"x ; then
30357 DISTVER="Enterprise "`cat $f | grep release |\
30360 DISTVER=`cat /etc/redhat-release | grep release |\
30363 TAPEDRIVE="/dev/nst0"
30364 PSCMD="ps -e -o pid,command"
30365 PFILES="${PFILES} \
30366 platforms/redhat/Makefile \
30367 platforms/redhat/bacula-fd \
30368 platforms/redhat/bacula-sd \
30369 platforms/redhat/bacula-dir \
30370 platforms/redhat/bacula.spec \
30374 DISTVER=`cat /etc/mandrake-release | grep release |\
30376 TAPEDRIVE="/dev/nst0"
30377 PSCMD="ps -e -o pid,command"
30378 PFILES="${PFILES} \
30379 platforms/mandrake/Makefile \
30380 platforms/mandrake/bacula-fd \
30381 platforms/mandrake/bacula-sd \
30382 platforms/mandrake/bacula-dir \
30383 platforms/mandrake/bacula.spec \
30387 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30388 TAPEDRIVE="/dev/nst0"
30389 PSCMD="ps -e -o pid,command"
30390 PFILES="${PFILES} \
30391 platforms/gentoo/Makefile \
30392 platforms/gentoo/bacula-init \
30393 platforms/gentoo/bacula-fd \
30394 platforms/gentoo/bacula-sd \
30395 platforms/gentoo/bacula-dir"
30398 DISTVER=`cat /etc/slackware-version`
30399 TAPEDRIVE="/dev/nst0"
30400 PSCMD="ps -e -o pid,command"
30401 PFILES="${PFILES} \
30402 platforms/slackware/Makefile \
30403 platforms/slackware/rc.bacula-fd \
30404 platforms/slackware/rc.bacula-sd \
30405 platforms/slackware/rc.bacula-dir\
30406 platforms/slackware/functions.bacula"
30410 TAPEDRIVE="/dev/rmt/0cbn"
30411 PSCMD="ps -e -o pid,comm"
30412 PFILES="${PFILES} \
30413 platforms/solaris/Makefile \
30414 platforms/solaris/bacula-fd \
30415 platforms/solaris/bacula-sd \
30416 platforms/solaris/bacula-dir"
30417 if test x$DISTVER = x5.6 ; then
30418 cat >>confdefs.h <<\_ACEOF
30419 #define HAVE_OLD_SOCKOPT 1
30423 LIBS="$LIBS -lresolv"
30426 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30428 TAPEDRIVE="/dev/nst0"
30429 PSCMD="ps -e -o pid,command"
30430 PFILES="${PFILES} \
30431 platforms/suse/Makefile \
30432 platforms/suse/bacula-fd \
30433 platforms/suse/bacula-sd \
30434 platforms/suse/bacula-dir \
30435 platforms/suse/bacula \
30436 platforms/suse/bacula.spec"
30441 TAPEDRIVE="/dev/nst0"
30442 PSCMD="ps -e -o pid,command"
30443 PFILES="${PFILES} \
30444 platforms/suse/Makefile \
30445 platforms/suse/bacula-fd \
30446 platforms/suse/bacula-sd \
30447 platforms/suse/bacula-dir"
30451 TAPEDRIVE="/dev/nst0"
30454 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30460 LIBS="$PTHREAD_LIB $LIBS"
30462 cat >>confdefs.h <<_ACEOF
30466 cat >>confdefs.h <<_ACEOF
30477 MCOMMON=./autoconf/Make.common
30480 if test "x${subsysdir}" = "x${sbindir}" ; then
30483 echo "You have set both --sbindir and --with-subsys-dir"
30484 echo " equal to: ${subsysdir} "
30485 echo "This is not permitted. Please reconfigure."
30487 echo "Aborting configuration ..."
30493 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in 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"
30495 ac_config_commands="$ac_config_commands default"
30497 cat >confcache <<\_ACEOF
30498 # This file is a shell script that caches the results of configure
30499 # tests run on this system so they can be shared between configure
30500 # scripts and configure runs, see configure's option --config-cache.
30501 # It is not useful on other systems. If it contains results you don't
30502 # want to keep, you may remove or edit it.
30504 # config.status only pays attention to the cache file if you give it
30505 # the --recheck option to rerun configure.
30507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30509 # following values.
30513 # The following way of writing the cache mishandles newlines in values,
30514 # but we know of no workaround that is simple, portable, and efficient.
30515 # So, we kill variables containing newlines.
30516 # Ultrix sh set writes to stderr and can't be redirected directly,
30517 # and sets the high bit in the cache file unless we assign to the vars.
30519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30520 eval ac_val=\$$ac_var
30524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30525 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30528 _ | IFS | as_nl) ;; #(
30529 *) $as_unset $ac_var ;;
30535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30536 *${as_nl}ac_space=\ *)
30537 # `set' does not quote correctly, so add quotes (double-quote
30538 # substitution turns \\\\ into \\, and sed turns \\ into \).
30541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30544 # `set' quotes correctly as required by POSIX, so do not add quotes.
30545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30559 if test -w "$cache_file"; then
30560 test "x$cache_file" != "x/dev/null" &&
30561 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30562 echo "$as_me: updating cache $cache_file" >&6;}
30563 cat confcache >$cache_file
30565 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30566 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30572 # Let make expand exec_prefix.
30573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30575 DEFS=-DHAVE_CONFIG_H
30579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30580 # 1. Remove the extension, and $U if already installed.
30581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30582 ac_i=`echo "$ac_i" | sed "$ac_script"`
30583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30584 # will be set to the directory where LIBOBJS objects are built.
30585 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30586 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30588 LIBOBJS=$ac_libobjs
30590 LTLIBOBJS=$ac_ltlibobjs
30594 : ${CONFIG_STATUS=./config.status}
30595 ac_clean_files_save=$ac_clean_files
30596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30599 cat >$CONFIG_STATUS <<_ACEOF
30601 # Generated by $as_me.
30602 # Run this file to recreate the current configuration.
30603 # Compiler output produced by configure, useful for debugging
30604 # configure, is in config.log if it exists.
30607 ac_cs_recheck=false
30609 SHELL=\${CONFIG_SHELL-$SHELL}
30612 cat >>$CONFIG_STATUS <<\_ACEOF
30613 ## --------------------- ##
30614 ## M4sh Initialization. ##
30615 ## --------------------- ##
30617 # Be more Bourne compatible
30618 DUALCASE=1; export DUALCASE # for MKS sh
30619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30623 # is contrary to our usage. Disable this feature.
30624 alias -g '${1+"$@"}'='"$@"'
30625 setopt NO_GLOB_SUBST
30627 case `(set -o) 2>/dev/null` in
30628 *posix*) set -o posix ;;
30637 # Avoid depending upon Character Ranges.
30638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30641 as_cr_digits='0123456789'
30642 as_cr_alnum=$as_cr_Letters$as_cr_digits
30644 # The user is always right.
30645 if test "${PATH_SEPARATOR+set}" != set; then
30646 echo "#! /bin/sh" >conf$$.sh
30647 echo "exit 0" >>conf$$.sh
30649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30657 # Support unset when possible.
30658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30666 # We need space, tab and new line, in precisely that order. Quoting is
30667 # there to prevent editors from complaining about space-tab.
30668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30669 # splitting by setting IFS to empty value.)
30674 # Find who we are. Look in the path if we contain no directory separator.
30676 *[\\/]* ) as_myself=$0 ;;
30677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30678 for as_dir in $PATH
30681 test -z "$as_dir" && as_dir=.
30682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30688 # We did not find ourselves, most probably we were run as `sh COMMAND'
30689 # in which case we are not to be found in the path.
30690 if test "x$as_myself" = x; then
30693 if test ! -f "$as_myself"; then
30694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30695 { (exit 1); exit 1; }
30698 # Work around bugs in pre-3.0 UWIN ksh.
30699 for as_var in ENV MAIL MAILPATH
30700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30710 LC_TELEPHONE LC_TIME
30712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30713 eval $as_var=C; export $as_var
30715 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30719 # Required to use basename.
30720 if expr a : '\(a\)' >/dev/null 2>&1 &&
30721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30728 as_basename=basename
30734 # Name of the executable.
30735 as_me=`$as_basename -- "$0" ||
30736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30737 X"$0" : 'X\(//\)$' \| \
30738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30740 sed '/^.*\/\([^/][^/]*\)\/*$/{
30759 as_lineno_1=$LINENO
30760 as_lineno_2=$LINENO
30761 test "x$as_lineno_1" != "x$as_lineno_2" &&
30762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30765 # uniformly replaced by the line number. The first 'sed' inserts a
30766 # line-number line after each line using $LINENO; the second 'sed'
30767 # does the real work. The second script uses 'N' to pair each
30768 # line-number line with the line containing $LINENO, and appends
30769 # trailing '-' during substitution so that $LINENO is not a special
30770 # case at line end.
30771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30772 # scripts with optimization help from Paolo Bonzini. Blame Lee
30773 # E. McMahon (1931-1989) for sed's syntax. :-)
30785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30788 ' >$as_me.lineno &&
30789 chmod +x "$as_me.lineno" ||
30790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30791 { (exit 1); exit 1; }; }
30793 # Don't try to exec as it changes $[0], causing all sort of problems
30794 # (the dirname of $[0] is not the place where we might find the
30795 # original and so on. Autoconf is especially sensitive to this).
30796 . "./$as_me.lineno"
30797 # Exit status is that of the last command.
30802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30808 ECHO_C= ECHO_N= ECHO_T=
30809 case `echo -n x` in
30811 case `echo 'x\c'` in
30812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30819 if expr a : '\(a\)' >/dev/null 2>&1 &&
30820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30826 rm -f conf$$ conf$$.exe conf$$.file
30827 if test -d conf$$.dir; then
30828 rm -f conf$$.dir/conf$$.file
30834 if ln -s conf$$.file conf$$ 2>/dev/null; then
30836 # ... but there are two gotchas:
30837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30839 # In both cases, we have to default to `cp -p'.
30840 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30842 elif ln conf$$.file conf$$ 2>/dev/null; then
30847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30848 rmdir conf$$.dir 2>/dev/null
30850 if mkdir -p . 2>/dev/null; then
30853 test -d ./-p && rmdir ./-p
30857 if test -x / >/dev/null 2>&1; then
30858 as_test_x='test -x'
30860 if ls -dL / >/dev/null 2>&1; then
30867 if test -d "$1"; then
30873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30874 ???[sx]*):;;*)false;;esac;fi
30878 as_executable_p=$as_test_x
30880 # Sed expression to map a string onto a valid CPP name.
30881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30883 # Sed expression to map a string onto a valid variable name.
30884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30889 # Save the log message, to keep $[0] and so on meaningful, and to
30890 # report actual input values of CONFIG_FILES etc. instead of their
30891 # values after options handling.
30893 This file was extended by $as_me, which was
30894 generated by GNU Autoconf 2.61. Invocation command line was
30896 CONFIG_FILES = $CONFIG_FILES
30897 CONFIG_HEADERS = $CONFIG_HEADERS
30898 CONFIG_LINKS = $CONFIG_LINKS
30899 CONFIG_COMMANDS = $CONFIG_COMMANDS
30902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30907 cat >>$CONFIG_STATUS <<_ACEOF
30908 # Files that config.status was made for.
30909 config_files="$ac_config_files"
30910 config_headers="$ac_config_headers"
30911 config_commands="$ac_config_commands"
30915 cat >>$CONFIG_STATUS <<\_ACEOF
30917 \`$as_me' instantiates files from templates according to the
30918 current configuration.
30920 Usage: $0 [OPTIONS] [FILE]...
30922 -h, --help print this help, then exit
30923 -V, --version print version number and configuration settings, then exit
30924 -q, --quiet do not print progress messages
30925 -d, --debug don't remove temporary files
30926 --recheck update $as_me by reconfiguring in the same conditions
30927 --file=FILE[:TEMPLATE]
30928 instantiate the configuration file FILE
30929 --header=FILE[:TEMPLATE]
30930 instantiate the configuration header FILE
30932 Configuration files:
30935 Configuration headers:
30938 Configuration commands:
30941 Report bugs to <bug-autoconf@gnu.org>."
30944 cat >>$CONFIG_STATUS <<_ACEOF
30947 configured by $0, generated by GNU Autoconf 2.61,
30948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30950 Copyright (C) 2006 Free Software Foundation, Inc.
30951 This config.status script is free software; the Free Software Foundation
30952 gives unlimited permission to copy, distribute and modify it."
30959 cat >>$CONFIG_STATUS <<\_ACEOF
30960 # If no file are specified by the user, then we need to provide default
30961 # value. By we need to know if files were specified by the user.
30967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30979 # Handling of the options.
30980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30983 echo "$ac_cs_version"; exit ;;
30984 --debug | --debu | --deb | --de | --d | -d )
30986 --file | --fil | --fi | --f )
30988 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30989 ac_need_defaults=false;;
30990 --header | --heade | --head | --hea )
30992 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30993 ac_need_defaults=false;;
30995 # Conflict between --help and --header
30996 { echo "$as_me: error: ambiguous option: $1
30997 Try \`$0 --help' for more information." >&2
30998 { (exit 1); exit 1; }; };;
30999 --help | --hel | -h )
31000 echo "$ac_cs_usage"; exit ;;
31001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31005 # This is an error.
31006 -*) { echo "$as_me: error: unrecognized option: $1
31007 Try \`$0 --help' for more information." >&2
31008 { (exit 1); exit 1; }; } ;;
31010 *) ac_config_targets="$ac_config_targets $1"
31011 ac_need_defaults=false ;;
31017 ac_configure_extra_args=
31019 if $ac_cs_silent; then
31021 ac_configure_extra_args="$ac_configure_extra_args --silent"
31025 cat >>$CONFIG_STATUS <<_ACEOF
31026 if \$ac_cs_recheck; then
31027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31028 CONFIG_SHELL=$SHELL
31029 export CONFIG_SHELL
31030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31034 cat >>$CONFIG_STATUS <<\_ACEOF
31038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31039 ## Running $as_me. ##
31045 cat >>$CONFIG_STATUS <<_ACEOF
31049 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31050 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31052 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31053 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31054 LINGUAS="${LINGUAS-%UNSET%}"
31059 cat >>$CONFIG_STATUS <<\_ACEOF
31061 # Handling of arguments.
31062 for ac_config_target in $ac_config_targets
31064 case $ac_config_target in
31065 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31066 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31067 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31068 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31069 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31070 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31071 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31072 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31073 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31074 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31075 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31076 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31077 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31078 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31079 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31080 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31081 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31082 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31083 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31084 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31085 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31086 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31087 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31088 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31089 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31090 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31091 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31092 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31093 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31094 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31095 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31096 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31097 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31098 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31099 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31100 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31101 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31102 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31103 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31104 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31105 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31106 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31107 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31108 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31109 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31110 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31111 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31112 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31113 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31114 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31115 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31116 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31117 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31118 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31119 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31120 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31121 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31122 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31123 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31124 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31125 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31126 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31127 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31128 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31129 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31130 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31131 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31132 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31133 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31134 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31135 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31136 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31137 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31138 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31139 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31140 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31141 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31142 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31143 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31144 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31145 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31146 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31147 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31148 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31149 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31150 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31151 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31152 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31153 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31154 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31155 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31156 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31157 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31158 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31159 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31160 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31161 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31162 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31163 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31164 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31165 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31166 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31167 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31168 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31169 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31170 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31171 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31172 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31173 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31174 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31176 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31177 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31178 { (exit 1); exit 1; }; };;
31183 # If the user did not use the arguments to specify the items to instantiate,
31184 # then the envvar interface is used. Set only those that are not.
31185 # We use the long form for the default assignment because of an extremely
31186 # bizarre bug on SunOS 4.1.3.
31187 if $ac_need_defaults; then
31188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31193 # Have a temporary directory for convenience. Make it in the build tree
31194 # simply because there is no reason against having it here, and in addition,
31195 # creating and moving files from /tmp can sometimes cause problems.
31196 # Hook for its removal unless debugging.
31197 # Note that there is a small window in which the directory will not be cleaned:
31198 # after its creation but before its name has been assigned to `$tmp'.
31202 trap 'exit_status=$?
31203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31205 trap '{ (exit 1); exit 1; }' 1 2 13 15
31207 # Create a (secure) tmp directory for tmp files.
31210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31211 test -n "$tmp" && test -d "$tmp"
31214 tmp=./conf$$-$RANDOM
31215 (umask 077 && mkdir "$tmp")
31218 echo "$me: cannot create a temporary directory in ." >&2
31219 { (exit 1); exit 1; }
31223 # Set up the sed scripts for CONFIG_FILES section.
31226 # No need to generate the scripts if there are no CONFIG_FILES.
31227 # This happens for instance when ./config.status config.h
31228 if test -n "$CONFIG_FILES"; then
31232 # Create sed commands to just substitute file output variables.
31234 # Remaining file output variables are in a fragment that also has non-file
31240 for ac_last_try in false false false false false :; do
31241 cat >conf$$subs.sed <<_ACEOF
31242 SHELL!$SHELL$ac_delim
31243 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31244 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31245 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31246 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31247 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31248 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31249 exec_prefix!$exec_prefix$ac_delim
31250 prefix!$prefix$ac_delim
31251 program_transform_name!$program_transform_name$ac_delim
31252 bindir!$bindir$ac_delim
31253 sbindir!$sbindir$ac_delim
31254 libexecdir!$libexecdir$ac_delim
31255 datarootdir!$datarootdir$ac_delim
31256 datadir!$datadir$ac_delim
31257 sysconfdir!$sysconfdir$ac_delim
31258 sharedstatedir!$sharedstatedir$ac_delim
31259 localstatedir!$localstatedir$ac_delim
31260 includedir!$includedir$ac_delim
31261 oldincludedir!$oldincludedir$ac_delim
31262 docdir!$docdir$ac_delim
31263 infodir!$infodir$ac_delim
31264 htmldir!$htmldir$ac_delim
31265 dvidir!$dvidir$ac_delim
31266 pdfdir!$pdfdir$ac_delim
31267 psdir!$psdir$ac_delim
31268 libdir!$libdir$ac_delim
31269 localedir!$localedir$ac_delim
31270 mandir!$mandir$ac_delim
31271 DEFS!$DEFS$ac_delim
31272 ECHO_C!$ECHO_C$ac_delim
31273 ECHO_N!$ECHO_N$ac_delim
31274 ECHO_T!$ECHO_T$ac_delim
31275 LIBS!$LIBS$ac_delim
31276 build_alias!$build_alias$ac_delim
31277 host_alias!$host_alias$ac_delim
31278 target_alias!$target_alias$ac_delim
31279 BUILD_DIR!$BUILD_DIR$ac_delim
31280 TOP_DIR!$TOP_DIR$ac_delim
31281 TRUEPRG!$TRUEPRG$ac_delim
31282 FALSEPRG!$FALSEPRG$ac_delim
31283 VERSION!$VERSION$ac_delim
31284 DATE!$DATE$ac_delim
31285 LSMDATE!$LSMDATE$ac_delim
31287 CFLAGS!$CFLAGS$ac_delim
31288 LDFLAGS!$LDFLAGS$ac_delim
31289 CPPFLAGS!$CPPFLAGS$ac_delim
31290 ac_ct_CC!$ac_ct_CC$ac_delim
31291 EXEEXT!$EXEEXT$ac_delim
31292 OBJEXT!$OBJEXT$ac_delim
31294 CXXFLAGS!$CXXFLAGS$ac_delim
31295 ac_ct_CXX!$ac_ct_CXX$ac_delim
31297 GREP!$GREP$ac_delim
31298 EGREP!$EGREP$ac_delim
31299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31301 INSTALL_DATA!$INSTALL_DATA$ac_delim
31302 RANLIB!$RANLIB$ac_delim
31307 ECHO!$ECHO$ac_delim
31311 OPENSSL!$OPENSSL$ac_delim
31314 MKISOFS!$MKISOFS$ac_delim
31315 PYTHON!$PYTHON$ac_delim
31316 GROWISOFS!$GROWISOFS$ac_delim
31317 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31318 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31319 PKGCONFIG!$PKGCONFIG$ac_delim
31320 QMAKE!$QMAKE$ac_delim
31321 QMAKEQT4!$QMAKEQT4$ac_delim
31322 WXCONFIG!$WXCONFIG$ac_delim
31323 WXFLAGS!$WXFLAGS$ac_delim
31324 CDRECORD!$CDRECORD$ac_delim
31325 PIDOF!$PIDOF$ac_delim
31327 ARFLAGS!$ARFLAGS$ac_delim
31328 MAKE_SHELL!$MAKE_SHELL$ac_delim
31329 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31330 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31331 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31332 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31333 build!$build$ac_delim
31334 build_cpu!$build_cpu$ac_delim
31335 build_vendor!$build_vendor$ac_delim
31338 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31340 elif $ac_last_try; then
31341 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31343 { (exit 1); exit 1; }; }
31345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31350 if test -n "$ac_eof"; then
31351 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31352 ac_eof=`expr $ac_eof + 1`
31355 cat >>$CONFIG_STATUS <<_ACEOF
31356 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31358 /^[ ]*@MCOMMON@[ ]*$/{
31364 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31365 s/^/s,@/; s/!/@,|#_!!_#|/
31368 s/'"$ac_delim"'$/,g/; t
31370 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31371 ' >>$CONFIG_STATUS <conf$$subs.sed
31372 rm -f conf$$subs.sed
31373 cat >>$CONFIG_STATUS <<_ACEOF
31379 for ac_last_try in false false false false false :; do
31380 cat >conf$$subs.sed <<_ACEOF
31381 build_os!$build_os$ac_delim
31382 host!$host$ac_delim
31383 host_cpu!$host_cpu$ac_delim
31384 host_vendor!$host_vendor$ac_delim
31385 host_os!$host_os$ac_delim
31386 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31387 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31388 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31389 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31390 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31391 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31392 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31393 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31394 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31395 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31396 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31397 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31398 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31399 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31400 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31401 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31402 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31403 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31404 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31405 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31406 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31407 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31408 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31409 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31410 SET_MAKE!$SET_MAKE$ac_delim
31411 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31412 USE_NLS!$USE_NLS$ac_delim
31413 MSGFMT!$MSGFMT$ac_delim
31414 GMSGFMT!$GMSGFMT$ac_delim
31415 XGETTEXT!$XGETTEXT$ac_delim
31416 MSGMERGE!$MSGMERGE$ac_delim
31417 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31418 LIBICONV!$LIBICONV$ac_delim
31419 LTLIBICONV!$LTLIBICONV$ac_delim
31420 INTLLIBS!$INTLLIBS$ac_delim
31421 LIBINTL!$LIBINTL$ac_delim
31422 LTLIBINTL!$LTLIBINTL$ac_delim
31423 POSUB!$POSUB$ac_delim
31424 GLIBC2!$GLIBC2$ac_delim
31425 ALLOCA!$ALLOCA$ac_delim
31426 GLIBC21!$GLIBC21$ac_delim
31427 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31428 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31429 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31430 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31431 INTLBISON!$INTLBISON$ac_delim
31432 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31433 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31434 CATOBJEXT!$CATOBJEXT$ac_delim
31435 DATADIRNAME!$DATADIRNAME$ac_delim
31436 INSTOBJEXT!$INSTOBJEXT$ac_delim
31437 GENCAT!$GENCAT$ac_delim
31438 INTLOBJS!$INTLOBJS$ac_delim
31439 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31440 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31441 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31442 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31443 GNOME_LIBS!$GNOME_LIBS$ac_delim
31444 GNOME_DIR!$GNOME_DIR$ac_delim
31445 BAT_DIR!$BAT_DIR$ac_delim
31446 QWT_INC!$QWT_INC$ac_delim
31447 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31448 QWT_LIB!$QWT_LIB$ac_delim
31450 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31451 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31452 WX_DIR!$WX_DIR$ac_delim
31453 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31454 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31455 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31456 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31457 STATIC_FD!$STATIC_FD$ac_delim
31458 STATIC_SD!$STATIC_SD$ac_delim
31459 STATIC_DIR!$STATIC_DIR$ac_delim
31460 STATIC_CONS!$STATIC_CONS$ac_delim
31461 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31462 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31463 ALL_DIRS!$ALL_DIRS$ac_delim
31464 DIRD_DIR!$DIRD_DIR$ac_delim
31465 DIR_TOOLS!$DIR_TOOLS$ac_delim
31466 STORED_DIR!$STORED_DIR$ac_delim
31467 CONS_INC!$CONS_INC$ac_delim
31468 CONS_OBJ!$CONS_OBJ$ac_delim
31469 CONS_SRC!$CONS_SRC$ac_delim
31470 CONS_LIBS!$CONS_LIBS$ac_delim
31471 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31472 READLINE_SRC!$READLINE_SRC$ac_delim
31473 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31474 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31475 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31476 OPENSSL_INC!$OPENSSL_INC$ac_delim
31477 working_dir!$working_dir$ac_delim
31480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31482 elif $ac_last_try; then
31483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31485 { (exit 1); exit 1; }; }
31487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31492 if test -n "$ac_eof"; then
31493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31494 ac_eof=`expr $ac_eof + 1`
31497 cat >>$CONFIG_STATUS <<_ACEOF
31498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31503 s/^/s,@/; s/!/@,|#_!!_#|/
31506 s/'"$ac_delim"'$/,g/; t
31508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31509 ' >>$CONFIG_STATUS <conf$$subs.sed
31510 rm -f conf$$subs.sed
31511 cat >>$CONFIG_STATUS <<_ACEOF
31517 for ac_last_try in false false false false false :; do
31518 cat >conf$$subs.sed <<_ACEOF
31519 archivedir!$archivedir$ac_delim
31520 scriptdir!$scriptdir$ac_delim
31521 dump_email!$dump_email$ac_delim
31522 job_email!$job_email$ac_delim
31523 smtp_host!$smtp_host$ac_delim
31524 piddir!$piddir$ac_delim
31525 subsysdir!$subsysdir$ac_delim
31526 baseport!$baseport$ac_delim
31527 dir_port!$dir_port$ac_delim
31528 fd_port!$fd_port$ac_delim
31529 sd_port!$sd_port$ac_delim
31530 dir_password!$dir_password$ac_delim
31531 fd_password!$fd_password$ac_delim
31532 sd_password!$sd_password$ac_delim
31533 mon_dir_password!$mon_dir_password$ac_delim
31534 mon_fd_password!$mon_fd_password$ac_delim
31535 mon_sd_password!$mon_sd_password$ac_delim
31536 db_name!$db_name$ac_delim
31537 db_user!$db_user$ac_delim
31538 db_password!$db_password$ac_delim
31539 db_port!$db_port$ac_delim
31540 dir_user!$dir_user$ac_delim
31541 dir_group!$dir_group$ac_delim
31542 sd_user!$sd_user$ac_delim
31543 sd_group!$sd_group$ac_delim
31544 fd_user!$fd_user$ac_delim
31545 fd_group!$fd_group$ac_delim
31546 SBINPERM!$SBINPERM$ac_delim
31547 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31548 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31549 SQL_BINDIR!$SQL_BINDIR$ac_delim
31550 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31551 uncomment_dbi!$uncomment_dbi$ac_delim
31552 DB_PROG!$DB_PROG$ac_delim
31553 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31554 cats!$cats$ac_delim
31555 DB_TYPE!$DB_TYPE$ac_delim
31556 GETCONF!$GETCONF$ac_delim
31557 XMKMF!$XMKMF$ac_delim
31558 X_CFLAGS!$X_CFLAGS$ac_delim
31559 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31560 X_LIBS!$X_LIBS$ac_delim
31561 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31562 LIBOBJS!$LIBOBJS$ac_delim
31563 FDLIBS!$FDLIBS$ac_delim
31564 DEBUG!$DEBUG$ac_delim
31565 DINCLUDE!$DINCLUDE$ac_delim
31566 DLIB!$DLIB$ac_delim
31567 DB_LIBS!$DB_LIBS$ac_delim
31568 WCFLAGS!$WCFLAGS$ac_delim
31569 WLDFLAGS!$WLDFLAGS$ac_delim
31570 WRAPLIBS!$WRAPLIBS$ac_delim
31571 OBJLIST!$OBJLIST$ac_delim
31572 hostname!$hostname$ac_delim
31573 TAPEDRIVE!$TAPEDRIVE$ac_delim
31574 PSCMD!$PSCMD$ac_delim
31575 WIN32!$WIN32$ac_delim
31576 MACOSX!$MACOSX$ac_delim
31577 DISTNAME!$DISTNAME$ac_delim
31578 DISTVER!$DISTVER$ac_delim
31579 LTLIBOBJS!$LTLIBOBJS$ac_delim
31582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
31584 elif $ac_last_try; then
31585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31587 { (exit 1); exit 1; }; }
31589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31594 if test -n "$ac_eof"; then
31595 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31596 ac_eof=`expr $ac_eof + 1`
31599 cat >>$CONFIG_STATUS <<_ACEOF
31600 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31605 s/^/s,@/; s/!/@,|#_!!_#|/
31608 s/'"$ac_delim"'$/,g/; t
31610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31611 ' >>$CONFIG_STATUS <conf$$subs.sed
31612 rm -f conf$$subs.sed
31613 cat >>$CONFIG_STATUS <<_ACEOF
31620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31622 # trailing colons and then remove the whole line if VPATH becomes empty
31623 # (actually we leave an empty line to preserve line numbers).
31624 if test "x$srcdir" = x.; then
31625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31626 s/:*\$(srcdir):*/:/
31627 s/:*\${srcdir}:*/:/
31629 s/^\([^=]*=[ ]*\):*/\1/
31635 cat >>$CONFIG_STATUS <<\_ACEOF
31636 fi # test -n "$CONFIG_FILES"
31639 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31642 :[FHLC]) ac_mode=$ac_tag; continue;;
31644 case $ac_mode$ac_tag in
31646 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31648 { (exit 1); exit 1; }; };;
31649 :[FH]-) ac_tag=-:-;;
31650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31667 -) ac_f="$tmp/stdin";;
31668 *) # Look for the file first in the build tree, then in the source tree
31669 # (if the path is not absolute). The absolute path cannot be DOS-style,
31670 # because $ac_f cannot contain `:'.
31674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31676 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31678 { (exit 1); exit 1; }; };;
31680 ac_file_inputs="$ac_file_inputs $ac_f"
31683 # Let's still pretend it is `configure' which instantiates (i.e., don't
31684 # use $as_me), people would be surprised to read:
31685 # /* config.h. Generated by config.status. */
31686 configure_input="Generated from "`IFS=:
31687 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31688 if test x"$ac_file" != x-; then
31689 configure_input="$ac_file. $configure_input"
31690 { echo "$as_me:$LINENO: creating $ac_file" >&5
31691 echo "$as_me: creating $ac_file" >&6;}
31695 *:-:* | *:-) cat >"$tmp/stdin";;
31700 ac_dir=`$as_dirname -- "$ac_file" ||
31701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31702 X"$ac_file" : 'X\(//\)[^/]' \| \
31703 X"$ac_file" : 'X\(//\)$' \| \
31704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31710 /^X\(\/\/\)[^/].*/{
31725 -*) as_dir=./$as_dir;;
31727 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31731 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31732 *) as_qdir=$as_dir;;
31734 as_dirs="'$as_qdir' $as_dirs"
31735 as_dir=`$as_dirname -- "$as_dir" ||
31736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31737 X"$as_dir" : 'X\(//\)[^/]' \| \
31738 X"$as_dir" : 'X\(//\)$' \| \
31739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31745 /^X\(\/\/\)[^/].*/{
31758 test -d "$as_dir" && break
31760 test -z "$as_dirs" || eval "mkdir $as_dirs"
31761 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31763 { (exit 1); exit 1; }; }; }
31767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31770 # A ".." for each directory in $ac_dir_suffix.
31771 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31772 case $ac_top_builddir_sub in
31773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31777 ac_abs_top_builddir=$ac_pwd
31778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31779 # for backward compatibility:
31780 ac_top_builddir=$ac_top_build_prefix
31783 .) # We are building in place.
31785 ac_top_srcdir=$ac_top_builddir_sub
31786 ac_abs_top_srcdir=$ac_pwd ;;
31787 [\\/]* | ?:[\\/]* ) # Absolute name.
31788 ac_srcdir=$srcdir$ac_dir_suffix;
31789 ac_top_srcdir=$srcdir
31790 ac_abs_top_srcdir=$srcdir ;;
31791 *) # Relative name.
31792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31793 ac_top_srcdir=$ac_top_build_prefix$srcdir
31794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31811 cat >>$CONFIG_STATUS <<\_ACEOF
31812 # If the template does not know about datarootdir, expand it.
31813 # FIXME: This hack should be removed a few years after 2.60.
31814 ac_datarootdir_hack=; ac_datarootdir_seen=
31816 case `sed -n '/datarootdir/ {
31825 ' $ac_file_inputs` in
31826 *datarootdir*) ac_datarootdir_seen=yes;;
31827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31828 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31829 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31831 cat >>$CONFIG_STATUS <<_ACEOF
31832 ac_datarootdir_hack='
31833 s&@datadir@&$datadir&g
31834 s&@docdir@&$docdir&g
31835 s&@infodir@&$infodir&g
31836 s&@localedir@&$localedir&g
31837 s&@mandir@&$mandir&g
31838 s&\\\${datarootdir}&$datarootdir&g' ;;
31842 # Neutralize VPATH when `$srcdir' = `.'.
31843 # Shell code in configure.ac might set extrasub.
31844 # FIXME: do we really want to maintain this feature?
31845 cat >>$CONFIG_STATUS <<_ACEOF
31849 cat >>$CONFIG_STATUS <<\_ACEOF
31851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31852 s&@configure_input@&$configure_input&;t t
31853 s&@top_builddir@&$ac_top_builddir_sub&;t t
31854 s&@srcdir@&$ac_srcdir&;t t
31855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31856 s&@top_srcdir@&$ac_top_srcdir&;t t
31857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31858 s&@builddir@&$ac_builddir&;t t
31859 s&@abs_builddir@&$ac_abs_builddir&;t t
31860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31861 s&@INSTALL@&$ac_INSTALL&;t t
31862 $ac_datarootdir_hack
31863 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31866 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31868 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31869 which seems to be undefined. Please make sure it is defined." >&5
31870 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31871 which seems to be undefined. Please make sure it is defined." >&2;}
31875 -) cat "$tmp/out"; rm -f "$tmp/out";;
31876 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31885 # Transform confdefs.h into a sed script `conftest.defines', that
31886 # substitutes the proper values into config.h.in to produce config.h.
31887 rm -f conftest.defines conftest.tail
31888 # First, append a space to every undef/define line, to ease matching.
31889 echo 's/$/ /' >conftest.defines
31890 # Then, protect against being on the right side of a sed subst, or in
31891 # an unquoted here document, in config.status. If some macros were
31892 # called several times there might be several #defines for the same
31893 # symbol, which is useless. But do not sort them, since the last
31894 # AC_DEFINE must be honored.
31895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31896 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31897 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31898 # PARAMS is the parameter list in the macro definition--in most cases, it's
31899 # just an empty string.
31900 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31901 ac_dB='\\)[ (].*,\\1define\\2'
31909 s/^[ ]*#[ ]*define[ ][ ]*//
31914 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31915 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31916 ' >>conftest.defines
31918 # Remove the space that was appended to ease matching.
31919 # Then replace #undef with comments. This is necessary, for
31920 # example, in the case of _POSIX_SOURCE, which is predefined and required
31921 # on some systems where configure will not decide to define it.
31922 # (The regexp can be short, since the line contains either #define or #undef.)
31924 s,^[ #]*u.*,/* & */,' >>conftest.defines
31926 # Break up conftest.defines:
31927 ac_max_sed_lines=50
31929 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31930 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31931 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31933 ac_in='$ac_file_inputs'
31934 ac_out='"$tmp/out1"'
31935 ac_nxt='"$tmp/out2"'
31939 # Write a here document:
31940 cat >>$CONFIG_STATUS <<_ACEOF
31941 # First, check the format of the line:
31942 cat >"\$tmp/defines.sed" <<\\CEOF
31943 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31944 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31948 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31950 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31951 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31952 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31953 grep . conftest.tail >/dev/null || break
31954 rm -f conftest.defines
31955 mv conftest.tail conftest.defines
31957 rm -f conftest.defines conftest.tail
31959 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31960 cat >>$CONFIG_STATUS <<\_ACEOF
31961 if test x"$ac_file" != x-; then
31962 echo "/* $configure_input */" >"$tmp/config.h"
31963 cat "$ac_result" >>"$tmp/config.h"
31964 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31965 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31966 echo "$as_me: $ac_file is unchanged" >&6;}
31969 mv "$tmp/config.h" $ac_file
31972 echo "/* $configure_input */"
31978 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31979 echo "$as_me: executing $ac_file commands" >&6;}
31984 case $ac_file$ac_mode in
31986 for ac_file in $CONFIG_FILES; do
31987 # Support "outfile[:infile[:infile...]]"
31989 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31991 # PO directories have a Makefile.in generated from Makefile.in.in.
31992 case "$ac_file" in */Makefile.in)
31993 # Adjust a relative srcdir.
31994 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31995 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31996 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31997 # In autoconf-2.13 it is called $ac_given_srcdir.
31998 # In autoconf-2.50 it is called $srcdir.
31999 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32000 case "$ac_given_srcdir" in
32001 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32002 /*) top_srcdir="$ac_given_srcdir" ;;
32003 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32005 # Treat a directory as a PO directory if and only if it has a
32006 # POTFILES.in file. This allows packages to have multiple PO
32007 # directories under different names or in different locations.
32008 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32009 rm -f "$ac_dir/POTFILES"
32010 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32011 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32012 POMAKEFILEDEPS="POTFILES.in"
32013 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32014 # on $ac_dir but don't depend on user-specified configuration
32016 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32017 # The LINGUAS file contains the set of available languages.
32018 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32019 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32021 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32022 # Hide the ALL_LINGUAS assigment from automake.
32023 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32024 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32026 # The set of available languages was given in configure.in.
32027 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32030 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32031 # Compute UPDATEPOFILES
32032 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32033 # Compute DUMMYPOFILES
32034 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32036 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32037 case "$ac_given_srcdir" in
32039 *) srcdirpre='$(srcdir)/' ;;
32045 for lang in $ALL_LINGUAS; do
32046 POFILES="$POFILES $srcdirpre$lang.po"
32047 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32048 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32049 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32051 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32052 # environment variable.
32054 if test -n "$ALL_LINGUAS"; then
32055 for presentlang in $ALL_LINGUAS; do
32057 if test "%UNSET%" != "$LINGUAS"; then
32058 desiredlanguages="$LINGUAS"
32060 desiredlanguages="$ALL_LINGUAS"
32062 for desiredlang in $desiredlanguages; do
32063 # Use the presentlang catalog if desiredlang is
32064 # a. equal to presentlang, or
32065 # b. a variant of presentlang (because in this case,
32066 # presentlang can be used as a fallback for messages
32067 # which are not translated in the desiredlang catalog).
32068 case "$desiredlang" in
32069 "$presentlang"*) useit=yes;;
32072 if test $useit = yes; then
32073 INST_LINGUAS="$INST_LINGUAS $presentlang"
32078 if test -n "$INST_LINGUAS"; then
32079 for lang in $INST_LINGUAS; do
32080 CATALOGS="$CATALOGS $lang.gmo"
32083 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32084 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"
32085 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32086 if test -f "$f"; then
32088 *.orig | *.bak | *~) ;;
32089 *) cat "$f" >> "$ac_dir/Makefile" ;;
32104 { (exit 0); exit 0; }
32106 chmod +x $CONFIG_STATUS
32107 ac_clean_files=$ac_clean_files_save
32110 # configure is writing to config.log, and then calls config.status.
32111 # config.status does its own redirection, appending to config.log.
32112 # Unfortunately, on DOS this fails, as config.log is still kept open
32113 # by configure, so config.status won't be able to write to it; its
32114 # output is simply discarded. So we exec the FD to /dev/null,
32115 # effectively closing config.log, so it can be properly (re)opened and
32116 # appended to by config.status. When coming back to configure, we
32117 # need to make the FD available again.
32118 if test "$no_create" != yes; then
32120 ac_config_status_args=
32121 test "$silent" = yes &&
32122 ac_config_status_args="$ac_config_status_args --quiet"
32124 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32126 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32127 # would make configure fail if this is the last instruction.
32128 $ac_cs_success || { (exit 1); exit 1; }
32132 if test "${support_bat}" = "yes" ; then
32133 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32134 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32140 if test "x$QMAKEQT4" != "xnone"; then
32145 chmod 755 install_conf_file build-depkgs-qt-console
32146 echo "Creating bat Makefile"
32152 # configure and prepare libtokyodbm for bacula
32153 pushd src/lib/tokyocabinet > /dev/null
32155 if test x$largefile_support = xyes; then
32156 tcdbm_opt=--enable-off64
32158 ./configure $tcdbm_opt
32160 # need tokyo header files for "make depend"
32161 cp src/lib/tokyocabinet/t*.h src/lib
32163 echo "Doing make of dependencies"
32164 ${MAKE:-make} depend
32167 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32168 chmod 755 dvd-handler dvd-simulator
32169 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32173 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32174 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32178 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32179 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32181 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32182 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32184 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32185 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32187 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32188 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32190 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32191 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32193 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32194 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32196 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32197 chmod 755 $c/sqlite
32200 chmod 755 src/win32/build-depkgs-mingw32
32204 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32205 largefile_support="yes"
32209 # A whole lot of hand springs to get the compiler version.
32210 # This is because gcc changed the output in version 3.0
32212 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32213 if test "x${CCVERSION}" = "x" ; then
32214 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32216 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32217 if test x"${CXXVERSION}" = x ; then
32218 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32221 if test "x${subsysdir}" = "x${sbindir}" ; then
32224 echo "You have set --sbindir and --with-subsys-dir"
32225 echo " both equal to: ${subsysdir} "
32226 echo " This is not permitted. Please reconfigure."
32228 echo "Aborting configuration ..."
32234 if test "x${db_type}" = "xInternal" ; then
32237 echo "You have not specified either --enable-client-only or one of the"
32238 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32239 echo " This is not permitted. Please reconfigure."
32241 echo "Aborting the configuration ..."
32248 Configuration on `date`:
32250 Host: $host -- ${DISTNAME} ${DISTVER}
32251 Bacula version: ${VERSION} (${DATE})
32252 Source code location: ${srcdir}
32253 Install binaries: ${sbindir}
32254 Install config files: ${sysconfdir}
32255 Scripts directory: ${scriptdir}
32256 Archive directory: ${archivedir}
32257 Working directory: ${working_dir}
32258 PID directory: ${piddir}
32259 Subsys directory: ${subsysdir}
32260 Man directory: ${mandir}
32261 Data directory: ${datadir}
32262 C Compiler: ${CC} ${CCVERSION}
32263 C++ Compiler: ${CXX} ${CXXVERSION}
32264 Compiler flags: ${WCFLAGS} ${CFLAGS}
32265 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32267 Statically Linked Tools: ${support_static_tools}
32268 Statically Linked FD: ${support_static_fd}
32269 Statically Linked SD: ${support_static_sd}
32270 Statically Linked DIR: ${support_static_dir}
32271 Statically Linked CONS: ${support_static_cons}
32272 Database type: ${db_type}
32273 Database port: ${db_port}
32274 Database lib: ${DB_LIBS}
32275 Database name: ${db_name}
32276 Database user: ${db_user}
32278 Job Output Email: ${job_email}
32279 Traceback Email: ${dump_email}
32280 SMTP Host Address: ${smtp_host}
32282 Director Port: ${dir_port}
32283 File daemon Port: ${fd_port}
32284 Storage daemon Port: ${sd_port}
32286 Director User: ${dir_user}
32287 Director Group: ${dir_group}
32288 Storage Daemon User: ${sd_user}
32289 Storage DaemonGroup: ${sd_group}
32290 File Daemon User: ${fd_user}
32291 File Daemon Group: ${fd_group}
32293 SQL binaries Directory ${SQL_BINDIR}
32295 Large file support: $largefile_support
32296 Bacula conio support: ${got_conio} ${CONS_LIBS}
32297 readline support: ${got_readline} ${PRTREADLINE_SRC}
32298 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32299 TLS support: ${support_tls}
32300 Encryption support: ${support_crypto}
32301 ZLIB support: ${have_zlib}
32302 enable-smartalloc: ${support_smartalloc}
32303 bat support: ${support_bat} ${QWT_LDFLAGS}
32304 enable-gnome: ${support_gnome} ${gnome_version}
32305 enable-bwx-console: ${support_wx_console} ${wx_version}
32306 enable-tray-monitor: ${support_tray_monitor}
32307 client-only: ${build_client_only}
32308 build-dird: ${build_dird}
32309 build-stored: ${build_stored}
32310 ACL support: ${have_acl}
32311 Python support: ${support_python} ${PYTHON_LIBS}
32312 Batch insert enabled: ${support_batch_insert}