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
865 ac_subst_files='MCOMMON'
866 ac_precious_vars='build_alias
883 # Initialize some variables set by options.
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name=s,x,x,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990 eval enable_$ac_feature=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=no ;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 if test -n "$ac_init_help"; then
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-nls do not use Native Language Support
1458 --disable-rpath do not hardcode runtime library paths
1459 --enable-gnome enable build of bgnome-console GUI disabled
1460 --enable-bat enable build of bat Qt4 GUI disabled
1461 --enable-bwx-console enable build of wxWidgets console disabled
1462 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1463 --enable-smartalloc enable smartalloc debugging support disabled
1464 --enable-faketape enable faketape debugging support disabled
1465 --enable-static-tools enable static tape tools disabled
1466 --enable-static-fd enable static File daemon disabled
1467 --enable-static-sd enable static Storage daemon disabled
1468 --enable-static-dir enable static Director disabled
1469 --enable-static-cons enable static Console disabled
1470 --enable-client-only build client (File daemon) only disabled
1471 --enable-build-dird enable building of dird (Director) enabled
1472 --enable-build-stored enable building of stored (Storage daemon) enabled
1473 --disable-conio disable conio support enabled
1475 --enable-ipv6 enable ipv6 support enabled
1477 --disable-readline disable readline support disable
1479 --enable-batch-insert enable the DB batch insert code disabled
1480 --enable-batch-insert enable the DB batch insert code disabled
1481 --disable-largefile omit support for large files
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld default=no
1487 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1488 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1489 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1490 --without-libintl-prefix don't search for libintl in includedir and libdir
1491 --with-included-gettext use the GNU gettext library included here
1492 --with-qwt[=DIR] specify qwt library directory
1493 --with-readline[=DIR] specify readline library directory
1495 --with-python[=DIR] Include Python support. DIR is the Python base
1496 install directory, default is to search through
1497 a number of common places for the Python files.
1498 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1499 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1500 --with-working-dir=PATH specify path of Bacula working directory
1501 --with-archivedir=PATH specify path of SD archive directory
1502 --with-scriptdir=PATH specify path of Bacula scripts directory
1503 --with-dump-email=EMAIL dump email address
1504 --with-job-email=EMAIL job output email address
1505 --with-smtp-host=HOST SMTP mail host address
1506 --with-pid-dir=PATH specify location of Bacula pid files
1507 --with-subsys-dir=PATH specify location of Bacula subsys file
1508 --with-baseport=PORT specify base port address for daemons
1509 --with-dir-password=PASSWORD specify Director's password
1510 --with-fd-password=PASSWORD specify Client's password
1511 --with-sd-password=PASSWORD specify Storage daemon's password
1512 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1513 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1514 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1515 --with-db-name=DBNAME specify database name (default bacula)
1516 --with-db-user=UNAME specify database user (default bacula)
1517 --with-dir-user=USER specify user for Director daemon
1518 --with-dir-group=GROUP specify group for Director daemon
1519 --with-sd-user=USER specify user for Storage daemon
1520 --with-sd-group=GROUP specify group for Storage daemon
1521 --with-fd-user=USER specify user for File daemon
1522 --with-fd-group=GROUP specify group for File daemon
1523 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1524 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1525 base install directory, defaults to /usr/local/pgsql
1527 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1528 install directory, default is to search through
1529 a number of common places for the MySQL files.
1531 --with-embedded-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-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1536 install directory, default is to search through
1537 a number of common places for the SQLite3 files.
1539 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1540 install directory, default is to search through
1541 a number of common places for the SQLite files.
1543 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1544 install directory, default is to search through
1545 a number of common places for the DBI files.
1547 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1548 the one DBI driver like Mysql, Postgresql, others.
1549 Default is to not configure any driver.
1550 --with-x use the X Window System
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1563 WXCONFIG wx-config command. On some systems, you must set it to
1564 wx-config-2.6 to use wxWidgets 2.6.
1565 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1566 XMKMF Path to xmkmf, Makefile generator for X Window System
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1645 It was created by $as_me, which was
1646 generated by GNU Autoconf 2.61. Invocation command line was
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1667 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1668 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1671 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1672 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1673 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 echo "PATH: $as_dir"
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_must_keep_next=false
1712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723 if test $ac_must_keep_next = true; then
1724 ac_must_keep_next=false # Got value, back to normal.
1727 *=* | --config-cache | -C | -disable-* | --disable-* \
1728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730 | -with-* | --with-* | -without-* | --without-* | --x)
1731 case "$ac_configure_args0 " in
1732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 -* ) ac_must_keep_next=true ;;
1738 ac_configure_args="$ac_configure_args '$ac_arg'"
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log. We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752 # Save into config.log some information that might help in debugging.
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1762 # The following way of writing the cache mishandles newlines in values,
1764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765 eval ac_val=\$$ac_var
1769 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 _ | IFS | as_nl) ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 echo "$as_me: caught signal $ac_signal"
1839 echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883 set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 set x "$ac_default_prefix/share/config.site" \
1888 "$ac_default_prefix/etc/config.site"
1893 if test -r "$ac_site_file"; then
1894 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1941 echo "$as_me: former value: $ac_old_val" >&2;}
1942 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1943 echo "$as_me: current value: $ac_new_val" >&2;}
1944 ac_cache_corrupted=:
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1950 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 if $ac_cache_corrupted; then
1960 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1998 if test -f "$ac_dir/install-sh"; then
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 elif test -f "$ac_dir/install.sh"; then
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 elif test -f "$ac_dir/shtool"; then
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2054 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 TRUEPRG=$ac_cv_path_TRUEPRG
2066 if test -n "$TRUEPRG"; then
2067 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2068 echo "${ECHO_T}$TRUEPRG" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$TRUEPRG" && break
2077 test -n "$TRUEPRG" || TRUEPRG=":"
2079 for ac_prog in false
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 FALSEPRG=$ac_cv_path_FALSEPRG
2112 if test -n "$FALSEPRG"; then
2113 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2114 echo "${ECHO_T}$FALSEPRG" >&6; }
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2121 test -n "$FALSEPRG" && break
2123 test -n "$FALSEPRG" || FALSEPRG=":"
2127 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 echo "configuring for bacula $VERSION ($DATE)"
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { (ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 # We found the default executable, but exeext='' is most
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag=$ac_c_werror_flag
2786 ac_c_werror_flag=yes
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_cv_prog_cc_c89=$ac_arg
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 rm -f conftest.$ac_ext
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -z "$CXX"; then
3059 if test -n "$CCC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CXX+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CXX"; then
3073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CXX"; then
3094 { echo "$as_me:$LINENO: result: $CXX" >&5
3095 echo "${ECHO_T}$CXX" >&6; }
3097 { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3102 test -n "$CXX" && break
3105 if test -z "$CXX"; then
3107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if test -n "$ac_ct_CXX"; then
3117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_CXX="$ac_prog"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3137 if test -n "$ac_ct_CXX"; then
3138 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3139 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3141 { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3146 test -n "$ac_ct_CXX" && break
3149 if test "x$ac_ct_CXX" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet. If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet. If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3168 # Provide some information about the compiler.
3169 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3170 ac_compiler=`set X $ac_compile; echo $2`
3171 { (ac_try="$ac_compiler --version >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compiler --version >&5") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (ac_try="$ac_compiler -v >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler -v >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3191 { (ac_try="$ac_compiler -V >&5"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler -V >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_cxx_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3256 GXX=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CXXFLAGS=${CXXFLAGS+set}
3258 ac_save_CXXFLAGS=$CXXFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cxx_g+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3265 ac_cxx_werror_flag=yes
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_cxx_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cxx_g=yes
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_cxx_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_cxx_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_cv_prog_cxx_g=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3396 if test "$ac_test_CXXFLAGS" = set; then
3397 CXXFLAGS=$ac_save_CXXFLAGS
3398 elif test $ac_cv_prog_cxx_g = yes; then
3399 if test "$GXX" = yes; then
3405 if test "$GXX" = yes; then
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 if test "x$CC" != xcc; then
3418 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3419 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3421 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3422 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3424 set dummy $CC; ac_cc=`echo $2 |
3425 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3426 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3444 # Make sure it works both with $CC and with simple cc.
3445 # We do the test twice because some compilers refuse to overwrite an
3446 # existing .o file with -o, though they will create one.
3447 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3449 if { (case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_try") 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); };
3468 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3469 if test "x$CC" != xcc; then
3470 # Test first that cc exists at all.
3471 if { ac_try='cc -c conftest.$ac_ext >&5'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3483 if { (case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_try") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); };
3505 # cc exists but doesn't like -o.
3506 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3511 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3513 rm -f core conftest*
3516 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3517 { echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6; }
3520 { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3523 cat >>confdefs.h <<\_ACEOF
3524 #define NO_MINUS_C_MINUS_O 1
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3540 if test -z "$CPP"; then
3541 if test "${ac_cv_prog_CPP+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 # Double quotes because CPP needs to be expanded
3545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 # include <limits.h>
3565 # include <assert.h>
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3650 { echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6; }
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3668 # include <limits.h>
3670 # include <assert.h>
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null && {
3687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Broken: fails on valid input.
3699 rm -f conftest.err conftest.$ac_ext
3701 # OK, works on sane cases. Now check whether nonexistent headers
3702 # can be detected and how.
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #include <ac_nonexistent.h>
3711 if { (ac_try="$ac_cpp conftest.$ac_ext"
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3727 # Broken: success on invalid input.
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Passes both tests.
3738 rm -f conftest.err conftest.$ac_ext
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 # Extract the first word of "grep ggrep" to use in msg output
3766 if test -z "$GREP"; then
3767 set dummy grep ggrep; ac_prog_name=$2
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in grep ggrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782 # Check for GNU ac_path_GREP and select it if it is found.
3783 # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3789 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 echo 'GREP' >> "conftest.nl"
3796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 ac_count=`expr $ac_count + 1`
3799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_GREP="$ac_path_GREP"
3802 ac_path_GREP_max=$ac_count
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 $ac_path_GREP_found && break 3
3821 GREP="$ac_cv_path_GREP"
3822 if test -z "$GREP"; then
3823 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825 { (exit 1); exit 1; }; }
3829 ac_cv_path_GREP=$GREP
3834 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836 GREP="$ac_cv_path_GREP"
3839 { echo "$as_me:$LINENO: checking for egrep" >&5
3840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845 then ac_cv_path_EGREP="$GREP -E"
3847 # Extract the first word of "egrep" to use in msg output
3848 if test -z "$EGREP"; then
3849 set dummy egrep; ac_prog_name=$2
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 ac_path_EGREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in egrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864 # Check for GNU ac_path_EGREP and select it if it is found.
3865 # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3868 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo 'EGREP' >> "conftest.nl"
3878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_EGREP="$ac_path_EGREP"
3884 ac_path_EGREP_max=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 $ac_path_EGREP_found && break 3
3903 EGREP="$ac_cv_path_EGREP"
3904 if test -z "$EGREP"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907 { (exit 1); exit 1; }; }
3911 ac_cv_path_EGREP=$EGREP
3917 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919 EGREP="$ac_cv_path_EGREP"
3922 if test $ac_cv_c_compiler_gnu = yes; then
3923 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3924 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_pattern="Autoconf.*'x'"
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3940 ac_cv_prog_gcc_traditional=yes
3942 ac_cv_prog_gcc_traditional=no
3947 if test $ac_cv_prog_gcc_traditional = no; then
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3959 ac_cv_prog_gcc_traditional=yes
3965 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3966 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3967 if test $ac_cv_prog_gcc_traditional = yes; then
3968 CC="$CC -traditional"
3972 BASECC=`basename $CC`
3974 if test "x$BASECC" = xgcc; then
3975 cat >>confdefs.h <<\_ACEOF
3981 # Extract the first word of "$CXX", so it can be a program name with args.
3982 set dummy $CXX; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_CXX+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4013 if test -n "$CXX"; then
4014 { echo "$as_me:$LINENO: result: $CXX" >&5
4015 echo "${ECHO_T}$CXX" >&6; }
4017 { echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6; }
4022 if test ! -e $CXX; then
4023 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4024 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4025 { (exit 1); exit 1; }; }
4028 # Find a good install program. We prefer a C program (faster),
4029 # so one script is as good as another. But avoid the broken or
4030 # incompatible versions:
4031 # SysV /etc/install, /usr/sbin/install
4032 # SunOS /usr/etc/install
4033 # IRIX /sbin/install
4035 # AmigaOS /C/install, which installs bootblocks on floppy discs
4036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4039 # OS/2's system install, which has a completely different semantic
4040 # ./install, which can be erroneously created by make from ./install.sh.
4041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4043 if test -z "$INSTALL"; then
4044 if test "${ac_cv_path_install+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 test -z "$as_dir" && as_dir=.
4052 # Account for people who put trailing slashes in PATH elements.
4054 ./ | .// | /cC/* | \
4055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4059 # OSF1 and SCO ODT 3.0 have their own names for install.
4060 # Don't use installbsd from OSF since it installs stuff as root
4062 for ac_prog in ginstall scoinst install; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4065 if test $ac_prog = install &&
4066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4067 # AIX install. It has an incompatible calling convention.
4069 elif test $ac_prog = install &&
4070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071 # program-specific install script used by HP pwplus--don't use.
4074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4087 if test "${ac_cv_path_install+set}" = set; then
4088 INSTALL=$ac_cv_path_install
4090 # As a last resort, use the slow shell script. Don't cache a
4091 # value for INSTALL within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the value is a relative name.
4094 INSTALL=$ac_install_sh
4097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6; }
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_RANLIB+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$RANLIB"; then
4117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 RANLIB=$ac_cv_prog_RANLIB
4137 if test -n "$RANLIB"; then
4138 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4139 echo "${ECHO_T}$RANLIB" >&6; }
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4147 if test -z "$ac_cv_prog_RANLIB"; then
4148 ac_ct_RANLIB=$RANLIB
4149 # Extract the first word of "ranlib", so it can be a program name with args.
4150 set dummy ranlib; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$ac_ct_RANLIB"; then
4157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_RANLIB="ranlib"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4177 if test -n "$ac_ct_RANLIB"; then
4178 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4179 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4185 if test "x$ac_ct_RANLIB" = x; then
4188 case $cross_compiling:$ac_tool_warned in
4190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet. If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&5
4193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4194 whose name does not start with the host triplet. If you think this
4195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4196 ac_tool_warned=yes ;;
4198 RANLIB=$ac_ct_RANLIB
4201 RANLIB="$ac_cv_prog_RANLIB"
4204 # Extract the first word of "mv", so it can be a program name with args.
4205 set dummy mv; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_path_MV+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4236 if test -n "$MV"; then
4237 { echo "$as_me:$LINENO: result: $MV" >&5
4238 echo "${ECHO_T}$MV" >&6; }
4240 { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4245 # Extract the first word of "rm", so it can be a program name with args.
4246 set dummy rm; ac_word=$2
4247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4249 if test "${ac_cv_path_RM+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4277 if test -n "$RM"; then
4278 { echo "$as_me:$LINENO: result: $RM" >&5
4279 echo "${ECHO_T}$RM" >&6; }
4281 { echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6; }
4286 # Extract the first word of "cp", so it can be a program name with args.
4287 set dummy cp; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_path_CP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4318 if test -n "$CP"; then
4319 { echo "$as_me:$LINENO: result: $CP" >&5
4320 echo "${ECHO_T}$CP" >&6; }
4322 { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4327 # Extract the first word of "sed", so it can be a program name with args.
4328 set dummy sed; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_SED+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4359 if test -n "$SED"; then
4360 { echo "$as_me:$LINENO: result: $SED" >&5
4361 echo "${ECHO_T}$SED" >&6; }
4363 { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4368 # Extract the first word of "echo", so it can be a program name with args.
4369 set dummy echo; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_ECHO+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4399 ECHO=$ac_cv_path_ECHO
4400 if test -n "$ECHO"; then
4401 { echo "$as_me:$LINENO: result: $ECHO" >&5
4402 echo "${ECHO_T}$ECHO" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 # Extract the first word of "cmp", so it can be a program name with args.
4410 set dummy cmp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CMP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4441 if test -n "$CMP"; then
4442 { echo "$as_me:$LINENO: result: $CMP" >&5
4443 echo "${ECHO_T}$CMP" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 # Extract the first word of "tbl", so it can be a program name with args.
4451 set dummy tbl; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_TBL+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4482 if test -n "$TBL"; then
4483 { echo "$as_me:$LINENO: result: $TBL" >&5
4484 echo "${ECHO_T}$TBL" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 # Extract the first word of "ar", so it can be a program name with args.
4492 set dummy ar; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_AR+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4523 if test -n "$AR"; then
4524 { echo "$as_me:$LINENO: result: $AR" >&5
4525 echo "${ECHO_T}$AR" >&6; }
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 # Extract the first word of "openssl", so it can be a program name with args.
4533 set dummy openssl; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_OPENSSL+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4563 OPENSSL=$ac_cv_path_OPENSSL
4564 if test -n "$OPENSSL"; then
4565 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4566 echo "${ECHO_T}$OPENSSL" >&6; }
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4573 # Extract the first word of "mtx", so it can be a program name with args.
4574 set dummy mtx; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_MTX+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4605 if test -n "$MTX"; then
4606 { echo "$as_me:$LINENO: result: $MTX" >&5
4607 echo "${ECHO_T}$MTX" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 # Extract the first word of "dd", so it can be a program name with args.
4615 set dummy dd; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_DD+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4646 if test -n "$DD"; then
4647 { echo "$as_me:$LINENO: result: $DD" >&5
4648 echo "${ECHO_T}$DD" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 # Extract the first word of "mkisofs", so it can be a program name with args.
4656 set dummy mkisofs; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_MKISOFS+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4686 MKISOFS=$ac_cv_path_MKISOFS
4687 if test -n "$MKISOFS"; then
4688 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4689 echo "${ECHO_T}$MKISOFS" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "python", so it can be a program name with args.
4697 set dummy python; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_PYTHON+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4727 PYTHON=$ac_cv_path_PYTHON
4728 if test -n "$PYTHON"; then
4729 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4730 echo "${ECHO_T}$PYTHON" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 # Extract the first word of "growisofs", so it can be a program name with args.
4738 set dummy growisofs; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4768 GROWISOFS=$ac_cv_path_GROWISOFS
4769 if test -n "$GROWISOFS"; then
4770 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4771 echo "${ECHO_T}$GROWISOFS" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4778 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4779 set dummy dvd+rw-mediainfo; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 case $DVDRWMEDIAINFO in
4787 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4809 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4810 if test -n "$DVDRWMEDIAINFO"; then
4811 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4812 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4820 set dummy dvd+rw-format; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 case $DVDRWFORMAT in
4828 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4850 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4851 if test -n "$DVDRWFORMAT"; then
4852 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4853 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 # Extract the first word of "pkg-config", so it can be a program name with args.
4861 set dummy pkg-config; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4891 PKGCONFIG=$ac_cv_path_PKGCONFIG
4892 if test -n "$PKGCONFIG"; then
4893 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4894 echo "${ECHO_T}$PKGCONFIG" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 # Extract the first word of "qmake", so it can be a program name with args.
4902 set dummy qmake; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_QMAKE+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4932 QMAKE=$ac_cv_path_QMAKE
4933 if test -n "$QMAKE"; then
4934 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4935 echo "${ECHO_T}$QMAKE" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4943 set dummy qmake-qt4; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4973 QMAKEQT4=$ac_cv_path_QMAKEQT4
4974 if test -n "$QMAKEQT4"; then
4975 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4976 echo "${ECHO_T}$QMAKEQT4" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4984 if test "x$WXCONFIG" = x; then
4987 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4988 set dummy ${WXCONFIG}; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5018 WXCONFIG=$ac_cv_path_WXCONFIG
5019 if test -n "$WXCONFIG"; then
5020 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5021 echo "${ECHO_T}$WXCONFIG" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5029 # Extract the first word of "cdrecord", so it can be a program name with args.
5030 set dummy cdrecord; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_CDRECORD+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5060 CDRECORD=$ac_cv_path_CDRECORD
5061 if test -n "$CDRECORD"; then
5062 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5063 echo "${ECHO_T}$CDRECORD" >&6; }
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5070 # Extract the first word of "pidof", so it can be a program name with args.
5071 set dummy pidof; ac_word=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_PIDOF+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5101 PIDOF=$ac_cv_path_PIDOF
5102 if test -n "$PIDOF"; then
5103 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5104 echo "${ECHO_T}$PIDOF" >&6; }
5106 { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5111 for ac_prog in gawk mawk nawk awk
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_AWK+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 if test -n "$AWK"; then
5121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_AWK="$ac_prog"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 if test -n "$AWK"; then
5142 { echo "$as_me:$LINENO: result: $AWK" >&5
5143 echo "${ECHO_T}$AWK" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5150 test -n "$AWK" && break
5153 # Some AWK programs fail, so test it and warn the user
5154 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5155 { if ((prog == $2) || (("(" prog ")") == $2) ||
5156 (("" prog "") == $2) ||
5157 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5159 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5160 The regex engine of $AWK is too broken to be used you
5161 might want to install GNU AWK.
5162 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5163 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164 The regex engine of $AWK is too broken to be used you
5165 might want to install GNU AWK.
5166 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5167 { (exit 1); exit 1; }; }
5170 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5171 set dummy $THE_AWK; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_AWK+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5202 if test -n "$AWK"; then
5203 { echo "$as_me:$LINENO: result: $AWK" >&5
5204 echo "${ECHO_T}$AWK" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5213 test -n "$ARFLAG" || ARFLAGS="cr"
5224 # Make sure we can run config.sub.
5225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5227 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5228 { (exit 1); exit 1; }; }
5230 { echo "$as_me:$LINENO: checking build system type" >&5
5231 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5232 if test "${ac_cv_build+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 ac_build_alias=$build_alias
5236 test "x$ac_build_alias" = x &&
5237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5238 test "x$ac_build_alias" = x &&
5239 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5241 { (exit 1); exit 1; }; }
5242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5245 { (exit 1); exit 1; }; }
5248 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5249 echo "${ECHO_T}$ac_cv_build" >&6; }
5250 case $ac_cv_build in
5252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5253 echo "$as_me: error: invalid value of canonical build" >&2;}
5254 { (exit 1); exit 1; }; };;
5257 ac_save_IFS=$IFS; IFS='-'
5263 # Remember, the first character of IFS is used to create $*,
5264 # except with old shells:
5267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5271 { echo "$as_me:$LINENO: checking host system type" >&5
5272 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5273 if test "${ac_cv_host+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 if test "x$host_alias" = x; then
5277 ac_cv_host=$ac_cv_build
5279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5280 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5281 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5282 { (exit 1); exit 1; }; }
5286 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5287 echo "${ECHO_T}$ac_cv_host" >&6; }
5290 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5291 echo "$as_me: error: invalid value of canonical host" >&2;}
5292 { (exit 1); exit 1; }; };;
5295 ac_save_IFS=$IFS; IFS='-'
5301 # Remember, the first character of IFS is used to create $*,
5302 # except with old shells:
5305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5309 *cygwin* ) CYGWIN=yes;;
5313 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5319 HAVE_SUN_OS_FALSE='#'
5321 HAVE_SUN_OS_TRUE='#'
5324 cat >>confdefs.h <<\_ACEOF
5325 #define HAVE_SUN_OS 1
5333 HAVE_SUN_OS_FALSE='#'
5335 HAVE_SUN_OS_TRUE='#'
5340 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5346 HAVE_OSF1_OS_FALSE='#'
5348 HAVE_OSF1_OS_TRUE='#'
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_OSF1_OS 1
5360 HAVE_OSF1_OS_FALSE='#'
5362 HAVE_OSF1_OS_TRUE='#'
5367 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5373 HAVE_AIX_OS_FALSE='#'
5375 HAVE_AIX_OS_TRUE='#'
5378 cat >>confdefs.h <<\_ACEOF
5379 #define HAVE_AIX_OS 1
5387 HAVE_AIX_OS_FALSE='#'
5389 HAVE_AIX_OS_TRUE='#'
5394 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5400 HAVE_HPUX_OS_FALSE='#'
5402 HAVE_HPUX_OS_TRUE='#'
5405 cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_HPUX_OS 1
5414 HAVE_HPUX_OS_FALSE='#'
5416 HAVE_HPUX_OS_TRUE='#'
5421 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5427 HAVE_LINUX_OS_FALSE='#'
5429 HAVE_LINUX_OS_TRUE='#'
5430 HAVE_LINUX_OS_FALSE=
5432 cat >>confdefs.h <<\_ACEOF
5433 #define HAVE_LINUX_OS 1
5441 HAVE_LINUX_OS_FALSE='#'
5443 HAVE_LINUX_OS_TRUE='#'
5444 HAVE_LINUX_OS_FALSE=
5448 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5453 HAVE_FREEBSD_OS_TRUE=
5454 HAVE_FREEBSD_OS_FALSE='#'
5456 HAVE_FREEBSD_OS_TRUE='#'
5457 HAVE_FREEBSD_OS_FALSE=
5459 cat >>confdefs.h <<\_ACEOF
5460 #define HAVE_FREEBSD_OS 1
5467 HAVE_FREEBSD_OS_TRUE=
5468 HAVE_FREEBSD_OS_FALSE='#'
5470 HAVE_FREEBSD_OS_TRUE='#'
5471 HAVE_FREEBSD_OS_FALSE=
5475 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5480 HAVE_NETBSD_OS_TRUE=
5481 HAVE_NETBSD_OS_FALSE='#'
5483 HAVE_NETBSD_OS_TRUE='#'
5484 HAVE_NETBSD_OS_FALSE=
5486 cat >>confdefs.h <<\_ACEOF
5487 #define HAVE_NETBSD_OS 1
5494 HAVE_NETBSD_OS_TRUE=
5495 HAVE_NETBSD_OS_FALSE='#'
5497 HAVE_NETBSD_OS_TRUE='#'
5498 HAVE_NETBSD_OS_FALSE=
5502 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5507 HAVE_OPENBSD_OS_TRUE=
5508 HAVE_OPENBSD_OS_FALSE='#'
5510 HAVE_OPENBSD_OS_TRUE='#'
5511 HAVE_OPENBSD_OS_FALSE=
5513 cat >>confdefs.h <<\_ACEOF
5514 #define HAVE_OPENBSD_OS 1
5521 HAVE_OPENBSD_OS_TRUE=
5522 HAVE_OPENBSD_OS_FALSE='#'
5524 HAVE_OPENBSD_OS_TRUE='#'
5525 HAVE_OPENBSD_OS_FALSE=
5529 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5535 HAVE_BSDI_OS_FALSE='#'
5537 HAVE_BSDI_OS_TRUE='#'
5540 cat >>confdefs.h <<\_ACEOF
5541 #define HAVE_BSDI_OS 1
5549 HAVE_BSDI_OS_FALSE='#'
5551 HAVE_BSDI_OS_TRUE='#'
5556 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5562 HAVE_SGI_OS_FALSE='#'
5564 HAVE_SGI_OS_TRUE='#'
5567 cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_SGI_OS 1
5576 HAVE_SGI_OS_FALSE='#'
5578 HAVE_SGI_OS_TRUE='#'
5583 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5589 HAVE_IRIX_OS_FALSE='#'
5591 HAVE_IRIX_OS_TRUE='#'
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_IRIX_OS 1
5603 HAVE_IRIX_OS_FALSE='#'
5605 HAVE_IRIX_OS_TRUE='#'
5610 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5615 HAVE_DARWIN_OS_TRUE=
5616 HAVE_DARWIN_OS_FALSE='#'
5618 HAVE_DARWIN_OS_TRUE='#'
5619 HAVE_DARWIN_OS_FALSE=
5621 cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_DARWIN_OS 1
5629 HAVE_DARWIN_OS_TRUE=
5630 HAVE_DARWIN_OS_FALSE='#'
5632 HAVE_DARWIN_OS_TRUE='#'
5633 HAVE_DARWIN_OS_FALSE=
5638 # -----------------------------------------------------------
5639 # ----------------------------------------------------------
5640 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5641 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5642 if test "x$DISTNAME" != "x"
5644 echo "distname set to $DISTNAME"
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5672 elif test -f /etc/SuSE-release
5675 elif test -d /etc/SuSEconfig
5678 elif test -f /etc/mandrake-release
5681 elif test -f /etc/whitebox-release
5684 elif test -f /etc/redhat-release
5687 elif test -f /etc/gentoo-release
5690 elif test -f /etc/debian_version
5693 elif test -f /etc/slackware-version
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5699 elif test -f /etc/engarde-version
5702 elif test "$CYGWIN" = yes
5705 cat >>confdefs.h <<\_ACEOF
5706 #define HAVE_CYGWIN 1
5712 { echo "$as_me:$LINENO: result: done" >&5
5713 echo "${ECHO_T}done" >&6; }
5716 # --------------------------------------------------
5717 # Suppport for gettext (translations)
5718 # By default, $datadir is ${prefix}/share
5719 # --------------------------------------------------
5720 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5721 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5722 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.make <<\_ACEOF
5729 @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734 eval ac_cv_prog_make_${ac_make}_set=yes;;
5736 eval ac_cv_prog_make_${ac_make}_set=no;;
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741 { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5745 { echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6; }
5747 SET_MAKE="MAKE=${MAKE-make}"
5753 if test -n "$ac_aux_dir"; then
5754 case "$ac_aux_dir" in
5755 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5756 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5759 if test -z "$MKINSTALLDIRS"; then
5760 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5765 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5766 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5767 # Check whether --enable-nls was given.
5768 if test "${enable_nls+set}" = set; then
5769 enableval=$enable_nls; USE_NLS=$enableval
5774 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5775 echo "${ECHO_T}$USE_NLS" >&6; }
5782 # Prepare PATH_SEPARATOR.
5783 # The user is always right.
5784 if test "${PATH_SEPARATOR+set}" != set; then
5785 echo "#! /bin/sh" >conf$$.sh
5786 echo "exit 0" >>conf$$.sh
5788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5796 # Find out how to test for executable files. Don't use a zero-byte file,
5797 # as systems may use methods other than mode bits to determine executability.
5798 cat >conf$$.file <<_ASEOF
5802 chmod +x conf$$.file
5803 if test -x conf$$.file >/dev/null 2>&1; then
5804 ac_executable_p="test -x"
5806 ac_executable_p="test -f"
5810 # Extract the first word of "msgfmt", so it can be a program name with args.
5811 set dummy msgfmt; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_path_MSGFMT+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5822 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5823 for ac_dir in $PATH; do
5825 test -z "$ac_dir" && ac_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5828 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5829 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5830 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5831 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5838 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5842 MSGFMT="$ac_cv_path_MSGFMT"
5843 if test "$MSGFMT" != ":"; then
5844 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5845 echo "${ECHO_T}$MSGFMT" >&6; }
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5851 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5852 set dummy gmsgfmt; ac_word=$2
5853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5882 GMSGFMT=$ac_cv_path_GMSGFMT
5883 if test -n "$GMSGFMT"; then
5884 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5885 echo "${ECHO_T}$GMSGFMT" >&6; }
5887 { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5894 # Prepare PATH_SEPARATOR.
5895 # The user is always right.
5896 if test "${PATH_SEPARATOR+set}" != set; then
5897 echo "#! /bin/sh" >conf$$.sh
5898 echo "exit 0" >>conf$$.sh
5900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5908 # Find out how to test for executable files. Don't use a zero-byte file,
5909 # as systems may use methods other than mode bits to determine executability.
5910 cat >conf$$.file <<_ASEOF
5914 chmod +x conf$$.file
5915 if test -x conf$$.file >/dev/null 2>&1; then
5916 ac_executable_p="test -x"
5918 ac_executable_p="test -f"
5922 # Extract the first word of "xgettext", so it can be a program name with args.
5923 set dummy xgettext; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5935 for ac_dir in $PATH; do
5937 test -z "$ac_dir" && ac_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5940 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5941 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5942 (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
5943 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5954 XGETTEXT="$ac_cv_path_XGETTEXT"
5955 if test "$XGETTEXT" != ":"; then
5956 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5957 echo "${ECHO_T}$XGETTEXT" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969 echo "#! /bin/sh" >conf$$.sh
5970 echo "exit 0" >>conf$$.sh
5972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5980 # Find out how to test for executable files. Don't use a zero-byte file,
5981 # as systems may use methods other than mode bits to determine executability.
5982 cat >conf$$.file <<_ASEOF
5986 chmod +x conf$$.file
5987 if test -x conf$$.file >/dev/null 2>&1; then
5988 ac_executable_p="test -x"
5990 ac_executable_p="test -f"
5994 # Extract the first word of "msgmerge", so it can be a program name with args.
5995 set dummy msgmerge; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6006 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6009 test -z "$ac_dir" && ac_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6013 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6014 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6021 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6025 MSGMERGE="$ac_cv_path_MSGMERGE"
6026 if test "$MSGMERGE" != ":"; then
6027 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6028 echo "${ECHO_T}$MSGMERGE" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 if test "$GMSGFMT" != ":"; then
6036 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6037 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6040 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6041 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6042 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6047 if test "$XGETTEXT" != ":"; then
6048 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6049 (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
6052 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6053 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6059 ac_config_commands="$ac_config_commands default-1"
6063 if test "X$prefix" = "XNONE"; then
6064 acl_final_prefix="$ac_default_prefix"
6066 acl_final_prefix="$prefix"
6068 if test "X$exec_prefix" = "XNONE"; then
6069 acl_final_exec_prefix='${prefix}'
6071 acl_final_exec_prefix="$exec_prefix"
6073 acl_save_prefix="$prefix"
6074 prefix="$acl_final_prefix"
6075 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6076 prefix="$acl_save_prefix"
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6086 # Prepare PATH_SEPARATOR.
6087 # The user is always right.
6088 if test "${PATH_SEPARATOR+set}" != set; then
6089 echo "#! /bin/sh" >conf$$.sh
6090 echo "exit 0" >>conf$$.sh
6092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6100 if test "$GCC" = yes; then
6101 # Check if gcc -print-prog-name=ld gives a path.
6102 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6106 # gcc leaves a trailing carriage return which upsets mingw
6107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 # Accept absolute paths.
6113 [\\/]* | [A-Za-z]:[\\/]*)
6114 re_direlt='/[^/][^/]*/\.\./'
6115 # Canonicalize the path of ld
6116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120 test -z "$LD" && LD="$ac_prog"
6123 # If it fails, then pretend we aren't using GCC.
6127 # If it is relative, then search for the first ld in PATH.
6131 elif test "$with_gnu_ld" = yes; then
6132 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6138 if test "${acl_cv_path_LD+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -z "$LD"; then
6142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143 for ac_dir in $PATH; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146 acl_cv_path_LD="$ac_dir/$ac_prog"
6147 # Check to see if the program is GNU ld. I'd rather use --version,
6148 # but apparently some GNU ld's only accept -v.
6149 # Break only if it was the GNU/non-GNU ld that we prefer.
6150 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6151 *GNU* | *'with BFD'*)
6152 test "$with_gnu_ld" != no && break ;;
6154 test "$with_gnu_ld" != yes && break ;;
6160 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6164 LD="$acl_cv_path_LD"
6165 if test -n "$LD"; then
6166 { echo "$as_me:$LINENO: result: $LD" >&5
6167 echo "${ECHO_T}$LD" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6174 { (exit 1); exit 1; }; }
6175 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6177 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 acl_cv_prog_gnu_ld=yes ;;
6185 acl_cv_prog_gnu_ld=no ;;
6188 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6189 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6195 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6196 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6197 if test "${acl_cv_rpath+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6208 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6209 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6211 libext="$acl_cv_libext"
6212 shlibext="$acl_cv_shlibext"
6213 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6214 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6215 hardcode_direct="$acl_cv_hardcode_direct"
6216 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6217 # Check whether --enable-rpath was given.
6218 if test "${enable_rpath+set}" = set; then
6219 enableval=$enable_rpath; :
6233 acl_save_prefix="$prefix"
6234 prefix="$acl_final_prefix"
6235 acl_save_exec_prefix="$exec_prefix"
6236 exec_prefix="$acl_final_exec_prefix"
6238 eval additional_includedir=\"$includedir\"
6239 eval additional_libdir=\"$libdir\"
6241 exec_prefix="$acl_save_exec_prefix"
6242 prefix="$acl_save_prefix"
6245 # Check whether --with-libiconv-prefix was given.
6246 if test "${with_libiconv_prefix+set}" = set; then
6247 withval=$with_libiconv_prefix;
6248 if test "X$withval" = "Xno"; then
6251 if test "X$withval" = "X"; then
6253 acl_save_prefix="$prefix"
6254 prefix="$acl_final_prefix"
6255 acl_save_exec_prefix="$exec_prefix"
6256 exec_prefix="$acl_final_exec_prefix"
6258 eval additional_includedir=\"$includedir\"
6259 eval additional_libdir=\"$libdir\"
6261 exec_prefix="$acl_save_exec_prefix"
6262 prefix="$acl_save_prefix"
6265 additional_includedir="$withval/include"
6266 additional_libdir="$withval/lib"
6277 names_already_handled=
6278 names_next_round='iconv '
6279 while test -n "$names_next_round"; do
6280 names_this_round="$names_next_round"
6282 for name in $names_this_round; do
6284 for n in $names_already_handled; do
6285 if test "$n" = "$name"; then
6290 if test -z "$already_handled"; then
6291 names_already_handled="$names_already_handled $name"
6292 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6293 eval value=\"\$HAVE_LIB$uppername\"
6294 if test -n "$value"; then
6295 if test "$value" = yes; then
6296 eval value=\"\$LIB$uppername\"
6297 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6298 eval value=\"\$LTLIB$uppername\"
6299 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6308 if test $use_additional = yes; then
6309 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6310 found_dir="$additional_libdir"
6311 found_so="$additional_libdir/lib$name.$shlibext"
6312 if test -f "$additional_libdir/lib$name.la"; then
6313 found_la="$additional_libdir/lib$name.la"
6316 if test -f "$additional_libdir/lib$name.$libext"; then
6317 found_dir="$additional_libdir"
6318 found_a="$additional_libdir/lib$name.$libext"
6319 if test -f "$additional_libdir/lib$name.la"; then
6320 found_la="$additional_libdir/lib$name.la"
6325 if test "X$found_dir" = "X"; then
6326 for x in $LDFLAGS $LTLIBICONV; do
6328 acl_save_prefix="$prefix"
6329 prefix="$acl_final_prefix"
6330 acl_save_exec_prefix="$exec_prefix"
6331 exec_prefix="$acl_final_exec_prefix"
6333 exec_prefix="$acl_save_exec_prefix"
6334 prefix="$acl_save_prefix"
6338 dir=`echo "X$x" | sed -e 's/^X-L//'`
6339 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6341 found_so="$dir/lib$name.$shlibext"
6342 if test -f "$dir/lib$name.la"; then
6343 found_la="$dir/lib$name.la"
6346 if test -f "$dir/lib$name.$libext"; then
6348 found_a="$dir/lib$name.$libext"
6349 if test -f "$dir/lib$name.la"; then
6350 found_la="$dir/lib$name.la"
6356 if test "X$found_dir" != "X"; then
6361 if test "X$found_dir" != "X"; then
6362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6363 if test "X$found_so" != "X"; then
6364 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6368 for x in $ltrpathdirs; do
6369 if test "X$x" = "X$found_dir"; then
6374 if test -z "$haveit"; then
6375 ltrpathdirs="$ltrpathdirs $found_dir"
6377 if test "$hardcode_direct" = yes; then
6378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6380 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6381 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6383 for x in $rpathdirs; do
6384 if test "X$x" = "X$found_dir"; then
6389 if test -z "$haveit"; then
6390 rpathdirs="$rpathdirs $found_dir"
6394 for x in $LDFLAGS $LIBICONV; do
6396 acl_save_prefix="$prefix"
6397 prefix="$acl_final_prefix"
6398 acl_save_exec_prefix="$exec_prefix"
6399 exec_prefix="$acl_final_exec_prefix"
6401 exec_prefix="$acl_save_exec_prefix"
6402 prefix="$acl_save_prefix"
6404 if test "X$x" = "X-L$found_dir"; then
6409 if test -z "$haveit"; then
6410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6412 if test "$hardcode_minus_L" != no; then
6413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6415 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6421 if test "X$found_a" != "X"; then
6422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6427 additional_includedir=
6428 case "$found_dir" in
6430 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6431 additional_includedir="$basedir/include"
6434 if test "X$additional_includedir" != "X"; then
6435 if test "X$additional_includedir" != "X/usr/include"; then
6437 if test "X$additional_includedir" = "X/usr/local/include"; then
6438 if test -n "$GCC"; then
6440 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6444 if test -z "$haveit"; then
6445 for x in $CPPFLAGS $INCICONV; do
6447 acl_save_prefix="$prefix"
6448 prefix="$acl_final_prefix"
6449 acl_save_exec_prefix="$exec_prefix"
6450 exec_prefix="$acl_final_exec_prefix"
6452 exec_prefix="$acl_save_exec_prefix"
6453 prefix="$acl_save_prefix"
6455 if test "X$x" = "X-I$additional_includedir"; then
6460 if test -z "$haveit"; then
6461 if test -d "$additional_includedir"; then
6462 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6468 if test -n "$found_la"; then
6469 save_libdir="$libdir"
6471 */* | *\\*) . "$found_la" ;;
6472 *) . "./$found_la" ;;
6474 libdir="$save_libdir"
6475 for dep in $dependency_libs; do
6478 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6479 if test "X$additional_libdir" != "X/usr/lib"; then
6481 if test "X$additional_libdir" = "X/usr/local/lib"; then
6482 if test -n "$GCC"; then
6484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6488 if test -z "$haveit"; then
6490 for x in $LDFLAGS $LIBICONV; do
6492 acl_save_prefix="$prefix"
6493 prefix="$acl_final_prefix"
6494 acl_save_exec_prefix="$exec_prefix"
6495 exec_prefix="$acl_final_exec_prefix"
6497 exec_prefix="$acl_save_exec_prefix"
6498 prefix="$acl_save_prefix"
6500 if test "X$x" = "X-L$additional_libdir"; then
6505 if test -z "$haveit"; then
6506 if test -d "$additional_libdir"; then
6507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6511 for x in $LDFLAGS $LTLIBICONV; do
6513 acl_save_prefix="$prefix"
6514 prefix="$acl_final_prefix"
6515 acl_save_exec_prefix="$exec_prefix"
6516 exec_prefix="$acl_final_exec_prefix"
6518 exec_prefix="$acl_save_exec_prefix"
6519 prefix="$acl_save_prefix"
6521 if test "X$x" = "X-L$additional_libdir"; then
6526 if test -z "$haveit"; then
6527 if test -d "$additional_libdir"; then
6528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6535 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6536 if test "$enable_rpath" != no; then
6538 for x in $rpathdirs; do
6539 if test "X$x" = "X$dir"; then
6544 if test -z "$haveit"; then
6545 rpathdirs="$rpathdirs $dir"
6548 for x in $ltrpathdirs; do
6549 if test "X$x" = "X$dir"; then
6554 if test -z "$haveit"; then
6555 ltrpathdirs="$ltrpathdirs $dir"
6560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6566 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6573 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6580 if test "X$rpathdirs" != "X"; then
6581 if test -n "$hardcode_libdir_separator"; then
6583 for found_dir in $rpathdirs; do
6584 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6586 acl_save_libdir="$libdir"
6588 eval flag=\"$hardcode_libdir_flag_spec\"
6589 libdir="$acl_save_libdir"
6590 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6592 for found_dir in $rpathdirs; do
6593 acl_save_libdir="$libdir"
6595 eval flag=\"$hardcode_libdir_flag_spec\"
6596 libdir="$acl_save_libdir"
6597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6601 if test "X$ltrpathdirs" != "X"; then
6602 for found_dir in $ltrpathdirs; do
6603 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6624 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6625 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6626 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 gt_save_CPPFLAGS="$CPPFLAGS"
6630 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6631 gt_save_LIBS="$LIBS"
6632 LIBS="$LIBS -framework CoreFoundation"
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <CFPreferences.h>
6643 CFPreferencesCopyAppValue(NULL, NULL)
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_link") 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest$ac_exeext &&
6665 $as_test_x conftest$ac_exeext; then
6666 gt_cv_func_CFPreferencesCopyAppValue=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 gt_cv_func_CFPreferencesCopyAppValue=no
6674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6675 conftest$ac_exeext conftest.$ac_ext
6676 CPPFLAGS="$gt_save_CPPFLAGS"
6677 LIBS="$gt_save_LIBS"
6679 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6680 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6681 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6688 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6689 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6690 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 gt_save_CPPFLAGS="$CPPFLAGS"
6694 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6695 gt_save_LIBS="$LIBS"
6696 LIBS="$LIBS -framework CoreFoundation"
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <CFLocale.h>
6707 CFLocaleCopyCurrent();
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_link") 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest$ac_exeext &&
6729 $as_test_x conftest$ac_exeext; then
6730 gt_cv_func_CFLocaleCopyCurrent=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 gt_cv_func_CFLocaleCopyCurrent=no
6738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739 conftest$ac_exeext conftest.$ac_ext
6740 CPPFLAGS="$gt_save_CPPFLAGS"
6741 LIBS="$gt_save_LIBS"
6743 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6744 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6745 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CFLOCALECOPYCURRENT 1
6753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6754 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6760 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6762 # Check whether --enable-nls was given.
6763 if test "${enable_nls+set}" = set; then
6764 enableval=$enable_nls; USE_NLS=$enableval
6769 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6770 echo "${ECHO_T}$USE_NLS" >&6; }
6779 if test "$USE_NLS" = "yes"; then
6780 gt_use_preinstalled_gnugettext=no
6787 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6789 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <libintl.h>
6799 extern int _nl_msg_cat_cntr;
6800 extern int *_nl_domain_bindings;
6804 bindtextdomain ("", "");
6805 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (ac_try="$ac_link"
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_link") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_c_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest$ac_exeext &&
6827 $as_test_x conftest$ac_exeext; then
6828 gt_cv_func_gnugettext1_libc=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 gt_cv_func_gnugettext1_libc=no
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837 conftest$ac_exeext conftest.$ac_ext
6839 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6840 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6842 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6848 am_save_CPPFLAGS="$CPPFLAGS"
6850 for element in $INCICONV; do
6852 for x in $CPPFLAGS; do
6854 acl_save_prefix="$prefix"
6855 prefix="$acl_final_prefix"
6856 acl_save_exec_prefix="$exec_prefix"
6857 exec_prefix="$acl_final_exec_prefix"
6859 exec_prefix="$acl_save_exec_prefix"
6860 prefix="$acl_save_prefix"
6862 if test "X$x" = "X$element"; then
6867 if test -z "$haveit"; then
6868 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6873 { echo "$as_me:$LINENO: checking for iconv" >&5
6874 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6875 if test "${am_cv_func_iconv+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 am_cv_func_iconv="no, consider installing GNU libiconv"
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6892 iconv_t cd = iconv_open("","");
6893 iconv(cd,NULL,NULL,NULL,NULL);
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest$ac_exeext &&
6916 $as_test_x conftest$ac_exeext; then
6917 am_cv_func_iconv=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6926 conftest$ac_exeext conftest.$ac_ext
6927 if test "$am_cv_func_iconv" != yes; then
6928 am_save_LIBS="$LIBS"
6929 LIBS="$LIBS $LIBICONV"
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6941 iconv_t cd = iconv_open("","");
6942 iconv(cd,NULL,NULL,NULL,NULL);
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6967 am_cv_func_iconv=yes
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS="$am_save_LIBS"
6981 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6982 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6983 if test "$am_cv_func_iconv" = yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_ICONV 1
6990 if test "$am_cv_lib_iconv" = yes; then
6991 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6992 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6993 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6994 echo "${ECHO_T}$LIBICONV" >&6; }
6996 CPPFLAGS="$am_save_CPPFLAGS"
7008 acl_save_prefix="$prefix"
7009 prefix="$acl_final_prefix"
7010 acl_save_exec_prefix="$exec_prefix"
7011 exec_prefix="$acl_final_exec_prefix"
7013 eval additional_includedir=\"$includedir\"
7014 eval additional_libdir=\"$libdir\"
7016 exec_prefix="$acl_save_exec_prefix"
7017 prefix="$acl_save_prefix"
7020 # Check whether --with-libintl-prefix was given.
7021 if test "${with_libintl_prefix+set}" = set; then
7022 withval=$with_libintl_prefix;
7023 if test "X$withval" = "Xno"; then
7026 if test "X$withval" = "X"; then
7028 acl_save_prefix="$prefix"
7029 prefix="$acl_final_prefix"
7030 acl_save_exec_prefix="$exec_prefix"
7031 exec_prefix="$acl_final_exec_prefix"
7033 eval additional_includedir=\"$includedir\"
7034 eval additional_libdir=\"$libdir\"
7036 exec_prefix="$acl_save_exec_prefix"
7037 prefix="$acl_save_prefix"
7040 additional_includedir="$withval/include"
7041 additional_libdir="$withval/lib"
7052 names_already_handled=
7053 names_next_round='intl '
7054 while test -n "$names_next_round"; do
7055 names_this_round="$names_next_round"
7057 for name in $names_this_round; do
7059 for n in $names_already_handled; do
7060 if test "$n" = "$name"; then
7065 if test -z "$already_handled"; then
7066 names_already_handled="$names_already_handled $name"
7067 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7068 eval value=\"\$HAVE_LIB$uppername\"
7069 if test -n "$value"; then
7070 if test "$value" = yes; then
7071 eval value=\"\$LIB$uppername\"
7072 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7073 eval value=\"\$LTLIB$uppername\"
7074 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7083 if test $use_additional = yes; then
7084 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7085 found_dir="$additional_libdir"
7086 found_so="$additional_libdir/lib$name.$shlibext"
7087 if test -f "$additional_libdir/lib$name.la"; then
7088 found_la="$additional_libdir/lib$name.la"
7091 if test -f "$additional_libdir/lib$name.$libext"; then
7092 found_dir="$additional_libdir"
7093 found_a="$additional_libdir/lib$name.$libext"
7094 if test -f "$additional_libdir/lib$name.la"; then
7095 found_la="$additional_libdir/lib$name.la"
7100 if test "X$found_dir" = "X"; then
7101 for x in $LDFLAGS $LTLIBINTL; do
7103 acl_save_prefix="$prefix"
7104 prefix="$acl_final_prefix"
7105 acl_save_exec_prefix="$exec_prefix"
7106 exec_prefix="$acl_final_exec_prefix"
7108 exec_prefix="$acl_save_exec_prefix"
7109 prefix="$acl_save_prefix"
7113 dir=`echo "X$x" | sed -e 's/^X-L//'`
7114 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7116 found_so="$dir/lib$name.$shlibext"
7117 if test -f "$dir/lib$name.la"; then
7118 found_la="$dir/lib$name.la"
7121 if test -f "$dir/lib$name.$libext"; then
7123 found_a="$dir/lib$name.$libext"
7124 if test -f "$dir/lib$name.la"; then
7125 found_la="$dir/lib$name.la"
7131 if test "X$found_dir" != "X"; then
7136 if test "X$found_dir" != "X"; then
7137 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7138 if test "X$found_so" != "X"; then
7139 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7143 for x in $ltrpathdirs; do
7144 if test "X$x" = "X$found_dir"; then
7149 if test -z "$haveit"; then
7150 ltrpathdirs="$ltrpathdirs $found_dir"
7152 if test "$hardcode_direct" = yes; then
7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7155 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7156 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7158 for x in $rpathdirs; do
7159 if test "X$x" = "X$found_dir"; then
7164 if test -z "$haveit"; then
7165 rpathdirs="$rpathdirs $found_dir"
7169 for x in $LDFLAGS $LIBINTL; do
7171 acl_save_prefix="$prefix"
7172 prefix="$acl_final_prefix"
7173 acl_save_exec_prefix="$exec_prefix"
7174 exec_prefix="$acl_final_exec_prefix"
7176 exec_prefix="$acl_save_exec_prefix"
7177 prefix="$acl_save_prefix"
7179 if test "X$x" = "X-L$found_dir"; then
7184 if test -z "$haveit"; then
7185 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7187 if test "$hardcode_minus_L" != no; then
7188 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7190 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7196 if test "X$found_a" != "X"; then
7197 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7199 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7202 additional_includedir=
7203 case "$found_dir" in
7205 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7206 additional_includedir="$basedir/include"
7209 if test "X$additional_includedir" != "X"; then
7210 if test "X$additional_includedir" != "X/usr/include"; then
7212 if test "X$additional_includedir" = "X/usr/local/include"; then
7213 if test -n "$GCC"; then
7215 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7219 if test -z "$haveit"; then
7220 for x in $CPPFLAGS $INCINTL; do
7222 acl_save_prefix="$prefix"
7223 prefix="$acl_final_prefix"
7224 acl_save_exec_prefix="$exec_prefix"
7225 exec_prefix="$acl_final_exec_prefix"
7227 exec_prefix="$acl_save_exec_prefix"
7228 prefix="$acl_save_prefix"
7230 if test "X$x" = "X-I$additional_includedir"; then
7235 if test -z "$haveit"; then
7236 if test -d "$additional_includedir"; then
7237 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7243 if test -n "$found_la"; then
7244 save_libdir="$libdir"
7246 */* | *\\*) . "$found_la" ;;
7247 *) . "./$found_la" ;;
7249 libdir="$save_libdir"
7250 for dep in $dependency_libs; do
7253 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7254 if test "X$additional_libdir" != "X/usr/lib"; then
7256 if test "X$additional_libdir" = "X/usr/local/lib"; then
7257 if test -n "$GCC"; then
7259 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7263 if test -z "$haveit"; then
7265 for x in $LDFLAGS $LIBINTL; do
7267 acl_save_prefix="$prefix"
7268 prefix="$acl_final_prefix"
7269 acl_save_exec_prefix="$exec_prefix"
7270 exec_prefix="$acl_final_exec_prefix"
7272 exec_prefix="$acl_save_exec_prefix"
7273 prefix="$acl_save_prefix"
7275 if test "X$x" = "X-L$additional_libdir"; then
7280 if test -z "$haveit"; then
7281 if test -d "$additional_libdir"; then
7282 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7286 for x in $LDFLAGS $LTLIBINTL; do
7288 acl_save_prefix="$prefix"
7289 prefix="$acl_final_prefix"
7290 acl_save_exec_prefix="$exec_prefix"
7291 exec_prefix="$acl_final_exec_prefix"
7293 exec_prefix="$acl_save_exec_prefix"
7294 prefix="$acl_save_prefix"
7296 if test "X$x" = "X-L$additional_libdir"; then
7301 if test -z "$haveit"; then
7302 if test -d "$additional_libdir"; then
7303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7310 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7311 if test "$enable_rpath" != no; then
7313 for x in $rpathdirs; do
7314 if test "X$x" = "X$dir"; then
7319 if test -z "$haveit"; then
7320 rpathdirs="$rpathdirs $dir"
7323 for x in $ltrpathdirs; do
7324 if test "X$x" = "X$dir"; then
7329 if test -z "$haveit"; then
7330 ltrpathdirs="$ltrpathdirs $dir"
7335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7338 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7341 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7342 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7348 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7355 if test "X$rpathdirs" != "X"; then
7356 if test -n "$hardcode_libdir_separator"; then
7358 for found_dir in $rpathdirs; do
7359 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7361 acl_save_libdir="$libdir"
7363 eval flag=\"$hardcode_libdir_flag_spec\"
7364 libdir="$acl_save_libdir"
7365 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7367 for found_dir in $rpathdirs; do
7368 acl_save_libdir="$libdir"
7370 eval flag=\"$hardcode_libdir_flag_spec\"
7371 libdir="$acl_save_libdir"
7372 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7376 if test "X$ltrpathdirs" != "X"; then
7377 for found_dir in $ltrpathdirs; do
7378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7382 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7383 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7384 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 gt_save_CPPFLAGS="$CPPFLAGS"
7388 CPPFLAGS="$CPPFLAGS $INCINTL"
7389 gt_save_LIBS="$LIBS"
7390 LIBS="$LIBS $LIBINTL"
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #include <libintl.h>
7398 extern int _nl_msg_cat_cntr;
7403 const char *_nl_expand_alias (const char *);
7407 bindtextdomain ("", "");
7408 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_link") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext &&
7430 $as_test_x conftest$ac_exeext; then
7431 gt_cv_func_gnugettext1_libintl=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 gt_cv_func_gnugettext1_libintl=no
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7441 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7442 LIBS="$LIBS $LIBICONV"
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <libintl.h>
7450 extern int _nl_msg_cat_cntr;
7455 const char *_nl_expand_alias (const char *);
7459 bindtextdomain ("", "");
7460 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_link") 2>conftest.er1
7474 grep -v '^ *+' conftest.er1 >conftest.err
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest$ac_exeext &&
7482 $as_test_x conftest$ac_exeext; then
7483 LIBINTL="$LIBINTL $LIBICONV"
7484 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7485 gt_cv_func_gnugettext1_libintl=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7495 conftest$ac_exeext conftest.$ac_ext
7497 CPPFLAGS="$gt_save_CPPFLAGS"
7498 LIBS="$gt_save_LIBS"
7500 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7501 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7504 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7505 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7506 && test "$PACKAGE" != gettext-runtime \
7507 && test "$PACKAGE" != gettext-tools; }; then
7508 gt_use_preinstalled_gnugettext=yes
7517 if test -n "$INTL_MACOSX_LIBS"; then
7518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7520 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7521 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7525 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7526 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define ENABLE_NLS 1
7537 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7538 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7539 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7540 echo "${ECHO_T}$USE_NLS" >&6; }
7541 if test "$USE_NLS" = "yes"; then
7542 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7543 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7544 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546 gt_source="external libintl"
7551 gt_source="included intl directory"
7553 { echo "$as_me:$LINENO: result: $gt_source" >&5
7554 echo "${ECHO_T}$gt_source" >&6; }
7557 if test "$USE_NLS" = "yes"; then
7559 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7560 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7561 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7562 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7563 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7564 echo "${ECHO_T}$LIBINTL" >&6; }
7566 for element in $INCINTL; do
7568 for x in $CPPFLAGS; do
7570 acl_save_prefix="$prefix"
7571 prefix="$acl_final_prefix"
7572 acl_save_exec_prefix="$exec_prefix"
7573 exec_prefix="$acl_final_exec_prefix"
7575 exec_prefix="$acl_save_exec_prefix"
7576 prefix="$acl_save_prefix"
7578 if test "X$x" = "X$element"; then
7583 if test -z "$haveit"; then
7584 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GETTEXT 1
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_DCGETTEXT 1
7614 if test x${prefix} = xNONE ; then
7615 if test `eval echo ${datadir}` = NONE/share ; then
7620 # ------------------------------------------------------------------
7621 # If the user has not set --prefix, we set our default to nothing.
7622 # In this case, if the user has not set --sysconfdir, we set it
7623 # to the package default of /etc/bacula. If either --prefix or
7624 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7625 # ------------------------------------------------------------------
7626 if test x${prefix} = xNONE ; then
7627 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7628 sysconfdir=/etc/bacula
7632 sysconfdir=`eval echo ${sysconfdir}`
7633 datadir=`eval echo ${datadir}`
7634 localedir=`eval echo ${datadir}/locale`
7635 cat >>confdefs.h <<_ACEOF
7636 #define LOCALEDIR "$localedir"
7639 cat >>confdefs.h <<_ACEOF
7640 #define SYSCONFDIR "$sysconfdir"
7644 # -------------------------------------------------------------------------
7645 # If the user has not set --exec-prefix, we default to ${prefix}
7646 # -------------------------------------------------------------------------
7647 if test x${exec_prefix} = xNONE ; then
7648 exec_prefix=${prefix}
7651 # ------------------------------------------------------------------
7652 # If the user has not set --sbindir, we set our default as /sbin
7653 # ------------------------------------------------------------------
7654 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7655 sbindir=${exec_prefix}/sbin
7657 sbindir=`eval echo ${sbindir}`
7660 # -------------------------------------------------------------------------
7661 # If the user has not set --mandir, we default to /usr/share/man
7662 # -------------------------------------------------------------------------
7663 if test x$mandir = x'${prefix}/man' ; then
7664 mandir=/usr/share/man
7668 for ac_prog in msgfmt
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_MSGFMT+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 MSGFMT=$ac_cv_path_MSGFMT
7701 if test -n "$MSGFMT"; then
7702 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7703 echo "${ECHO_T}$MSGFMT" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$MSGFMT" && break
7712 test -n "$MSGFMT" || MSGFMT="no"
7714 if test "$MSGFMT" = "no"
7716 echo 'msgfmt program not found, disabling NLS !'
7718 USE_INCLUDED_LIBINTL=no
7721 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7722 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7723 if test "${ac_cv_gnu_library_2+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 cat >conftest.$ac_ext <<_ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7733 #include <features.h>
7734 #ifdef __GNU_LIBRARY__
7735 #if (__GLIBC__ >= 2)
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7743 ac_cv_gnu_library_2=yes
7745 ac_cv_gnu_library_2=no
7752 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7753 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7755 GLIBC2="$ac_cv_gnu_library_2"
7759 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7760 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7761 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lcposix $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 /* Override any GCC internal prototype to avoid an error.
7774 Use char because int might match the return type of a GCC
7775 builtin and then its argument prototype would still apply. */
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (ac_try="$ac_link"
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_link") 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest$ac_exeext &&
7805 $as_test_x conftest$ac_exeext; then
7806 ac_cv_lib_cposix_strerror=yes
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 ac_cv_lib_cposix_strerror=no
7814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7815 conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7818 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7819 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7820 if test $ac_cv_lib_cposix_strerror = yes; then
7821 LIBS="$LIBS -lcposix"
7826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7828 if test "${ac_cv_header_stdc+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_compile") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest.$ac_objext; then
7867 ac_cv_header_stdc=yes
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_cv_header_stdc=no
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 if test $ac_cv_header_stdc = yes; then
7878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "memchr" >/dev/null 2>&1; then
7892 ac_cv_header_stdc=no
7898 if test $ac_cv_header_stdc = yes; then
7899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910 $EGREP "free" >/dev/null 2>&1; then
7913 ac_cv_header_stdc=no
7919 if test $ac_cv_header_stdc = yes; then
7920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7921 if test "$cross_compiling" = yes; then
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7936 # define ISLOWER(c) \
7937 (('a' <= (c) && (c) <= 'i') \
7938 || ('j' <= (c) && (c) <= 'r') \
7939 || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7948 for (i = 0; i < 256; i++)
7949 if (XOR (islower (i), ISLOWER (i))
7950 || toupper (i) != TOUPPER (i))
7955 rm -f conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_try") 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7977 echo "$as_me: program exited with status $ac_status" >&5
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_header_stdc=no
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7992 if test $ac_cv_header_stdc = yes; then
7994 cat >>confdefs.h <<\_ACEOF
7995 #define STDC_HEADERS 1
8000 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8002 if test "${ac_cv_c_const+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8015 /* FIXME: Include the comments suggested by Paul. */
8017 /* Ultrix mips cc rejects this. */
8018 typedef int charset[2];
8020 /* SunOS 4.1.1 cc rejects this. */
8021 char const *const *pcpcc;
8023 /* NEC SVR4.0.2 mips cc rejects this. */
8024 struct point {int x, y;};
8025 static struct point const zero = {0,0};
8026 /* AIX XL C 1.02.0.0 rejects this.
8027 It does not let you subtract one const X* pointer from another in
8028 an arm of an if-expression whose if-part is not a constant
8030 const char *g = "string";
8031 pcpcc = &g + (g ? g-g : 0);
8032 /* HPUX 7.0 cc rejects these. */
8034 ppc = (char**) pcpcc;
8035 pcpcc = (char const *const *) ppc;
8036 { /* SCO 3.2v4 cc rejects this. */
8038 char const *s = 0 ? (char *) 0 : (char const *) 0;
8043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8045 const int *foo = &x[0];
8048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8049 typedef const int *iptr;
8053 { /* AIX XL C 1.02.0.0 rejects this saying
8054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8055 struct s { int j; const int *ap[3]; };
8056 struct s *b; b->j = 5;
8058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8062 return !cs[0] && !zero.x;
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8098 if test $ac_cv_c_const = no; then
8100 cat >>confdefs.h <<\_ACEOF
8107 { echo "$as_me:$LINENO: checking for signed" >&5
8108 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8109 if test "${bh_cv_c_signed+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8155 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8156 if test $bh_cv_c_signed = no; then
8158 cat >>confdefs.h <<\_ACEOF
8164 { echo "$as_me:$LINENO: checking for inline" >&5
8165 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8166 if test "${ac_cv_c_inline+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 for ac_kw in inline __inline__ __inline; do
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8179 static $ac_kw foo_t static_foo () {return 0; }
8180 $ac_kw foo_t foo () {return 0; }
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_c_inline=$ac_kw
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 test "$ac_cv_c_inline" != no && break
8214 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8215 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8218 case $ac_cv_c_inline in
8221 case $ac_cv_c_inline in
8223 *) ac_val=$ac_cv_c_inline;;
8225 cat >>confdefs.h <<_ACEOF
8227 #define inline $ac_val
8233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8244 inttypes.h stdint.h unistd.h
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8260 #include <$ac_header>
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 eval "$as_ac_Header=yes"
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 eval "$as_ac_Header=no"
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290 { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8302 { echo "$as_me:$LINENO: checking for off_t" >&5
8303 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8304 if test "${ac_cv_type_off_t+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8314 typedef off_t ac__type_new_;
8318 if ((ac__type_new_ *) 0)
8320 if (sizeof (ac__type_new_))
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_cv_type_off_t=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8354 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8355 if test $ac_cv_type_off_t = yes; then
8359 cat >>confdefs.h <<_ACEOF
8360 #define off_t long int
8365 { echo "$as_me:$LINENO: checking for size_t" >&5
8366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_size_t+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 typedef size_t ac__type_new_;
8381 if ((ac__type_new_ *) 0)
8383 if (sizeof (ac__type_new_))
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_type_size_t=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_type_size_t=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8418 if test $ac_cv_type_size_t = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define size_t unsigned int
8429 { echo "$as_me:$LINENO: checking for long long" >&5
8430 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8431 if test "${ac_cv_type_long_long+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 long long ll = 1LL; int i = 63;
8444 long long llmax = (long long) -1;
8445 return ll << i | ll >> i | llmax / ll | llmax % ll;
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && {
8464 test -z "$ac_c_werror_flag" ||
8465 test ! -s conftest.err
8466 } && test -s conftest$ac_exeext &&
8467 $as_test_x conftest$ac_exeext; then
8468 ac_cv_type_long_long=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_type_long_long=no
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477 conftest$ac_exeext conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8481 if test $ac_cv_type_long_long = yes; then
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_LONG_LONG 1
8490 { echo "$as_me:$LINENO: checking for long double" >&5
8491 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8492 if test "${gt_cv_c_long_double+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 if test "$GCC" = yes; then
8496 gt_cv_c_long_double=yes
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8506 long double foo = 0.0;
8507 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8508 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 gt_cv_c_long_double=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 gt_cv_c_long_double=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8547 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8548 if test $gt_cv_c_long_double = yes; then
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_LONG_DOUBLE 1
8557 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8558 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8559 if test "${gt_cv_c_wchar_t+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8569 wchar_t foo = (wchar_t)'\0';
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8606 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8607 if test $gt_cv_c_wchar_t = yes; then
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_WCHAR_T 1
8616 { echo "$as_me:$LINENO: checking for wint_t" >&5
8617 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8618 if test "${gt_cv_c_wint_t+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 wint_t foo = (wchar_t)'\0';
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8665 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8666 if test $gt_cv_c_wint_t = yes; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_WINT_T 1
8675 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8677 if test "${gl_cv_header_inttypes_h+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <inttypes.h>
8691 uintmax_t i = (uintmax_t) -1;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 gl_cv_header_inttypes_h=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 gl_cv_header_inttypes_h=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8724 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8725 if test $gl_cv_header_inttypes_h = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8734 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8735 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8736 if test "${gl_cv_header_stdint_h+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 #include <sys/types.h>
8750 uintmax_t i = (uintmax_t) -1;
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 gl_cv_header_stdint_h=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 gl_cv_header_stdint_h=no
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8783 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8784 if test $gl_cv_header_stdint_h = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_STDINT_H_WITH_UINTMAX 1
8795 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8796 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8797 if test "${gt_cv_c_intmax_t+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8809 #if HAVE_STDINT_H_WITH_UINTMAX
8812 #if HAVE_INTTYPES_H_WITH_UINTMAX
8813 #include <inttypes.h>
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest.$ac_objext; then
8841 gt_cv_c_intmax_t=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8852 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8853 if test $gt_cv_c_intmax_t = yes; then
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_INTMAX_T 1
8863 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8864 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8865 if test "${gt_cv_func_printf_posix+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 if test "$cross_compiling" = yes; then
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884 $EGREP "notposix" >/dev/null 2>&1; then
8885 gt_cv_func_printf_posix="guessing no"
8887 gt_cv_func_printf_posix="guessing yes"
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8902 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8903 dollar expansion (possibly an autoconf bug). */
8904 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8905 static char buf[100];
8908 sprintf (buf, format, 33, 55);
8909 return (strcmp (buf, "55 33") != 0);
8912 rm -f conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8923 { (case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_try") 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 gt_cv_func_printf_posix=yes
8934 echo "$as_me: program exited with status $ac_status" >&5
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8939 gt_cv_func_printf_posix=no
8941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8947 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8948 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8949 case $gt_cv_func_printf_posix in
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_POSIX_PRINTF 1
8959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8960 # for constant arguments. Useless!
8961 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8963 if test "${ac_cv_working_alloca_h+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8976 char *p = (char *) alloca (2 * sizeof (int));
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (ac_try="$ac_link"
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_link") 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest$ac_exeext &&
8999 $as_test_x conftest$ac_exeext; then
9000 ac_cv_working_alloca_h=yes
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_cv_working_alloca_h=no
9008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9009 conftest$ac_exeext conftest.$ac_ext
9011 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9012 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9013 if test $ac_cv_working_alloca_h = yes; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_ALLOCA_H 1
9021 { echo "$as_me:$LINENO: checking for alloca" >&5
9022 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9023 if test "${ac_cv_func_alloca_works+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 # define alloca __builtin_alloca
9036 # include <malloc.h>
9037 # define alloca _alloca
9039 # ifdef HAVE_ALLOCA_H
9040 # include <alloca.h>
9045 # ifndef alloca /* predefined by HP cc +Olibcalls */
9056 char *p = (char *) alloca (1);
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_func_alloca_works=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_cv_func_alloca_works=no
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9091 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9092 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9094 if test $ac_cv_func_alloca_works = yes; then
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_ALLOCA 1
9101 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9102 # that cause trouble. Some versions do not even contain alloca or
9103 # contain a buggy version. If you still want to use their alloca,
9104 # use ar to extract alloca.o from them instead of compiling alloca.c.
9106 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9108 cat >>confdefs.h <<\_ACEOF
9113 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9114 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9115 if test "${ac_cv_os_cray+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 #if defined CRAY && ! defined CRAY2
9131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9132 $EGREP "webecray" >/dev/null 2>&1; then
9140 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9141 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9142 if test $ac_cv_os_cray = yes; then
9143 for ac_func in _getb67 GETB67 getb67; do
9144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9158 #define $ac_func innocuous_$ac_func
9160 /* System header to define __stub macros and hopefully few prototypes,
9161 which can conflict with char $ac_func (); below.
9162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9163 <limits.h> exists even on freestanding compilers. */
9166 # include <limits.h>
9168 # include <assert.h>
9173 /* Override any GCC internal prototype to avoid an error.
9174 Use char because int might match the return type of a GCC
9175 builtin and then its argument prototype would still apply. */
9180 /* The GNU C library defines this for functions which it implements
9181 to always fail with ENOSYS. Some functions are actually named
9182 something starting with __ and the normal name is an alias. */
9183 #if defined __stub_$ac_func || defined __stub___$ac_func
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_link") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext &&
9212 $as_test_x conftest$ac_exeext; then
9213 eval "$as_ac_var=yes"
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 eval "$as_ac_var=no"
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222 conftest$ac_exeext conftest.$ac_ext
9224 ac_res=`eval echo '${'$as_ac_var'}'`
9225 { echo "$as_me:$LINENO: result: $ac_res" >&5
9226 echo "${ECHO_T}$ac_res" >&6; }
9227 if test `eval echo '${'$as_ac_var'}'` = yes; then
9229 cat >>confdefs.h <<_ACEOF
9230 #define CRAY_STACKSEG_END $ac_func
9239 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9241 if test "${ac_cv_c_stack_direction+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 if test "$cross_compiling" = yes; then
9245 ac_cv_c_stack_direction=0
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 $ac_includes_default
9255 find_stack_direction ()
9257 static char *addr = 0;
9262 return find_stack_direction ();
9265 return (&dummy > addr) ? 1 : -1;
9271 return find_stack_direction () < 0;
9274 rm -f conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_link") 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_c_stack_direction=1
9296 echo "$as_me: program exited with status $ac_status" >&5
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_c_stack_direction=-1
9303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9311 cat >>confdefs.h <<_ACEOF
9312 #define STACK_DIRECTION $ac_cv_c_stack_direction
9320 for ac_header in stdlib.h unistd.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330 { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9333 # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9343 #include <$ac_header>
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_header_compiler=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9401 ac_header_preproc=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 eval "$as_ac_Header=\$ac_header_preproc"
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446 { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 for ac_func in getpagesize
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9476 #define $ac_func innocuous_$ac_func
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func (); below.
9480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481 <limits.h> exists even on freestanding compilers. */
9484 # include <limits.h>
9486 # include <assert.h>
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined __stub_$ac_func || defined __stub___$ac_func
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_link") 2>conftest.er1
9522 grep -v '^ *+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest$ac_exeext &&
9530 $as_test_x conftest$ac_exeext; then
9531 eval "$as_ac_var=yes"
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 eval "$as_ac_var=no"
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540 conftest$ac_exeext conftest.$ac_ext
9542 ac_res=`eval echo '${'$as_ac_var'}'`
9543 { echo "$as_me:$LINENO: result: $ac_res" >&5
9544 echo "${ECHO_T}$ac_res" >&6; }
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553 { echo "$as_me:$LINENO: checking for working mmap" >&5
9554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 if test "$cross_compiling" = yes; then
9559 ac_cv_func_mmap_fixed_mapped=no
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 /* malloc might have been renamed as rpl_malloc. */
9571 /* Thanks to Mike Haertel and Jim Avera for this test.
9572 Here is a matrix of mmap possibilities:
9573 mmap private not fixed
9574 mmap private fixed at somewhere currently unmapped
9575 mmap private fixed at somewhere already mapped
9576 mmap shared not fixed
9577 mmap shared fixed at somewhere currently unmapped
9578 mmap shared fixed at somewhere already mapped
9579 For private mappings, we should verify that changes cannot be read()
9580 back from the file, nor mmap's back from the file at a different
9581 address. (There have been systems where private was not correctly
9582 implemented like the infamous i386 svr4.0, and systems where the
9583 VM page cache was not coherent with the file system buffer cache
9584 like early versions of FreeBSD and possibly contemporary NetBSD.)
9585 For shared mappings, we should conversely verify that changes get
9586 propagated back to all the places they're supposed to be.
9588 Grep wants private fixed already mapped.
9589 The main things grep needs to know about mmap are:
9590 * does it exist and is it safe to write into the mmap'd area
9591 * how to use it (BSD variants) */
9594 #include <sys/mman.h>
9596 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9600 /* This mess was copied from the GNU getpagesize.h. */
9601 #ifndef HAVE_GETPAGESIZE
9602 /* Assume that all systems that can run configure have sys/param.h. */
9603 # ifndef HAVE_SYS_PARAM_H
9604 # define HAVE_SYS_PARAM_H 1
9607 # ifdef _SC_PAGESIZE
9608 # define getpagesize() sysconf(_SC_PAGESIZE)
9609 # else /* no _SC_PAGESIZE */
9610 # ifdef HAVE_SYS_PARAM_H
9611 # include <sys/param.h>
9612 # ifdef EXEC_PAGESIZE
9613 # define getpagesize() EXEC_PAGESIZE
9614 # else /* no EXEC_PAGESIZE */
9616 # define getpagesize() NBPG * CLSIZE
9619 # endif /* no CLSIZE */
9620 # else /* no NBPG */
9622 # define getpagesize() NBPC
9623 # else /* no NBPC */
9625 # define getpagesize() PAGESIZE
9626 # endif /* PAGESIZE */
9627 # endif /* no NBPC */
9628 # endif /* no NBPG */
9629 # endif /* no EXEC_PAGESIZE */
9630 # else /* no HAVE_SYS_PARAM_H */
9631 # define getpagesize() 8192 /* punt totally */
9632 # endif /* no HAVE_SYS_PARAM_H */
9633 # endif /* no _SC_PAGESIZE */
9635 #endif /* no HAVE_GETPAGESIZE */
9640 char *data, *data2, *data3;
9644 pagesize = getpagesize ();
9646 /* First, make a file with some known garbage in it. */
9647 data = (char *) malloc (pagesize);
9650 for (i = 0; i < pagesize; ++i)
9651 *(data + i) = rand ();
9653 fd = creat ("conftest.mmap", 0600);
9656 if (write (fd, data, pagesize) != pagesize)
9660 /* Next, try to mmap the file at a fixed address which already has
9661 something else allocated at it. If we can, also make sure that
9662 we see the same garbage. */
9663 fd = open ("conftest.mmap", O_RDWR);
9666 data2 = (char *) malloc (2 * pagesize);
9669 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9673 for (i = 0; i < pagesize; ++i)
9674 if (*(data + i) != *(data2 + i))
9677 /* Finally, make sure that changes to the mapped area do not
9678 percolate back to the file as seen by read(). (This is a bug on
9679 some variants of i386 svr4.0.) */
9680 for (i = 0; i < pagesize; ++i)
9681 *(data2 + i) = *(data2 + i) + 1;
9682 data3 = (char *) malloc (pagesize);
9685 if (read (fd, data3, pagesize) != pagesize)
9687 for (i = 0; i < pagesize; ++i)
9688 if (*(data + i) != *(data3 + i))
9694 rm -f conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_func_mmap_fixed_mapped=yes
9716 echo "$as_me: program exited with status $ac_status" >&5
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_cv_func_mmap_fixed_mapped=no
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9728 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9729 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9730 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9732 cat >>confdefs.h <<\_ACEOF
9740 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9741 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9742 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 #include <features.h>
9753 #ifdef __GNU_LIBRARY__
9754 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9761 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9762 ac_cv_gnu_library_2_1=yes
9764 ac_cv_gnu_library_2_1=no
9771 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9772 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9774 GLIBC21="$ac_cv_gnu_library_2_1"
9779 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9780 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9781 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 if test "$cross_compiling" = yes; then
9787 # Guess based on the CPU.
9789 alpha* | i3456786 | m68k | s390*)
9790 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9792 gt_cv_int_divbyzero_sigfpe="guessing no";;
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9808 sigfpe_handler (int sig)
9810 sigfpe_handler (sig) int sig;
9813 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9814 exit (sig != SIGFPE);
9824 signal (SIGFPE, sigfpe_handler);
9825 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9826 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9827 signal (SIGTRAP, sigfpe_handler);
9829 /* Linux/SPARC yields signal SIGILL. */
9830 #if defined (__sparc__) && defined (__linux__)
9831 signal (SIGILL, sigfpe_handler);
9840 rm -f conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 gt_cv_int_divbyzero_sigfpe=yes
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9867 gt_cv_int_divbyzero_sigfpe=no
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9876 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9877 case "$gt_cv_int_divbyzero_sigfpe" in
9882 cat >>confdefs.h <<_ACEOF
9883 #define INTDIV0_RAISES_SIGFPE $value
9888 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9890 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 unsigned long long ull = 1ULL; int i = 63;
9903 unsigned long long ullmax = (unsigned long long) -1;
9904 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_link") 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } && {
9923 test -z "$ac_c_werror_flag" ||
9924 test ! -s conftest.err
9925 } && test -s conftest$ac_exeext &&
9926 $as_test_x conftest$ac_exeext; then
9927 ac_cv_type_unsigned_long_long=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_type_unsigned_long_long=no
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936 conftest$ac_exeext conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9939 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9940 if test $ac_cv_type_unsigned_long_long = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_UNSIGNED_LONG_LONG 1
9951 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9953 test $ac_cv_type_unsigned_long_long = yes \
9954 && ac_type='unsigned long long' \
9955 || ac_type='unsigned long'
9957 cat >>confdefs.h <<_ACEOF
9958 #define uintmax_t $ac_type
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_UINTMAX_T 1
9970 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9971 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9972 if test "${gt_cv_header_inttypes_h+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <sys/types.h>
9983 #include <inttypes.h>
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_compile") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest.$ac_objext; then
10009 gt_cv_header_inttypes_h=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 gt_cv_header_inttypes_h=no
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10021 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10022 if test $gt_cv_header_inttypes_h = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_INTTYPES_H 1
10032 if test $gt_cv_header_inttypes_h = yes; then
10033 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10034 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10035 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <inttypes.h>
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_compile") 2>conftest.er1
10067 grep -v '^ *+' conftest.er1 >conftest.err
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest.$ac_objext; then
10075 gt_cv_inttypes_pri_broken=no
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 gt_cv_inttypes_pri_broken=yes
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10087 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10089 if test "$gt_cv_inttypes_pri_broken" = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define PRI_MACROS_BROKEN 1
10099 for ac_header in stdint.h
10101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109 { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10112 # Is the header compilable?
10113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10122 #include <$ac_header>
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
10141 ac_header_compiler=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_compiler=no
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10151 echo "${ECHO_T}$ac_header_compiler" >&6; }
10153 # Is the header present?
10154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <$ac_header>
10164 if { (ac_try="$ac_cpp conftest.$ac_ext"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } >/dev/null && {
10177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10180 ac_header_preproc=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_header_preproc=no
10188 rm -f conftest.err conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6; }
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 eval "$as_ac_Header=\$ac_header_preproc"
10224 ac_res=`eval echo '${'$as_ac_Header'}'`
10225 { echo "$as_me:$LINENO: result: $ac_res" >&5
10226 echo "${ECHO_T}$ac_res" >&6; }
10229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10239 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 #include <limits.h>
10250 #include <stdint.h>
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258 $EGREP "Found it" >/dev/null 2>&1; then
10263 if test -z "$result"; then
10264 if test "$cross_compiling" = yes; then
10265 # Depending upon the size, compute the lo and hi bounds.
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 #include <stddef.h>
10276 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <stddef.h>
10312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
10336 ac_hi=$ac_mid; break
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_lo=`expr $ac_mid + 1`
10342 if test $ac_lo -le $ac_mid; then
10346 ac_mid=`expr 2 '*' $ac_mid + 1`
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <stddef.h>
10365 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 #include <stddef.h>
10401 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_lo=$ac_mid; break
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_hi=`expr '(' $ac_mid ')' - 1`
10431 if test $ac_mid -le $ac_hi; then
10435 ac_mid=`expr 2 '*' $ac_mid`
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 # Binary search between lo and hi bounds.
10452 while test "x$ac_lo" != "x$ac_hi"; do
10453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <stddef.h>
10464 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10471 rm -f conftest.$ac_objext
10472 if { (ac_try="$ac_compile"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_compile") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1 >conftest.err
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest.$ac_objext; then
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_lo=`expr '(' $ac_mid ')' + 1`
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 ?*) res_hi=$ac_lo;;
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <stddef.h>
10510 static long int longval () { return ~(size_t)0 / 10; }
10511 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10513 #include <stdlib.h>
10518 FILE *f = fopen ("conftest.val", "w");
10521 if ((~(size_t)0 / 10) < 0)
10523 long int i = longval ();
10524 if (i != (~(size_t)0 / 10))
10526 fprintf (f, "%ld\n", i);
10530 unsigned long int i = ulongval ();
10531 if (i != (~(size_t)0 / 10))
10533 fprintf (f, "%lu\n", i);
10535 return ferror (f) || fclose (f) != 0;
10541 rm -f conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 res_hi=`cat conftest.val`
10563 echo "$as_me: program exited with status $ac_status" >&5
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ( exit $ac_status )
10570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10574 if test "$cross_compiling" = yes; then
10575 # Depending upon the size, compute the lo and hi bounds.
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <stddef.h>
10586 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest.$ac_objext; then
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <stddef.h>
10622 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_compile") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest.$ac_objext; then
10646 ac_hi=$ac_mid; break
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_lo=`expr $ac_mid + 1`
10652 if test $ac_lo -le $ac_mid; then
10656 ac_mid=`expr 2 '*' $ac_mid + 1`
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 #include <stddef.h>
10675 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
10701 cat >conftest.$ac_ext <<_ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <stddef.h>
10711 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest.$ac_objext; then
10735 ac_lo=$ac_mid; break
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_hi=`expr '(' $ac_mid ')' - 1`
10741 if test $ac_mid -le $ac_hi; then
10745 ac_mid=`expr 2 '*' $ac_mid`
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 # Binary search between lo and hi bounds.
10762 while test "x$ac_lo" != "x$ac_hi"; do
10763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #include <stddef.h>
10774 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_lo=`expr '(' $ac_mid ')' + 1`
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 ?*) res_lo=$ac_lo;;
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <stddef.h>
10820 static long int longval () { return ~(size_t)0 % 10; }
10821 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10823 #include <stdlib.h>
10828 FILE *f = fopen ("conftest.val", "w");
10831 if ((~(size_t)0 % 10) < 0)
10833 long int i = longval ();
10834 if (i != (~(size_t)0 % 10))
10836 fprintf (f, "%ld\n", i);
10840 unsigned long int i = ulongval ();
10841 if (i != (~(size_t)0 % 10))
10843 fprintf (f, "%lu\n", i);
10845 return ferror (f) || fclose (f) != 0;
10851 rm -f conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_link") 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 res_lo=`cat conftest.val`
10873 echo "$as_me: program exited with status $ac_status" >&5
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ( exit $ac_status )
10880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10884 if test "$cross_compiling" = yes; then
10885 # Depending upon the size, compute the lo and hi bounds.
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <stddef.h>
10896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 #include <stddef.h>
10932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10939 rm -f conftest.$ac_objext
10940 if { (ac_try="$ac_compile"
10941 case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_compile") 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest.$ac_objext; then
10956 ac_hi=$ac_mid; break
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 ac_lo=`expr $ac_mid + 1`
10962 if test $ac_lo -le $ac_mid; then
10966 ac_mid=`expr 2 '*' $ac_mid + 1`
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <stddef.h>
10985 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.$ac_objext; then
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <stddef.h>
11021 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11045 ac_lo=$ac_mid; break
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_hi=`expr '(' $ac_mid ')' - 1`
11051 if test $ac_mid -le $ac_hi; then
11055 ac_mid=`expr 2 '*' $ac_mid`
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 # Binary search between lo and hi bounds.
11072 while test "x$ac_lo" != "x$ac_hi"; do
11073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #include <stddef.h>
11084 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_lo=`expr '(' $ac_mid ')' + 1`
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ?*) fits_in_uint=$ac_lo;;
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <stddef.h>
11130 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11131 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11133 #include <stdlib.h>
11138 FILE *f = fopen ("conftest.val", "w");
11141 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11143 long int i = longval ();
11144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11146 fprintf (f, "%ld\n", i);
11150 unsigned long int i = ulongval ();
11151 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11153 fprintf (f, "%lu\n", i);
11155 return ferror (f) || fclose (f) != 0;
11161 rm -f conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_link") 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 fits_in_uint=`cat conftest.val`
11183 echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ( exit $ac_status )
11190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11194 if test "$fits_in_uint" = 1; then
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <stddef.h>
11203 extern unsigned long foo;
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest.$ac_objext; then
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 if test -z "$result"; then
11241 if test "$fits_in_uint" = 1; then
11242 result="$res_hi$res_lo"U
11244 result="$res_hi$res_lo"UL
11247 result='~(size_t)0'
11250 { echo "$as_me:$LINENO: result: $result" >&5
11251 echo "${ECHO_T}$result" >&6; }
11252 if test "$result" != yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define SIZE_MAX $result
11264 for ac_header in stdint.h
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11277 # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 #include <$ac_header>
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.$ac_objext; then
11306 ac_header_compiler=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_compiler=no
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11316 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318 # Is the header present?
11319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <$ac_header>
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } >/dev/null && {
11342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11345 ac_header_preproc=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_header_preproc=no
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 eval "$as_ac_Header=\$ac_header_preproc"
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11411 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 typedef ptrdiff_t ac__type_new_;
11426 if ((ac__type_new_ *) 0)
11428 if (sizeof (ac__type_new_))
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_compile") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && {
11448 test -z "$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11450 } && test -s conftest.$ac_objext; then
11451 ac_cv_type_ptrdiff_t=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_cv_type_ptrdiff_t=no
11459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11463 if test $ac_cv_type_ptrdiff_t = yes; then
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ptrdiff_t long
11484 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11485 stdlib.h string.h unistd.h sys/param.h
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11498 # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11508 #include <$ac_header>
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest.$ac_objext; then
11527 ac_header_compiler=yes
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_compiler=no
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <$ac_header>
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null && {
11563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11566 ac_header_preproc=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_header_preproc=no
11574 rm -f conftest.err conftest.$ac_ext
11575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11576 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578 # So? What about this header?
11579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11585 ac_header_preproc=yes
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 eval "$as_ac_Header=\$ac_header_preproc"
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11648 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11649 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11674 # include <limits.h>
11676 # include <assert.h>
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 return $ac_func ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1 >conftest.err
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 eval "$as_ac_var=yes"
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 eval "$as_ac_var=no"
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11746 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11747 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11762 char *p = (char *) _snprintf;
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_compile") 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
11786 ac_cv_have_decl__snprintf=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_have_decl__snprintf=no
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11797 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11798 if test $ac_cv_have_decl__snprintf = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_DECL__SNPRINTF $gt_value
11810 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11811 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11812 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11827 char *p = (char *) _snwprintf;
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_cv_have_decl__snwprintf=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_have_decl__snwprintf=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11862 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11863 if test $ac_cv_have_decl__snwprintf = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_DECL__SNWPRINTF $gt_value
11876 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11877 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11878 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11892 #ifndef feof_unlocked
11893 char *p = (char *) feof_unlocked;
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_feof_unlocked=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_have_decl_feof_unlocked=no
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11928 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11929 if test $ac_cv_have_decl_feof_unlocked = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11941 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11942 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11943 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11957 #ifndef fgets_unlocked
11958 char *p = (char *) fgets_unlocked;
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_cv_have_decl_fgets_unlocked=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_have_decl_fgets_unlocked=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11993 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11994 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12006 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12007 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12008 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12022 #ifndef getc_unlocked
12023 char *p = (char *) getc_unlocked;
12030 rm -f conftest.$ac_objext
12031 if { (ac_try="$ac_compile"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_compile") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && {
12044 test -z "$ac_c_werror_flag" ||
12045 test ! -s conftest.err
12046 } && test -s conftest.$ac_objext; then
12047 ac_cv_have_decl_getc_unlocked=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_have_decl_getc_unlocked=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12058 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12059 if test $ac_cv_have_decl_getc_unlocked = yes; then
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12071 case $gt_cv_func_printf_posix in
12072 *yes) HAVE_POSIX_PRINTF=1 ;;
12073 *) HAVE_POSIX_PRINTF=0 ;;
12076 if test "$ac_cv_func_asprintf" = yes; then
12082 if test "$ac_cv_func_snprintf" = yes; then
12088 if test "$ac_cv_func_wprintf" = yes; then
12100 am_save_CPPFLAGS="$CPPFLAGS"
12102 for element in $INCICONV; do
12104 for x in $CPPFLAGS; do
12106 acl_save_prefix="$prefix"
12107 prefix="$acl_final_prefix"
12108 acl_save_exec_prefix="$exec_prefix"
12109 exec_prefix="$acl_final_exec_prefix"
12111 exec_prefix="$acl_save_exec_prefix"
12112 prefix="$acl_save_prefix"
12114 if test "X$x" = "X$element"; then
12119 if test -z "$haveit"; then
12120 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12125 { echo "$as_me:$LINENO: checking for iconv" >&5
12126 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12127 if test "${am_cv_func_iconv+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 am_cv_func_iconv="no, consider installing GNU libiconv"
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <stdlib.h>
12144 iconv_t cd = iconv_open("","");
12145 iconv(cd,NULL,NULL,NULL,NULL);
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 am_cv_func_iconv=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 if test "$am_cv_func_iconv" != yes; then
12180 am_save_LIBS="$LIBS"
12181 LIBS="$LIBS $LIBICONV"
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <stdlib.h>
12193 iconv_t cd = iconv_open("","");
12194 iconv(cd,NULL,NULL,NULL,NULL);
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 am_cv_lib_iconv=yes
12219 am_cv_func_iconv=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS="$am_save_LIBS"
12233 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12234 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12235 if test "$am_cv_func_iconv" = yes; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_ICONV 1
12242 if test "$am_cv_lib_iconv" = yes; then
12243 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12245 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12246 echo "${ECHO_T}$LIBICONV" >&6; }
12248 CPPFLAGS="$am_save_CPPFLAGS"
12255 if test "$am_cv_func_iconv" = yes; then
12256 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12257 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12258 if test "${am_cv_proto_iconv+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 #include <stdlib.h>
12275 #if defined(__STDC__) || defined(__cplusplus)
12276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 am_cv_proto_iconv_arg1=""
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 am_cv_proto_iconv_arg1="const"
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 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);"
12318 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12319 { echo "$as_me:$LINENO: result: ${ac_t:-
12320 }$am_cv_proto_iconv" >&5
12321 echo "${ECHO_T}${ac_t:-
12322 }$am_cv_proto_iconv" >&6; }
12324 cat >>confdefs.h <<_ACEOF
12325 #define ICONV_CONST $am_cv_proto_iconv_arg1
12331 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12332 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12333 if test "${am_cv_langinfo_codeset+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 #include <langinfo.h>
12346 char* cs = nl_langinfo(CODESET);
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 am_cv_langinfo_codeset=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 am_cv_langinfo_codeset=no
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378 conftest$ac_exeext conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12382 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12383 if test $am_cv_langinfo_codeset = yes; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_LANGINFO_CODESET 1
12391 if test $ac_cv_header_locale_h = yes; then
12393 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12394 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12395 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12404 #include <locale.h>
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 gt_cv_val_LC_MESSAGES=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 gt_cv_val_LC_MESSAGES=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12443 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12444 if test $gt_cv_val_LC_MESSAGES = yes; then
12446 cat >>confdefs.h <<\_ACEOF
12447 #define HAVE_LC_MESSAGES 1
12454 if test -n "$INTL_MACOSX_LIBS"; then
12455 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12458 for ac_prog in bison
12460 # Extract the first word of "$ac_prog", so it can be a program name with args.
12461 set dummy $ac_prog; ac_word=$2
12462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12464 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 if test -n "$INTLBISON"; then
12468 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_INTLBISON="$ac_prog"
12478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 INTLBISON=$ac_cv_prog_INTLBISON
12488 if test -n "$INTLBISON"; then
12489 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12490 echo "${ECHO_T}$INTLBISON" >&6; }
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12497 test -n "$INTLBISON" && break
12500 if test -z "$INTLBISON"; then
12503 { echo "$as_me:$LINENO: checking version of bison" >&5
12504 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12505 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12506 case $ac_prog_version in
12507 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12508 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12509 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12510 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12512 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12513 echo "${ECHO_T}$ac_prog_version" >&6; }
12515 if test $ac_verc_fail = yes; then
12534 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12535 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12536 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 gt_save_CPPFLAGS="$CPPFLAGS"
12540 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12541 gt_save_LIBS="$LIBS"
12542 LIBS="$LIBS -framework CoreFoundation"
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <CFPreferences.h>
12553 CFPreferencesCopyAppValue(NULL, NULL)
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12567 grep -v '^ *+' conftest.er1 >conftest.err
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest$ac_exeext &&
12575 $as_test_x conftest$ac_exeext; then
12576 gt_cv_func_CFPreferencesCopyAppValue=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 gt_cv_func_CFPreferencesCopyAppValue=no
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585 conftest$ac_exeext conftest.$ac_ext
12586 CPPFLAGS="$gt_save_CPPFLAGS"
12587 LIBS="$gt_save_LIBS"
12589 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12590 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12591 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12598 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12599 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12600 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 gt_save_CPPFLAGS="$CPPFLAGS"
12604 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12605 gt_save_LIBS="$LIBS"
12606 LIBS="$LIBS -framework CoreFoundation"
12607 cat >conftest.$ac_ext <<_ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 #include <CFLocale.h>
12617 CFLocaleCopyCurrent();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest$ac_exeext &&
12639 $as_test_x conftest$ac_exeext; then
12640 gt_cv_func_CFLocaleCopyCurrent=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 gt_cv_func_CFLocaleCopyCurrent=no
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649 conftest$ac_exeext conftest.$ac_ext
12650 CPPFLAGS="$gt_save_CPPFLAGS"
12651 LIBS="$gt_save_LIBS"
12653 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12654 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12655 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_CFLOCALECOPYCURRENT 1
12663 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12664 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12670 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12671 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12672 # Check whether --enable-nls was given.
12673 if test "${enable_nls+set}" = set; then
12674 enableval=$enable_nls; USE_NLS=$enableval
12679 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12680 echo "${ECHO_T}$USE_NLS" >&6; }
12685 BUILD_INCLUDED_LIBINTL=no
12686 USE_INCLUDED_LIBINTL=no
12692 if test "$USE_NLS" = "yes"; then
12693 gt_use_preinstalled_gnugettext=no
12695 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12696 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12698 # Check whether --with-included-gettext was given.
12699 if test "${with_included_gettext+set}" = set; then
12700 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12702 nls_cv_force_use_gnu_gettext=no
12705 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12706 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12708 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12709 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12716 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12717 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12718 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include <libintl.h>
12728 extern int _nl_msg_cat_cntr;
12729 extern int *_nl_domain_bindings;
12733 bindtextdomain ("", "");
12734 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest$ac_exeext &&
12756 $as_test_x conftest$ac_exeext; then
12757 gt_cv_func_gnugettext1_libc=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 gt_cv_func_gnugettext1_libc=no
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766 conftest$ac_exeext conftest.$ac_ext
12768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12771 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12777 acl_save_prefix="$prefix"
12778 prefix="$acl_final_prefix"
12779 acl_save_exec_prefix="$exec_prefix"
12780 exec_prefix="$acl_final_exec_prefix"
12782 eval additional_includedir=\"$includedir\"
12783 eval additional_libdir=\"$libdir\"
12785 exec_prefix="$acl_save_exec_prefix"
12786 prefix="$acl_save_prefix"
12789 # Check whether --with-libintl-prefix was given.
12790 if test "${with_libintl_prefix+set}" = set; then
12791 withval=$with_libintl_prefix;
12792 if test "X$withval" = "Xno"; then
12795 if test "X$withval" = "X"; then
12797 acl_save_prefix="$prefix"
12798 prefix="$acl_final_prefix"
12799 acl_save_exec_prefix="$exec_prefix"
12800 exec_prefix="$acl_final_exec_prefix"
12802 eval additional_includedir=\"$includedir\"
12803 eval additional_libdir=\"$libdir\"
12805 exec_prefix="$acl_save_exec_prefix"
12806 prefix="$acl_save_prefix"
12809 additional_includedir="$withval/include"
12810 additional_libdir="$withval/lib"
12821 names_already_handled=
12822 names_next_round='intl '
12823 while test -n "$names_next_round"; do
12824 names_this_round="$names_next_round"
12826 for name in $names_this_round; do
12828 for n in $names_already_handled; do
12829 if test "$n" = "$name"; then
12830 already_handled=yes
12834 if test -z "$already_handled"; then
12835 names_already_handled="$names_already_handled $name"
12836 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12837 eval value=\"\$HAVE_LIB$uppername\"
12838 if test -n "$value"; then
12839 if test "$value" = yes; then
12840 eval value=\"\$LIB$uppername\"
12841 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12842 eval value=\"\$LTLIB$uppername\"
12843 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12852 if test $use_additional = yes; then
12853 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12854 found_dir="$additional_libdir"
12855 found_so="$additional_libdir/lib$name.$shlibext"
12856 if test -f "$additional_libdir/lib$name.la"; then
12857 found_la="$additional_libdir/lib$name.la"
12860 if test -f "$additional_libdir/lib$name.$libext"; then
12861 found_dir="$additional_libdir"
12862 found_a="$additional_libdir/lib$name.$libext"
12863 if test -f "$additional_libdir/lib$name.la"; then
12864 found_la="$additional_libdir/lib$name.la"
12869 if test "X$found_dir" = "X"; then
12870 for x in $LDFLAGS $LTLIBINTL; do
12872 acl_save_prefix="$prefix"
12873 prefix="$acl_final_prefix"
12874 acl_save_exec_prefix="$exec_prefix"
12875 exec_prefix="$acl_final_exec_prefix"
12877 exec_prefix="$acl_save_exec_prefix"
12878 prefix="$acl_save_prefix"
12882 dir=`echo "X$x" | sed -e 's/^X-L//'`
12883 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12885 found_so="$dir/lib$name.$shlibext"
12886 if test -f "$dir/lib$name.la"; then
12887 found_la="$dir/lib$name.la"
12890 if test -f "$dir/lib$name.$libext"; then
12892 found_a="$dir/lib$name.$libext"
12893 if test -f "$dir/lib$name.la"; then
12894 found_la="$dir/lib$name.la"
12900 if test "X$found_dir" != "X"; then
12905 if test "X$found_dir" != "X"; then
12906 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12907 if test "X$found_so" != "X"; then
12908 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12912 for x in $ltrpathdirs; do
12913 if test "X$x" = "X$found_dir"; then
12918 if test -z "$haveit"; then
12919 ltrpathdirs="$ltrpathdirs $found_dir"
12921 if test "$hardcode_direct" = yes; then
12922 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12924 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12925 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12927 for x in $rpathdirs; do
12928 if test "X$x" = "X$found_dir"; then
12933 if test -z "$haveit"; then
12934 rpathdirs="$rpathdirs $found_dir"
12938 for x in $LDFLAGS $LIBINTL; do
12940 acl_save_prefix="$prefix"
12941 prefix="$acl_final_prefix"
12942 acl_save_exec_prefix="$exec_prefix"
12943 exec_prefix="$acl_final_exec_prefix"
12945 exec_prefix="$acl_save_exec_prefix"
12946 prefix="$acl_save_prefix"
12948 if test "X$x" = "X-L$found_dir"; then
12953 if test -z "$haveit"; then
12954 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12956 if test "$hardcode_minus_L" != no; then
12957 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12959 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12965 if test "X$found_a" != "X"; then
12966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12968 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12971 additional_includedir=
12972 case "$found_dir" in
12974 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12975 additional_includedir="$basedir/include"
12978 if test "X$additional_includedir" != "X"; then
12979 if test "X$additional_includedir" != "X/usr/include"; then
12981 if test "X$additional_includedir" = "X/usr/local/include"; then
12982 if test -n "$GCC"; then
12984 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12988 if test -z "$haveit"; then
12989 for x in $CPPFLAGS $INCINTL; do
12991 acl_save_prefix="$prefix"
12992 prefix="$acl_final_prefix"
12993 acl_save_exec_prefix="$exec_prefix"
12994 exec_prefix="$acl_final_exec_prefix"
12996 exec_prefix="$acl_save_exec_prefix"
12997 prefix="$acl_save_prefix"
12999 if test "X$x" = "X-I$additional_includedir"; then
13004 if test -z "$haveit"; then
13005 if test -d "$additional_includedir"; then
13006 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13012 if test -n "$found_la"; then
13013 save_libdir="$libdir"
13014 case "$found_la" in
13015 */* | *\\*) . "$found_la" ;;
13016 *) . "./$found_la" ;;
13018 libdir="$save_libdir"
13019 for dep in $dependency_libs; do
13022 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13023 if test "X$additional_libdir" != "X/usr/lib"; then
13025 if test "X$additional_libdir" = "X/usr/local/lib"; then
13026 if test -n "$GCC"; then
13028 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13032 if test -z "$haveit"; then
13034 for x in $LDFLAGS $LIBINTL; do
13036 acl_save_prefix="$prefix"
13037 prefix="$acl_final_prefix"
13038 acl_save_exec_prefix="$exec_prefix"
13039 exec_prefix="$acl_final_exec_prefix"
13041 exec_prefix="$acl_save_exec_prefix"
13042 prefix="$acl_save_prefix"
13044 if test "X$x" = "X-L$additional_libdir"; then
13049 if test -z "$haveit"; then
13050 if test -d "$additional_libdir"; then
13051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13055 for x in $LDFLAGS $LTLIBINTL; do
13057 acl_save_prefix="$prefix"
13058 prefix="$acl_final_prefix"
13059 acl_save_exec_prefix="$exec_prefix"
13060 exec_prefix="$acl_final_exec_prefix"
13062 exec_prefix="$acl_save_exec_prefix"
13063 prefix="$acl_save_prefix"
13065 if test "X$x" = "X-L$additional_libdir"; then
13070 if test -z "$haveit"; then
13071 if test -d "$additional_libdir"; then
13072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13079 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13080 if test "$enable_rpath" != no; then
13082 for x in $rpathdirs; do
13083 if test "X$x" = "X$dir"; then
13088 if test -z "$haveit"; then
13089 rpathdirs="$rpathdirs $dir"
13092 for x in $ltrpathdirs; do
13093 if test "X$x" = "X$dir"; then
13098 if test -z "$haveit"; then
13099 ltrpathdirs="$ltrpathdirs $dir"
13104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13107 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13110 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13111 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13117 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13118 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13124 if test "X$rpathdirs" != "X"; then
13125 if test -n "$hardcode_libdir_separator"; then
13127 for found_dir in $rpathdirs; do
13128 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13130 acl_save_libdir="$libdir"
13132 eval flag=\"$hardcode_libdir_flag_spec\"
13133 libdir="$acl_save_libdir"
13134 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13136 for found_dir in $rpathdirs; do
13137 acl_save_libdir="$libdir"
13138 libdir="$found_dir"
13139 eval flag=\"$hardcode_libdir_flag_spec\"
13140 libdir="$acl_save_libdir"
13141 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13145 if test "X$ltrpathdirs" != "X"; then
13146 for found_dir in $ltrpathdirs; do
13147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13151 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13152 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13153 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 gt_save_CPPFLAGS="$CPPFLAGS"
13157 CPPFLAGS="$CPPFLAGS $INCINTL"
13158 gt_save_LIBS="$LIBS"
13159 LIBS="$LIBS $LIBINTL"
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #include <libintl.h>
13167 extern int _nl_msg_cat_cntr;
13172 const char *_nl_expand_alias (const char *);
13176 bindtextdomain ("", "");
13177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest$ac_exeext &&
13199 $as_test_x conftest$ac_exeext; then
13200 gt_cv_func_gnugettext1_libintl=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 gt_cv_func_gnugettext1_libintl=no
13208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13209 conftest$ac_exeext conftest.$ac_ext
13210 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13211 LIBS="$LIBS $LIBICONV"
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <libintl.h>
13219 extern int _nl_msg_cat_cntr;
13224 const char *_nl_expand_alias (const char *);
13228 bindtextdomain ("", "");
13229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest$ac_exeext &&
13251 $as_test_x conftest$ac_exeext; then
13252 LIBINTL="$LIBINTL $LIBICONV"
13253 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13254 gt_cv_func_gnugettext1_libintl=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264 conftest$ac_exeext conftest.$ac_ext
13266 CPPFLAGS="$gt_save_CPPFLAGS"
13267 LIBS="$gt_save_LIBS"
13269 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13270 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13273 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13274 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13275 && test "$PACKAGE" != gettext-runtime \
13276 && test "$PACKAGE" != gettext-tools; }; then
13277 gt_use_preinstalled_gnugettext=yes
13285 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13286 nls_cv_use_gnu_gettext=yes
13290 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13291 BUILD_INCLUDED_LIBINTL=yes
13292 USE_INCLUDED_LIBINTL=yes
13293 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13294 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13295 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13305 if test -n "$INTL_MACOSX_LIBS"; then
13306 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13307 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13308 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13309 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13313 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13314 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13316 cat >>confdefs.h <<\_ACEOF
13317 #define ENABLE_NLS 1
13325 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13326 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13327 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13328 echo "${ECHO_T}$USE_NLS" >&6; }
13329 if test "$USE_NLS" = "yes"; then
13330 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13331 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13332 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334 gt_source="external libintl"
13339 gt_source="included intl directory"
13341 { echo "$as_me:$LINENO: result: $gt_source" >&5
13342 echo "${ECHO_T}$gt_source" >&6; }
13345 if test "$USE_NLS" = "yes"; then
13347 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13348 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13349 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13350 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13351 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13352 echo "${ECHO_T}$LIBINTL" >&6; }
13354 for element in $INCINTL; do
13356 for x in $CPPFLAGS; do
13358 acl_save_prefix="$prefix"
13359 prefix="$acl_final_prefix"
13360 acl_save_exec_prefix="$exec_prefix"
13361 exec_prefix="$acl_final_exec_prefix"
13363 exec_prefix="$acl_save_exec_prefix"
13364 prefix="$acl_save_prefix"
13366 if test "X$x" = "X$element"; then
13371 if test -z "$haveit"; then
13372 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_GETTEXT 1
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_DCGETTEXT 1
13394 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13395 BUILD_INCLUDED_LIBINTL=yes
13402 nls_cv_header_intl=
13403 nls_cv_header_libgt=
13415 if test "$USE_INCLUDED_LIBINTL" = yes; then
13416 INTLOBJS="\$(GETTOBJS)"
13420 INTL_LIBTOOL_SUFFIX_PREFIX=
13424 INTLLIBS="$LIBINTL"
13433 support_faketape=no
13437 support_postgresql=no
13439 support_smartalloc=yes
13440 support_readline=yes
13444 support_wx_console=no
13449 support_static_tools=no
13450 support_static_fd=no
13451 support_static_sd=no
13452 support_static_dir=no
13453 support_static_cons=no
13455 build_client_only=no
13463 # -------------------------------------------
13464 # gnome (default off)
13465 # -------------------------------------------
13466 # Check whether --enable-gnome was given.
13467 if test "${enable_gnome+set}" = set; then
13468 enableval=$enable_gnome; if test x$enableval = xyes; then
13475 if test x$support_gnome = xyes; then
13476 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13478 if test $pkg = 0; then
13479 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13480 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13481 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13482 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13487 GNOME_DIR=src/gnome2-console
13488 gnome_version="Version 2.x"
13490 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13491 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13492 { (exit 1); exit 1; }; }
13497 # -------------------------------------------
13498 # bat (default off)
13499 # -------------------------------------------
13500 # Check whether --enable-bat was given.
13501 if test "${enable_bat+set}" = set; then
13502 enableval=$enable_bat; if test x$enableval = xyes; then
13504 cat >>confdefs.h <<\_ACEOF
13514 if test x$support_bat = xyes; then
13515 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13517 if test $pkg = 0; then
13518 BAT_DIR=src/qt-console
13520 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13521 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13522 { (exit 1); exit 1; }; }
13527 # If bat is enabled, we need the qwt library
13533 if test x$support_bat = xyes; then
13534 { echo "$as_me:$LINENO: checking for qwt support" >&5
13535 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13537 # Check whether --with-qwt was given.
13538 if test "${with_qwt+set}" = set; then
13540 case "$with_qwt" in
13544 if test -f ${with_qwt}/include/qwt.h; then
13545 QWT_INC="${with_qwt}/include"
13546 QWT_LDFLAGS="-L${with_qwt}/lib"
13557 # Search in standard places, or --with-qwt not specified
13559 if test x$QWT_INC = x; then
13560 for root in /usr /usr/local; do
13561 for ver in qwt qwt5 qwt-qt4; do
13562 if test -f ${root}/include/${ver}/qwt.h; then
13563 QWT_INC="${root}/include/${ver}"
13564 if test -d ${root}/lib64/; then
13565 QWT_LDFLAGS="-L${root}/lib64"
13567 QWT_LDFLAGS="-L${root}/lib"
13577 if test x$QWT_INC = x; then
13578 { echo "$as_me:$LINENO: result: no" >&5
13579 echo "${ECHO_T}no" >&6; }
13582 cat >>confdefs.h <<\_ACEOF
13586 { echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6; }
13598 # -------------------------------------------
13599 # bwx-console (default off)
13600 # -------------------------------------------
13601 # Check whether --enable-bwx-console was given.
13602 if test "${enable_bwx_console+set}" = set; then
13603 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13604 support_wx_console=yes
13610 if test x$support_wx_console = xyes; then
13611 abc=`$WXCONFIG $WXFLAGS --cppflags`
13613 if test $pkg = 0; then
13614 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13615 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13616 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13620 WX_DIR=src/wx-console
13623 echo "wx-config program not found. bwx-console disabled."
13625 support_wx_console=no
13631 # -------------------------------------------
13632 # tray-monitor (default off)
13633 # -------------------------------------------
13634 # Check whether --enable-tray-monitor was given.
13635 if test "${enable_tray_monitor+set}" = set; then
13636 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13637 support_tray_monitor=yes
13643 if test x$support_tray_monitor = xyes; then
13644 abc=`$PKGCONFIG --exists gtk+-2.0`
13646 if test $pkg = 0; then
13647 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13648 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13651 TRAY_MONITOR_DIR=src/tray-monitor
13652 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13654 if test $pkg = 0; then
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_GTK_2_4 1
13665 # -------------------------------------------
13666 # smartalloc (default off)
13667 # -------------------------------------------
13668 # Check whether --enable-smartalloc was given.
13669 if test "${enable_smartalloc+set}" = set; then
13670 enableval=$enable_smartalloc; if test x$enableval = xno; then
13671 support_smartalloc=no
13676 if test x$support_smartalloc = xyes; then
13678 cat >>confdefs.h <<\_ACEOF
13679 #define SMARTALLOC 1
13684 # -------------------------------------------
13685 # faketape (default off)
13686 # -------------------------------------------
13687 # Check whether --enable-faketape was given.
13688 if test "${enable_faketape+set}" = set; then
13689 enableval=$enable_faketape; if test x$enableval = xyes; then
13690 support_faketape=yes
13695 if test x$support_faketape = xyes; then
13697 cat >>confdefs.h <<\_ACEOF
13698 #define USE_FAKETAPE 1
13703 # -------------------------------------------
13704 # static-tools (default off)
13705 # -------------------------------------------
13706 # Check whether --enable-static-tools was given.
13707 if test "${enable_static_tools+set}" = set; then
13708 enableval=$enable_static_tools; if test x$enableval = xyes; then
13709 support_static_tools=yes
13715 if test x$support_static_tools = xyes; then
13716 TTOOL_LDFLAGS="-static"
13720 # -------------------------------------------
13721 # static-fd (default off)
13722 # -------------------------------------------
13723 # Check whether --enable-static-fd was given.
13724 if test "${enable_static_fd+set}" = set; then
13725 enableval=$enable_static_fd; if test x$enableval = xyes; then
13726 support_static_fd=yes
13732 if test x$support_static_fd = xyes; then
13733 STATIC_FD="static-bacula-fd"
13737 # -------------------------------------------
13738 # static-sd (default off)
13739 # -------------------------------------------
13740 # Check whether --enable-static-sd was given.
13741 if test "${enable_static_sd+set}" = set; then
13742 enableval=$enable_static_sd; if test x$enableval = xyes; then
13743 support_static_sd=yes
13749 if test x$support_static_sd = xyes; then
13750 STATIC_SD="static-bacula-sd"
13754 # -------------------------------------------
13755 # static-dir (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-static-dir was given.
13758 if test "${enable_static_dir+set}" = set; then
13759 enableval=$enable_static_dir; if test x$enableval = xyes; then
13760 support_static_dir=yes
13766 if test x$support_static_dir = xyes; then
13767 STATIC_DIR="static-bacula-dir"
13771 # -------------------------------------------
13772 # static-cons (default off)
13773 # -------------------------------------------
13774 # Check whether --enable-static-cons was given.
13775 if test "${enable_static_cons+set}" = set; then
13776 enableval=$enable_static_cons; if test x$enableval = xyes; then
13777 support_static_cons=yes
13785 if test x$support_static_cons = xyes; then
13786 STATIC_CONS="static-bconsole"
13787 STATIC_GNOME_CONS="static-bgnome-console"
13788 STATIC_WX_CONS="static-bwx-console"
13794 # -------------------------------------------
13795 # client_only (default off)
13796 # -------------------------------------------
13797 # Check whether --enable-client-only was given.
13798 if test "${enable_client_only+set}" = set; then
13799 enableval=$enable_client_only; if test x$enableval = xyes; then
13800 build_client_only=yes
13806 if test x$build_client_only = xno; then
13813 # -------------------------------------------
13814 # director (default on)
13815 # -------------------------------------------
13816 # Check whether --enable-build-dird was given.
13817 if test "${enable_build_dird+set}" = set; then
13818 enableval=$enable_build_dird; if test x$enableval = xno; then
13823 if test x$build_dird = xyes; then
13824 DIRD_DIR="src/dird"
13825 DIR_TOOLS="DIRTOOLS"
13828 DIR_TOOLS="NODIRTOOLS"
13833 # -------------------------------------------
13834 # stored (default on)
13835 # -------------------------------------------
13836 # Check whether --enable-build-stored was given.
13837 if test "${enable_build_stored+set}" = set; then
13838 enableval=$enable_build_stored; if test x$enableval = xno; then
13843 if test x$build_stored = xyes; then
13844 STORED_DIR="src/stored"
13850 # ---------------------------------------------------
13851 # Check for conio (Bacula readline substitute)(
13852 # ---------------------------------------------------
13853 # this allows you to turn it completely off
13854 # Check whether --enable-conio was given.
13855 if test "${enable_conio+set}" = set; then
13856 enableval=$enable_conio; if test x$enableval = xno; then
13864 # ---------------------------------------------------
13865 # Check for IPv6 support
13866 # ---------------------------------------------------
13867 # this allows you to turn it completely off
13869 # Check whether --enable-ipv6 was given.
13870 if test "${enable_ipv6+set}" = set; then
13871 enableval=$enable_ipv6; if test x$enableval = xno; then
13878 if test x$support_ipv6 = xyes; then
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 #include <sys/types.h>
13886 #include <sys/socket.h>
13887 #include <netinet/in.h>
13891 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (ac_try="$ac_link"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_link") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext &&
13913 $as_test_x conftest$ac_exeext; then
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13923 conftest$ac_exeext conftest.$ac_ext
13926 if test x$support_ipv6 = xyes; then
13928 cat >>confdefs.h <<\_ACEOF
13929 #define HAVE_IPV6 1
13937 if test x$support_conio = xyes; then
13938 if test "${ac_cv_header_termcap_h+set}" = set; then
13939 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13940 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13941 if test "${ac_cv_header_termcap_h+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13947 # Is the header compilable?
13948 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13949 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13956 $ac_includes_default
13957 #include <termcap.h>
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.$ac_objext; then
13976 ac_header_compiler=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_header_compiler=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 echo "${ECHO_T}$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13990 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <termcap.h>
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null && {
14012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14015 ac_header_preproc=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_preproc=no
14023 rm -f conftest.err conftest.$ac_ext
14024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 echo "${ECHO_T}$ac_header_preproc" >&6; }
14027 # So? What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14031 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14033 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14034 ac_header_preproc=yes
14037 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14038 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14040 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14042 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14044 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14046 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14048 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14052 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14053 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_termcap_h+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_cv_header_termcap_h=$ac_header_preproc
14059 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14060 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14063 if test $ac_cv_header_termcap_h = yes; then
14064 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14065 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14066 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-ltermcap $LIBS"
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_link") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest$ac_exeext &&
14110 $as_test_x conftest$ac_exeext; then
14111 ac_cv_lib_termcap_tgetent=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_lib_termcap_tgetent=no
14119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14124 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14125 if test $ac_cv_lib_termcap_tgetent = yes; then
14126 CONS_LIBS="-ltermcap"
14130 support_readline=no
14132 cat >>confdefs.h <<\_ACEOF
14133 #define HAVE_CONIO 1
14138 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14139 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14140 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lncurses $LIBS"
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14152 /* Override any GCC internal prototype to avoid an error.
14153 Use char because int might match the return type of a GCC
14154 builtin and then its argument prototype would still apply. */
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_link") 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && {
14181 test -z "$ac_c_werror_flag" ||
14182 test ! -s conftest.err
14183 } && test -s conftest$ac_exeext &&
14184 $as_test_x conftest$ac_exeext; then
14185 ac_cv_lib_ncurses_tgetent=yes
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_cv_lib_ncurses_tgetent=no
14193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14194 conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14198 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14199 if test $ac_cv_lib_ncurses_tgetent = yes; then
14200 CONS_LIBS="-lncurses"
14204 support_readline=no
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_CONIO 1
14220 for ac_header in curses.h
14222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_res=`eval echo '${'$as_ac_Header'}'`
14230 { echo "$as_me:$LINENO: result: $ac_res" >&5
14231 echo "${ECHO_T}$ac_res" >&6; }
14233 # Is the header compilable?
14234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14243 #include <$ac_header>
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_compile") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest.$ac_objext; then
14262 ac_header_compiler=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_header_compiler=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14272 echo "${ECHO_T}$ac_header_compiler" >&6; }
14274 # Is the header present?
14275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <$ac_header>
14285 if { (ac_try="$ac_cpp conftest.$ac_ext"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } >/dev/null && {
14298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14301 ac_header_preproc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14309 rm -f conftest.err conftest.$ac_ext
14310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14311 echo "${ECHO_T}$ac_header_preproc" >&6; }
14313 # So? What about this header?
14314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14320 ac_header_preproc=yes
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 eval "$as_ac_Header=\$ac_header_preproc"
14345 ac_res=`eval echo '${'$as_ac_Header'}'`
14346 { echo "$as_me:$LINENO: result: $ac_res" >&5
14347 echo "${ECHO_T}$ac_res" >&6; }
14350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14359 { echo "$as_me:$LINENO: checking for term.h" >&5
14360 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_term_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14371 #include <curses.h>
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_compile") 2>conftest.er1
14386 grep -v '^ *+' conftest.er1 >conftest.err
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } && {
14391 test -z "$ac_c_werror_flag" ||
14392 test ! -s conftest.err
14393 } && test -s conftest.$ac_objext; then
14394 ac_cv_header_term_h=yes
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_header_term_h=no
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14405 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14406 if test $ac_cv_header_term_h = yes; then
14407 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14408 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14409 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-lcurses $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14421 /* Override any GCC internal prototype to avoid an error.
14422 Use char because int might match the return type of a GCC
14423 builtin and then its argument prototype would still apply. */
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (ac_try="$ac_link"
14438 case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_link") 2>conftest.er1
14445 grep -v '^ *+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } && {
14450 test -z "$ac_c_werror_flag" ||
14451 test ! -s conftest.err
14452 } && test -s conftest$ac_exeext &&
14453 $as_test_x conftest$ac_exeext; then
14454 ac_cv_lib_curses_tgetent=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_lib_curses_tgetent=no
14462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14463 conftest$ac_exeext conftest.$ac_ext
14464 LIBS=$ac_check_lib_save_LIBS
14466 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14467 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14468 if test $ac_cv_lib_curses_tgetent = yes; then
14469 CONS_LIBS="-lcurses"
14473 support_readline=no
14475 cat >>confdefs.h <<\_ACEOF
14476 #define HAVE_CONIO 1
14484 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14495 # ---------------------------------------------------
14496 # Check for readline support/directory (default off)
14497 # ---------------------------------------------------
14498 # this allows you to turn it completely off
14499 # Check whether --enable-readline was given.
14500 if test "${enable_readline+set}" = set; then
14501 enableval=$enable_readline; if test x$enableval = xno; then
14502 support_readline=no
14509 if test x$support_readline = xyes; then
14511 # Check whether --with-readline was given.
14512 if test "${with_readline+set}" = set; then
14513 withval=$with_readline;
14514 case "$with_readline" in
14517 if test -f ${with_readline}/readline.h; then
14518 CONS_INC="-I${with_readline}"
14519 CONS_LDFLAGS="-L$with_readline"
14520 elif test -f ${with_readline}/include/readline/readline.h; then
14521 CONS_INC="-I${with_readline}/include/readline"
14522 CONS_LDFLAGS="-L${with_readline}/lib"
14523 with_readline="${with_readline}/include/readline"
14525 with_readline="/usr/include/readline"
14527 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14530 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 ac_res=`eval echo '${'$as_ac_Header'}'`
14535 { echo "$as_me:$LINENO: result: $ac_res" >&5
14536 echo "${ECHO_T}$ac_res" >&6; }
14538 # Is the header compilable?
14539 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14540 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14541 cat >conftest.$ac_ext <<_ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h. */
14547 $ac_includes_default
14548 #include <${with_readline}/readline.h>
14550 rm -f conftest.$ac_objext
14551 if { (ac_try="$ac_compile"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_compile") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest.$ac_objext; then
14567 ac_header_compiler=yes
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_header_compiler=no
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14577 echo "${ECHO_T}$ac_header_compiler" >&6; }
14579 # Is the header present?
14580 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14581 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #include <${with_readline}/readline.h>
14590 if { (ac_try="$ac_cpp conftest.$ac_ext"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } >/dev/null && {
14603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14606 ac_header_preproc=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_header_preproc=no
14614 rm -f conftest.err conftest.$ac_ext
14615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14616 echo "${ECHO_T}$ac_header_preproc" >&6; }
14618 # So? What about this header?
14619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14621 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14624 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14625 ac_header_preproc=yes
14628 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14629 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14631 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14633 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14635 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14637 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14639 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14643 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14644 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 eval "$as_ac_Header=\$ac_header_preproc"
14650 ac_res=`eval echo '${'$as_ac_Header'}'`
14651 { echo "$as_me:$LINENO: result: $ac_res" >&5
14652 echo "${ECHO_T}$ac_res" >&6; }
14655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_READLINE 1
14661 CONS_LIBS="-lreadline -lhistory -ltermcap"
14666 echo "readline.h not found. readline turned off ..."
14678 # check for standard readline library
14679 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14680 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14681 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14682 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14686 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14688 # Is the header compilable?
14689 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14690 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 $ac_includes_default
14698 #include </usr/include/readline/readline.h>
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.$ac_objext; then
14717 ac_header_compiler=yes
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ac_header_compiler=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727 echo "${ECHO_T}$ac_header_compiler" >&6; }
14729 # Is the header present?
14730 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14731 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include </usr/include/readline/readline.h>
14740 if { (ac_try="$ac_cpp conftest.$ac_ext"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null && {
14753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14754 test ! -s conftest.err
14756 ac_header_preproc=yes
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 ac_header_preproc=no
14764 rm -f conftest.err conftest.$ac_ext
14765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14766 echo "${ECHO_T}$ac_header_preproc" >&6; }
14768 # So? What about this header?
14769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14771 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14774 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14775 ac_header_preproc=yes
14778 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14779 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14781 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14783 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14785 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14789 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14793 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14794 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14795 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14800 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14801 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14804 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14806 cat >>confdefs.h <<\_ACEOF
14807 #define HAVE_READLINE 1
14811 CONS_INC="-I/usr/include/readline"
14812 CONS_LIBS="-lreadline -ltermcap"
14816 # Did not find standard library, so try Bacula's default
14817 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14819 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14820 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 ac_res=`eval echo '${'$as_ac_Header'}'`
14825 { echo "$as_me:$LINENO: result: $ac_res" >&5
14826 echo "${ECHO_T}$ac_res" >&6; }
14828 # Is the header compilable?
14829 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14830 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14838 #include <${TOP_DIR}/depkgs/readline/readline.h>
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14857 ac_header_compiler=yes
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_header_compiler=no
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14867 echo "${ECHO_T}$ac_header_compiler" >&6; }
14869 # Is the header present?
14870 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14871 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 #include <${TOP_DIR}/depkgs/readline/readline.h>
14880 if { (ac_try="$ac_cpp conftest.$ac_ext"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } >/dev/null && {
14893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14896 ac_header_preproc=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_preproc=no
14904 rm -f conftest.err conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906 echo "${ECHO_T}$ac_header_preproc" >&6; }
14908 # So? What about this header?
14909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14911 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14914 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14915 ac_header_preproc=yes
14918 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14919 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14921 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14923 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14925 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14927 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14929 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14933 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14934 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 eval "$as_ac_Header=\$ac_header_preproc"
14940 ac_res=`eval echo '${'$as_ac_Header'}'`
14941 { echo "$as_me:$LINENO: result: $ac_res" >&5
14942 echo "${ECHO_T}$ac_res" >&6; }
14945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_READLINE 1
14952 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14953 CONS_LIBS="-lreadline -lhistory -ltermcap"
14954 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14955 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14959 echo "readline.h not found. readline turned off ..."
14986 # Minimal stuff for readline Makefile configuration
14989 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14990 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14991 if test "${ac_cv_header_stat_broken+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <sys/types.h>
15001 #include <sys/stat.h>
15003 #if defined S_ISBLK && defined S_IFDIR
15004 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15007 #if defined S_ISBLK && defined S_IFCHR
15008 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15011 #if defined S_ISLNK && defined S_IFREG
15012 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15015 #if defined S_ISSOCK && defined S_IFREG
15016 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_compile") 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.$ac_objext; then
15037 ac_cv_header_stat_broken=no
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_cv_header_stat_broken=yes
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15048 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15049 if test $ac_cv_header_stat_broken = yes; then
15051 cat >>confdefs.h <<\_ACEOF
15052 #define STAT_MACROS_BROKEN 1
15062 ac_header_dirent=no
15063 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15064 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15065 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15066 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <sys/types.h>
15088 rm -f conftest.$ac_objext
15089 if { (ac_try="$ac_compile"
15090 case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_compile") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } && {
15102 test -z "$ac_c_werror_flag" ||
15103 test ! -s conftest.err
15104 } && test -s conftest.$ac_objext; then
15105 eval "$as_ac_Header=yes"
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 eval "$as_ac_Header=no"
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15119 cat >>confdefs.h <<_ACEOF
15120 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15123 ac_header_dirent=$ac_hdr; break
15127 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15128 if test $ac_header_dirent = dirent.h; then
15129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15131 if test "${ac_cv_search_opendir+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 ac_func_search_save_LIBS=$LIBS
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15142 /* Override any GCC internal prototype to avoid an error.
15143 Use char because int might match the return type of a GCC
15144 builtin and then its argument prototype would still apply. */
15157 for ac_lib in '' dir; do
15158 if test -z "$ac_lib"; then
15159 ac_res="none required"
15162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (ac_try="$ac_link"
15166 case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_link") 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } && {
15178 test -z "$ac_c_werror_flag" ||
15179 test ! -s conftest.err
15180 } && test -s conftest$ac_exeext &&
15181 $as_test_x conftest$ac_exeext; then
15182 ac_cv_search_opendir=$ac_res
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192 if test "${ac_cv_search_opendir+set}" = set; then
15196 if test "${ac_cv_search_opendir+set}" = set; then
15199 ac_cv_search_opendir=no
15201 rm conftest.$ac_ext
15202 LIBS=$ac_func_search_save_LIBS
15204 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15205 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15206 ac_res=$ac_cv_search_opendir
15207 if test "$ac_res" != no; then
15208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15213 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15215 if test "${ac_cv_search_opendir+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 ac_func_search_save_LIBS=$LIBS
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15226 /* Override any GCC internal prototype to avoid an error.
15227 Use char because int might match the return type of a GCC
15228 builtin and then its argument prototype would still apply. */
15241 for ac_lib in '' x; do
15242 if test -z "$ac_lib"; then
15243 ac_res="none required"
15246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && {
15262 test -z "$ac_c_werror_flag" ||
15263 test ! -s conftest.err
15264 } && test -s conftest$ac_exeext &&
15265 $as_test_x conftest$ac_exeext; then
15266 ac_cv_search_opendir=$ac_res
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276 if test "${ac_cv_search_opendir+set}" = set; then
15280 if test "${ac_cv_search_opendir+set}" = set; then
15283 ac_cv_search_opendir=no
15285 rm conftest.$ac_ext
15286 LIBS=$ac_func_search_save_LIBS
15288 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15289 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15290 ac_res=$ac_cv_search_opendir
15291 if test "$ac_res" != no; then
15292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15305 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15321 #define $ac_func innocuous_$ac_func
15323 /* System header to define __stub macros and hopefully few prototypes,
15324 which can conflict with char $ac_func (); below.
15325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15326 <limits.h> exists even on freestanding compilers. */
15329 # include <limits.h>
15331 # include <assert.h>
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15343 /* The GNU C library defines this for functions which it implements
15344 to always fail with ENOSYS. Some functions are actually named
15345 something starting with __ and the normal name is an alias. */
15346 #if defined __stub_$ac_func || defined __stub___$ac_func
15353 return $ac_func ();
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_link") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest$ac_exeext &&
15375 $as_test_x conftest$ac_exeext; then
15376 eval "$as_ac_var=yes"
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 eval "$as_ac_var=no"
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15387 ac_res=`eval echo '${'$as_ac_var'}'`
15388 { echo "$as_me:$LINENO: result: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15390 if test `eval echo '${'$as_ac_var'}'` = yes; then
15391 cat >>confdefs.h <<_ACEOF
15392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15400 for ac_func in nanosleep nl_langinfo
15402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define $ac_func innocuous_$ac_func
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15424 # include <limits.h>
15426 # include <assert.h>
15431 /* Override any GCC internal prototype to avoid an error.
15432 Use char because int might match the return type of a GCC
15433 builtin and then its argument prototype would still apply. */
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined __stub_$ac_func || defined __stub___$ac_func
15448 return $ac_func ();
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (ac_try="$ac_link"
15455 case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_link") 2>conftest.er1
15462 grep -v '^ *+' conftest.er1 >conftest.err
15464 cat conftest.err >&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } && {
15467 test -z "$ac_c_werror_flag" ||
15468 test ! -s conftest.err
15469 } && test -s conftest$ac_exeext &&
15470 $as_test_x conftest$ac_exeext; then
15471 eval "$as_ac_var=yes"
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 eval "$as_ac_var=no"
15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15480 conftest$ac_exeext conftest.$ac_ext
15482 ac_res=`eval echo '${'$as_ac_var'}'`
15483 { echo "$as_me:$LINENO: result: $ac_res" >&5
15484 echo "${ECHO_T}$ac_res" >&6; }
15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15494 for ac_header in varargs.h
15496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15507 # Is the header compilable?
15508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 $ac_includes_default
15517 #include <$ac_header>
15519 rm -f conftest.$ac_objext
15520 if { (ac_try="$ac_compile"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && {
15533 test -z "$ac_c_werror_flag" ||
15534 test ! -s conftest.err
15535 } && test -s conftest.$ac_objext; then
15536 ac_header_compiler=yes
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_header_compiler=no
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 echo "${ECHO_T}$ac_header_compiler" >&6; }
15548 # Is the header present?
15549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <$ac_header>
15559 if { (ac_try="$ac_cpp conftest.$ac_ext"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } >/dev/null && {
15572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15575 ac_header_preproc=yes
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_header_preproc=no
15583 rm -f conftest.err conftest.$ac_ext
15584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15585 echo "${ECHO_T}$ac_header_preproc" >&6; }
15587 # So? What about this header?
15588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15594 ac_header_preproc=yes
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 eval "$as_ac_Header=\$ac_header_preproc"
15619 ac_res=`eval echo '${'$as_ac_Header'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15625 cat >>confdefs.h <<_ACEOF
15626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 # End of readline/conio stuff
15635 # -----------------------------------------------------------------------
15637 # -----------------------------------------------------------------------
15638 # Check for Python support
15640 { echo "$as_me:$LINENO: checking for Python support" >&5
15641 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15643 # Check whether --with-python was given.
15644 if test "${with_python+set}" = set; then
15645 withval=$with_python;
15648 if test "$withval" != "no"; then
15649 if test "$withval" = "yes"; then
15650 for python_root in /usr /usr/local /usr/sfw; do
15651 for ver in python2.2 python2.3 python2.4 python2.5; do
15652 if test -f $python_root/include/${ver}/Python.h; then
15653 PYTHON_INCDIR=-I$python_root/include/${ver}
15654 if test -d $python_root/lib64/${ver}/config; then
15655 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15657 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15663 if test x$PYTHON_INCDIR = x; then
15664 if test -f $prefix/include/Python.h; then
15665 PYTHON_INCDIR=-I$prefix/include
15666 if test -d $prefix/lib64/config; then
15667 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15669 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15672 { echo "$as_me:$LINENO: result: no" >&5
15673 echo "${ECHO_T}no" >&6; }
15674 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15675 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15676 { (exit 1); exit 1; }; }
15680 if test -f $withval/Python.h; then
15681 PYTHON_INCDIR=-I$withval
15682 PYTHON_LIBS="-L$withval/config -lpython"
15683 elif test -f $withval/include/Python.h; then
15684 PYTHON_INCDIR=-I$withval/include
15685 if test -d $withval/lib64/config; then
15686 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15688 PYTHON_LIBS="-L$withval/lib/config -lpython"
15690 elif test -f $withval/include/python/Python.h; then
15691 PYTHON_INCDIR=-I$withval/include/python
15692 if test -d $withval/lib64/python/config; then
15693 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15695 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15698 { echo "$as_me:$LINENO: result: no" >&5
15699 echo "${ECHO_T}no" >&6; }
15700 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15701 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15702 { (exit 1); exit 1; }; }
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE_PYTHON 1
15709 { echo "$as_me:$LINENO: result: yes" >&5
15710 echo "${ECHO_T}yes" >&6; }
15712 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15713 echo "$as_me: checking for more Python libs" >&6;}
15714 saved_LIBS="$LIBS"; LIBS=
15715 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15716 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15717 if test "${ac_cv_search_shm_open+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 ac_func_search_save_LIBS=$LIBS
15721 cat >conftest.$ac_ext <<_ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15738 return shm_open ();
15743 for ac_lib in '' rt; do
15744 if test -z "$ac_lib"; then
15745 ac_res="none required"
15748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_link") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest$ac_exeext &&
15767 $as_test_x conftest$ac_exeext; then
15768 ac_cv_search_shm_open=$ac_res
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778 if test "${ac_cv_search_shm_open+set}" = set; then
15782 if test "${ac_cv_search_shm_open+set}" = set; then
15785 ac_cv_search_shm_open=no
15787 rm conftest.$ac_ext
15788 LIBS=$ac_func_search_save_LIBS
15790 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15791 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15792 ac_res=$ac_cv_search_shm_open
15793 if test "$ac_res" != no; then
15794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15799 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15800 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15801 if test "${ac_cv_lib_util_openpty+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-lutil $LIBS"
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15813 /* Override any GCC internal prototype to avoid an error.
15814 Use char because int might match the return type of a GCC
15815 builtin and then its argument prototype would still apply. */
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_link") 2>conftest.er1
15837 grep -v '^ *+' conftest.er1 >conftest.err
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && {
15842 test -z "$ac_c_werror_flag" ||
15843 test ! -s conftest.err
15844 } && test -s conftest$ac_exeext &&
15845 $as_test_x conftest$ac_exeext; then
15846 ac_cv_lib_util_openpty=yes
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_cv_lib_util_openpty=no
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15858 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15859 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15860 if test $ac_cv_lib_util_openpty = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBUTIL 1
15865 LIBS="-lutil $LIBS"
15869 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15872 { echo "$as_me:$LINENO: result: no" >&5
15873 echo "${ECHO_T}no" >&6; }
15878 { echo "$as_me:$LINENO: result: no" >&5
15879 echo "${ECHO_T}no" >&6; }
15887 # Find where sockets are (especially for Solaris)
15888 # Do this before the TCP Wrappers test since tcp wrappers
15889 # uses the socket library and some linkers are stupid.
15891 { echo "$as_me:$LINENO: checking for socket" >&5
15892 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15893 if test "${ac_cv_func_socket+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15904 #define socket innocuous_socket
15906 /* System header to define __stub macros and hopefully few prototypes,
15907 which can conflict with char socket (); below.
15908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15909 <limits.h> exists even on freestanding compilers. */
15912 # include <limits.h>
15914 # include <assert.h>
15919 /* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined __stub_socket || defined __stub___socket
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (ac_try="$ac_link"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_link") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest$ac_exeext &&
15958 $as_test_x conftest$ac_exeext; then
15959 ac_cv_func_socket=yes
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_cv_func_socket=no
15967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15968 conftest$ac_exeext conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15971 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15972 if test $ac_cv_func_socket = yes; then
15973 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15974 echo "${ECHO_T}using libc's socket" >&6; }
15977 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15978 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15979 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-lxnet $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 ac_cv_lib_xnet_socket=yes
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_xnet_socket=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16037 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16038 if test $ac_cv_lib_xnet_socket = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define HAVE_LIBXNET 1
16043 LIBS="-lxnet $LIBS"
16048 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16049 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16050 if test "${ac_cv_lib_socket_socket+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lsocket $LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any GCC internal prototype to avoid an error.
16063 Use char because int might match the return type of a GCC
16064 builtin and then its argument prototype would still apply. */
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && {
16091 test -z "$ac_c_werror_flag" ||
16092 test ! -s conftest.err
16093 } && test -s conftest$ac_exeext &&
16094 $as_test_x conftest$ac_exeext; then
16095 ac_cv_lib_socket_socket=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_cv_lib_socket_socket=no
16103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16104 conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16107 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16108 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16109 if test $ac_cv_lib_socket_socket = yes; then
16110 cat >>confdefs.h <<_ACEOF
16111 #define HAVE_LIBSOCKET 1
16114 LIBS="-lsocket $LIBS"
16119 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16120 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16121 if test "${ac_cv_lib_inet_socket+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 ac_check_lib_save_LIBS=$LIBS
16125 LIBS="-linet $LIBS"
16126 cat >conftest.$ac_ext <<_ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_link") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest$ac_exeext &&
16165 $as_test_x conftest$ac_exeext; then
16166 ac_cv_lib_inet_socket=yes
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_cv_lib_inet_socket=no
16174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16175 conftest$ac_exeext conftest.$ac_ext
16176 LIBS=$ac_check_lib_save_LIBS
16178 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16179 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16180 if test $ac_cv_lib_inet_socket = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_LIBINET 1
16185 LIBS="-linet $LIBS"
16193 # -----------------------------------------------------------
16194 # Check whether user wants TCP wrappers support (default off)
16195 # -----------------------------------------------------------
16199 # Check whether --with-tcp-wrappers was given.
16200 if test "${with_tcp_wrappers+set}" = set; then
16201 withval=$with_tcp_wrappers;
16202 if test "x$withval" != "xno" ; then
16204 LIBS="$saved_LIBS -lwrap"
16205 { echo "$as_me:$LINENO: checking for libwrap" >&5
16206 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16207 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16208 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16209 if test "${ac_cv_search_nanosleep+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 ac_func_search_save_LIBS=$LIBS
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16220 /* Override any GCC internal prototype to avoid an error.
16221 Use char because int might match the return type of a GCC
16222 builtin and then its argument prototype would still apply. */
16230 return nanosleep ();
16235 for ac_lib in '' rt; do
16236 if test -z "$ac_lib"; then
16237 ac_res="none required"
16240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_link") 2>conftest.er1
16251 grep -v '^ *+' conftest.er1 >conftest.err
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } && {
16256 test -z "$ac_c_werror_flag" ||
16257 test ! -s conftest.err
16258 } && test -s conftest$ac_exeext &&
16259 $as_test_x conftest$ac_exeext; then
16260 ac_cv_search_nanosleep=$ac_res
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16270 if test "${ac_cv_search_nanosleep+set}" = set; then
16274 if test "${ac_cv_search_nanosleep+set}" = set; then
16277 ac_cv_search_nanosleep=no
16279 rm conftest.$ac_ext
16280 LIBS=$ac_func_search_save_LIBS
16282 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16283 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16284 ac_res=$ac_cv_search_nanosleep
16285 if test "$ac_res" != no; then
16286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <sys/types.h>
16298 int deny_severity = 0;
16299 int allow_severity = 0;
16300 struct request_info *req;
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (ac_try="$ac_link"
16311 case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_link") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && {
16323 test -z "$ac_c_werror_flag" ||
16324 test ! -s conftest.err
16325 } && test -s conftest$ac_exeext &&
16326 $as_test_x conftest$ac_exeext; then
16328 { echo "$as_me:$LINENO: result: yes" >&5
16329 echo "${ECHO_T}yes" >&6; }
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_LIBWRAP 1
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16344 LIBS="$saved_LIBS -lwrap -lnsl"
16345 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16346 cat >conftest.$ac_ext <<_ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352 #include <sys/types.h>
16354 int deny_severity = 0;
16355 int allow_severity = 0;
16356 struct request_info *req;
16365 rm -f conftest.$ac_objext conftest$ac_exeext
16366 if { (ac_try="$ac_link"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_link") 2>conftest.er1
16374 grep -v '^ *+' conftest.er1 >conftest.err
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } && {
16379 test -z "$ac_c_werror_flag" ||
16380 test ! -s conftest.err
16381 } && test -s conftest$ac_exeext &&
16382 $as_test_x conftest$ac_exeext; then
16384 { echo "$as_me:$LINENO: result: yes" >&5
16385 echo "${ECHO_T}yes" >&6; }
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE_LIBWRAP 1
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16400 echo "$as_me: error: *** libwrap missing" >&2;}
16401 { (exit 1); exit 1; }; }
16405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16406 conftest$ac_exeext conftest.$ac_ext
16410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16411 conftest$ac_exeext conftest.$ac_ext
16418 # -----------------------------------------------------------
16419 # Check whether OpenSSL is available
16420 # -----------------------------------------------------------
16421 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16422 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16424 # Check whether --with-openssl was given.
16425 if test "${with_openssl+set}" = set; then
16426 withval=$with_openssl; with_openssl_directory=${withval}
16430 if test "x$with_openssl_directory" != "x"; then
16431 OPENSSL_LIBS="-lssl -lcrypto"
16434 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16435 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16436 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16439 saved_LIBS="${LIBS}"
16440 saved_CFLAGS="${CFLAGS}"
16441 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16442 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <openssl/ssl.h>
16454 CRYPTO_set_id_callback(NULL);
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (ac_try="$ac_link"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_link") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest$ac_exeext &&
16476 $as_test_x conftest$ac_exeext; then
16479 support_crypto="yes"
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16490 conftest$ac_exeext conftest.$ac_ext
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <openssl/evp.h>
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>conftest.er1
16516 grep -v '^ *+' conftest.er1 >conftest.err
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && {
16521 test -z "$ac_c_werror_flag" ||
16522 test ! -s conftest.err
16523 } && test -s conftest$ac_exeext &&
16524 $as_test_x conftest$ac_exeext; then
16525 ac_cv_openssl_sha2="yes"
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 ac_cv_openssl_sha2="no"
16534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16535 conftest$ac_exeext conftest.$ac_ext
16537 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16538 # implementation, presumably for export reasons. If 192bit AES
16539 # is available, we assume that we're running with a 'non-export'
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <openssl/evp.h>
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest$ac_exeext &&
16573 $as_test_x conftest$ac_exeext; then
16574 ac_cv_openssl_export="no"
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ac_cv_openssl_export="yes"
16583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584 conftest$ac_exeext conftest.$ac_ext
16586 LIBS="${saved_LIBS}"
16587 CFLAGS="${saved_CFLAGS}"
16589 if test "$support_tls" = "yes"; then
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_OPENSSL 1
16596 cat >>confdefs.h <<\_ACEOF
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_CRYPTO 1
16607 if test "$ac_cv_openssl_sha2" = "yes"; then
16609 cat >>confdefs.h <<\_ACEOF
16610 #define HAVE_SHA2 1
16615 if test "$ac_cv_openssl_export" = "yes"; then
16617 cat >>confdefs.h <<\_ACEOF
16618 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16624 support_crypto="no"
16629 { echo "$as_me:$LINENO: result: $support_tls" >&5
16630 echo "${ECHO_T}$support_tls" >&6; }
16635 # -----------------------------------------------------------
16636 # dlopen is needed for plugins
16637 # -----------------------------------------------------------
16638 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16639 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16640 if test "${ac_cv_search_dlopen+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 ac_func_search_save_LIBS=$LIBS
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16666 for ac_lib in '' dl; do
16667 if test -z "$ac_lib"; then
16668 ac_res="none required"
16671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_link") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext &&
16690 $as_test_x conftest$ac_exeext; then
16691 ac_cv_search_dlopen=$ac_res
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16701 if test "${ac_cv_search_dlopen+set}" = set; then
16705 if test "${ac_cv_search_dlopen+set}" = set; then
16708 ac_cv_search_dlopen=no
16710 rm conftest.$ac_ext
16711 LIBS=$ac_func_search_save_LIBS
16713 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16714 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16715 ac_res=$ac_cv_search_dlopen
16716 if test "$ac_res" != no; then
16717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16722 # ------------------------------------------
16723 # Where to place working dir
16724 # ------------------------------------------
16725 working_dir=`eval echo ${prefix}/var/bacula/working`
16727 # Check whether --with-working-dir was given.
16728 if test "${with_working_dir+set}" = set; then
16729 withval=$with_working_dir;
16730 if test "x$withval" != "xno" ; then
16731 working_dir=$withval
16740 # ------------------------------------------------------------------
16741 # If the user has not set archivedir, we set our default as /tmp
16742 # ------------------------------------------------------------------
16745 # Check whether --with-archivedir was given.
16746 if test "${with_archivedir+set}" = set; then
16747 withval=$with_archivedir;
16748 if test "x$withval" != "xno" ; then
16749 archivedir=$withval
16760 # ------------------------------------------
16761 # Where to place scriptdir (script files)
16762 # ------------------------------------------
16763 scriptdir=`eval echo ${sysconfdir}`
16765 # Check whether --with-scriptdir was given.
16766 if test "${with_scriptdir+set}" = set; then
16767 withval=$with_scriptdir;
16768 if test "x$withval" != "xno" ; then
16779 # ------------------------------------------
16780 # Where to send dump email
16781 # ------------------------------------------
16782 dump_email=root@localhost
16784 # Check whether --with-dump-email was given.
16785 if test "${with_dump_email+set}" = set; then
16786 withval=$with_dump_email;
16787 if test "x$withval" != "xno" ; then
16788 dump_email=$withval
16797 # ------------------------------------------
16798 # Where to send job email
16799 # ------------------------------------------
16800 job_email=root@localhost
16802 # Check whether --with-job-email was given.
16803 if test "${with_job_email+set}" = set; then
16804 withval=$with_job_email;
16805 if test "x$withval" != "xno" ; then
16815 # ------------------------------------------
16816 # Where to find smtp host
16817 # ------------------------------------------
16818 smtp_host=localhost
16820 # Check whether --with-smtp_host was given.
16821 if test "${with_smtp_host+set}" = set; then
16822 withval=$with_smtp_host;
16823 if test "x$withval" != "xno" ; then
16834 # ------------------------------------
16835 # Where to place pid files
16836 # ------------------------------------
16839 # Check whether --with-pid-dir was given.
16840 if test "${with_pid_dir+set}" = set; then
16841 withval=$with_pid_dir;
16842 if test "x$withval" != "xno" ; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define _PATH_BACULA_PIDDIR "$piddir"
16857 # ------------------------------------
16858 # Where to place subsys "lock file"
16859 # ------------------------------------
16860 subsysdir=/var/run/subsys
16861 if test -d /var/run/subsys; then
16862 subsysdir=/var/run/subsys
16863 elif test -d /var/lock/subsys; then
16864 subsysdir=/var/lock/subsys
16866 subsysdir=/var/run/subsys
16869 # Check whether --with-subsys-dir was given.
16870 if test "${with_subsys_dir+set}" = set; then
16871 withval=$with_subsys_dir;
16872 if test "x$withval" != "xno" ; then
16884 # ------------------------------------
16885 # Where to start assigning ports
16886 # ------------------------------------
16889 # Check whether --with-baseport was given.
16890 if test "${with_baseport+set}" = set; then
16891 withval=$with_baseport;
16892 if test "x$withval" != "xno" ; then
16901 dir_port=`expr $baseport`
16902 fd_port=`expr $baseport + 1`
16903 sd_port=`expr $fd_port + 1`
16910 # ------------------------------------------
16911 # Generate passwords
16912 # ------------------------------------------
16915 # Check whether --with-dir-password was given.
16916 if test "${with_dir_password+set}" = set; then
16917 withval=$with_dir_password;
16918 if test "x$withval" != "xno" ; then
16919 dir_password=$withval
16926 if test "x$dir_password" = "x" ; then
16927 if test "x$OPENSSL" = "xnone" ; then
16928 key=`autoconf/randpass 33`
16930 key=`openssl rand -base64 33`
16937 # Check whether --with-fd-password was given.
16938 if test "${with_fd_password+set}" = set; then
16939 withval=$with_fd_password;
16940 if test "x$withval" != "xno" ; then
16941 fd_password=$withval
16948 if test "x$fd_password" = "x" ; then
16949 if test "x$OPENSSL" = "xnone" ; then
16950 key=`autoconf/randpass 37`
16952 key=`openssl rand -base64 33`
16959 # Check whether --with-sd-password was given.
16960 if test "${with_sd_password+set}" = set; then
16961 withval=$with_sd_password;
16962 if test "x$withval" != "xno" ; then
16963 sd_password=$withval
16970 if test "x$sd_password" = "x" ; then
16971 if test "x$OPENSSL" = "xnone" ; then
16972 key=`autoconf/randpass 41`
16974 key=`openssl rand -base64 33`
16981 # Check whether --with-mon-dir-password was given.
16982 if test "${with_mon_dir_password+set}" = set; then
16983 withval=$with_mon_dir_password;
16984 if test "x$withval" != "xno" ; then
16985 mon_dir_password=$withval
16992 if test "x$mon_dir_password" = "x" ; then
16993 if test "x$OPENSSL" = "xnone" ; then
16994 key=`autoconf/randpass 33`
16996 key=`openssl rand -base64 33`
16998 mon_dir_password=$key
17003 # Check whether --with-mon-fd-password was given.
17004 if test "${with_mon_fd_password+set}" = set; then
17005 withval=$with_mon_fd_password;
17006 if test "x$withval" != "xno" ; then
17007 mon_fd_password=$withval
17014 if test "x$mon_fd_password" = "x" ; then
17015 if test "x$OPENSSL" = "xnone" ; then
17016 key=`autoconf/randpass 37`
17018 key=`openssl rand -base64 33`
17020 mon_fd_password=$key
17025 # Check whether --with-mon-sd-password was given.
17026 if test "${with_mon_sd_password+set}" = set; then
17027 withval=$with_mon_sd_password;
17028 if test "x$withval" != "xno" ; then
17029 mon_sd_password=$withval
17036 if test "x$mon_sd_password" = "x" ; then
17037 if test "x$OPENSSL" = "xnone" ; then
17038 key=`autoconf/randpass 41`
17040 key=`openssl rand -base64 33`
17042 mon_sd_password=$key
17053 # Pickup any database name
17057 # Check whether --with-db_name was given.
17058 if test "${with_db_name+set}" = set; then
17059 withval=$with_db_name;
17060 if test "x$withval" != "x" ; then
17071 # Check whether --with-db_user was given.
17072 if test "${with_db_user+set}" = set; then
17073 withval=$with_db_user;
17074 if test "x$withval" != "x" ; then
17085 # Handle users and groups for each daemon
17089 # Check whether --with-dir_user was given.
17090 if test "${with_dir_user+set}" = set; then
17091 withval=$with_dir_user;
17092 if test "x$withval" != "x" ; then
17102 # Check whether --with-dir_group was given.
17103 if test "${with_dir_group+set}" = set; then
17104 withval=$with_dir_group;
17105 if test "x$withval" != "x" ; then
17115 # Check whether --with-sd_user was given.
17116 if test "${with_sd_user+set}" = set; then
17117 withval=$with_sd_user;
17118 if test "x$withval" != "x" ; then
17128 # Check whether --with-sd_group was given.
17129 if test "${with_sd_group+set}" = set; then
17130 withval=$with_sd_group;
17131 if test "x$withval" != "x" ; then
17141 # Check whether --with-fd_user was given.
17142 if test "${with_fd_user+set}" = set; then
17143 withval=$with_fd_user;
17144 if test "x$withval" != "x" ; then
17154 # Check whether --with-fd_group was given.
17155 if test "${with_fd_group+set}" = set; then
17156 withval=$with_fd_group;
17157 if test "x$withval" != "x" ; then
17173 # allow setting default executable permissions
17177 # Check whether --with-sbin-perm was given.
17178 if test "${with_sbin_perm+set}" = set; then
17179 withval=$with_sbin_perm;
17180 if test "x$withval" != "x" ; then
17190 # ------------------------------------------------
17191 # Bacula check for various SQL database engines
17192 # ------------------------------------------------
17196 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17197 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17199 # Check whether --with-postgresql was given.
17200 if test "${with_postgresql+set}" = set; then
17201 withval=$with_postgresql;
17202 if test "$withval" != "no"; then
17203 if test "$db_found" = "yes"; then
17204 { echo "$as_me:$LINENO: result: error" >&5
17205 echo "${ECHO_T}error" >&6; }
17206 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17207 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17208 { (exit 1); exit 1; }; };
17210 if test "$withval" = "yes"; then
17211 PG_CONFIG=`which pg_config`
17212 if test -n "$PG_CONFIG";then
17213 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17214 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17215 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17216 elif test -f /usr/local/include/libpq-fe.h; then
17217 POSTGRESQL_INCDIR=/usr/local/include
17218 if test -d /usr/local/lib64; then
17219 POSTGRESQL_LIBDIR=/usr/local/lib64
17221 POSTGRESQL_LIBDIR=/usr/local/lib
17223 POSTGRESQL_BINDIR=/usr/local/bin
17224 elif test -f /usr/include/libpq-fe.h; then
17225 POSTGRESQL_INCDIR=/usr/include
17226 if test -d /usr/lib64; then
17227 POSTGRESQL_LIBDIR=/usr/lib64
17229 POSTGRESQL_LIBDIR=/usr/lib
17231 POSTGRESQL_BINDIR=/usr/bin
17232 elif test -f /usr/include/pgsql/libpq-fe.h; then
17233 POSTGRESQL_INCDIR=/usr/include/pgsql
17234 if test -d /usr/lib64/pgsql; then
17235 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17237 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17239 POSTGRESQL_BINDIR=/usr/bin
17240 elif test -f /usr/include/postgresql/libpq-fe.h; then
17241 POSTGRESQL_INCDIR=/usr/include/postgresql
17242 if test -d /usr/lib64/postgresql; then
17243 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17245 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17247 POSTGRESQL_BINDIR=/usr/bin
17249 { echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6; }
17251 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17252 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17253 { (exit 1); exit 1; }; }
17255 elif test -f $withval/include/libpq-fe.h; then
17256 POSTGRESQL_INCDIR=$withval/include
17257 POSTGRESQL_LIBDIR=$withval/lib
17258 POSTGRESQL_BINDIR=$withval/bin
17259 elif test -f $withval/include/postgresql/libpq-fe.h; then
17260 POSTGRESQL_INCDIR=$withval/include/postgresql
17261 if test -d $withval/lib64; then
17262 POSTGRESQL_LIBDIR=$withval/lib64
17264 POSTGRESQL_LIBDIR=$withval/lib
17266 POSTGRESQL_BINDIR=$withval/bin
17268 { echo "$as_me:$LINENO: result: no" >&5
17269 echo "${ECHO_T}no" >&6; }
17270 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17271 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17272 { (exit 1); exit 1; }; }
17274 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17275 { echo "$as_me:$LINENO: checking for crypt" >&5
17276 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17277 if test "${ac_cv_func_crypt+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17288 #define crypt innocuous_crypt
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char crypt (); below.
17292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293 <limits.h> exists even on freestanding compilers. */
17296 # include <limits.h>
17298 # include <assert.h>
17303 /* Override any GCC internal prototype to avoid an error.
17304 Use char because int might match the return type of a GCC
17305 builtin and then its argument prototype would still apply. */
17310 /* The GNU C library defines this for functions which it implements
17311 to always fail with ENOSYS. Some functions are actually named
17312 something starting with __ and the normal name is an alias. */
17313 #if defined __stub_crypt || defined __stub___crypt
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332 (eval "$ac_link") 2>conftest.er1
17334 grep -v '^ *+' conftest.er1 >conftest.err
17336 cat conftest.err >&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } && {
17339 test -z "$ac_c_werror_flag" ||
17340 test ! -s conftest.err
17341 } && test -s conftest$ac_exeext &&
17342 $as_test_x conftest$ac_exeext; then
17343 ac_cv_func_crypt=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_cv_func_crypt=no
17351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17352 conftest$ac_exeext conftest.$ac_ext
17354 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17355 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17356 if test $ac_cv_func_crypt = yes; then
17359 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17360 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17361 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 ac_check_lib_save_LIBS=$LIBS
17365 LIBS="-lcrypt $LIBS"
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 /* Override any GCC internal prototype to avoid an error.
17374 Use char because int might match the return type of a GCC
17375 builtin and then its argument prototype would still apply. */
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17397 grep -v '^ *+' conftest.er1 >conftest.err
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest$ac_exeext &&
17405 $as_test_x conftest$ac_exeext; then
17406 ac_cv_lib_crypt_crypt=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_lib_crypt_crypt=no
17414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17419 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17420 if test $ac_cv_lib_crypt_crypt = yes; then
17421 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17426 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17427 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17428 SQL_BINDIR=$POSTGRESQL_BINDIR
17429 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_POSTGRESQL 1
17435 { echo "$as_me:$LINENO: result: yes" >&5
17436 echo "${ECHO_T}yes" >&6; }
17438 support_postgresql=yes
17442 { echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6; }
17448 { echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6; }
17461 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17462 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17464 # Check whether --with-mysql was given.
17465 if test "${with_mysql+set}" = set; then
17466 withval=$with_mysql;
17467 if test "$withval" != "no"; then
17468 if test "$withval" = "yes"; then
17469 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17470 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17471 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17472 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17473 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17475 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17477 MYSQL_BINDIR=/usr/local/mysql/bin
17478 elif test -f /usr/include/mysql/mysql.h; then
17479 MYSQL_INCDIR=/usr/include/mysql
17480 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17481 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17482 MYSQL_LIBDIR=/usr/lib64/mysql
17483 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17484 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17485 MYSQL_LIBDIR=/usr/lib/mysql
17487 MYSQL_LIBDIR=/usr/lib
17489 MYSQL_BINDIR=/usr/bin
17490 elif test -f /usr/include/mysql.h; then
17491 MYSQL_INCDIR=/usr/include
17492 if test -f /usr/lib64/libmysqlclient_r.a \
17493 -o -f /usr/lib64/libmysqlclient_r.so; then
17494 MYSQL_LIBDIR=/usr/lib64
17496 MYSQL_LIBDIR=/usr/lib
17498 MYSQL_BINDIR=/usr/bin
17499 elif test -f /usr/local/include/mysql/mysql.h; then
17500 MYSQL_INCDIR=/usr/local/include/mysql
17501 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17502 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17503 MYSQL_LIBDIR=/usr/local/lib64/mysql
17505 MYSQL_LIBDIR=/usr/local/lib/mysql
17507 MYSQL_BINDIR=/usr/local/bin
17508 elif test -f /usr/local/include/mysql.h; then
17509 MYSQL_INCDIR=/usr/local/include
17510 if test -f /usr/local/lib64/libmysqlclient_r.a \
17511 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17512 MYSQL_LIBDIR=/usr/local/lib64
17514 MYSQL_LIBDIR=/usr/local/lib
17516 MYSQL_BINDIR=/usr/local/bin
17518 { echo "$as_me:$LINENO: result: no" >&5
17519 echo "${ECHO_T}no" >&6; }
17520 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17521 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17522 { (exit 1); exit 1; }; }
17525 if test -f $withval/include/mysql/mysql.h; then
17526 MYSQL_INCDIR=$withval/include/mysql
17527 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17528 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17529 MYSQL_LIBDIR=$withval/lib64/mysql
17531 MYSQL_LIBDIR=$withval/lib/mysql
17533 if test -f $withval/lib/libmysqlclient_r.so; then
17534 MYSQL_LIBDIR=$withval/lib
17537 MYSQL_BINDIR=$withval/bin
17538 elif test -f $withval/include/mysql.h; then
17539 MYSQL_INCDIR=$withval/include
17540 if test -f $withval/lib64/libmysqlclient_r.a \
17541 -o -f $withval/lib64/libmysqlclient_r.so; then
17542 MYSQL_LIBDIR=$withval/lib64
17544 MYSQL_LIBDIR=$withval/lib
17546 MYSQL_BINDIR=$withval/bin
17548 { echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6; }
17550 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17551 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17552 { (exit 1); exit 1; }; }
17555 SQL_INCLUDE=-I$MYSQL_INCDIR
17556 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17557 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17558 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_THREAD_SAFE_MYSQL 1
17564 SQL_BINDIR=$MYSQL_BINDIR
17565 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_MYSQL 1
17571 { echo "$as_me:$LINENO: result: yes" >&5
17572 echo "${ECHO_T}yes" >&6; }
17579 { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17588 # Check whether --with-embedded-mysql was given.
17589 if test "${with_embedded_mysql+set}" = set; then
17590 withval=$with_embedded_mysql;
17591 if test "$withval" != "no"; then
17592 if test "$withval" = "yes"; then
17593 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17594 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17595 if test -d /usr/local/mysql/lib64/mysql; then
17596 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17598 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17600 MYSQL_BINDIR=/usr/local/mysql/bin
17601 elif test -f /usr/include/mysql/mysql.h; then
17602 MYSQL_INCDIR=/usr/include/mysql
17603 if test -d /usr/lib64/mysql; then
17604 MYSQL_LIBDIR=/usr/lib64/mysql
17606 MYSQL_LIBDIR=/usr/lib/mysql
17608 MYSQL_BINDIR=/usr/bin
17609 elif test -f /usr/include/mysql.h; then
17610 MYSQL_INCDIR=/usr/include
17611 if test -d /usr/lib64; then
17612 MYSQL_LIBDIR=/usr/lib64
17614 MYSQL_LIBDIR=/usr/lib
17616 MYSQL_BINDIR=/usr/bin
17617 elif test -f /usr/local/include/mysql/mysql.h; then
17618 MYSQL_INCDIR=/usr/local/include/mysql
17619 if test -d /usr/local/lib64/mysql; then
17620 MYSQL_LIBDIR=/usr/local/lib64/mysql
17622 MYSQL_LIBDIR=/usr/local/lib/mysql
17624 MYSQL_BINDIR=/usr/local/bin
17625 elif test -f /usr/local/include/mysql.h; then
17626 MYSQL_INCDIR=/usr/local/include
17627 if test -d /usr/local/lib64; then
17628 MYSQL_LIBDIR=/usr/local/lib64
17630 MYSQL_LIBDIR=/usr/local/lib
17632 MYSQL_BINDIR=/usr/local/bin
17634 { echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6; }
17636 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17637 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17638 { (exit 1); exit 1; }; }
17641 if test -f $withval/include/mysql/mysql.h; then
17642 MYSQL_INCDIR=$withval/include/mysql
17643 if test -d $withval/lib64/mysql; then
17644 MYSQL_LIBDIR=$withval/lib64/mysql
17646 MYSQL_LIBDIR=$withval/lib/mysql
17648 MYSQL_BINDIR=$withval/bin
17649 elif test -f $withval/include/mysql.h; then
17650 MYSQL_INCDIR=$withval/include
17651 if test -d $withval/lib64; then
17652 MYSQL_LIBDIR=$withval/lib64
17654 MYSQL_LIBDIR=$withval/lib
17656 MYSQL_BINDIR=$withval/bin
17658 { echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6; }
17660 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17661 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17662 { (exit 1); exit 1; }; }
17665 SQL_INCLUDE=-I$MYSQL_INCDIR
17666 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17667 SQL_BINDIR=$MYSQL_BINDIR
17668 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_MYSQL 1
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_EMBEDDED_MYSQL 1
17678 { echo "$as_me:$LINENO: result: yes" >&5
17679 echo "${ECHO_T}yes" >&6; }
17686 { echo "$as_me:$LINENO: result: no" >&5
17687 echo "${ECHO_T}no" >&6; }
17703 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17704 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17706 # Check whether --with-sqlite3 was given.
17707 if test "${with_sqlite3+set}" = set; then
17708 withval=$with_sqlite3;
17709 if test "$withval" != "no"; then
17710 if test "$withval" = "yes"; then
17711 if test -f /usr/local/include/sqlite3.h; then
17712 SQLITE_INCDIR=/usr/local/include
17713 if test -d /usr/local/lib64; then
17714 SQLITE_LIBDIR=/usr/local/lib64
17716 SQLITE_LIBDIR=/usr/local/lib
17718 SQLITE_BINDIR=/usr/local/bin
17719 elif test -f /usr/include/sqlite3.h; then
17720 SQLITE_INCDIR=/usr/include
17721 if test -d /usr/lib64; then
17722 SQLITE_LIBDIR=/usr/lib64
17724 SQLITE_LIBDIR=/usr/lib
17726 SQLITE_BINDIR=/usr/bin
17727 elif test -f $prefix/include/sqlite3.h; then
17728 SQLITE_INCDIR=$prefix/include
17729 if test -d $prefix/lib64; then
17730 SQLITE_LIBDIR=$prefix/lib64
17732 SQLITE_LIBDIR=$prefix/lib
17734 SQLITE_BINDIR=$prefix/bin
17736 { echo "$as_me:$LINENO: result: no" >&5
17737 echo "${ECHO_T}no" >&6; }
17738 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17739 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17740 { (exit 1); exit 1; }; }
17743 if test -f $withval/sqlite3.h; then
17744 SQLITE_INCDIR=$withval
17745 SQLITE_LIBDIR=$withval
17746 SQLITE_BINDIR=$withval
17747 elif test -f $withval/include/sqlite3.h; then
17748 SQLITE_INCDIR=$withval/include
17749 if test -d $withval/lib64; then
17750 SQLITE_LIBDIR=$withval/lib64
17752 SQLITE_LIBDIR=$withval/lib
17754 SQLITE_BINDIR=$withval/bin
17756 { echo "$as_me:$LINENO: result: no" >&5
17757 echo "${ECHO_T}no" >&6; }
17758 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17759 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17760 { (exit 1); exit 1; }; }
17763 SQL_INCLUDE=-I$SQLITE_INCDIR
17764 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17765 SQL_BINDIR=$SQLITE_BINDIR
17766 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17768 cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_SQLITE3 1
17772 { echo "$as_me:$LINENO: result: yes" >&5
17773 echo "${ECHO_T}yes" >&6; }
17775 support_sqlite3=yes
17780 { echo "$as_me:$LINENO: result: no" >&5
17781 echo "${ECHO_T}no" >&6; }
17786 { echo "$as_me:$LINENO: result: no" >&5
17787 echo "${ECHO_T}no" >&6; }
17799 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17800 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17802 # Check whether --with-sqlite was given.
17803 if test "${with_sqlite+set}" = set; then
17804 withval=$with_sqlite;
17805 if test "$withval" != "no"; then
17806 if test "$withval" = "yes"; then
17807 if test -f /usr/local/include/sqlite.h; then
17808 SQLITE_INCDIR=/usr/local/include
17809 if test -d /usr/local/lib64; then
17810 SQLITE_LIBDIR=/usr/local/lib64
17812 SQLITE_LIBDIR=/usr/local/lib
17814 SQLITE_BINDIR=/usr/local/bin
17815 elif test -f /usr/include/sqlite.h; then
17816 SQLITE_INCDIR=/usr/include
17817 if test -d /usr/lib64; then
17818 SQLITE_LIBDIR=/usr/lib64
17820 SQLITE_LIBDIR=/usr/lib
17822 SQLITE_BINDIR=/usr/bin
17823 elif test -f $prefix/include/sqlite.h; then
17824 SQLITE_INCDIR=$prefix/include
17825 if test -d $prefix/lib64; then
17826 SQLITE_LIBDIR=$prefix/lib64
17828 SQLITE_LIBDIR=$prefix/lib
17830 SQLITE_BINDIR=$prefix/bin
17832 { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17834 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17835 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17836 { (exit 1); exit 1; }; }
17839 if test -f $withval/sqlite.h; then
17840 SQLITE_INCDIR=$withval
17841 SQLITE_LIBDIR=$withval
17842 SQLITE_BINDIR=$withval
17843 elif test -f $withval/include/sqlite.h; then
17844 SQLITE_INCDIR=$withval/include
17845 if test -d $withval/lib64; then
17846 SQLITE_LIBDIR=$withval/lib64
17848 SQLITE_LIBDIR=$withval/lib
17850 SQLITE_BINDIR=$withval/bin
17852 { echo "$as_me:$LINENO: result: no" >&5
17853 echo "${ECHO_T}no" >&6; }
17854 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17855 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17856 { (exit 1); exit 1; }; }
17859 SQL_INCLUDE=-I$SQLITE_INCDIR
17860 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17861 SQL_BINDIR=$SQLITE_BINDIR
17862 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17864 cat >>confdefs.h <<\_ACEOF
17865 #define HAVE_SQLITE 1
17868 { echo "$as_me:$LINENO: result: yes" >&5
17869 echo "${ECHO_T}yes" >&6; }
17876 { echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6; }
17882 { echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6; }
17895 { echo "$as_me:$LINENO: checking for DBI support" >&5
17896 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17898 # Check whether --with-dbi was given.
17899 if test "${with_dbi+set}" = set; then
17901 if test "$withval" != "no"; then
17902 if test "$withval" = "yes"; then
17903 if test -f /usr/local/include/dbi/dbi.h; then
17904 DBI_INCDIR=/usr/local/dbi/include
17905 if test -d /usr/local/lib64; then
17906 DBI_LIBDIR=/usr/local/lib64
17908 DBI_LIBDIR=/usr/local/lib
17910 DBI_BINDIR=/usr/local/bin
17911 elif test -f /usr/include/dbi/dbi.h; then
17912 DBI_INCDIR=/usr/include
17913 if test -d /usr/lib64; then
17914 DBI_LIBDIR=/usr/lib64
17916 DBI_LIBDIR=/usr/lib
17918 DBI_BINDIR=/usr/bin
17919 elif test -f $prefix/include/dbi/dbi.h; then
17920 DBI_INCDIR=$prefix/include
17921 if test -d $prefix/lib64; then
17922 DBI_LIBDIR=$prefix/lib64
17924 DBI_LIBDIR=$prefix/lib
17926 DBI_BINDIR=$prefix/bin
17928 { echo "$as_me:$LINENO: result: no" >&5
17929 echo "${ECHO_T}no" >&6; }
17930 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17931 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17932 { (exit 1); exit 1; }; }
17934 if test -d /usr/local/lib/dbd; then
17935 DRIVERDIR=/usr/local/lib/dbd
17936 if test -d /usr/local/lib64/dbd; then
17937 DRIVERDIR=/usr/local/lib64/dbd
17939 DRIVERDIR=/usr/local/lib/dbd
17941 elif test -d /usr/lib/dbd; then
17942 DRIVERDIR=/usr/lib/dbd
17943 if test -d /usr/lib64/dbd; then
17944 DRIVERDIR=/usr/lib64/dbd
17946 DRIVERDIR=/usr/lib/dbd
17948 elif test -d $prefix/lib/dbd; then
17949 if test -d $prefix/lib64/dbd; then
17950 DRIVERDIR=$prefix/lib64/dbd
17952 DRIVERDIR=$prefix/lib/dbd
17955 { echo "$as_me:$LINENO: result: no" >&5
17956 echo "${ECHO_T}no" >&6; }
17957 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17958 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17959 { (exit 1); exit 1; }; }
17962 if test -f $withval/dbi.h; then
17963 DBI_INCDIR=$withval
17964 DBI_LIBDIR=$withval
17965 DBI_BINDIR=$withval
17966 elif test -f $withval/include/dbi/dbi.h; then
17967 DBI_INCDIR=$withval/include
17968 if test -d $withval/lib64; then
17969 DBI_LIBDIR=$withval/lib64
17971 DBI_LIBDIR=$withval/lib
17973 DBI_BINDIR=$withval/bin
17975 { echo "$as_me:$LINENO: result: no" >&5
17976 echo "${ECHO_T}no" >&6; }
17977 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17978 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17979 { (exit 1); exit 1; }; }
17981 if test -d $withval/dbd; then
17982 DRIVERDIR=$withval/dbd
17983 elif test -d $withval/lib/; then
17984 if test -d $withval/lib64/dbd; then
17985 DRIVERDIR=$withval/lib64/dbd
17987 DRIVERDIR=$withval/lib/dbd
17990 { echo "$as_me:$LINENO: result: no" >&5
17991 echo "${ECHO_T}no" >&6; }
17992 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17993 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17994 { (exit 1); exit 1; }; }
17997 SQL_INCLUDE=-I$DBI_INCDIR
17998 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17999 SQL_BINDIR=$DBI_BINDIR
18000 SQL_LIB=$DBI_LIBDIR/libdbi.a
18001 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18004 cat >>confdefs.h <<\_ACEOF
18008 { echo "$as_me:$LINENO: result: yes" >&5
18009 echo "${ECHO_T}yes" >&6; }
18016 { echo "$as_me:$LINENO: result: no" >&5
18017 echo "${ECHO_T}no" >&6; }
18022 { echo "$as_me:$LINENO: result: no" >&5
18023 echo "${ECHO_T}no" >&6; }
18037 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18038 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18040 # Check whether --with-dbi-driver was given.
18041 if test "${with_dbi_driver+set}" = set; then
18042 withval=$with_dbi_driver;
18043 if test "$withval" != "no"; then
18047 if test -f /usr/local/mysql/bin/mysql; then
18048 SQL_BINDIR=/usr/local/mysql/bin
18049 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18050 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18051 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18053 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18055 elif test -f /usr/bin/mysql; then
18056 SQL_BINDIR=/usr/bin
18057 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18058 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18059 SQL_LIBDIR=/usr/lib64/mysql
18060 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18061 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18062 SQL_LIBDIR=/usr/lib/mysql
18064 SQL_LIBDIR=/usr/lib
18066 elif test -f /usr/local/bin/mysql; then
18067 SQL_BINDIR=/usr/local/bin
18068 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18069 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18070 SQL_LIBDIR=/usr/local/lib64/mysql
18071 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18072 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18073 SQL_LIBDIR=/usr/local/lib/mysql
18075 SQL_LIBDIR=/usr/local/lib
18077 elif test -f $withval/bin/mysql; then
18078 SQL_BINDIR=$withval/bin
18079 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18080 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18081 SQL_LIBDIR=$withval/lib64/mysql
18082 elif test -f $withval/lib64/libmysqlclient_r.a \
18083 -o -f $withval/lib64/libmysqlclient_r.so; then
18084 SQL_LIBDIR=$withval/lib64
18085 elif test -f $withval/lib/libmysqlclient_r.a \
18086 -o -f $withval/lib/libmysqlclient_r.so; then
18087 SQL_LIBDIR=$withval/lib/
18089 SQL_LIBDIR=$withval/lib/mysql
18092 { echo "$as_me:$LINENO: result: no" >&5
18093 echo "${ECHO_T}no" >&6; }
18094 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18095 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18096 { (exit 1); exit 1; }; }
18098 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18101 db_prog="postgresql"
18102 PG_CONFIG=`which pg_config`
18103 if test -n "$PG_CONFIG"; then
18104 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18105 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18106 elif test -f /usr/local/bin/psql; then
18107 SQL_BINDIR=/usr/local/bin
18108 if test -d /usr/local/lib64; then
18109 SQL_LIBDIR=/usr/local/lib64
18111 SQL_LIBDIR=/usr/local/lib
18113 elif test -f /usr/bin/psql; then
18114 SQL_BINDIR=/usr/local/bin
18115 if test -d /usr/lib64/postgresql; then
18116 SQL_LIBDIR=/usr/lib64/postgresql
18117 elif test -d /usr/lib/postgresql; then
18118 SQL_LIBDIR=/usr/lib/postgresql
18119 elif test -d /usr/lib64; then
18120 SQL_LIBDIR=/usr/lib64
18122 SQL_LIBDIR=/usr/lib
18124 elif test -f $withval/bin/psql; then
18125 SQL_BINDIR=$withval/bin
18126 if test -d $withval/lib64; then
18127 SQL_LIBDIR=$withval/lib64
18129 SQL_LIBDIR=$withval/lib
18132 { echo "$as_me:$LINENO: result: no" >&5
18133 echo "${ECHO_T}no" >&6; }
18134 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18135 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18136 { (exit 1); exit 1; }; }
18138 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18141 { echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6; }
18143 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18144 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18145 { (exit 1); exit 1; }; }
18149 { echo "$as_me:$LINENO: result: yes" >&5
18150 echo "${ECHO_T}yes" >&6; }
18153 { echo "$as_me:$LINENO: result: no" >&5
18154 echo "${ECHO_T}no" >&6; }
18159 { echo "$as_me:$LINENO: result: no" >&5
18160 echo "${ECHO_T}no" >&6; }
18173 # -------------------------------------------
18174 # enable batch attribute DB insert (default on)
18175 # -------------------------------------------
18176 support_batch_insert=no
18177 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18179 if test $pkg = 0; then
18180 support_batch_insert=yes
18181 # Check whether --enable-batch-insert was given.
18182 if test "${enable_batch_insert+set}" = set; then
18183 enableval=$enable_batch_insert; if test x$enableval = xno; then
18184 support_batch_insert=no
18186 support_batch_insert=yes
18192 # Check if postgresql support batch mode
18193 if test x$DB_TYPE = xpostgresql; then
18194 A=`nm $SQL_LIB | grep PQputCopyData`
18196 if test $pkg != 0; then
18197 support_batch_insert=no
18201 if test x$DB_TYPE = xdbi; then
18205 # Check for batch insert
18206 if test $DB_PROG = postgresql; then
18207 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18211 if test $DB_PROG = mysql; then
18212 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18216 if test $pkg = 0; then
18217 # Check whether --enable-batch-insert was given.
18218 if test "${enable_batch_insert+set}" = set; then
18219 enableval=$enable_batch_insert; if test x$enableval = xno; then
18220 support_batch_insert=no
18222 support_batch_insert=yes
18229 if test $support_batch_insert = yes ; then
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_BATCH_FILE_INSERT 1
18238 cat >>confdefs.h <<\_ACEOF
18239 #define PROTOTYPES 1
18243 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18244 if test -z "$CCOPTS"; then
18245 CCOPTS='-g -O2 -Wall'
18253 largefile_support="no"
18255 # Check whether --enable-largefile was given.
18256 if test "${enable_largefile+set}" = set; then
18257 enableval=$enable_largefile;
18260 if test "$enable_largefile" != no; then
18261 if test -n "$ac_tool_prefix"; then
18262 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18263 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18266 if test "${ac_cv_prog_GETCONF+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 if test -n "$GETCONF"; then
18270 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273 for as_dir in $PATH
18276 test -z "$as_dir" && as_dir=.
18277 for ac_exec_ext in '' $ac_executable_extensions; do
18278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18279 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18289 GETCONF=$ac_cv_prog_GETCONF
18290 if test -n "$GETCONF"; then
18291 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18292 echo "${ECHO_T}$GETCONF" >&6; }
18294 { echo "$as_me:$LINENO: result: no" >&5
18295 echo "${ECHO_T}no" >&6; }
18300 if test -z "$ac_cv_prog_GETCONF"; then
18301 ac_ct_GETCONF=$GETCONF
18302 # Extract the first word of "getconf", so it can be a program name with args.
18303 set dummy getconf; ac_word=$2
18304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18306 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 if test -n "$ac_ct_GETCONF"; then
18310 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18316 test -z "$as_dir" && as_dir=.
18317 for ac_exec_ext in '' $ac_executable_extensions; do
18318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18319 ac_cv_prog_ac_ct_GETCONF="getconf"
18320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18329 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18330 if test -n "$ac_ct_GETCONF"; then
18331 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18332 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18334 { echo "$as_me:$LINENO: result: no" >&5
18335 echo "${ECHO_T}no" >&6; }
18338 if test "x$ac_ct_GETCONF" = x; then
18341 case $cross_compiling:$ac_tool_warned in
18343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18344 whose name does not start with the host triplet. If you think this
18345 configuration is useful to you, please write to autoconf@gnu.org." >&5
18346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18347 whose name does not start with the host triplet. If you think this
18348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18349 ac_tool_warned=yes ;;
18351 GETCONF=$ac_ct_GETCONF
18354 GETCONF="$ac_cv_prog_GETCONF"
18357 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18358 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18359 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18363 ac_cv_sys_largefile_CFLAGS=no
18365 # IRIX 6.2 and later require cc -n32.
18366 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18367 if test "$GCC" != yes; then
18368 ac_cv_sys_largefile_CFLAGS=-n32
18371 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_link") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest$ac_exeext &&
18404 $as_test_x conftest$ac_exeext; then
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_sys_largefile_CFLAGS=no
18413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18414 conftest$ac_exeext conftest.$ac_ext
18419 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18420 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18421 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18422 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18423 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18427 ac_cv_sys_largefile_LDFLAGS=no
18431 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18432 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18433 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18434 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18435 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18439 ac_cv_sys_largefile_LIBS=no
18443 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18444 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18446 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18449 -D_FILE_OFFSET_BITS=*) ;;
18450 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18451 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18456 case "$CPPFLAGS" in
18457 '') CPPFLAGS="$ac_flag" ;;
18458 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18466 '') CFLAGS="$ac_flag" ;;
18467 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18472 case "$ac_cv_sys_largefile_LDFLAGS" in
18476 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18477 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18480 case "$ac_cv_sys_largefile_LIBS" in
18484 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18485 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18488 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18489 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18490 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 ac_cv_sys_file_offset_bits=no
18494 ac_cv_sys_file_offset_bits=64
18495 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18497 -D_FILE_OFFSET_BITS)
18498 ac_cv_sys_file_offset_bits=1 ;;
18499 -D_FILE_OFFSET_BITS=*)
18500 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18505 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18506 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18507 if test "$ac_cv_sys_file_offset_bits" != no; then
18509 cat >>confdefs.h <<_ACEOF
18510 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18514 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18515 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18516 if test "${ac_cv_sys_largefile_source+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 ac_cv_sys_largefile_source=no
18520 ac_cv_sys_largefile_source=1
18521 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18523 -D_LARGEFILE_SOURCE)
18524 ac_cv_sys_largefile_source=1 ;;
18525 -D_LARGEFILE_SOURCE=*)
18526 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18531 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18532 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18533 if test "$ac_cv_sys_largefile_source" != no; then
18535 cat >>confdefs.h <<_ACEOF
18536 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18540 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18541 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18542 if test "${ac_cv_sys_large_files+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 ac_cv_sys_large_files=no
18546 ac_cv_sys_large_files=1
18547 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18550 ac_cv_sys_large_files=1 ;;
18552 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18557 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18558 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18559 if test "$ac_cv_sys_large_files" != no; then
18561 cat >>confdefs.h <<_ACEOF
18562 #define _LARGE_FILES $ac_cv_sys_large_files
18570 { echo "$as_me:$LINENO: checking for X" >&5
18571 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18574 # Check whether --with-x was given.
18575 if test "${with_x+set}" = set; then
18579 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18580 if test "x$with_x" = xno; then
18581 # The user explicitly disabled X.
18584 case $x_includes,$x_libraries in #(
18585 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18586 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18587 { (exit 1); exit 1; }; };; #(
18588 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 # One or both of the vars are not set, and there is no cached value.
18592 ac_x_includes=no ac_x_libraries=no
18593 rm -f -r conftest.dir
18594 if mkdir conftest.dir; then
18596 cat >Imakefile <<'_ACEOF'
18598 @echo incroot='${INCROOT}'
18600 @echo usrlibdir='${USRLIBDIR}'
18602 @echo libdir='${LIBDIR}'
18604 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18606 for ac_var in incroot usrlibdir libdir; do
18607 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18609 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18610 for ac_extension in a so sl; do
18611 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18612 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18613 ac_im_usrlibdir=$ac_im_libdir; break
18616 # Screen out bogus values from the imake configuration. They are
18617 # bogus both because they are the default anyway, and because
18618 # using them would break gcc on systems where it needs fixed includes.
18619 case $ac_im_incroot in
18620 /usr/include) ac_x_includes= ;;
18621 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18623 case $ac_im_usrlibdir in
18624 /usr/lib | /lib) ;;
18625 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18629 rm -f -r conftest.dir
18632 # Standard set of common directories for X headers.
18633 # Check X11 before X11Rn because it is often a symlink to the current release.
18645 /usr/local/X11/include
18646 /usr/local/X11R6/include
18647 /usr/local/X11R5/include
18648 /usr/local/X11R4/include
18650 /usr/local/include/X11
18651 /usr/local/include/X11R6
18652 /usr/local/include/X11R5
18653 /usr/local/include/X11R4
18657 /usr/XFree86/include/X11
18661 /usr/unsupported/include
18662 /usr/athena/include
18663 /usr/local/x11r5/include
18664 /usr/lpp/Xamples/include
18666 /usr/openwin/include
18667 /usr/openwin/share/include'
18669 if test "$ac_x_includes" = no; then
18670 # Guess where to find include files, by looking for Xlib.h.
18671 # First, try using that file with no special directory specified.
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 #include <X11/Xlib.h>
18680 if { (ac_try="$ac_cpp conftest.$ac_ext"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } >/dev/null && {
18693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18696 # We can compile using X headers with no special include directory.
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 for ac_dir in $ac_x_header_dirs; do
18703 if test -r "$ac_dir/X11/Xlib.h"; then
18704 ac_x_includes=$ac_dir
18710 rm -f conftest.err conftest.$ac_ext
18711 fi # $ac_x_includes = no
18713 if test "$ac_x_libraries" = no; then
18714 # Check for the libraries.
18715 # See if we find them without any special options.
18716 # Don't add to $LIBS permanently.
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <X11/Xlib.h>
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
18753 # We can link X programs with no special library path.
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18760 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18762 # Don't even attempt the hair of trying to link an X program!
18763 for ac_extension in a so sl; do
18764 if test -r "$ac_dir/libX11.$ac_extension"; then
18765 ac_x_libraries=$ac_dir
18772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18773 conftest$ac_exeext conftest.$ac_ext
18774 fi # $ac_x_libraries = no
18776 case $ac_x_includes,$ac_x_libraries in #(
18777 no,* | *,no | *\'*)
18778 # Didn't find X, or a directory has "'" in its name.
18779 ac_cv_have_x="have_x=no";; #(
18781 # Record where we found X for the cache.
18782 ac_cv_have_x="have_x=yes\
18783 ac_x_includes='$ac_x_includes'\
18784 ac_x_libraries='$ac_x_libraries'"
18790 eval "$ac_cv_have_x"
18793 if test "$have_x" != yes; then
18794 { echo "$as_me:$LINENO: result: $have_x" >&5
18795 echo "${ECHO_T}$have_x" >&6; }
18798 # If each of the values was on the command line, it overrides each guess.
18799 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18800 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18801 # Update the cache value to reflect the command line values.
18802 ac_cv_have_x="have_x=yes\
18803 ac_x_includes='$x_includes'\
18804 ac_x_libraries='$x_libraries'"
18805 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18806 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18809 if test "$no_x" = yes; then
18810 # Not all programs may use this symbol, but it does not hurt to define it.
18812 cat >>confdefs.h <<\_ACEOF
18813 #define X_DISPLAY_MISSING 1
18816 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18818 if test -n "$x_includes"; then
18819 X_CFLAGS="$X_CFLAGS -I$x_includes"
18822 # It would also be nice to do this for all -L options, not just this one.
18823 if test -n "$x_libraries"; then
18824 X_LIBS="$X_LIBS -L$x_libraries"
18825 # For Solaris; some versions of Sun CC require a space after -R and
18826 # others require no space. Words are not sufficient . . . .
18827 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18828 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18829 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18830 ac_xsave_c_werror_flag=$ac_c_werror_flag
18831 ac_c_werror_flag=yes
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } && {
18861 test -z "$ac_c_werror_flag" ||
18862 test ! -s conftest.err
18863 } && test -s conftest$ac_exeext &&
18864 $as_test_x conftest$ac_exeext; then
18865 { echo "$as_me:$LINENO: result: no" >&5
18866 echo "${ECHO_T}no" >&6; }
18867 X_LIBS="$X_LIBS -R$x_libraries"
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 LIBS="$ac_xsave_LIBS -R $x_libraries"
18873 cat >conftest.$ac_ext <<_ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest$ac_exeext &&
18905 $as_test_x conftest$ac_exeext; then
18906 { echo "$as_me:$LINENO: result: yes" >&5
18907 echo "${ECHO_T}yes" >&6; }
18908 X_LIBS="$X_LIBS -R $x_libraries"
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 { echo "$as_me:$LINENO: result: neither works" >&5
18914 echo "${ECHO_T}neither works" >&6; }
18917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18918 conftest$ac_exeext conftest.$ac_ext
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922 conftest$ac_exeext conftest.$ac_ext
18923 ac_c_werror_flag=$ac_xsave_c_werror_flag
18924 LIBS=$ac_xsave_LIBS
18927 # Check for system-dependent libraries X programs must link with.
18928 # Do this before checking for the system-independent R6 libraries
18929 # (-lICE), since we may need -lsocket or whatever for X linking.
18931 if test "$ISC" = yes; then
18932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18934 # Martyn Johnson says this is needed for Ultrix, if the X
18935 # libraries were built with DECnet support. And Karl Berry says
18936 # the Alpha needs dnet_stub (dnet does not exist).
18937 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18951 char XOpenDisplay ();
18955 return XOpenDisplay ();
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18984 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18985 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 ac_check_lib_save_LIBS=$LIBS
18989 LIBS="-ldnet $LIBS"
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18997 /* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
19007 return dnet_ntoa ();
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_link") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest$ac_exeext &&
19029 $as_test_x conftest$ac_exeext; then
19030 ac_cv_lib_dnet_dnet_ntoa=yes
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_cv_lib_dnet_dnet_ntoa=no
19038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19039 conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19043 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19044 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19048 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19049 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19050 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19051 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-ldnet_stub $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19073 return dnet_ntoa ();
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_link") 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && {
19092 test -z "$ac_c_werror_flag" ||
19093 test ! -s conftest.err
19094 } && test -s conftest$ac_exeext &&
19095 $as_test_x conftest$ac_exeext; then
19096 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_lib_dnet_stub_dnet_ntoa=no
19104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19105 conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19109 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19110 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19111 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19118 conftest$ac_exeext conftest.$ac_ext
19119 LIBS="$ac_xsave_LIBS"
19121 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19122 # to get the SysV transport functions.
19123 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19125 # The nsl library prevents programs from opening the X display
19126 # on Irix 5.2, according to T.E. Dickey.
19127 # The functions gethostbyname, getservbyname, and inet_addr are
19128 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19129 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19130 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19131 if test "${ac_cv_func_gethostbyname+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 cat >conftest.$ac_ext <<_ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19142 #define gethostbyname innocuous_gethostbyname
19144 /* System header to define __stub macros and hopefully few prototypes,
19145 which can conflict with char gethostbyname (); below.
19146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19147 <limits.h> exists even on freestanding compilers. */
19150 # include <limits.h>
19152 # include <assert.h>
19155 #undef gethostbyname
19157 /* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19163 char gethostbyname ();
19164 /* The GNU C library defines this for functions which it implements
19165 to always fail with ENOSYS. Some functions are actually named
19166 something starting with __ and the normal name is an alias. */
19167 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19174 return gethostbyname ();
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest$ac_exeext &&
19196 $as_test_x conftest$ac_exeext; then
19197 ac_cv_func_gethostbyname=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_func_gethostbyname=no
19205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19206 conftest$ac_exeext conftest.$ac_ext
19208 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19209 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19211 if test $ac_cv_func_gethostbyname = no; then
19212 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19213 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19214 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 ac_check_lib_save_LIBS=$LIBS
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19226 /* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19232 char gethostbyname ();
19236 return gethostbyname ();
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (ac_try="$ac_link"
19243 case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_link") 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } && {
19255 test -z "$ac_c_werror_flag" ||
19256 test ! -s conftest.err
19257 } && test -s conftest$ac_exeext &&
19258 $as_test_x conftest$ac_exeext; then
19259 ac_cv_lib_nsl_gethostbyname=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 ac_cv_lib_nsl_gethostbyname=no
19267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19271 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19272 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19273 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19277 if test $ac_cv_lib_nsl_gethostbyname = no; then
19278 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19279 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19280 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 ac_check_lib_save_LIBS=$LIBS
19285 cat >conftest.$ac_ext <<_ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19298 char gethostbyname ();
19302 return gethostbyname ();
19307 rm -f conftest.$ac_objext conftest$ac_exeext
19308 if { (ac_try="$ac_link"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_link") 2>conftest.er1
19316 grep -v '^ *+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } && {
19321 test -z "$ac_c_werror_flag" ||
19322 test ! -s conftest.err
19323 } && test -s conftest$ac_exeext &&
19324 $as_test_x conftest$ac_exeext; then
19325 ac_cv_lib_bsd_gethostbyname=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_cv_lib_bsd_gethostbyname=no
19333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19337 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19347 # socket/setsockopt and other routines are undefined under SCO ODT
19348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19349 # on later versions), says Simon Leinen: it contains gethostby*
19350 # variants that don't use the name server (or something). -lsocket
19351 # must be given before -lnsl if both are needed. We assume that
19352 # if connect needs -lnsl, so does gethostbyname.
19353 { echo "$as_me:$LINENO: checking for connect" >&5
19354 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19355 if test "${ac_cv_func_connect+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define connect innocuous_connect
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char connect (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19374 # include <limits.h>
19376 # include <assert.h>
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined __stub_connect || defined __stub___connect
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext &&
19420 $as_test_x conftest$ac_exeext; then
19421 ac_cv_func_connect=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_func_connect=no
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19432 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19433 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19435 if test $ac_cv_func_connect = no; then
19436 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19437 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19438 if test "${ac_cv_lib_socket_connect+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 ac_check_lib_save_LIBS=$LIBS
19442 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19450 /* Override any GCC internal prototype to avoid an error.
19451 Use char because int might match the return type of a GCC
19452 builtin and then its argument prototype would still apply. */
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 ac_cv_lib_socket_connect=yes
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ac_cv_lib_socket_connect=no
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19493 LIBS=$ac_check_lib_save_LIBS
19495 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19496 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19497 if test $ac_cv_lib_socket_connect = yes; then
19498 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19503 # Guillermo Gomez says -lposix is necessary on A/UX.
19504 { echo "$as_me:$LINENO: checking for remove" >&5
19505 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19506 if test "${ac_cv_func_remove+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19517 #define remove innocuous_remove
19519 /* System header to define __stub macros and hopefully few prototypes,
19520 which can conflict with char remove (); below.
19521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522 <limits.h> exists even on freestanding compilers. */
19525 # include <limits.h>
19527 # include <assert.h>
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19539 /* The GNU C library defines this for functions which it implements
19540 to always fail with ENOSYS. Some functions are actually named
19541 something starting with __ and the normal name is an alias. */
19542 #if defined __stub_remove || defined __stub___remove
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_link") 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } && {
19568 test -z "$ac_c_werror_flag" ||
19569 test ! -s conftest.err
19570 } && test -s conftest$ac_exeext &&
19571 $as_test_x conftest$ac_exeext; then
19572 ac_cv_func_remove=yes
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_cv_func_remove=no
19580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19581 conftest$ac_exeext conftest.$ac_ext
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19584 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19586 if test $ac_cv_func_remove = no; then
19587 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19588 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19589 if test "${ac_cv_lib_posix_remove+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 ac_check_lib_save_LIBS=$LIBS
19593 LIBS="-lposix $LIBS"
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_link") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && {
19630 test -z "$ac_c_werror_flag" ||
19631 test ! -s conftest.err
19632 } && test -s conftest$ac_exeext &&
19633 $as_test_x conftest$ac_exeext; then
19634 ac_cv_lib_posix_remove=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_lib_posix_remove=no
19642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19643 conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19647 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19648 if test $ac_cv_lib_posix_remove = yes; then
19649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19654 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19655 { echo "$as_me:$LINENO: checking for shmat" >&5
19656 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19657 if test "${ac_cv_func_shmat+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define shmat innocuous_shmat
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char shmat (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19676 # include <limits.h>
19678 # include <assert.h>
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined __stub_shmat || defined __stub___shmat
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest$ac_exeext &&
19722 $as_test_x conftest$ac_exeext; then
19723 ac_cv_func_shmat=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_func_shmat=no
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732 conftest$ac_exeext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19735 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19737 if test $ac_cv_func_shmat = no; then
19738 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19739 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 ac_check_lib_save_LIBS=$LIBS
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest$ac_exeext &&
19784 $as_test_x conftest$ac_exeext; then
19785 ac_cv_lib_ipc_shmat=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_lib_ipc_shmat=no
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794 conftest$ac_exeext conftest.$ac_ext
19795 LIBS=$ac_check_lib_save_LIBS
19797 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19798 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19799 if test $ac_cv_lib_ipc_shmat = yes; then
19800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19806 # Check for libraries that X11R6 Xt/Xaw programs need.
19807 ac_save_LDFLAGS=$LDFLAGS
19808 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19809 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19810 # check for ICE first), but we must link in the order -lSM -lICE or
19811 # we get undefined symbols. So assume we have SM if we have ICE.
19812 # These have to be linked with before -lX11, unlike the other
19813 # libraries we check for below, so use a different variable.
19814 # John Interrante, Karl Berry
19815 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19816 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19817 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 ac_check_lib_save_LIBS=$LIBS
19821 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19829 /* Override any GCC internal prototype to avoid an error.
19830 Use char because int might match the return type of a GCC
19831 builtin and then its argument prototype would still apply. */
19835 char IceConnectionNumber ();
19839 return IceConnectionNumber ();
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_link") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } && {
19858 test -z "$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest$ac_exeext &&
19861 $as_test_x conftest$ac_exeext; then
19862 ac_cv_lib_ICE_IceConnectionNumber=yes
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_cv_lib_ICE_IceConnectionNumber=no
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871 conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19874 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19875 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19876 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19877 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19880 LDFLAGS=$ac_save_LDFLAGS
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19959 # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19969 #include <$ac_header>
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 ac_header_compiler=yes
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_header_compiler=no
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6; }
20000 # Is the header present?
20001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <$ac_header>
20011 if { (ac_try="$ac_cpp conftest.$ac_ext"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } >/dev/null && {
20024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20027 ac_header_preproc=yes
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_header_preproc=no
20035 rm -f conftest.err conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037 echo "${ECHO_T}$ac_header_preproc" >&6; }
20039 # So? What about this header?
20040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 eval "$as_ac_Header=\$ac_header_preproc"
20071 ac_res=`eval echo '${'$as_ac_Header'}'`
20072 { echo "$as_me:$LINENO: result: $ac_res" >&5
20073 echo "${ECHO_T}$ac_res" >&6; }
20076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20077 cat >>confdefs.h <<_ACEOF
20078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20087 if test "${ac_cv_header_stdc+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 cat >conftest.$ac_ext <<_ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <stdlib.h>
20097 #include <stdarg.h>
20098 #include <string.h>
20109 rm -f conftest.$ac_objext
20110 if { (ac_try="$ac_compile"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_compile") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest.$ac_objext; then
20126 ac_cv_header_stdc=yes
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ac_cv_header_stdc=no
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 if test $ac_cv_header_stdc = yes; then
20137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 #include <string.h>
20147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20148 $EGREP "memchr" >/dev/null 2>&1; then
20151 ac_cv_header_stdc=no
20157 if test $ac_cv_header_stdc = yes; then
20158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <stdlib.h>
20168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20169 $EGREP "free" >/dev/null 2>&1; then
20172 ac_cv_header_stdc=no
20178 if test $ac_cv_header_stdc = yes; then
20179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20180 if test "$cross_compiling" = yes; then
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20190 #include <stdlib.h>
20191 #if ((' ' & 0x0FF) == 0x020)
20192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20195 # define ISLOWER(c) \
20196 (('a' <= (c) && (c) <= 'i') \
20197 || ('j' <= (c) && (c) <= 'r') \
20198 || ('s' <= (c) && (c) <= 'z'))
20199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20207 for (i = 0; i < 256; i++)
20208 if (XOR (islower (i), ISLOWER (i))
20209 || toupper (i) != TOUPPER (i))
20214 rm -f conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20236 echo "$as_me: program exited with status $ac_status" >&5
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ( exit $ac_status )
20241 ac_cv_header_stdc=no
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20250 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20251 if test $ac_cv_header_stdc = yes; then
20253 cat >>confdefs.h <<\_ACEOF
20254 #define STDC_HEADERS 1
20259 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20260 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20261 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 #include <sys/types.h>
20274 return makedev(0, 0);
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest$ac_exeext &&
20296 $as_test_x conftest$ac_exeext; then
20297 ac_cv_header_sys_types_h_makedev=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_header_sys_types_h_makedev=no
20305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20306 conftest$ac_exeext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20310 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20312 if test $ac_cv_header_sys_types_h_makedev = no; then
20313 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20314 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20315 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20316 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20320 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20322 # Is the header compilable?
20323 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20324 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 $ac_includes_default
20332 #include <sys/mkdev.h>
20334 rm -f conftest.$ac_objext
20335 if { (ac_try="$ac_compile"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_compile") 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && {
20348 test -z "$ac_c_werror_flag" ||
20349 test ! -s conftest.err
20350 } && test -s conftest.$ac_objext; then
20351 ac_header_compiler=yes
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_header_compiler=no
20359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20361 echo "${ECHO_T}$ac_header_compiler" >&6; }
20363 # Is the header present?
20364 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20365 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 #include <sys/mkdev.h>
20374 if { (ac_try="$ac_cpp conftest.$ac_ext"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20382 grep -v '^ *+' conftest.er1 >conftest.err
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } >/dev/null && {
20387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20388 test ! -s conftest.err
20390 ac_header_preproc=yes
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_header_preproc=no
20398 rm -f conftest.err conftest.$ac_ext
20399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20400 echo "${ECHO_T}$ac_header_preproc" >&6; }
20402 # So? What about this header?
20403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20405 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20408 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20409 ac_header_preproc=yes
20412 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20413 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20415 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20423 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20427 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20428 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20438 if test $ac_cv_header_sys_mkdev_h = yes; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define MAJOR_IN_MKDEV 1
20448 if test $ac_cv_header_sys_mkdev_h = no; then
20449 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20450 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20451 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20456 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20458 # Is the header compilable?
20459 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20460 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20468 #include <sys/sysmacros.h>
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20479 grep -v '^ *+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest.$ac_objext; then
20487 ac_header_compiler=yes
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_header_compiler=no
20495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20497 echo "${ECHO_T}$ac_header_compiler" >&6; }
20499 # Is the header present?
20500 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20501 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20502 cat >conftest.$ac_ext <<_ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20508 #include <sys/sysmacros.h>
20510 if { (ac_try="$ac_cpp conftest.$ac_ext"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } >/dev/null && {
20523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20524 test ! -s conftest.err
20526 ac_header_preproc=yes
20528 echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20531 ac_header_preproc=no
20534 rm -f conftest.err conftest.$ac_ext
20535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20536 echo "${ECHO_T}$ac_header_preproc" >&6; }
20538 # So? What about this header?
20539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20541 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20544 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20545 ac_header_preproc=yes
20548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20549 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20550 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20551 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20559 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20563 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20564 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20565 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20571 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20574 if test $ac_cv_header_sys_sysmacros_h = yes; then
20576 cat >>confdefs.h <<\_ACEOF
20577 #define MAJOR_IN_SYSMACROS 1
20591 ac_header_dirent=no
20592 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20593 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20594 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20595 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 #include <sys/types.h>
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_compile") 2>conftest.er1
20626 grep -v '^ *+' conftest.er1 >conftest.err
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } && {
20631 test -z "$ac_c_werror_flag" ||
20632 test ! -s conftest.err
20633 } && test -s conftest.$ac_objext; then
20634 eval "$as_ac_Header=yes"
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 eval "$as_ac_Header=no"
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 ac_res=`eval echo '${'$as_ac_Header'}'`
20645 { echo "$as_me:$LINENO: result: $ac_res" >&5
20646 echo "${ECHO_T}$ac_res" >&6; }
20647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20648 cat >>confdefs.h <<_ACEOF
20649 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20652 ac_header_dirent=$ac_hdr; break
20656 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20657 if test $ac_header_dirent = dirent.h; then
20658 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20659 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20660 if test "${ac_cv_search_opendir+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 ac_func_search_save_LIBS=$LIBS
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20671 /* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20686 for ac_lib in '' dir; do
20687 if test -z "$ac_lib"; then
20688 ac_res="none required"
20691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_link") 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest$ac_exeext &&
20710 $as_test_x conftest$ac_exeext; then
20711 ac_cv_search_opendir=$ac_res
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20721 if test "${ac_cv_search_opendir+set}" = set; then
20725 if test "${ac_cv_search_opendir+set}" = set; then
20728 ac_cv_search_opendir=no
20730 rm conftest.$ac_ext
20731 LIBS=$ac_func_search_save_LIBS
20733 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20734 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20735 ac_res=$ac_cv_search_opendir
20736 if test "$ac_res" != no; then
20737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20742 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20744 if test "${ac_cv_search_opendir+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 ac_func_search_save_LIBS=$LIBS
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20770 for ac_lib in '' x; do
20771 if test -z "$ac_lib"; then
20772 ac_res="none required"
20775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20777 rm -f conftest.$ac_objext conftest$ac_exeext
20778 if { (ac_try="$ac_link"
20779 case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_link") 2>conftest.er1
20786 grep -v '^ *+' conftest.er1 >conftest.err
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest$ac_exeext &&
20794 $as_test_x conftest$ac_exeext; then
20795 ac_cv_search_opendir=$ac_res
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20805 if test "${ac_cv_search_opendir+set}" = set; then
20809 if test "${ac_cv_search_opendir+set}" = set; then
20812 ac_cv_search_opendir=no
20814 rm conftest.$ac_ext
20815 LIBS=$ac_func_search_save_LIBS
20817 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20818 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20819 ac_res=$ac_cv_search_opendir
20820 if test "$ac_res" != no; then
20821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20827 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20828 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20829 if test "${ac_cv_header_stat_broken+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 #include <sys/types.h>
20839 #include <sys/stat.h>
20841 #if defined S_ISBLK && defined S_IFDIR
20842 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20845 #if defined S_ISBLK && defined S_IFCHR
20846 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20849 #if defined S_ISLNK && defined S_IFREG
20850 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20853 #if defined S_ISSOCK && defined S_IFREG
20854 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_cv_header_stat_broken=no
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_cv_header_stat_broken=yes
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20886 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20887 if test $ac_cv_header_stat_broken = yes; then
20889 cat >>confdefs.h <<\_ACEOF
20890 #define STAT_MACROS_BROKEN 1
20895 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20896 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20897 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 #include <sys/types.h>
20907 #include <sys/wait.h>
20908 #ifndef WEXITSTATUS
20909 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20912 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 ac_cv_header_sys_wait_h=yes
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_cv_header_sys_wait_h=no
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20953 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20954 if test $ac_cv_header_sys_wait_h = yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_SYS_WAIT_H 1
20962 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20963 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20964 if test "${ac_cv_header_time+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <sys/types.h>
20974 #include <sys/time.h>
20980 if ((struct tm *) 0)
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest.$ac_objext; then
21003 ac_cv_header_time=yes
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ac_cv_header_time=no
21011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21014 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21015 if test $ac_cv_header_time = yes; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define TIME_WITH_SYS_TIME 1
21023 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21024 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21025 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 $ac_includes_default
21038 static struct stat ac_aggr;
21039 if (ac_aggr.st_blksize)
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_compile") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } && {
21059 test -z "$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21061 } && test -s conftest.$ac_objext; then
21062 ac_cv_member_struct_stat_st_blksize=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 cat >conftest.$ac_ext <<_ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21077 static struct stat ac_aggr;
21078 if (sizeof ac_aggr.st_blksize)
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_cv_member_struct_stat_st_blksize=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_member_struct_stat_st_blksize=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21116 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_ST_BLKSIZE 1
21130 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21131 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21132 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 $ac_includes_default
21145 static struct stat ac_aggr;
21146 if (ac_aggr.st_blocks)
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_compile") 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest.$ac_objext; then
21169 ac_cv_member_struct_stat_st_blocks=yes
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21184 static struct stat ac_aggr;
21185 if (sizeof ac_aggr.st_blocks)
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208 ac_cv_member_struct_stat_st_blocks=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ac_cv_member_struct_stat_st_blocks=no
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21222 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21223 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21225 cat >>confdefs.h <<_ACEOF
21226 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_ST_BLOCKS 1
21235 case " $LIBOBJS " in
21236 *" fileblocks.$ac_objext "* ) ;;
21237 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21244 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21245 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21246 if test "${ac_cv_struct_tm+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <sys/types.h>
21262 int *p = &tm.tm_sec;
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21285 ac_cv_struct_tm=time.h
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_cv_struct_tm=sys/time.h
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21296 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21297 if test $ac_cv_struct_tm = sys/time.h; then
21299 cat >>confdefs.h <<\_ACEOF
21300 #define TM_IN_SYS_TIME 1
21305 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21306 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21307 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <sys/types.h>
21317 #include <$ac_cv_struct_tm>
21323 static struct tm ac_aggr;
21324 if (ac_aggr.tm_zone)
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_compile") 2>conftest.er1
21339 grep -v '^ *+' conftest.er1 >conftest.err
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } && {
21344 test -z "$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 } && test -s conftest.$ac_objext; then
21347 ac_cv_member_struct_tm_tm_zone=yes
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 #include <sys/types.h>
21359 #include <$ac_cv_struct_tm>
21365 static struct tm ac_aggr;
21366 if (sizeof ac_aggr.tm_zone)
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_cv_member_struct_tm_tm_zone=yes
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_cv_member_struct_tm_tm_zone=no
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21403 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21404 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21406 cat >>confdefs.h <<_ACEOF
21407 #define HAVE_STRUCT_TM_TM_ZONE 1
21413 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_TM_ZONE 1
21420 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21421 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21422 if test "${ac_cv_have_decl_tzname+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_compile") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest.$ac_objext; then
21461 ac_cv_have_decl_tzname=yes
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_cv_have_decl_tzname=no
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21472 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21473 if test $ac_cv_have_decl_tzname = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_DECL_TZNAME 1
21481 cat >>confdefs.h <<_ACEOF
21482 #define HAVE_DECL_TZNAME 0
21489 { echo "$as_me:$LINENO: checking for tzname" >&5
21490 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21491 if test "${ac_cv_var_tzname+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21501 #if !HAVE_DECL_TZNAME
21502 extern char *tzname[];
21508 return tzname[0][0];
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_link") 2>conftest.er1
21522 grep -v '^ *+' conftest.er1 >conftest.err
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && {
21527 test -z "$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 } && test -s conftest$ac_exeext &&
21530 $as_test_x conftest$ac_exeext; then
21531 ac_cv_var_tzname=yes
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_cv_var_tzname=no
21539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21540 conftest$ac_exeext conftest.$ac_ext
21542 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21543 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21544 if test $ac_cv_var_tzname = yes; then
21546 cat >>confdefs.h <<\_ACEOF
21547 #define HAVE_TZNAME 1
21554 { echo "$as_me:$LINENO: checking for utime.h" >&5
21555 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21556 if test "${ba_cv_header_utime_h+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21566 #include <sys/types.h>
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21585 grep -v '^ *+' conftest.er1 >conftest.err
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21593 ba_cv_header_utime_h=yes
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ba_cv_header_utime_h=no
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21604 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21605 test $ba_cv_header_utime_h = yes &&
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_UTIME_H 1
21611 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21612 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21613 if test "${ba_cv_header_socklen_t+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21623 #include <sys/types.h>
21624 #include <sys/socket.h>
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ba_cv_header_socklen_t=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ba_cv_header_socklen_t=no
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21661 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21662 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_SOCKLEN_T 1
21667 { echo "$as_me:$LINENO: checking for bigendian" >&5
21668 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21669 if test "${ba_cv_bigendian+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 if test "$cross_compiling" = yes; then
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21683 rm -f conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_link") 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21694 { (case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_try") 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 ba_cv_bigendian=yes
21705 echo "$as_me: program exited with status $ac_status" >&5
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ( exit $ac_status )
21712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21718 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21719 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_BIGENDIAN 1
21725 ac_cpp='$CXXCPP $CPPFLAGS'
21726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21731 { echo "$as_me:$LINENO: checking for typeof" >&5
21732 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21733 if test "${ba_cv_have_typeof+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 if test "$cross_compiling" = yes; then
21737 ba_cv_have_typeof=no
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 main(){char *a = 0; a = (typeof a)a;}
21747 rm -f conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_link") 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21758 { (case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_try") 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ba_cv_have_typeof=yes
21769 echo "$as_me: program exited with status $ac_status" >&5
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 ( exit $ac_status )
21774 ba_cv_have_typeof=no
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21781 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21782 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21783 test $ba_cv_have_typeof = yes &&
21784 cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_TYPEOF 1
21789 ac_cpp='$CPP $CPPFLAGS'
21790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21795 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21797 if test "${ac_cv_c_const+set}" = set; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21810 /* FIXME: Include the comments suggested by Paul. */
21811 #ifndef __cplusplus
21812 /* Ultrix mips cc rejects this. */
21813 typedef int charset[2];
21815 /* SunOS 4.1.1 cc rejects this. */
21816 char const *const *pcpcc;
21818 /* NEC SVR4.0.2 mips cc rejects this. */
21819 struct point {int x, y;};
21820 static struct point const zero = {0,0};
21821 /* AIX XL C 1.02.0.0 rejects this.
21822 It does not let you subtract one const X* pointer from another in
21823 an arm of an if-expression whose if-part is not a constant
21825 const char *g = "string";
21826 pcpcc = &g + (g ? g-g : 0);
21827 /* HPUX 7.0 cc rejects these. */
21829 ppc = (char**) pcpcc;
21830 pcpcc = (char const *const *) ppc;
21831 { /* SCO 3.2v4 cc rejects this. */
21833 char const *s = 0 ? (char *) 0 : (char const *) 0;
21838 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21839 int x[] = {25, 17};
21840 const int *foo = &x[0];
21843 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21844 typedef const int *iptr;
21848 { /* AIX XL C 1.02.0.0 rejects this saying
21849 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21850 struct s { int j; const int *ap[3]; };
21851 struct s *b; b->j = 5;
21853 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21854 const int foo = 10;
21855 if (!foo) return 0;
21857 return !cs[0] && !zero.x;
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_compile") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && {
21878 test -z "$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 } && test -s conftest.$ac_objext; then
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21892 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21893 if test $ac_cv_c_const = no; then
21895 cat >>confdefs.h <<\_ACEOF
21903 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21904 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21906 # The order of these tests is important.
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 #include <sys/statvfs.h>
21914 #include <sys/fstyp.h>
21916 if { (ac_try="$ac_cpp conftest.$ac_ext"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } >/dev/null && {
21929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21932 cat >>confdefs.h <<\_ACEOF
21933 #define FSTYPE_STATVFS 1
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21943 rm -f conftest.err conftest.$ac_ext
21944 if test $fstype = no; then
21945 cat >conftest.$ac_ext <<_ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951 #include <sys/statfs.h>
21952 #include <sys/fstyp.h>
21954 if { (ac_try="$ac_cpp conftest.$ac_ext"
21955 case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21962 grep -v '^ *+' conftest.er1 >conftest.err
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } >/dev/null && {
21967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21970 cat >>confdefs.h <<\_ACEOF
21971 #define FSTYPE_USG_STATFS 1
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21981 rm -f conftest.err conftest.$ac_ext
21983 if test $fstype = no; then
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 #include <sys/statfs.h>
21991 #include <sys/vmount.h>
21993 if { (ac_try="$ac_cpp conftest.$ac_ext"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } >/dev/null && {
22006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22009 cat >>confdefs.h <<\_ACEOF
22010 #define FSTYPE_AIX_STATFS 1
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22020 rm -f conftest.err conftest.$ac_ext
22022 if test $fstype = no; then
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 #include <mntent.h>
22031 if { (ac_try="$ac_cpp conftest.$ac_ext"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } >/dev/null && {
22044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22045 test ! -s conftest.err
22047 cat >>confdefs.h <<\_ACEOF
22048 #define FSTYPE_MNTENT 1
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22058 rm -f conftest.err conftest.$ac_ext
22060 if test $fstype = no; then
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 #include <sys/mount.h>
22070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22071 $EGREP "f_type;" >/dev/null 2>&1; then
22072 cat >>confdefs.h <<\_ACEOF
22073 #define FSTYPE_STATFS 1
22080 if test $fstype = no; then
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <sys/mount.h>
22088 #include <sys/fs_types.h>
22090 if { (ac_try="$ac_cpp conftest.$ac_ext"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22098 grep -v '^ *+' conftest.er1 >conftest.err
22100 cat conftest.err >&5
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } >/dev/null && {
22103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22104 test ! -s conftest.err
22106 cat >>confdefs.h <<\_ACEOF
22107 #define FSTYPE_GETMNT 1
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22117 rm -f conftest.err conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $fstype" >&5
22120 echo "${ECHO_T}$fstype" >&6; }
22122 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22123 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22124 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22125 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22129 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22131 # Is the header compilable?
22132 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22133 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22141 #include <sys/statvfs.h>
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_compile") 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && {
22157 test -z "$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 } && test -s conftest.$ac_objext; then
22160 ac_header_compiler=yes
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_header_compiler=no
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22170 echo "${ECHO_T}$ac_header_compiler" >&6; }
22172 # Is the header present?
22173 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22174 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <sys/statvfs.h>
22183 if { (ac_try="$ac_cpp conftest.$ac_ext"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } >/dev/null && {
22196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22199 ac_header_preproc=yes
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22204 ac_header_preproc=no
22207 rm -f conftest.err conftest.$ac_ext
22208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22209 echo "${ECHO_T}$ac_header_preproc" >&6; }
22211 # So? What about this header?
22212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22214 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22216 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22217 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22218 ac_header_preproc=yes
22221 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22222 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22224 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22232 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22236 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22237 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22238 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22244 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22247 if test $ac_cv_header_sys_statvfs_h = yes; then
22249 cat >>confdefs.h <<\_ACEOF
22250 #define HAVE_SYS_STATVFS_H 1
22257 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22258 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22259 if test "${ac_cv_type_signal+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 cat >conftest.$ac_ext <<_ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 #include <sys/types.h>
22269 #include <signal.h>
22274 return *(signal (0, 0)) (0) == 1;
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_compile") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest.$ac_objext; then
22296 ac_cv_type_signal=int
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_cv_type_signal=void
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22307 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22309 cat >>confdefs.h <<_ACEOF
22310 #define RETSIGTYPE $ac_cv_type_signal
22315 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22316 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22317 if test "${bash_cv_signal_vintage+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 #include <signal.h>
22333 struct sigaction sa;
22334 sigemptyset(&ss); sigsuspend(&ss);
22335 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22336 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22342 rm -f conftest.$ac_objext conftest$ac_exeext
22343 if { (ac_try="$ac_link"
22344 case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_link") 2>conftest.er1
22351 grep -v '^ *+' conftest.er1 >conftest.err
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest$ac_exeext &&
22359 $as_test_x conftest$ac_exeext; then
22360 bash_cv_signal_vintage="posix"
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <signal.h>
22377 int mask = sigmask(SIGINT);
22378 sigsetmask(mask); sigblock(mask); sigpause(mask);
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_link") 2>conftest.er1
22393 grep -v '^ *+' conftest.er1 >conftest.err
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest$ac_exeext &&
22401 $as_test_x conftest$ac_exeext; then
22402 bash_cv_signal_vintage="4.2bsd"
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22415 #include <signal.h>
22416 RETSIGTYPE foo() { }
22421 int mask = sigmask(SIGINT);
22422 sigset(SIGINT, foo); sigrelse(SIGINT);
22423 sighold(SIGINT); sigpause(SIGINT);
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest$ac_exeext &&
22446 $as_test_x conftest$ac_exeext; then
22447 bash_cv_signal_vintage="svr3"
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 bash_cv_signal_vintage="v7"
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457 conftest$ac_exeext conftest.$ac_ext
22461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22462 conftest$ac_exeext conftest.$ac_ext
22466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22467 conftest$ac_exeext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22472 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22473 if test "$bash_cv_signal_vintage" = "posix"; then
22474 cat >>confdefs.h <<\_ACEOF
22475 #define HAVE_POSIX_SIGNALS 1
22478 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_BSD_SIGNALS 1
22483 elif test "$bash_cv_signal_vintage" = "svr3"; then
22484 cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_USG_SIGHOLD 1
22490 { echo "$as_me:$LINENO: checking for mode_t" >&5
22491 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22492 if test "${ac_cv_type_mode_t+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 typedef mode_t ac__type_new_;
22506 if ((ac__type_new_ *) 0)
22508 if (sizeof (ac__type_new_))
22514 rm -f conftest.$ac_objext
22515 if { (ac_try="$ac_compile"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_compile") 2>conftest.er1
22523 grep -v '^ *+' conftest.er1 >conftest.err
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest.$ac_objext; then
22531 ac_cv_type_mode_t=yes
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 ac_cv_type_mode_t=no
22539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22542 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22543 if test $ac_cv_type_mode_t = yes; then
22547 cat >>confdefs.h <<_ACEOF
22553 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22554 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22555 if test "${ac_cv_type_uid_t+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 cat >conftest.$ac_ext <<_ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 #include <sys/types.h>
22567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22568 $EGREP "uid_t" >/dev/null 2>&1; then
22569 ac_cv_type_uid_t=yes
22571 ac_cv_type_uid_t=no
22576 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22577 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22578 if test $ac_cv_type_uid_t = no; then
22580 cat >>confdefs.h <<\_ACEOF
22585 cat >>confdefs.h <<\_ACEOF
22591 { echo "$as_me:$LINENO: checking for size_t" >&5
22592 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22593 if test "${ac_cv_type_size_t+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 cat >conftest.$ac_ext <<_ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 $ac_includes_default
22603 typedef size_t ac__type_new_;
22607 if ((ac__type_new_ *) 0)
22609 if (sizeof (ac__type_new_))
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_compile") 2>conftest.er1
22624 grep -v '^ *+' conftest.er1 >conftest.err
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest.$ac_objext; then
22632 ac_cv_type_size_t=yes
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 ac_cv_type_size_t=no
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22643 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22644 if test $ac_cv_type_size_t = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define size_t unsigned int
22654 { echo "$as_me:$LINENO: checking for pid_t" >&5
22655 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22656 if test "${ac_cv_type_pid_t+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 typedef pid_t ac__type_new_;
22670 if ((ac__type_new_ *) 0)
22672 if (sizeof (ac__type_new_))
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_type_pid_t=yes
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_cv_type_pid_t=no
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22706 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22707 if test $ac_cv_type_pid_t = yes; then
22711 cat >>confdefs.h <<_ACEOF
22717 { echo "$as_me:$LINENO: checking for off_t" >&5
22718 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22719 if test "${ac_cv_type_off_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 $ac_includes_default
22729 typedef off_t ac__type_new_;
22733 if ((ac__type_new_ *) 0)
22735 if (sizeof (ac__type_new_))
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_compile") 2>conftest.er1
22750 grep -v '^ *+' conftest.er1 >conftest.err
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest.$ac_objext; then
22758 ac_cv_type_off_t=yes
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22763 ac_cv_type_off_t=no
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22769 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22770 if test $ac_cv_type_off_t = yes; then
22774 cat >>confdefs.h <<_ACEOF
22775 #define off_t long int
22780 { echo "$as_me:$LINENO: checking for ino_t" >&5
22781 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22782 if test "${ac_cv_type_ino_t+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 cat >conftest.$ac_ext <<_ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22791 $ac_includes_default
22792 typedef ino_t ac__type_new_;
22796 if ((ac__type_new_ *) 0)
22798 if (sizeof (ac__type_new_))
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 ac_cv_type_ino_t=yes
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_cv_type_ino_t=no
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22832 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22833 if test $ac_cv_type_ino_t = yes; then
22837 cat >>confdefs.h <<_ACEOF
22838 #define ino_t unsigned long
22843 { echo "$as_me:$LINENO: checking for dev_t" >&5
22844 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22845 if test "${ac_cv_type_dev_t+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 $ac_includes_default
22855 typedef dev_t ac__type_new_;
22859 if ((ac__type_new_ *) 0)
22861 if (sizeof (ac__type_new_))
22867 rm -f conftest.$ac_objext
22868 if { (ac_try="$ac_compile"
22869 case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_compile") 2>conftest.er1
22876 grep -v '^ *+' conftest.er1 >conftest.err
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && {
22881 test -z "$ac_c_werror_flag" ||
22882 test ! -s conftest.err
22883 } && test -s conftest.$ac_objext; then
22884 ac_cv_type_dev_t=yes
22886 echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22889 ac_cv_type_dev_t=no
22892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22895 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22896 if test $ac_cv_type_dev_t = yes; then
22900 cat >>confdefs.h <<_ACEOF
22901 #define dev_t unsigned long
22906 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22907 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22908 if test "${ac_cv_type_daddr_t+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22918 typedef daddr_t ac__type_new_;
22922 if ((ac__type_new_ *) 0)
22924 if (sizeof (ac__type_new_))
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_cv_type_daddr_t=yes
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_cv_type_daddr_t=no
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22957 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22958 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22959 if test $ac_cv_type_daddr_t = yes; then
22963 cat >>confdefs.h <<_ACEOF
22964 #define daddr_t long
22969 { echo "$as_me:$LINENO: checking for major_t" >&5
22970 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22971 if test "${ac_cv_type_major_t+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 $ac_includes_default
22981 typedef major_t ac__type_new_;
22985 if ((ac__type_new_ *) 0)
22987 if (sizeof (ac__type_new_))
22993 rm -f conftest.$ac_objext
22994 if { (ac_try="$ac_compile"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_compile") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest.$ac_objext; then
23010 ac_cv_type_major_t=yes
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_cv_type_major_t=no
23018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23021 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23022 if test $ac_cv_type_major_t = yes; then
23026 cat >>confdefs.h <<_ACEOF
23027 #define major_t int
23032 { echo "$as_me:$LINENO: checking for minor_t" >&5
23033 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23034 if test "${ac_cv_type_minor_t+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 cat >conftest.$ac_ext <<_ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 $ac_includes_default
23044 typedef minor_t ac__type_new_;
23048 if ((ac__type_new_ *) 0)
23050 if (sizeof (ac__type_new_))
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060 *) ac_try_echo=$ac_try;;
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23065 grep -v '^ *+' conftest.er1 >conftest.err
23067 cat conftest.err >&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_cv_type_minor_t=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_cv_type_minor_t=no
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23084 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23085 if test $ac_cv_type_minor_t = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define minor_t int
23095 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23096 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_ssize_t+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 $ac_includes_default
23107 typedef ssize_t ac__type_new_;
23111 if ((ac__type_new_ *) 0)
23113 if (sizeof (ac__type_new_))
23119 rm -f conftest.$ac_objext
23120 if { (ac_try="$ac_compile"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_compile") 2>conftest.er1
23128 grep -v '^ *+' conftest.er1 >conftest.err
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest.$ac_objext; then
23136 ac_cv_type_ssize_t=yes
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 ac_cv_type_ssize_t=no
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23148 if test $ac_cv_type_ssize_t = yes; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define ssize_t int
23158 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23159 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23160 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 $ac_includes_default
23173 static struct stat ac_aggr;
23174 if (ac_aggr.st_blocks)
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187 (eval "$ac_compile") 2>conftest.er1
23189 grep -v '^ *+' conftest.er1 >conftest.err
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } && {
23194 test -z "$ac_c_werror_flag" ||
23195 test ! -s conftest.err
23196 } && test -s conftest.$ac_objext; then
23197 ac_cv_member_struct_stat_st_blocks=yes
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23208 $ac_includes_default
23212 static struct stat ac_aggr;
23213 if (sizeof ac_aggr.st_blocks)
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_cv_member_struct_stat_st_blocks=yes
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ac_cv_member_struct_stat_st_blocks=no
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23250 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23251 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23253 cat >>confdefs.h <<_ACEOF
23254 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23258 cat >>confdefs.h <<\_ACEOF
23259 #define HAVE_ST_BLOCKS 1
23263 case " $LIBOBJS " in
23264 *" fileblocks.$ac_objext "* ) ;;
23265 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23272 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23273 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23274 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 $ac_includes_default
23287 static struct stat ac_aggr;
23288 if (ac_aggr.st_rdev)
23294 rm -f conftest.$ac_objext
23295 if { (ac_try="$ac_compile"
23296 case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_compile") 2>conftest.er1
23303 grep -v '^ *+' conftest.er1 >conftest.err
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } && {
23308 test -z "$ac_c_werror_flag" ||
23309 test ! -s conftest.err
23310 } && test -s conftest.$ac_objext; then
23311 ac_cv_member_struct_stat_st_rdev=yes
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 $ac_includes_default
23326 static struct stat ac_aggr;
23327 if (sizeof ac_aggr.st_rdev)
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_member_struct_stat_st_rdev=yes
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_cv_member_struct_stat_st_rdev=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23365 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_STRUCT_STAT_ST_RDEV 1
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_ST_RDEV 1
23379 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23380 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23381 if test "${ac_cv_struct_tm+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 cat >conftest.$ac_ext <<_ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 #include <sys/types.h>
23397 int *p = &tm.tm_sec;
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_compile") 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest.$ac_objext; then
23420 ac_cv_struct_tm=time.h
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 ac_cv_struct_tm=sys/time.h
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23431 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23432 if test $ac_cv_struct_tm = sys/time.h; then
23434 cat >>confdefs.h <<\_ACEOF
23435 #define TM_IN_SYS_TIME 1
23440 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23441 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23442 if test "${ac_cv_c_const+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 cat >conftest.$ac_ext <<_ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23455 /* FIXME: Include the comments suggested by Paul. */
23456 #ifndef __cplusplus
23457 /* Ultrix mips cc rejects this. */
23458 typedef int charset[2];
23460 /* SunOS 4.1.1 cc rejects this. */
23461 char const *const *pcpcc;
23463 /* NEC SVR4.0.2 mips cc rejects this. */
23464 struct point {int x, y;};
23465 static struct point const zero = {0,0};
23466 /* AIX XL C 1.02.0.0 rejects this.
23467 It does not let you subtract one const X* pointer from another in
23468 an arm of an if-expression whose if-part is not a constant
23470 const char *g = "string";
23471 pcpcc = &g + (g ? g-g : 0);
23472 /* HPUX 7.0 cc rejects these. */
23474 ppc = (char**) pcpcc;
23475 pcpcc = (char const *const *) ppc;
23476 { /* SCO 3.2v4 cc rejects this. */
23478 char const *s = 0 ? (char *) 0 : (char const *) 0;
23483 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23484 int x[] = {25, 17};
23485 const int *foo = &x[0];
23488 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23489 typedef const int *iptr;
23493 { /* AIX XL C 1.02.0.0 rejects this saying
23494 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23495 struct s { int j; const int *ap[3]; };
23496 struct s *b; b->j = 5;
23498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23499 const int foo = 10;
23500 if (!foo) return 0;
23502 return !cs[0] && !zero.x;
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23518 grep -v '^ *+' conftest.er1 >conftest.err
23520 cat conftest.err >&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23537 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23538 if test $ac_cv_c_const = no; then
23540 cat >>confdefs.h <<\_ACEOF
23548 { echo "$as_me:$LINENO: checking for char" >&5
23549 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23550 if test "${ac_cv_type_char+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 cat >conftest.$ac_ext <<_ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h. */
23559 $ac_includes_default
23560 typedef char ac__type_new_;
23564 if ((ac__type_new_ *) 0)
23566 if (sizeof (ac__type_new_))
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 ac_cv_type_char=yes
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23600 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23602 # The cast to long int works around a bug in the HP C Compiler
23603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23605 # This bug is HP SR number 8606223364.
23606 { echo "$as_me:$LINENO: checking size of char" >&5
23607 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23608 if test "${ac_cv_sizeof_char+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 if test "$cross_compiling" = yes; then
23612 # Depending upon the size, compute the lo and hi bounds.
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 $ac_includes_default
23620 typedef char ac__type_sizeof_;
23624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23640 grep -v '^ *+' conftest.er1 >conftest.err
23642 cat conftest.err >&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23650 cat >conftest.$ac_ext <<_ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h. */
23656 $ac_includes_default
23657 typedef char ac__type_sizeof_;
23661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23677 grep -v '^ *+' conftest.er1 >conftest.err
23679 cat conftest.err >&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 ac_hi=$ac_mid; break
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 ac_lo=`expr $ac_mid + 1`
23691 if test $ac_lo -le $ac_mid; then
23695 ac_mid=`expr 2 '*' $ac_mid + 1`
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 $ac_includes_default
23711 typedef char ac__type_sizeof_;
23715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 $ac_includes_default
23748 typedef char ac__type_sizeof_;
23752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23776 ac_lo=$ac_mid; break
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 ac_hi=`expr '(' $ac_mid ')' - 1`
23782 if test $ac_mid -le $ac_hi; then
23786 ac_mid=`expr 2 '*' $ac_mid`
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792 echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 # Binary search between lo and hi bounds.
23803 while test "x$ac_lo" != "x$ac_hi"; do
23804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 $ac_includes_default
23812 typedef char ac__type_sizeof_;
23816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_compile") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest.$ac_objext; then
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 ac_lo=`expr '(' $ac_mid ')' + 1`
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851 ?*) ac_cv_sizeof_char=$ac_lo;;
23852 '') if test "$ac_cv_type_char" = yes; then
23853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23854 See \`config.log' for more details." >&5
23855 echo "$as_me: error: cannot compute sizeof (char)
23856 See \`config.log' for more details." >&2;}
23857 { (exit 77); exit 77; }; }
23859 ac_cv_sizeof_char=0
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 $ac_includes_default
23870 typedef char ac__type_sizeof_;
23871 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23872 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23874 #include <stdlib.h>
23879 FILE *f = fopen ("conftest.val", "w");
23882 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23884 long int i = longval ();
23885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23887 fprintf (f, "%ld\n", i);
23891 unsigned long int i = ulongval ();
23892 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23894 fprintf (f, "%lu\n", i);
23896 return ferror (f) || fclose (f) != 0;
23902 rm -f conftest$ac_exeext
23903 if { (ac_try="$ac_link"
23904 case "(($ac_try" in
23905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_link") 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23913 { (case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918 (eval "$ac_try") 2>&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); }; }; then
23922 ac_cv_sizeof_char=`cat conftest.val`
23924 echo "$as_me: program exited with status $ac_status" >&5
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23928 ( exit $ac_status )
23929 if test "$ac_cv_type_char" = yes; then
23930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23931 See \`config.log' for more details." >&5
23932 echo "$as_me: error: cannot compute sizeof (char)
23933 See \`config.log' for more details." >&2;}
23934 { (exit 77); exit 77; }; }
23936 ac_cv_sizeof_char=0
23939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23943 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23944 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23948 cat >>confdefs.h <<_ACEOF
23949 #define SIZEOF_CHAR $ac_cv_sizeof_char
23953 { echo "$as_me:$LINENO: checking for short int" >&5
23954 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23955 if test "${ac_cv_type_short_int+set}" = set; then
23956 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 $ac_includes_default
23965 typedef short int ac__type_new_;
23969 if ((ac__type_new_ *) 0)
23971 if (sizeof (ac__type_new_))
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23986 grep -v '^ *+' conftest.er1 >conftest.err
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 ac_cv_type_short_int=yes
23996 echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23999 ac_cv_type_short_int=no
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24005 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24007 # The cast to long int works around a bug in the HP C Compiler
24008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24010 # This bug is HP SR number 8606223364.
24011 { echo "$as_me:$LINENO: checking size of short int" >&5
24012 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24013 if test "${ac_cv_sizeof_short_int+set}" = set; then
24014 echo $ECHO_N "(cached) $ECHO_C" >&6
24016 if test "$cross_compiling" = yes; then
24017 # Depending upon the size, compute the lo and hi bounds.
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 $ac_includes_default
24025 typedef short int ac__type_sizeof_;
24029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24045 grep -v '^ *+' conftest.er1 >conftest.err
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 $ac_includes_default
24062 typedef short int ac__type_sizeof_;
24066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080 (eval "$ac_compile") 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } && {
24087 test -z "$ac_c_werror_flag" ||
24088 test ! -s conftest.err
24089 } && test -s conftest.$ac_objext; then
24090 ac_hi=$ac_mid; break
24092 echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24095 ac_lo=`expr $ac_mid + 1`
24096 if test $ac_lo -le $ac_mid; then
24100 ac_mid=`expr 2 '*' $ac_mid + 1`
24103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106 echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24109 cat >conftest.$ac_ext <<_ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h. */
24115 $ac_includes_default
24116 typedef short int ac__type_sizeof_;
24120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24127 rm -f conftest.$ac_objext
24128 if { (ac_try="$ac_compile"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134 (eval "$ac_compile") 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && {
24141 test -z "$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 } && test -s conftest.$ac_objext; then
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 $ac_includes_default
24153 typedef short int ac__type_sizeof_;
24157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171 (eval "$ac_compile") 2>conftest.er1
24173 grep -v '^ *+' conftest.er1 >conftest.err
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } && {
24178 test -z "$ac_c_werror_flag" ||
24179 test ! -s conftest.err
24180 } && test -s conftest.$ac_objext; then
24181 ac_lo=$ac_mid; break
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ac_hi=`expr '(' $ac_mid ')' - 1`
24187 if test $ac_mid -le $ac_hi; then
24191 ac_mid=`expr 2 '*' $ac_mid`
24194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197 echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 # Binary search between lo and hi bounds.
24208 while test "x$ac_lo" != "x$ac_hi"; do
24209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24210 cat >conftest.$ac_ext <<_ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216 $ac_includes_default
24217 typedef short int ac__type_sizeof_;
24221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235 (eval "$ac_compile") 2>conftest.er1
24237 grep -v '^ *+' conftest.er1 >conftest.err
24239 cat conftest.err >&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && {
24242 test -z "$ac_c_werror_flag" ||
24243 test ! -s conftest.err
24244 } && test -s conftest.$ac_objext; then
24247 echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250 ac_lo=`expr '(' $ac_mid ')' + 1`
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24257 '') if test "$ac_cv_type_short_int" = yes; then
24258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24259 See \`config.log' for more details." >&5
24260 echo "$as_me: error: cannot compute sizeof (short int)
24261 See \`config.log' for more details." >&2;}
24262 { (exit 77); exit 77; }; }
24264 ac_cv_sizeof_short_int=0
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 typedef short int ac__type_sizeof_;
24276 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24277 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24279 #include <stdlib.h>
24284 FILE *f = fopen ("conftest.val", "w");
24287 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24289 long int i = longval ();
24290 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24292 fprintf (f, "%ld\n", i);
24296 unsigned long int i = ulongval ();
24297 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24299 fprintf (f, "%lu\n", i);
24301 return ferror (f) || fclose (f) != 0;
24307 rm -f conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_link") 2>&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24318 { (case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_try") 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_cv_sizeof_short_int=`cat conftest.val`
24329 echo "$as_me: program exited with status $ac_status" >&5
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ( exit $ac_status )
24334 if test "$ac_cv_type_short_int" = yes; then
24335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24336 See \`config.log' for more details." >&5
24337 echo "$as_me: error: cannot compute sizeof (short int)
24338 See \`config.log' for more details." >&2;}
24339 { (exit 77); exit 77; }; }
24341 ac_cv_sizeof_short_int=0
24344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24348 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24349 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24353 cat >>confdefs.h <<_ACEOF
24354 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24358 { echo "$as_me:$LINENO: checking for int" >&5
24359 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24360 if test "${ac_cv_type_int+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 cat >conftest.$ac_ext <<_ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369 $ac_includes_default
24370 typedef int ac__type_new_;
24374 if ((ac__type_new_ *) 0)
24376 if (sizeof (ac__type_new_))
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_compile") 2>conftest.er1
24391 grep -v '^ *+' conftest.er1 >conftest.err
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && {
24396 test -z "$ac_c_werror_flag" ||
24397 test ! -s conftest.err
24398 } && test -s conftest.$ac_objext; then
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24410 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24412 # The cast to long int works around a bug in the HP C Compiler
24413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24415 # This bug is HP SR number 8606223364.
24416 { echo "$as_me:$LINENO: checking size of int" >&5
24417 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24418 if test "${ac_cv_sizeof_int+set}" = set; then
24419 echo $ECHO_N "(cached) $ECHO_C" >&6
24421 if test "$cross_compiling" = yes; then
24422 # Depending upon the size, compute the lo and hi bounds.
24423 cat >conftest.$ac_ext <<_ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 $ac_includes_default
24430 typedef int ac__type_sizeof_;
24434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24466 $ac_includes_default
24467 typedef int ac__type_sizeof_;
24471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24478 rm -f conftest.$ac_objext
24479 if { (ac_try="$ac_compile"
24480 case "(($ac_try" in
24481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482 *) ac_try_echo=$ac_try;;
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_compile") 2>conftest.er1
24487 grep -v '^ *+' conftest.er1 >conftest.err
24489 cat conftest.err >&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && {
24492 test -z "$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 } && test -s conftest.$ac_objext; then
24495 ac_hi=$ac_mid; break
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 ac_lo=`expr $ac_mid + 1`
24501 if test $ac_lo -le $ac_mid; then
24505 ac_mid=`expr 2 '*' $ac_mid + 1`
24508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511 echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24514 cat >conftest.$ac_ext <<_ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h. */
24520 $ac_includes_default
24521 typedef int ac__type_sizeof_;
24525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24532 rm -f conftest.$ac_objext
24533 if { (ac_try="$ac_compile"
24534 case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539 (eval "$ac_compile") 2>conftest.er1
24541 grep -v '^ *+' conftest.er1 >conftest.err
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } && {
24546 test -z "$ac_c_werror_flag" ||
24547 test ! -s conftest.err
24548 } && test -s conftest.$ac_objext; then
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 $ac_includes_default
24558 typedef int ac__type_sizeof_;
24562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24586 ac_lo=$ac_mid; break
24588 echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ac_hi=`expr '(' $ac_mid ')' - 1`
24592 if test $ac_mid -le $ac_hi; then
24596 ac_mid=`expr 2 '*' $ac_mid`
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24602 echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612 # Binary search between lo and hi bounds.
24613 while test "x$ac_lo" != "x$ac_hi"; do
24614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24622 typedef int ac__type_sizeof_;
24626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24633 rm -f conftest.$ac_objext
24634 if { (ac_try="$ac_compile"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_compile") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest.$ac_objext; then
24652 echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ac_lo=`expr '(' $ac_mid ')' + 1`
24658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24661 ?*) ac_cv_sizeof_int=$ac_lo;;
24662 '') if test "$ac_cv_type_int" = yes; then
24663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24664 See \`config.log' for more details." >&5
24665 echo "$as_me: error: cannot compute sizeof (int)
24666 See \`config.log' for more details." >&2;}
24667 { (exit 77); exit 77; }; }
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 $ac_includes_default
24680 typedef int ac__type_sizeof_;
24681 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24682 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24684 #include <stdlib.h>
24689 FILE *f = fopen ("conftest.val", "w");
24692 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24694 long int i = longval ();
24695 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24697 fprintf (f, "%ld\n", i);
24701 unsigned long int i = ulongval ();
24702 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24704 fprintf (f, "%lu\n", i);
24706 return ferror (f) || fclose (f) != 0;
24712 rm -f conftest$ac_exeext
24713 if { (ac_try="$ac_link"
24714 case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_link") 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723 { (case "(($ac_try" in
24724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725 *) ac_try_echo=$ac_try;;
24727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24728 (eval "$ac_try") 2>&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; }; then
24732 ac_cv_sizeof_int=`cat conftest.val`
24734 echo "$as_me: program exited with status $ac_status" >&5
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ( exit $ac_status )
24739 if test "$ac_cv_type_int" = yes; then
24740 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24741 See \`config.log' for more details." >&5
24742 echo "$as_me: error: cannot compute sizeof (int)
24743 See \`config.log' for more details." >&2;}
24744 { (exit 77); exit 77; }; }
24749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24754 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24758 cat >>confdefs.h <<_ACEOF
24759 #define SIZEOF_INT $ac_cv_sizeof_int
24763 { echo "$as_me:$LINENO: checking for long int" >&5
24764 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24765 if test "${ac_cv_type_long_int+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 $ac_includes_default
24775 typedef long int ac__type_new_;
24779 if ((ac__type_new_ *) 0)
24781 if (sizeof (ac__type_new_))
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_compile") 2>conftest.er1
24796 grep -v '^ *+' conftest.er1 >conftest.err
24798 cat conftest.err >&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } && {
24801 test -z "$ac_c_werror_flag" ||
24802 test ! -s conftest.err
24803 } && test -s conftest.$ac_objext; then
24804 ac_cv_type_long_int=yes
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 ac_cv_type_long_int=no
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24815 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24817 # The cast to long int works around a bug in the HP C Compiler
24818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24820 # This bug is HP SR number 8606223364.
24821 { echo "$as_me:$LINENO: checking size of long int" >&5
24822 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24823 if test "${ac_cv_sizeof_long_int+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24826 if test "$cross_compiling" = yes; then
24827 # Depending upon the size, compute the lo and hi bounds.
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24834 $ac_includes_default
24835 typedef long int ac__type_sizeof_;
24839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_compile") 2>conftest.er1
24855 grep -v '^ *+' conftest.er1 >conftest.err
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest.$ac_objext; then
24865 cat >conftest.$ac_ext <<_ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h. */
24871 $ac_includes_default
24872 typedef long int ac__type_sizeof_;
24876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_compile") 2>conftest.er1
24892 grep -v '^ *+' conftest.er1 >conftest.err
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && {
24897 test -z "$ac_c_werror_flag" ||
24898 test ! -s conftest.err
24899 } && test -s conftest.$ac_objext; then
24900 ac_hi=$ac_mid; break
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ac_lo=`expr $ac_mid + 1`
24906 if test $ac_lo -le $ac_mid; then
24910 ac_mid=`expr 2 '*' $ac_mid + 1`
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24916 echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 $ac_includes_default
24926 typedef long int ac__type_sizeof_;
24930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.$ac_objext; then
24956 cat >conftest.$ac_ext <<_ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 $ac_includes_default
24963 typedef long int ac__type_sizeof_;
24967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24974 rm -f conftest.$ac_objext
24975 if { (ac_try="$ac_compile"
24976 case "(($ac_try" in
24977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978 *) ac_try_echo=$ac_try;;
24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981 (eval "$ac_compile") 2>conftest.er1
24983 grep -v '^ *+' conftest.er1 >conftest.err
24985 cat conftest.err >&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } && {
24988 test -z "$ac_c_werror_flag" ||
24989 test ! -s conftest.err
24990 } && test -s conftest.$ac_objext; then
24991 ac_lo=$ac_mid; break
24993 echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24996 ac_hi=`expr '(' $ac_mid ')' - 1`
24997 if test $ac_mid -le $ac_hi; then
25001 ac_mid=`expr 2 '*' $ac_mid`
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25007 echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017 # Binary search between lo and hi bounds.
25018 while test "x$ac_lo" != "x$ac_hi"; do
25019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25020 cat >conftest.$ac_ext <<_ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h. */
25026 $ac_includes_default
25027 typedef long int ac__type_sizeof_;
25031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045 (eval "$ac_compile") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest.$ac_objext; then
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 ac_lo=`expr '(' $ac_mid ')' + 1`
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25067 '') if test "$ac_cv_type_long_int" = yes; then
25068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25069 See \`config.log' for more details." >&5
25070 echo "$as_me: error: cannot compute sizeof (long int)
25071 See \`config.log' for more details." >&2;}
25072 { (exit 77); exit 77; }; }
25074 ac_cv_sizeof_long_int=0
25078 cat >conftest.$ac_ext <<_ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25084 $ac_includes_default
25085 typedef long int ac__type_sizeof_;
25086 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25087 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25089 #include <stdlib.h>
25094 FILE *f = fopen ("conftest.val", "w");
25097 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25099 long int i = longval ();
25100 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25102 fprintf (f, "%ld\n", i);
25106 unsigned long int i = ulongval ();
25107 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25109 fprintf (f, "%lu\n", i);
25111 return ferror (f) || fclose (f) != 0;
25117 rm -f conftest$ac_exeext
25118 if { (ac_try="$ac_link"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_link") 2>&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25128 { (case "(($ac_try" in
25129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25130 *) ac_try_echo=$ac_try;;
25132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25133 (eval "$ac_try") 2>&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; }; then
25137 ac_cv_sizeof_long_int=`cat conftest.val`
25139 echo "$as_me: program exited with status $ac_status" >&5
25140 echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25143 ( exit $ac_status )
25144 if test "$ac_cv_type_long_int" = yes; then
25145 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25146 See \`config.log' for more details." >&5
25147 echo "$as_me: error: cannot compute sizeof (long int)
25148 See \`config.log' for more details." >&2;}
25149 { (exit 77); exit 77; }; }
25151 ac_cv_sizeof_long_int=0
25154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25158 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25159 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25163 cat >>confdefs.h <<_ACEOF
25164 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25168 { echo "$as_me:$LINENO: checking for long long int" >&5
25169 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25170 if test "${ac_cv_type_long_long_int+set}" = set; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 $ac_includes_default
25180 typedef long long int ac__type_new_;
25184 if ((ac__type_new_ *) 0)
25186 if (sizeof (ac__type_new_))
25192 rm -f conftest.$ac_objext
25193 if { (ac_try="$ac_compile"
25194 case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_compile") 2>conftest.er1
25201 grep -v '^ *+' conftest.er1 >conftest.err
25203 cat conftest.err >&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest.$ac_objext; then
25209 ac_cv_type_long_long_int=yes
25211 echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25214 ac_cv_type_long_long_int=no
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25220 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25222 # The cast to long int works around a bug in the HP C Compiler
25223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25225 # This bug is HP SR number 8606223364.
25226 { echo "$as_me:$LINENO: checking size of long long int" >&5
25227 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25228 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 if test "$cross_compiling" = yes; then
25232 # Depending upon the size, compute the lo and hi bounds.
25233 cat >conftest.$ac_ext <<_ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25239 $ac_includes_default
25240 typedef long long int ac__type_sizeof_;
25244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_compile") 2>conftest.er1
25260 grep -v '^ *+' conftest.er1 >conftest.err
25262 cat conftest.err >&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest.$ac_objext; then
25270 cat >conftest.$ac_ext <<_ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 $ac_includes_default
25277 typedef long long int ac__type_sizeof_;
25281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25288 rm -f conftest.$ac_objext
25289 if { (ac_try="$ac_compile"
25290 case "(($ac_try" in
25291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292 *) ac_try_echo=$ac_try;;
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295 (eval "$ac_compile") 2>conftest.er1
25297 grep -v '^ *+' conftest.er1 >conftest.err
25299 cat conftest.err >&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && {
25302 test -z "$ac_c_werror_flag" ||
25303 test ! -s conftest.err
25304 } && test -s conftest.$ac_objext; then
25305 ac_hi=$ac_mid; break
25307 echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25310 ac_lo=`expr $ac_mid + 1`
25311 if test $ac_lo -le $ac_mid; then
25315 ac_mid=`expr 2 '*' $ac_mid + 1`
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 $ac_includes_default
25331 typedef long long int ac__type_sizeof_;
25335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25342 rm -f conftest.$ac_objext
25343 if { (ac_try="$ac_compile"
25344 case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_compile") 2>conftest.er1
25351 grep -v '^ *+' conftest.er1 >conftest.err
25353 cat conftest.err >&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); } && {
25356 test -z "$ac_c_werror_flag" ||
25357 test ! -s conftest.err
25358 } && test -s conftest.$ac_objext; then
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 $ac_includes_default
25368 typedef long long int ac__type_sizeof_;
25372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386 (eval "$ac_compile") 2>conftest.er1
25388 grep -v '^ *+' conftest.er1 >conftest.err
25390 cat conftest.err >&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && {
25393 test -z "$ac_c_werror_flag" ||
25394 test ! -s conftest.err
25395 } && test -s conftest.$ac_objext; then
25396 ac_lo=$ac_mid; break
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_hi=`expr '(' $ac_mid ')' - 1`
25402 if test $ac_mid -le $ac_hi; then
25406 ac_mid=`expr 2 '*' $ac_mid`
25409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422 # Binary search between lo and hi bounds.
25423 while test "x$ac_lo" != "x$ac_hi"; do
25424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 $ac_includes_default
25432 typedef long long int ac__type_sizeof_;
25436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && {
25457 test -z "$ac_c_werror_flag" ||
25458 test ! -s conftest.err
25459 } && test -s conftest.$ac_objext; then
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_lo=`expr '(' $ac_mid ')' + 1`
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25472 '') if test "$ac_cv_type_long_long_int" = yes; then
25473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25474 See \`config.log' for more details." >&5
25475 echo "$as_me: error: cannot compute sizeof (long long int)
25476 See \`config.log' for more details." >&2;}
25477 { (exit 77); exit 77; }; }
25479 ac_cv_sizeof_long_long_int=0
25483 cat >conftest.$ac_ext <<_ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h. */
25489 $ac_includes_default
25490 typedef long long int ac__type_sizeof_;
25491 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25492 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25494 #include <stdlib.h>
25499 FILE *f = fopen ("conftest.val", "w");
25502 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25504 long int i = longval ();
25505 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25507 fprintf (f, "%ld\n", i);
25511 unsigned long int i = ulongval ();
25512 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25514 fprintf (f, "%lu\n", i);
25516 return ferror (f) || fclose (f) != 0;
25522 rm -f conftest$ac_exeext
25523 if { (ac_try="$ac_link"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_link") 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533 { (case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_try") 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 ac_cv_sizeof_long_long_int=`cat conftest.val`
25544 echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ( exit $ac_status )
25549 if test "$ac_cv_type_long_long_int" = yes; then
25550 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25551 See \`config.log' for more details." >&5
25552 echo "$as_me: error: cannot compute sizeof (long long int)
25553 See \`config.log' for more details." >&2;}
25554 { (exit 77); exit 77; }; }
25556 ac_cv_sizeof_long_long_int=0
25559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25563 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25564 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25568 cat >>confdefs.h <<_ACEOF
25569 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25573 { echo "$as_me:$LINENO: checking for int *" >&5
25574 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25575 if test "${ac_cv_type_int_p+set}" = set; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25584 $ac_includes_default
25585 typedef int * ac__type_new_;
25589 if ((ac__type_new_ *) 0)
25591 if (sizeof (ac__type_new_))
25597 rm -f conftest.$ac_objext
25598 if { (ac_try="$ac_compile"
25599 case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604 (eval "$ac_compile") 2>conftest.er1
25606 grep -v '^ *+' conftest.er1 >conftest.err
25608 cat conftest.err >&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); } && {
25611 test -z "$ac_c_werror_flag" ||
25612 test ! -s conftest.err
25613 } && test -s conftest.$ac_objext; then
25614 ac_cv_type_int_p=yes
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25619 ac_cv_type_int_p=no
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25625 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25627 # The cast to long int works around a bug in the HP C Compiler
25628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25630 # This bug is HP SR number 8606223364.
25631 { echo "$as_me:$LINENO: checking size of int *" >&5
25632 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25633 if test "${ac_cv_sizeof_int_p+set}" = set; then
25634 echo $ECHO_N "(cached) $ECHO_C" >&6
25636 if test "$cross_compiling" = yes; then
25637 # Depending upon the size, compute the lo and hi bounds.
25638 cat >conftest.$ac_ext <<_ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h. */
25644 $ac_includes_default
25645 typedef int * ac__type_sizeof_;
25649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25656 rm -f conftest.$ac_objext
25657 if { (ac_try="$ac_compile"
25658 case "(($ac_try" in
25659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660 *) ac_try_echo=$ac_try;;
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663 (eval "$ac_compile") 2>conftest.er1
25665 grep -v '^ *+' conftest.er1 >conftest.err
25667 cat conftest.err >&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest.$ac_objext; then
25675 cat >conftest.$ac_ext <<_ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h. */
25681 $ac_includes_default
25682 typedef int * ac__type_sizeof_;
25686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700 (eval "$ac_compile") 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } && {
25707 test -z "$ac_c_werror_flag" ||
25708 test ! -s conftest.err
25709 } && test -s conftest.$ac_objext; then
25710 ac_hi=$ac_mid; break
25712 echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 ac_lo=`expr $ac_mid + 1`
25716 if test $ac_lo -le $ac_mid; then
25720 ac_mid=`expr 2 '*' $ac_mid + 1`
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 $ac_includes_default
25736 typedef int * ac__type_sizeof_;
25740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25747 rm -f conftest.$ac_objext
25748 if { (ac_try="$ac_compile"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_compile") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest.$ac_objext; then
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25772 $ac_includes_default
25773 typedef int * ac__type_sizeof_;
25777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25784 rm -f conftest.$ac_objext
25785 if { (ac_try="$ac_compile"
25786 case "(($ac_try" in
25787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25788 *) ac_try_echo=$ac_try;;
25790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25791 (eval "$ac_compile") 2>conftest.er1
25793 grep -v '^ *+' conftest.er1 >conftest.err
25795 cat conftest.err >&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); } && {
25798 test -z "$ac_c_werror_flag" ||
25799 test ! -s conftest.err
25800 } && test -s conftest.$ac_objext; then
25801 ac_lo=$ac_mid; break
25803 echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25806 ac_hi=`expr '(' $ac_mid ')' - 1`
25807 if test $ac_mid -le $ac_hi; then
25811 ac_mid=`expr 2 '*' $ac_mid`
25814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25827 # Binary search between lo and hi bounds.
25828 while test "x$ac_lo" != "x$ac_hi"; do
25829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 $ac_includes_default
25837 typedef int * ac__type_sizeof_;
25841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25848 rm -f conftest.$ac_objext
25849 if { (ac_try="$ac_compile"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_compile") 2>conftest.er1
25857 grep -v '^ *+' conftest.er1 >conftest.err
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest.$ac_objext; then
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_lo=`expr '(' $ac_mid ')' + 1`
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25876 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25877 '') if test "$ac_cv_type_int_p" = yes; then
25878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25879 See \`config.log' for more details." >&5
25880 echo "$as_me: error: cannot compute sizeof (int *)
25881 See \`config.log' for more details." >&2;}
25882 { (exit 77); exit 77; }; }
25884 ac_cv_sizeof_int_p=0
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25895 typedef int * ac__type_sizeof_;
25896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25899 #include <stdlib.h>
25904 FILE *f = fopen ("conftest.val", "w");
25907 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25909 long int i = longval ();
25910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25912 fprintf (f, "%ld\n", i);
25916 unsigned long int i = ulongval ();
25917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25919 fprintf (f, "%lu\n", i);
25921 return ferror (f) || fclose (f) != 0;
25927 rm -f conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_link") 2>&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25938 { (case "(($ac_try" in
25939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940 *) ac_try_echo=$ac_try;;
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943 (eval "$ac_try") 2>&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; }; then
25947 ac_cv_sizeof_int_p=`cat conftest.val`
25949 echo "$as_me: program exited with status $ac_status" >&5
25950 echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25953 ( exit $ac_status )
25954 if test "$ac_cv_type_int_p" = yes; then
25955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25956 See \`config.log' for more details." >&5
25957 echo "$as_me: error: cannot compute sizeof (int *)
25958 See \`config.log' for more details." >&2;}
25959 { (exit 77); exit 77; }; }
25961 ac_cv_sizeof_int_p=0
25964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25969 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25973 cat >>confdefs.h <<_ACEOF
25974 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25979 # Check for sys/types.h types
25980 { echo "$as_me:$LINENO: checking for u_int type" >&5
25981 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25982 if test "${ac_cv_have_u_int+set}" = set; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 #include <sys/types.h>
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005 *) ac_try_echo=$ac_try;;
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008 (eval "$ac_compile") 2>conftest.er1
26010 grep -v '^ *+' conftest.er1 >conftest.err
26012 cat conftest.err >&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } && {
26015 test -z "$ac_c_werror_flag" ||
26016 test ! -s conftest.err
26017 } && test -s conftest.$ac_objext; then
26018 ac_cv_have_u_int="yes"
26020 echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 ac_cv_have_u_int="no"
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26030 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26031 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26032 if test "x$ac_cv_have_u_int" = "xyes" ; then
26033 cat >>confdefs.h <<\_ACEOF
26034 #define HAVE_U_INT 1
26040 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26041 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26042 if test "${ac_cv_have_intmax_t+set}" = set; then
26043 echo $ECHO_N "(cached) $ECHO_C" >&6
26046 cat >conftest.$ac_ext <<_ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 #include <sys/types.h>
26061 rm -f conftest.$ac_objext
26062 if { (ac_try="$ac_compile"
26063 case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_compile") 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest.$ac_objext; then
26078 ac_cv_have_intmax_t="yes"
26080 echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26084 cat >conftest.$ac_ext <<_ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090 #include <stdint.h>
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103 *) ac_try_echo=$ac_try;;
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26108 grep -v '^ *+' conftest.er1 >conftest.err
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.$ac_objext; then
26116 ac_cv_have_intmax_t="yes"
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_cv_have_intmax_t="no"
26125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26135 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26136 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26137 cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_INTMAX_T 1
26145 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26146 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26147 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26151 cat >conftest.$ac_ext <<_ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 #include <sys/types.h>
26161 u_intmax_t a; a = 1;
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_compile") 2>conftest.er1
26175 grep -v '^ *+' conftest.er1 >conftest.err
26177 cat conftest.err >&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } && {
26180 test -z "$ac_c_werror_flag" ||
26181 test ! -s conftest.err
26182 } && test -s conftest.$ac_objext; then
26183 ac_cv_have_u_intmax_t="yes"
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26189 cat >conftest.$ac_ext <<_ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h. */
26195 #include <stdint.h>
26199 u_intmax_t a; a = 1;
26204 rm -f conftest.$ac_objext
26205 if { (ac_try="$ac_compile"
26206 case "(($ac_try" in
26207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208 *) ac_try_echo=$ac_try;;
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211 (eval "$ac_compile") 2>conftest.er1
26213 grep -v '^ *+' conftest.er1 >conftest.err
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } && {
26218 test -z "$ac_c_werror_flag" ||
26219 test ! -s conftest.err
26220 } && test -s conftest.$ac_objext; then
26221 ac_cv_have_u_intmax_t="yes"
26223 echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26226 ac_cv_have_u_intmax_t="no"
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26239 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26240 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26241 cat >>confdefs.h <<\_ACEOF
26242 #define HAVE_U_INTMAX_T 1
26249 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26250 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26251 if test "${ac_cv_have_intxx_t+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26255 cat >conftest.$ac_ext <<_ACEOF
26258 cat confdefs.h >>conftest.$ac_ext
26259 cat >>conftest.$ac_ext <<_ACEOF
26260 /* end confdefs.h. */
26261 #include <sys/types.h>
26265 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26270 rm -f conftest.$ac_objext
26271 if { (ac_try="$ac_compile"
26272 case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277 (eval "$ac_compile") 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } && {
26284 test -z "$ac_c_werror_flag" ||
26285 test ! -s conftest.err
26286 } && test -s conftest.$ac_objext; then
26287 ac_cv_have_intxx_t="yes"
26289 echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26292 ac_cv_have_intxx_t="no"
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26300 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26301 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26302 cat >>confdefs.h <<\_ACEOF
26303 #define HAVE_INTXX_T 1
26309 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26310 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26311 if test "${ac_cv_have_int64_t+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 #include <sys/types.h>
26330 rm -f conftest.$ac_objext
26331 if { (ac_try="$ac_compile"
26332 case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_compile") 2>conftest.er1
26339 grep -v '^ *+' conftest.er1 >conftest.err
26341 cat conftest.err >&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } && {
26344 test -z "$ac_c_werror_flag" ||
26345 test ! -s conftest.err
26346 } && test -s conftest.$ac_objext; then
26347 ac_cv_have_int64_t="yes"
26349 echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26352 ac_cv_have_int64_t="no"
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26360 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26361 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26362 cat >>confdefs.h <<\_ACEOF
26363 #define HAVE_INT64_T 1
26369 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26370 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26371 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26381 #include <sys/types.h>
26385 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26390 rm -f conftest.$ac_objext
26391 if { (ac_try="$ac_compile"
26392 case "(($ac_try" in
26393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394 *) ac_try_echo=$ac_try;;
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397 (eval "$ac_compile") 2>conftest.er1
26399 grep -v '^ *+' conftest.er1 >conftest.err
26401 cat conftest.err >&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } && {
26404 test -z "$ac_c_werror_flag" ||
26405 test ! -s conftest.err
26406 } && test -s conftest.$ac_objext; then
26407 ac_cv_have_u_intxx_t="yes"
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26412 ac_cv_have_u_intxx_t="no"
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26420 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26421 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26422 cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_U_INTXX_T 1
26429 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26430 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26431 if test "${ac_cv_have_u_int64_t+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 cat >conftest.$ac_ext <<_ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 #include <sys/types.h>
26445 u_int64_t a; a = 1;
26450 rm -f conftest.$ac_objext
26451 if { (ac_try="$ac_compile"
26452 case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_compile") 2>conftest.er1
26459 grep -v '^ *+' conftest.er1 >conftest.err
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest.$ac_objext; then
26467 ac_cv_have_u_int64_t="yes"
26469 echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 ac_cv_have_u_int64_t="no"
26476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26479 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26480 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26481 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26482 cat >>confdefs.h <<\_ACEOF
26483 #define HAVE_U_INT64_T 1
26489 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26490 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26492 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26493 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26500 #include <sys/bitypes.h>
26504 int8_t a; int16_t b; int32_t c;
26505 u_int8_t e; u_int16_t f; u_int32_t g;
26506 a = b = c = e = f = g = 1;
26511 rm -f conftest.$ac_objext
26512 if { (ac_try="$ac_compile"
26513 case "(($ac_try" in
26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515 *) ac_try_echo=$ac_try;;
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518 (eval "$ac_compile") 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } && {
26525 test -z "$ac_c_werror_flag" ||
26526 test ! -s conftest.err
26527 } && test -s conftest.$ac_objext; then
26528 cat >>confdefs.h <<\_ACEOF
26529 #define HAVE_U_INTXX_T 1
26532 cat >>confdefs.h <<\_ACEOF
26533 #define HAVE_INTXX_T 1
26536 cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_SYS_BITYPES_H 1
26540 { echo "$as_me:$LINENO: result: yes" >&5
26541 echo "${ECHO_T}yes" >&6; }
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 { echo "$as_me:$LINENO: result: no" >&5
26547 echo "${ECHO_T}no" >&6; }
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26554 if test -z "$have_u_intxx_t" ; then
26555 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26556 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26557 if test "${ac_cv_have_uintxx_t+set}" = set; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 #include <sys/types.h>
26571 uint8_t a; uint16_t b;
26572 uint32_t c; a = b = c = 1;
26577 rm -f conftest.$ac_objext
26578 if { (ac_try="$ac_compile"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26586 grep -v '^ *+' conftest.er1 >conftest.err
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_c_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 ac_cv_have_uintxx_t="yes"
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 ac_cv_have_uintxx_t="no"
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26606 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26607 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26608 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26609 cat >>confdefs.h <<\_ACEOF
26610 #define HAVE_UINTXX_T 1
26616 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26617 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26619 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26620 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 #include <sys/bitypes.h>
26631 int64_t a; u_int64_t b;
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644 (eval "$ac_compile") 2>conftest.er1
26646 grep -v '^ *+' conftest.er1 >conftest.err
26648 cat conftest.err >&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } && {
26651 test -z "$ac_c_werror_flag" ||
26652 test ! -s conftest.err
26653 } && test -s conftest.$ac_objext; then
26654 cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_U_INT64_T 1
26658 cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_INT64_T 1
26662 { echo "$as_me:$LINENO: result: yes" >&5
26663 echo "${ECHO_T}yes" >&6; }
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 { echo "$as_me:$LINENO: result: no" >&5
26669 echo "${ECHO_T}no" >&6; }
26673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676 if (test -z "$have_uintxx_t" && \
26677 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26679 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26680 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 #include <sys/bitypes.h>
26691 uint8_t a; uint16_t b;
26692 uint32_t c; a = b = c = 1;
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701 *) ac_try_echo=$ac_try;;
26703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26704 (eval "$ac_compile") 2>conftest.er1
26706 grep -v '^ *+' conftest.er1 >conftest.err
26708 cat conftest.err >&5
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } && {
26711 test -z "$ac_c_werror_flag" ||
26712 test ! -s conftest.err
26713 } && test -s conftest.$ac_objext; then
26714 cat >>confdefs.h <<\_ACEOF
26715 #define HAVE_UINTXX_T 1
26718 { echo "$as_me:$LINENO: result: yes" >&5
26719 echo "${ECHO_T}yes" >&6; }
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 { echo "$as_me:$LINENO: result: no" >&5
26725 echo "${ECHO_T}no" >&6; }
26729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h. */
26777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26779 #define $ac_func innocuous_$ac_func
26781 /* System header to define __stub macros and hopefully few prototypes,
26782 which can conflict with char $ac_func (); below.
26783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26784 <limits.h> exists even on freestanding compilers. */
26787 # include <limits.h>
26789 # include <assert.h>
26794 /* Override any GCC internal prototype to avoid an error.
26795 Use char because int might match the return type of a GCC
26796 builtin and then its argument prototype would still apply. */
26801 /* The GNU C library defines this for functions which it implements
26802 to always fail with ENOSYS. Some functions are actually named
26803 something starting with __ and the normal name is an alias. */
26804 #if defined __stub_$ac_func || defined __stub___$ac_func
26811 return $ac_func ();
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest$ac_exeext &&
26833 $as_test_x conftest$ac_exeext; then
26834 eval "$as_ac_var=yes"
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 eval "$as_ac_var=no"
26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26843 conftest$ac_exeext conftest.$ac_ext
26845 ac_res=`eval echo '${'$as_ac_var'}'`
26846 { echo "$as_me:$LINENO: result: $ac_res" >&5
26847 echo "${ECHO_T}$ac_res" >&6; }
26848 if test `eval echo '${'$as_ac_var'}'` = yes; then
26849 cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26854 echo 'configure: cannot find needed function.'; exit 1
26861 for ac_func in fchdir
26863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26869 cat >conftest.$ac_ext <<_ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h. */
26875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26877 #define $ac_func innocuous_$ac_func
26879 /* System header to define __stub macros and hopefully few prototypes,
26880 which can conflict with char $ac_func (); below.
26881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26882 <limits.h> exists even on freestanding compilers. */
26885 # include <limits.h>
26887 # include <assert.h>
26892 /* Override any GCC internal prototype to avoid an error.
26893 Use char because int might match the return type of a GCC
26894 builtin and then its argument prototype would still apply. */
26899 /* The GNU C library defines this for functions which it implements
26900 to always fail with ENOSYS. Some functions are actually named
26901 something starting with __ and the normal name is an alias. */
26902 #if defined __stub_$ac_func || defined __stub___$ac_func
26909 return $ac_func ();
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921 (eval "$ac_link") 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && {
26928 test -z "$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26930 } && test -s conftest$ac_exeext &&
26931 $as_test_x conftest$ac_exeext; then
26932 eval "$as_ac_var=yes"
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 eval "$as_ac_var=no"
26940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26941 conftest$ac_exeext conftest.$ac_ext
26943 ac_res=`eval echo '${'$as_ac_var'}'`
26944 { echo "$as_me:$LINENO: result: $ac_res" >&5
26945 echo "${ECHO_T}$ac_res" >&6; }
26946 if test `eval echo '${'$as_ac_var'}'` = yes; then
26947 cat >>confdefs.h <<_ACEOF
26948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26950 cat >>confdefs.h <<\_ACEOF
26951 #define HAVE_FCHDIR 1
26958 for ac_func in strtoll
26960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26974 #define $ac_func innocuous_$ac_func
26976 /* System header to define __stub macros and hopefully few prototypes,
26977 which can conflict with char $ac_func (); below.
26978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26979 <limits.h> exists even on freestanding compilers. */
26982 # include <limits.h>
26984 # include <assert.h>
26989 /* Override any GCC internal prototype to avoid an error.
26990 Use char because int might match the return type of a GCC
26991 builtin and then its argument prototype would still apply. */
26996 /* The GNU C library defines this for functions which it implements
26997 to always fail with ENOSYS. Some functions are actually named
26998 something starting with __ and the normal name is an alias. */
26999 #if defined __stub_$ac_func || defined __stub___$ac_func
27006 return $ac_func ();
27011 rm -f conftest.$ac_objext conftest$ac_exeext
27012 if { (ac_try="$ac_link"
27013 case "(($ac_try" in
27014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015 *) ac_try_echo=$ac_try;;
27017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27018 (eval "$ac_link") 2>conftest.er1
27020 grep -v '^ *+' conftest.er1 >conftest.err
27022 cat conftest.err >&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } && {
27025 test -z "$ac_c_werror_flag" ||
27026 test ! -s conftest.err
27027 } && test -s conftest$ac_exeext &&
27028 $as_test_x conftest$ac_exeext; then
27029 eval "$as_ac_var=yes"
27031 echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27034 eval "$as_ac_var=no"
27037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27038 conftest$ac_exeext conftest.$ac_ext
27040 ac_res=`eval echo '${'$as_ac_var'}'`
27041 { echo "$as_me:$LINENO: result: $ac_res" >&5
27042 echo "${ECHO_T}$ac_res" >&6; }
27043 if test `eval echo '${'$as_ac_var'}'` = yes; then
27044 cat >>confdefs.h <<_ACEOF
27045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27047 cat >>confdefs.h <<\_ACEOF
27048 #define HAVE_STRTOLL 1
27055 for ac_func in posix_fadvise
27057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27071 #define $ac_func innocuous_$ac_func
27073 /* System header to define __stub macros and hopefully few prototypes,
27074 which can conflict with char $ac_func (); below.
27075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27076 <limits.h> exists even on freestanding compilers. */
27079 # include <limits.h>
27081 # include <assert.h>
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27093 /* The GNU C library defines this for functions which it implements
27094 to always fail with ENOSYS. Some functions are actually named
27095 something starting with __ and the normal name is an alias. */
27096 #if defined __stub_$ac_func || defined __stub___$ac_func
27103 return $ac_func ();
27108 rm -f conftest.$ac_objext conftest$ac_exeext
27109 if { (ac_try="$ac_link"
27110 case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115 (eval "$ac_link") 2>conftest.er1
27117 grep -v '^ *+' conftest.er1 >conftest.err
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } && {
27122 test -z "$ac_c_werror_flag" ||
27123 test ! -s conftest.err
27124 } && test -s conftest$ac_exeext &&
27125 $as_test_x conftest$ac_exeext; then
27126 eval "$as_ac_var=yes"
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27131 eval "$as_ac_var=no"
27134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27135 conftest$ac_exeext conftest.$ac_ext
27137 ac_res=`eval echo '${'$as_ac_var'}'`
27138 { echo "$as_me:$LINENO: result: $ac_res" >&5
27139 echo "${ECHO_T}$ac_res" >&6; }
27140 if test `eval echo '${'$as_ac_var'}'` = yes; then
27141 cat >>confdefs.h <<_ACEOF
27142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27149 for ac_func in fdatasync
27151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 cat >conftest.$ac_ext <<_ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h. */
27163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27165 #define $ac_func innocuous_$ac_func
27167 /* System header to define __stub macros and hopefully few prototypes,
27168 which can conflict with char $ac_func (); below.
27169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27170 <limits.h> exists even on freestanding compilers. */
27173 # include <limits.h>
27175 # include <assert.h>
27180 /* Override any GCC internal prototype to avoid an error.
27181 Use char because int might match the return type of a GCC
27182 builtin and then its argument prototype would still apply. */
27187 /* The GNU C library defines this for functions which it implements
27188 to always fail with ENOSYS. Some functions are actually named
27189 something starting with __ and the normal name is an alias. */
27190 #if defined __stub_$ac_func || defined __stub___$ac_func
27197 return $ac_func ();
27202 rm -f conftest.$ac_objext conftest$ac_exeext
27203 if { (ac_try="$ac_link"
27204 case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_link") 2>conftest.er1
27211 grep -v '^ *+' conftest.er1 >conftest.err
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } && {
27216 test -z "$ac_c_werror_flag" ||
27217 test ! -s conftest.err
27218 } && test -s conftest$ac_exeext &&
27219 $as_test_x conftest$ac_exeext; then
27220 eval "$as_ac_var=yes"
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 eval "$as_ac_var=no"
27228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27229 conftest$ac_exeext conftest.$ac_ext
27231 ac_res=`eval echo '${'$as_ac_var'}'`
27232 { echo "$as_me:$LINENO: result: $ac_res" >&5
27233 echo "${ECHO_T}$ac_res" >&6; }
27234 if test `eval echo '${'$as_ac_var'}'` = yes; then
27235 cat >>confdefs.h <<_ACEOF
27236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27244 for ac_func in chflags
27246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27252 cat >conftest.$ac_ext <<_ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h. */
27258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27260 #define $ac_func innocuous_$ac_func
27262 /* System header to define __stub macros and hopefully few prototypes,
27263 which can conflict with char $ac_func (); below.
27264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27265 <limits.h> exists even on freestanding compilers. */
27268 # include <limits.h>
27270 # include <assert.h>
27275 /* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply. */
27282 /* The GNU C library defines this for functions which it implements
27283 to always fail with ENOSYS. Some functions are actually named
27284 something starting with __ and the normal name is an alias. */
27285 #if defined __stub_$ac_func || defined __stub___$ac_func
27292 return $ac_func ();
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (ac_try="$ac_link"
27299 case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_link") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest$ac_exeext &&
27314 $as_test_x conftest$ac_exeext; then
27315 eval "$as_ac_var=yes"
27317 echo "$as_me: failed program was:" >&5
27318 sed 's/^/| /' conftest.$ac_ext >&5
27320 eval "$as_ac_var=no"
27323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27324 conftest$ac_exeext conftest.$ac_ext
27326 ac_res=`eval echo '${'$as_ac_var'}'`
27327 { echo "$as_me:$LINENO: result: $ac_res" >&5
27328 echo "${ECHO_T}$ac_res" >&6; }
27329 if test `eval echo '${'$as_ac_var'}'` = yes; then
27330 cat >>confdefs.h <<_ACEOF
27331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27342 for ac_func in snprintf vsnprintf gethostid fseeko
27344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 cat >conftest.$ac_ext <<_ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h. */
27356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27358 #define $ac_func innocuous_$ac_func
27360 /* System header to define __stub macros and hopefully few prototypes,
27361 which can conflict with char $ac_func (); below.
27362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27363 <limits.h> exists even on freestanding compilers. */
27366 # include <limits.h>
27368 # include <assert.h>
27373 /* Override any GCC internal prototype to avoid an error.
27374 Use char because int might match the return type of a GCC
27375 builtin and then its argument prototype would still apply. */
27380 /* The GNU C library defines this for functions which it implements
27381 to always fail with ENOSYS. Some functions are actually named
27382 something starting with __ and the normal name is an alias. */
27383 #if defined __stub_$ac_func || defined __stub___$ac_func
27390 return $ac_func ();
27395 rm -f conftest.$ac_objext conftest$ac_exeext
27396 if { (ac_try="$ac_link"
27397 case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_link") 2>conftest.er1
27404 grep -v '^ *+' conftest.er1 >conftest.err
27406 cat conftest.err >&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); } && {
27409 test -z "$ac_c_werror_flag" ||
27410 test ! -s conftest.err
27411 } && test -s conftest$ac_exeext &&
27412 $as_test_x conftest$ac_exeext; then
27413 eval "$as_ac_var=yes"
27415 echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 eval "$as_ac_var=no"
27421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27422 conftest$ac_exeext conftest.$ac_ext
27424 ac_res=`eval echo '${'$as_ac_var'}'`
27425 { echo "$as_me:$LINENO: result: $ac_res" >&5
27426 echo "${ECHO_T}$ac_res" >&6; }
27427 if test `eval echo '${'$as_ac_var'}'` = yes; then
27428 cat >>confdefs.h <<_ACEOF
27429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27436 { echo "$as_me:$LINENO: checking for va_copy" >&5
27437 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27438 if test "${ba_cv_va_copy+set}" = set; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
27441 cat >conftest.$ac_ext <<_ACEOF
27444 cat confdefs.h >>conftest.$ac_ext
27445 cat >>conftest.$ac_ext <<_ACEOF
27446 /* end confdefs.h. */
27448 #include <stdarg.h>
27449 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27450 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27455 call_use_va_copy(1,2,3)
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_link") 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } && {
27474 test -z "$ac_c_werror_flag" ||
27475 test ! -s conftest.err
27476 } && test -s conftest$ac_exeext &&
27477 $as_test_x conftest$ac_exeext; then
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27487 conftest$ac_exeext conftest.$ac_ext
27489 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27490 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27491 test $ba_cv_va_copy = yes &&
27492 cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_VA_COPY 1
27502 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27508 echo $ECHO_N "(cached) $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h. */
27516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27518 #define $ac_func innocuous_$ac_func
27520 /* System header to define __stub macros and hopefully few prototypes,
27521 which can conflict with char $ac_func (); below.
27522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27523 <limits.h> exists even on freestanding compilers. */
27526 # include <limits.h>
27528 # include <assert.h>
27533 /* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27540 /* The GNU C library defines this for functions which it implements
27541 to always fail with ENOSYS. Some functions are actually named
27542 something starting with __ and the normal name is an alias. */
27543 #if defined __stub_$ac_func || defined __stub___$ac_func
27550 return $ac_func ();
27555 rm -f conftest.$ac_objext conftest$ac_exeext
27556 if { (ac_try="$ac_link"
27557 case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_link") 2>conftest.er1
27564 grep -v '^ *+' conftest.er1 >conftest.err
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } && {
27569 test -z "$ac_c_werror_flag" ||
27570 test ! -s conftest.err
27571 } && test -s conftest$ac_exeext &&
27572 $as_test_x conftest$ac_exeext; then
27573 eval "$as_ac_var=yes"
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 eval "$as_ac_var=no"
27581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27582 conftest$ac_exeext conftest.$ac_ext
27584 ac_res=`eval echo '${'$as_ac_var'}'`
27585 { echo "$as_me:$LINENO: result: $ac_res" >&5
27586 echo "${ECHO_T}$ac_res" >&6; }
27587 if test `eval echo '${'$as_ac_var'}'` = yes; then
27588 cat >>confdefs.h <<_ACEOF
27589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27596 # If resolver functions are not in libc check for -lnsl or -lresolv.
27597 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27598 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27599 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 cat >conftest.$ac_ext <<_ACEOF
27605 cat confdefs.h >>conftest.$ac_ext
27606 cat >>conftest.$ac_ext <<_ACEOF
27607 /* end confdefs.h. */
27608 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27610 #define gethostbyname_r innocuous_gethostbyname_r
27612 /* System header to define __stub macros and hopefully few prototypes,
27613 which can conflict with char gethostbyname_r (); below.
27614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27615 <limits.h> exists even on freestanding compilers. */
27618 # include <limits.h>
27620 # include <assert.h>
27623 #undef gethostbyname_r
27625 /* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27631 char gethostbyname_r ();
27632 /* The GNU C library defines this for functions which it implements
27633 to always fail with ENOSYS. Some functions are actually named
27634 something starting with __ and the normal name is an alias. */
27635 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27642 return gethostbyname_r ();
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && {
27661 test -z "$ac_c_werror_flag" ||
27662 test ! -s conftest.err
27663 } && test -s conftest$ac_exeext &&
27664 $as_test_x conftest$ac_exeext; then
27665 ac_cv_func_gethostbyname_r=yes
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 ac_cv_func_gethostbyname_r=no
27673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27674 conftest$ac_exeext conftest.$ac_ext
27676 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27677 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27678 if test $ac_cv_func_gethostbyname_r = yes; then
27679 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27680 echo "${ECHO_T}using libc's resolver" >&6; }
27683 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27684 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27685 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
27688 ac_check_lib_save_LIBS=$LIBS
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 /* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
27703 char gethostbyname_r ();
27707 return gethostbyname_r ();
27712 rm -f conftest.$ac_objext conftest$ac_exeext
27713 if { (ac_try="$ac_link"
27714 case "(($ac_try" in
27715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_link") 2>conftest.er1
27721 grep -v '^ *+' conftest.er1 >conftest.err
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } && {
27726 test -z "$ac_c_werror_flag" ||
27727 test ! -s conftest.err
27728 } && test -s conftest$ac_exeext &&
27729 $as_test_x conftest$ac_exeext; then
27730 ac_cv_lib_nsl_gethostbyname_r=yes
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27735 ac_cv_lib_nsl_gethostbyname_r=no
27738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27739 conftest$ac_exeext conftest.$ac_ext
27740 LIBS=$ac_check_lib_save_LIBS
27742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27743 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27744 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_LIBNSL 1
27754 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27755 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-lresolv $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h. */
27768 /* Override any GCC internal prototype to avoid an error.
27769 Use char because int might match the return type of a GCC
27770 builtin and then its argument prototype would still apply. */
27774 char gethostbyname_r ();
27778 return gethostbyname_r ();
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (ac_try="$ac_link"
27785 case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_link") 2>conftest.er1
27792 grep -v '^ *+' conftest.er1 >conftest.err
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } && {
27797 test -z "$ac_c_werror_flag" ||
27798 test ! -s conftest.err
27799 } && test -s conftest$ac_exeext &&
27800 $as_test_x conftest$ac_exeext; then
27801 ac_cv_lib_resolv_gethostbyname_r=yes
27803 echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27806 ac_cv_lib_resolv_gethostbyname_r=no
27809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27810 conftest$ac_exeext conftest.$ac_ext
27811 LIBS=$ac_check_lib_save_LIBS
27813 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27814 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27815 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27816 cat >>confdefs.h <<_ACEOF
27817 #define HAVE_LIBRESOLV 1
27820 LIBS="-lresolv $LIBS"
27830 for ac_func in inet_pton
27832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 cat >conftest.$ac_ext <<_ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27846 #define $ac_func innocuous_$ac_func
27848 /* System header to define __stub macros and hopefully few prototypes,
27849 which can conflict with char $ac_func (); below.
27850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27851 <limits.h> exists even on freestanding compilers. */
27854 # include <limits.h>
27856 # include <assert.h>
27861 /* Override any GCC internal prototype to avoid an error.
27862 Use char because int might match the return type of a GCC
27863 builtin and then its argument prototype would still apply. */
27868 /* The GNU C library defines this for functions which it implements
27869 to always fail with ENOSYS. Some functions are actually named
27870 something starting with __ and the normal name is an alias. */
27871 #if defined __stub_$ac_func || defined __stub___$ac_func
27878 return $ac_func ();
27883 rm -f conftest.$ac_objext conftest$ac_exeext
27884 if { (ac_try="$ac_link"
27885 case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_link") 2>conftest.er1
27892 grep -v '^ *+' conftest.er1 >conftest.err
27894 cat conftest.err >&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } && {
27897 test -z "$ac_c_werror_flag" ||
27898 test ! -s conftest.err
27899 } && test -s conftest$ac_exeext &&
27900 $as_test_x conftest$ac_exeext; then
27901 eval "$as_ac_var=yes"
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27906 eval "$as_ac_var=no"
27909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27910 conftest$ac_exeext conftest.$ac_ext
27912 ac_res=`eval echo '${'$as_ac_var'}'`
27913 { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27915 if test `eval echo '${'$as_ac_var'}'` = yes; then
27916 cat >>confdefs.h <<_ACEOF
27917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27919 cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_INET_PTON 1
27927 for ac_func in inet_ntop
27929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27935 cat >conftest.$ac_ext <<_ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27943 #define $ac_func innocuous_$ac_func
27945 /* System header to define __stub macros and hopefully few prototypes,
27946 which can conflict with char $ac_func (); below.
27947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27948 <limits.h> exists even on freestanding compilers. */
27951 # include <limits.h>
27953 # include <assert.h>
27958 /* Override any GCC internal prototype to avoid an error.
27959 Use char because int might match the return type of a GCC
27960 builtin and then its argument prototype would still apply. */
27965 /* The GNU C library defines this for functions which it implements
27966 to always fail with ENOSYS. Some functions are actually named
27967 something starting with __ and the normal name is an alias. */
27968 #if defined __stub_$ac_func || defined __stub___$ac_func
27975 return $ac_func ();
27980 rm -f conftest.$ac_objext conftest$ac_exeext
27981 if { (ac_try="$ac_link"
27982 case "(($ac_try" in
27983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984 *) ac_try_echo=$ac_try;;
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987 (eval "$ac_link") 2>conftest.er1
27989 grep -v '^ *+' conftest.er1 >conftest.err
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } && {
27994 test -z "$ac_c_werror_flag" ||
27995 test ! -s conftest.err
27996 } && test -s conftest$ac_exeext &&
27997 $as_test_x conftest$ac_exeext; then
27998 eval "$as_ac_var=yes"
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28003 eval "$as_ac_var=no"
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007 conftest$ac_exeext conftest.$ac_ext
28009 ac_res=`eval echo '${'$as_ac_var'}'`
28010 { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28016 cat >>confdefs.h <<\_ACEOF
28017 #define HAVE_INET_NTOP 1
28024 for ac_func in gethostbyname2
28026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28030 echo $ECHO_N "(cached) $ECHO_C" >&6
28032 cat >conftest.$ac_ext <<_ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28040 #define $ac_func innocuous_$ac_func
28042 /* System header to define __stub macros and hopefully few prototypes,
28043 which can conflict with char $ac_func (); below.
28044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28045 <limits.h> exists even on freestanding compilers. */
28048 # include <limits.h>
28050 # include <assert.h>
28055 /* Override any GCC internal prototype to avoid an error.
28056 Use char because int might match the return type of a GCC
28057 builtin and then its argument prototype would still apply. */
28062 /* The GNU C library defines this for functions which it implements
28063 to always fail with ENOSYS. Some functions are actually named
28064 something starting with __ and the normal name is an alias. */
28065 #if defined __stub_$ac_func || defined __stub___$ac_func
28072 return $ac_func ();
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (ac_try="$ac_link"
28079 case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_link") 2>conftest.er1
28086 grep -v '^ *+' conftest.er1 >conftest.err
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } && {
28091 test -z "$ac_c_werror_flag" ||
28092 test ! -s conftest.err
28093 } && test -s conftest$ac_exeext &&
28094 $as_test_x conftest$ac_exeext; then
28095 eval "$as_ac_var=yes"
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28100 eval "$as_ac_var=no"
28103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28104 conftest$ac_exeext conftest.$ac_ext
28106 ac_res=`eval echo '${'$as_ac_var'}'`
28107 { echo "$as_me:$LINENO: result: $ac_res" >&5
28108 echo "${ECHO_T}$ac_res" >&6; }
28109 if test `eval echo '${'$as_ac_var'}'` = yes; then
28110 cat >>confdefs.h <<_ACEOF
28111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28113 cat >>confdefs.h <<\_ACEOF
28114 #define HAVE_GETHOSTBYNAME2 1
28121 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28122 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28123 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28132 #include <sys/socket.h>
28136 struct sockaddr s; s.sa_len;
28141 rm -f conftest.$ac_objext
28142 if { (ac_try="$ac_compile"
28143 case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_compile") 2>conftest.er1
28150 grep -v '^ *+' conftest.er1 >conftest.err
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } && {
28155 test -z "$ac_c_werror_flag" ||
28156 test ! -s conftest.err
28157 } && test -s conftest.$ac_objext; then
28158 ac_cv_struct_sockaddr_sa_len=yes
28160 echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28163 ac_cv_struct_sockaddr_sa_len=no
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28168 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28169 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28171 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28173 cat >>confdefs.h <<\_ACEOF
28174 #define HAVE_SA_LEN 1
28183 for ac_func in strftime
28185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
28191 cat >conftest.$ac_ext <<_ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h. */
28197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28199 #define $ac_func innocuous_$ac_func
28201 /* System header to define __stub macros and hopefully few prototypes,
28202 which can conflict with char $ac_func (); below.
28203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28204 <limits.h> exists even on freestanding compilers. */
28207 # include <limits.h>
28209 # include <assert.h>
28214 /* Override any GCC internal prototype to avoid an error.
28215 Use char because int might match the return type of a GCC
28216 builtin and then its argument prototype would still apply. */
28221 /* The GNU C library defines this for functions which it implements
28222 to always fail with ENOSYS. Some functions are actually named
28223 something starting with __ and the normal name is an alias. */
28224 #if defined __stub_$ac_func || defined __stub___$ac_func
28231 return $ac_func ();
28236 rm -f conftest.$ac_objext conftest$ac_exeext
28237 if { (ac_try="$ac_link"
28238 case "(($ac_try" in
28239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240 *) ac_try_echo=$ac_try;;
28242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243 (eval "$ac_link") 2>conftest.er1
28245 grep -v '^ *+' conftest.er1 >conftest.err
28247 cat conftest.err >&5
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); } && {
28250 test -z "$ac_c_werror_flag" ||
28251 test ! -s conftest.err
28252 } && test -s conftest$ac_exeext &&
28253 $as_test_x conftest$ac_exeext; then
28254 eval "$as_ac_var=yes"
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28259 eval "$as_ac_var=no"
28262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28263 conftest$ac_exeext conftest.$ac_ext
28265 ac_res=`eval echo '${'$as_ac_var'}'`
28266 { echo "$as_me:$LINENO: result: $ac_res" >&5
28267 echo "${ECHO_T}$ac_res" >&6; }
28268 if test `eval echo '${'$as_ac_var'}'` = yes; then
28269 cat >>confdefs.h <<_ACEOF
28270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28274 # strftime is in -lintl on SCO UNIX.
28275 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28276 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28277 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28280 ac_check_lib_save_LIBS=$LIBS
28281 LIBS="-lintl $LIBS"
28282 cat >conftest.$ac_ext <<_ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h. */
28289 /* Override any GCC internal prototype to avoid an error.
28290 Use char because int might match the return type of a GCC
28291 builtin and then its argument prototype would still apply. */
28299 return strftime ();
28304 rm -f conftest.$ac_objext conftest$ac_exeext
28305 if { (ac_try="$ac_link"
28306 case "(($ac_try" in
28307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28308 *) ac_try_echo=$ac_try;;
28310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28311 (eval "$ac_link") 2>conftest.er1
28313 grep -v '^ *+' conftest.er1 >conftest.err
28315 cat conftest.err >&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } && {
28318 test -z "$ac_c_werror_flag" ||
28319 test ! -s conftest.err
28320 } && test -s conftest$ac_exeext &&
28321 $as_test_x conftest$ac_exeext; then
28322 ac_cv_lib_intl_strftime=yes
28324 echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28327 ac_cv_lib_intl_strftime=no
28330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28331 conftest$ac_exeext conftest.$ac_ext
28332 LIBS=$ac_check_lib_save_LIBS
28334 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28335 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28336 if test $ac_cv_lib_intl_strftime = yes; then
28337 cat >>confdefs.h <<\_ACEOF
28338 #define HAVE_STRFTIME 1
28341 LIBS="-lintl $LIBS"
28348 for ac_func in vprintf
28350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28354 echo $ECHO_N "(cached) $ECHO_C" >&6
28356 cat >conftest.$ac_ext <<_ACEOF
28359 cat confdefs.h >>conftest.$ac_ext
28360 cat >>conftest.$ac_ext <<_ACEOF
28361 /* end confdefs.h. */
28362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28364 #define $ac_func innocuous_$ac_func
28366 /* System header to define __stub macros and hopefully few prototypes,
28367 which can conflict with char $ac_func (); below.
28368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28369 <limits.h> exists even on freestanding compilers. */
28372 # include <limits.h>
28374 # include <assert.h>
28379 /* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
28386 /* The GNU C library defines this for functions which it implements
28387 to always fail with ENOSYS. Some functions are actually named
28388 something starting with __ and the normal name is an alias. */
28389 #if defined __stub_$ac_func || defined __stub___$ac_func
28396 return $ac_func ();
28401 rm -f conftest.$ac_objext conftest$ac_exeext
28402 if { (ac_try="$ac_link"
28403 case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_link") 2>conftest.er1
28410 grep -v '^ *+' conftest.er1 >conftest.err
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } && {
28415 test -z "$ac_c_werror_flag" ||
28416 test ! -s conftest.err
28417 } && test -s conftest$ac_exeext &&
28418 $as_test_x conftest$ac_exeext; then
28419 eval "$as_ac_var=yes"
28421 echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28424 eval "$as_ac_var=no"
28427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28428 conftest$ac_exeext conftest.$ac_ext
28430 ac_res=`eval echo '${'$as_ac_var'}'`
28431 { echo "$as_me:$LINENO: result: $ac_res" >&5
28432 echo "${ECHO_T}$ac_res" >&6; }
28433 if test `eval echo '${'$as_ac_var'}'` = yes; then
28434 cat >>confdefs.h <<_ACEOF
28435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28438 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28439 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28440 if test "${ac_cv_func__doprnt+set}" = set; then
28441 echo $ECHO_N "(cached) $ECHO_C" >&6
28443 cat >conftest.$ac_ext <<_ACEOF
28446 cat confdefs.h >>conftest.$ac_ext
28447 cat >>conftest.$ac_ext <<_ACEOF
28448 /* end confdefs.h. */
28449 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28451 #define _doprnt innocuous__doprnt
28453 /* System header to define __stub macros and hopefully few prototypes,
28454 which can conflict with char _doprnt (); below.
28455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28456 <limits.h> exists even on freestanding compilers. */
28459 # include <limits.h>
28461 # include <assert.h>
28466 /* Override any GCC internal prototype to avoid an error.
28467 Use char because int might match the return type of a GCC
28468 builtin and then its argument prototype would still apply. */
28473 /* The GNU C library defines this for functions which it implements
28474 to always fail with ENOSYS. Some functions are actually named
28475 something starting with __ and the normal name is an alias. */
28476 #if defined __stub__doprnt || defined __stub____doprnt
28488 rm -f conftest.$ac_objext conftest$ac_exeext
28489 if { (ac_try="$ac_link"
28490 case "(($ac_try" in
28491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492 *) ac_try_echo=$ac_try;;
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495 (eval "$ac_link") 2>conftest.er1
28497 grep -v '^ *+' conftest.er1 >conftest.err
28499 cat conftest.err >&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } && {
28502 test -z "$ac_c_werror_flag" ||
28503 test ! -s conftest.err
28504 } && test -s conftest$ac_exeext &&
28505 $as_test_x conftest$ac_exeext; then
28506 ac_cv_func__doprnt=yes
28508 echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28511 ac_cv_func__doprnt=no
28514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28515 conftest$ac_exeext conftest.$ac_ext
28517 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28518 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28519 if test $ac_cv_func__doprnt = yes; then
28521 cat >>confdefs.h <<\_ACEOF
28522 #define HAVE_DOPRNT 1
28531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28532 # for constant arguments. Useless!
28533 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28534 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28535 if test "${ac_cv_working_alloca_h+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28538 cat >conftest.$ac_ext <<_ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h. */
28544 #include <alloca.h>
28548 char *p = (char *) alloca (2 * sizeof (int));
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558 *) ac_try_echo=$ac_try;;
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561 (eval "$ac_link") 2>conftest.er1
28563 grep -v '^ *+' conftest.er1 >conftest.err
28565 cat conftest.err >&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); } && {
28568 test -z "$ac_c_werror_flag" ||
28569 test ! -s conftest.err
28570 } && test -s conftest$ac_exeext &&
28571 $as_test_x conftest$ac_exeext; then
28572 ac_cv_working_alloca_h=yes
28574 echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28577 ac_cv_working_alloca_h=no
28580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28581 conftest$ac_exeext conftest.$ac_ext
28583 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28584 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28585 if test $ac_cv_working_alloca_h = yes; then
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_ALLOCA_H 1
28593 { echo "$as_me:$LINENO: checking for alloca" >&5
28594 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28595 if test "${ac_cv_func_alloca_works+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 cat >conftest.$ac_ext <<_ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28605 # define alloca __builtin_alloca
28608 # include <malloc.h>
28609 # define alloca _alloca
28611 # ifdef HAVE_ALLOCA_H
28612 # include <alloca.h>
28617 # ifndef alloca /* predefined by HP cc +Olibcalls */
28628 char *p = (char *) alloca (1);
28634 rm -f conftest.$ac_objext conftest$ac_exeext
28635 if { (ac_try="$ac_link"
28636 case "(($ac_try" in
28637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638 *) ac_try_echo=$ac_try;;
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641 (eval "$ac_link") 2>conftest.er1
28643 grep -v '^ *+' conftest.er1 >conftest.err
28645 cat conftest.err >&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } && {
28648 test -z "$ac_c_werror_flag" ||
28649 test ! -s conftest.err
28650 } && test -s conftest$ac_exeext &&
28651 $as_test_x conftest$ac_exeext; then
28652 ac_cv_func_alloca_works=yes
28654 echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28657 ac_cv_func_alloca_works=no
28660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28661 conftest$ac_exeext conftest.$ac_ext
28663 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28664 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28666 if test $ac_cv_func_alloca_works = yes; then
28668 cat >>confdefs.h <<\_ACEOF
28669 #define HAVE_ALLOCA 1
28673 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28674 # that cause trouble. Some versions do not even contain alloca or
28675 # contain a buggy version. If you still want to use their alloca,
28676 # use ar to extract alloca.o from them instead of compiling alloca.c.
28678 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28680 cat >>confdefs.h <<\_ACEOF
28685 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28686 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28687 if test "${ac_cv_os_cray+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 cat >conftest.$ac_ext <<_ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28696 #if defined CRAY && ! defined CRAY2
28703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28704 $EGREP "webecray" >/dev/null 2>&1; then
28712 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28713 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28714 if test $ac_cv_os_cray = yes; then
28715 for ac_func in _getb67 GETB67 getb67; do
28716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28722 cat >conftest.$ac_ext <<_ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28730 #define $ac_func innocuous_$ac_func
28732 /* System header to define __stub macros and hopefully few prototypes,
28733 which can conflict with char $ac_func (); below.
28734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28735 <limits.h> exists even on freestanding compilers. */
28738 # include <limits.h>
28740 # include <assert.h>
28745 /* Override any GCC internal prototype to avoid an error.
28746 Use char because int might match the return type of a GCC
28747 builtin and then its argument prototype would still apply. */
28752 /* The GNU C library defines this for functions which it implements
28753 to always fail with ENOSYS. Some functions are actually named
28754 something starting with __ and the normal name is an alias. */
28755 #if defined __stub_$ac_func || defined __stub___$ac_func
28762 return $ac_func ();
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_link") 2>conftest.er1
28776 grep -v '^ *+' conftest.er1 >conftest.err
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } && {
28781 test -z "$ac_c_werror_flag" ||
28782 test ! -s conftest.err
28783 } && test -s conftest$ac_exeext &&
28784 $as_test_x conftest$ac_exeext; then
28785 eval "$as_ac_var=yes"
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 eval "$as_ac_var=no"
28793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28794 conftest$ac_exeext conftest.$ac_ext
28796 ac_res=`eval echo '${'$as_ac_var'}'`
28797 { echo "$as_me:$LINENO: result: $ac_res" >&5
28798 echo "${ECHO_T}$ac_res" >&6; }
28799 if test `eval echo '${'$as_ac_var'}'` = yes; then
28801 cat >>confdefs.h <<_ACEOF
28802 #define CRAY_STACKSEG_END $ac_func
28811 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28813 if test "${ac_cv_c_stack_direction+set}" = set; then
28814 echo $ECHO_N "(cached) $ECHO_C" >&6
28816 if test "$cross_compiling" = yes; then
28817 ac_cv_c_stack_direction=0
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28825 $ac_includes_default
28827 find_stack_direction ()
28829 static char *addr = 0;
28834 return find_stack_direction ();
28837 return (&dummy > addr) ? 1 : -1;
28843 return find_stack_direction () < 0;
28846 rm -f conftest$ac_exeext
28847 if { (ac_try="$ac_link"
28848 case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_link") 2>&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28857 { (case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_try") 2>&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 ac_cv_c_stack_direction=1
28868 echo "$as_me: program exited with status $ac_status" >&5
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ( exit $ac_status )
28873 ac_cv_c_stack_direction=-1
28875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28880 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28881 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28883 cat >>confdefs.h <<_ACEOF
28884 #define STACK_DIRECTION $ac_cv_c_stack_direction
28890 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28891 # -lseq on Dynix/PTX, -lgen on Unixware.
28892 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28893 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28894 if test "${ac_cv_search_getmntent+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28897 ac_func_search_save_LIBS=$LIBS
28898 cat >conftest.$ac_ext <<_ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28905 /* Override any GCC internal prototype to avoid an error.
28906 Use char because int might match the return type of a GCC
28907 builtin and then its argument prototype would still apply. */
28915 return getmntent ();
28920 for ac_lib in '' sun seq gen; do
28921 if test -z "$ac_lib"; then
28922 ac_res="none required"
28925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28927 rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (ac_try="$ac_link"
28929 case "(($ac_try" in
28930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931 *) ac_try_echo=$ac_try;;
28933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934 (eval "$ac_link") 2>conftest.er1
28936 grep -v '^ *+' conftest.er1 >conftest.err
28938 cat conftest.err >&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } && {
28941 test -z "$ac_c_werror_flag" ||
28942 test ! -s conftest.err
28943 } && test -s conftest$ac_exeext &&
28944 $as_test_x conftest$ac_exeext; then
28945 ac_cv_search_getmntent=$ac_res
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28955 if test "${ac_cv_search_getmntent+set}" = set; then
28959 if test "${ac_cv_search_getmntent+set}" = set; then
28962 ac_cv_search_getmntent=no
28964 rm conftest.$ac_ext
28965 LIBS=$ac_func_search_save_LIBS
28967 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28968 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28969 ac_res=$ac_cv_search_getmntent
28970 if test "$ac_res" != no; then
28971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28972 ac_cv_func_getmntent=yes
28974 cat >>confdefs.h <<\_ACEOF
28975 #define HAVE_GETMNTENT 1
28979 ac_cv_func_getmntent=no
28983 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28984 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28985 if test "${ac_cv_func_closedir_void+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 if test "$cross_compiling" = yes; then
28989 ac_cv_func_closedir_void=yes
28991 cat >conftest.$ac_ext <<_ACEOF
28994 cat confdefs.h >>conftest.$ac_ext
28995 cat >>conftest.$ac_ext <<_ACEOF
28996 /* end confdefs.h. */
28997 $ac_includes_default
28998 #include <$ac_header_dirent>
28999 #ifndef __cplusplus
29006 return closedir (opendir (".")) != 0;
29011 rm -f conftest$ac_exeext
29012 if { (ac_try="$ac_link"
29013 case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_link") 2>&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29022 { (case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_try") 2>&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_func_closedir_void=no
29033 echo "$as_me: program exited with status $ac_status" >&5
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ( exit $ac_status )
29038 ac_cv_func_closedir_void=yes
29040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29046 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29047 if test $ac_cv_func_closedir_void = yes; then
29049 cat >>confdefs.h <<\_ACEOF
29050 #define CLOSEDIR_VOID 1
29055 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29056 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29057 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 if test "$cross_compiling" = yes; then
29061 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29062 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29063 { (exit 1); exit 1; }; }
29065 cat >conftest.$ac_ext <<_ACEOF
29068 cat confdefs.h >>conftest.$ac_ext
29069 cat >>conftest.$ac_ext <<_ACEOF
29070 /* end confdefs.h. */
29071 $ac_includes_default
29075 /* If this system has a BSD-style setpgrp which takes arguments,
29076 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29077 exit successfully. */
29078 return setpgrp (1,1) != -1;
29083 rm -f conftest$ac_exeext
29084 if { (ac_try="$ac_link"
29085 case "(($ac_try" in
29086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087 *) ac_try_echo=$ac_try;;
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090 (eval "$ac_link") 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_cv_func_setpgrp_void=no
29105 echo "$as_me: program exited with status $ac_status" >&5
29106 echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29109 ( exit $ac_status )
29110 ac_cv_func_setpgrp_void=yes
29112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29117 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29118 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29119 if test $ac_cv_func_setpgrp_void = yes; then
29121 cat >>confdefs.h <<\_ACEOF
29122 #define SETPGRP_VOID 1
29126 # AC_FUNC_FNMATCH dnl use local version
29129 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29130 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29131 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29134 ac_check_lib_save_LIBS=$LIBS
29135 LIBS="-lintl $LIBS"
29136 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29143 /* Override any GCC internal prototype to avoid an error.
29144 Use char because int might match the return type of a GCC
29145 builtin and then its argument prototype would still apply. */
29158 rm -f conftest.$ac_objext conftest$ac_exeext
29159 if { (ac_try="$ac_link"
29160 case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_link") 2>conftest.er1
29167 grep -v '^ *+' conftest.er1 >conftest.err
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest$ac_exeext &&
29175 $as_test_x conftest$ac_exeext; then
29176 ac_cv_lib_intl_gettext=yes
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29181 ac_cv_lib_intl_gettext=no
29184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29185 conftest$ac_exeext conftest.$ac_ext
29186 LIBS=$ac_check_lib_save_LIBS
29188 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29189 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29190 if test $ac_cv_lib_intl_gettext = yes; then
29191 LIBS="$LIBS -lintl"
29197 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29198 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29199 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29202 ac_check_lib_save_LIBS=$LIBS
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29211 /* Override any GCC internal prototype to avoid an error.
29212 Use char because int might match the return type of a GCC
29213 builtin and then its argument prototype would still apply. */
29221 return getpwnam ();
29226 rm -f conftest.$ac_objext conftest$ac_exeext
29227 if { (ac_try="$ac_link"
29228 case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_link") 2>conftest.er1
29235 grep -v '^ *+' conftest.er1 >conftest.err
29237 cat conftest.err >&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); } && {
29240 test -z "$ac_c_werror_flag" ||
29241 test ! -s conftest.err
29242 } && test -s conftest$ac_exeext &&
29243 $as_test_x conftest$ac_exeext; then
29244 ac_cv_lib_sun_getpwnam=yes
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29249 ac_cv_lib_sun_getpwnam=no
29252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29253 conftest$ac_exeext conftest.$ac_ext
29254 LIBS=$ac_check_lib_save_LIBS
29256 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29257 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29258 if test $ac_cv_lib_sun_getpwnam = yes; then
29259 cat >>confdefs.h <<_ACEOF
29260 #define HAVE_LIBSUN 1
29269 for ac_header in zlib.h
29271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29276 echo $ECHO_N "(cached) $ECHO_C" >&6
29278 ac_res=`eval echo '${'$as_ac_Header'}'`
29279 { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29282 # Is the header compilable?
29283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29285 cat >conftest.$ac_ext <<_ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h. */
29291 $ac_includes_default
29292 #include <$ac_header>
29294 rm -f conftest.$ac_objext
29295 if { (ac_try="$ac_compile"
29296 case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_compile") 2>conftest.er1
29303 grep -v '^ *+' conftest.er1 >conftest.err
29305 cat conftest.err >&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); } && {
29308 test -z "$ac_c_werror_flag" ||
29309 test ! -s conftest.err
29310 } && test -s conftest.$ac_objext; then
29311 ac_header_compiler=yes
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29316 ac_header_compiler=no
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29321 echo "${ECHO_T}$ac_header_compiler" >&6; }
29323 # Is the header present?
29324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29326 cat >conftest.$ac_ext <<_ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29332 #include <$ac_header>
29334 if { (ac_try="$ac_cpp conftest.$ac_ext"
29335 case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29342 grep -v '^ *+' conftest.er1 >conftest.err
29344 cat conftest.err >&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); } >/dev/null && {
29347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29348 test ! -s conftest.err
29350 ac_header_preproc=yes
29352 echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29355 ac_header_preproc=no
29358 rm -f conftest.err conftest.$ac_ext
29359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29360 echo "${ECHO_T}$ac_header_preproc" >&6; }
29362 # So? What about this header?
29363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29369 ac_header_preproc=yes
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29390 echo $ECHO_N "(cached) $ECHO_C" >&6
29392 eval "$as_ac_Header=\$ac_header_preproc"
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395 { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29400 cat >>confdefs.h <<_ACEOF
29401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29408 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29409 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29410 if test "${ac_cv_lib_z_deflate+set}" = set; then
29411 echo $ECHO_N "(cached) $ECHO_C" >&6
29413 ac_check_lib_save_LIBS=$LIBS
29415 cat >conftest.$ac_ext <<_ACEOF
29418 cat confdefs.h >>conftest.$ac_ext
29419 cat >>conftest.$ac_ext <<_ACEOF
29420 /* end confdefs.h. */
29422 /* Override any GCC internal prototype to avoid an error.
29423 Use char because int might match the return type of a GCC
29424 builtin and then its argument prototype would still apply. */
29437 rm -f conftest.$ac_objext conftest$ac_exeext
29438 if { (ac_try="$ac_link"
29439 case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444 (eval "$ac_link") 2>conftest.er1
29446 grep -v '^ *+' conftest.er1 >conftest.err
29448 cat conftest.err >&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } && {
29451 test -z "$ac_c_werror_flag" ||
29452 test ! -s conftest.err
29453 } && test -s conftest$ac_exeext &&
29454 $as_test_x conftest$ac_exeext; then
29455 ac_cv_lib_z_deflate=yes
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29460 ac_cv_lib_z_deflate=no
29463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29464 conftest$ac_exeext conftest.$ac_ext
29465 LIBS=$ac_check_lib_save_LIBS
29467 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29468 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29469 if test $ac_cv_lib_z_deflate = yes; then
29474 if test x$FDLIBS = x-lz; then
29475 cat >>confdefs.h <<\_ACEOF
29476 #define HAVE_LIBZ 1
29483 # Check for ACL libraries
29486 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29487 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29488 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29489 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29492 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29493 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29495 # Is the header compilable?
29496 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29497 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29498 cat >conftest.$ac_ext <<_ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h. */
29504 $ac_includes_default
29505 #include <sys/acl.h>
29507 rm -f conftest.$ac_objext
29508 if { (ac_try="$ac_compile"
29509 case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514 (eval "$ac_compile") 2>conftest.er1
29516 grep -v '^ *+' conftest.er1 >conftest.err
29518 cat conftest.err >&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } && {
29521 test -z "$ac_c_werror_flag" ||
29522 test ! -s conftest.err
29523 } && test -s conftest.$ac_objext; then
29524 ac_header_compiler=yes
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 ac_header_compiler=no
29532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29534 echo "${ECHO_T}$ac_header_compiler" >&6; }
29536 # Is the header present?
29537 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29538 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29539 cat >conftest.$ac_ext <<_ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h. */
29545 #include <sys/acl.h>
29547 if { (ac_try="$ac_cpp conftest.$ac_ext"
29548 case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29555 grep -v '^ *+' conftest.er1 >conftest.err
29557 cat conftest.err >&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); } >/dev/null && {
29560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29561 test ! -s conftest.err
29563 ac_header_preproc=yes
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_header_preproc=no
29571 rm -f conftest.err conftest.$ac_ext
29572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29573 echo "${ECHO_T}$ac_header_preproc" >&6; }
29575 # So? What about this header?
29576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29578 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29579 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29580 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29581 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29582 ac_header_preproc=yes
29585 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29586 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29587 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29588 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29589 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29590 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29592 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29594 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29596 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29600 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29601 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29602 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29605 ac_cv_header_sys_acl_h=$ac_header_preproc
29607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29608 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29613 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29614 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29615 if test "${ac_cv_func_acl_get_file+set}" = set; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29626 #define acl_get_file innocuous_acl_get_file
29628 /* System header to define __stub macros and hopefully few prototypes,
29629 which can conflict with char acl_get_file (); below.
29630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29631 <limits.h> exists even on freestanding compilers. */
29634 # include <limits.h>
29636 # include <assert.h>
29639 #undef acl_get_file
29641 /* Override any GCC internal prototype to avoid an error.
29642 Use char because int might match the return type of a GCC
29643 builtin and then its argument prototype would still apply. */
29647 char acl_get_file ();
29648 /* The GNU C library defines this for functions which it implements
29649 to always fail with ENOSYS. Some functions are actually named
29650 something starting with __ and the normal name is an alias. */
29651 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29658 return acl_get_file ();
29663 rm -f conftest.$ac_objext conftest$ac_exeext
29664 if { (ac_try="$ac_link"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_link") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest$ac_exeext &&
29680 $as_test_x conftest$ac_exeext; then
29681 ac_cv_func_acl_get_file=yes
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29686 ac_cv_func_acl_get_file=no
29689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29690 conftest$ac_exeext conftest.$ac_ext
29692 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29693 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29694 if test $ac_cv_func_acl_get_file = yes; then
29697 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29698 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29699 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29700 echo $ECHO_N "(cached) $ECHO_C" >&6
29702 ac_check_lib_save_LIBS=$LIBS
29704 cat >conftest.$ac_ext <<_ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h. */
29711 /* Override any GCC internal prototype to avoid an error.
29712 Use char because int might match the return type of a GCC
29713 builtin and then its argument prototype would still apply. */
29717 char acl_get_file ();
29721 return acl_get_file ();
29726 rm -f conftest.$ac_objext conftest$ac_exeext
29727 if { (ac_try="$ac_link"
29728 case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_link") 2>conftest.er1
29735 grep -v '^ *+' conftest.er1 >conftest.err
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } && {
29740 test -z "$ac_c_werror_flag" ||
29741 test ! -s conftest.err
29742 } && test -s conftest$ac_exeext &&
29743 $as_test_x conftest$ac_exeext; then
29744 ac_cv_lib_acl_acl_get_file=yes
29746 echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.$ac_ext >&5
29749 ac_cv_lib_acl_acl_get_file=no
29752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29753 conftest$ac_exeext conftest.$ac_ext
29754 LIBS=$ac_check_lib_save_LIBS
29756 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29757 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29758 if test $ac_cv_lib_acl_acl_get_file = yes; then
29759 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29761 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29762 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29763 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 ac_check_lib_save_LIBS=$LIBS
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29775 /* Override any GCC internal prototype to avoid an error.
29776 Use char because int might match the return type of a GCC
29777 builtin and then its argument prototype would still apply. */
29785 return acltotext ();
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (ac_try="$ac_link"
29792 case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797 (eval "$ac_link") 2>conftest.er1
29799 grep -v '^ *+' conftest.er1 >conftest.err
29801 cat conftest.err >&5
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } && {
29804 test -z "$ac_c_werror_flag" ||
29805 test ! -s conftest.err
29806 } && test -s conftest$ac_exeext &&
29807 $as_test_x conftest$ac_exeext; then
29808 ac_cv_lib_sec_acltotext=yes
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 ac_cv_lib_sec_acltotext=no
29816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29817 conftest$ac_exeext conftest.$ac_ext
29818 LIBS=$ac_check_lib_save_LIBS
29820 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29821 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29822 if test $ac_cv_lib_sec_acltotext = yes; then
29823 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29832 if test $have_acl = yes; then
29833 cat >>confdefs.h <<\_ACEOF
29840 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29841 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29842 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 ac_check_lib_save_LIBS=$LIBS
29846 LIBS="-lpthread $LIBS"
29847 cat >conftest.$ac_ext <<_ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29854 /* Override any GCC internal prototype to avoid an error.
29855 Use char because int might match the return type of a GCC
29856 builtin and then its argument prototype would still apply. */
29860 char pthread_create ();
29864 return pthread_create ();
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_link") 2>conftest.er1
29878 grep -v '^ *+' conftest.er1 >conftest.err
29880 cat conftest.err >&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); } && {
29883 test -z "$ac_c_werror_flag" ||
29884 test ! -s conftest.err
29885 } && test -s conftest$ac_exeext &&
29886 $as_test_x conftest$ac_exeext; then
29887 ac_cv_lib_pthread_pthread_create=yes
29889 echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29892 ac_cv_lib_pthread_pthread_create=no
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896 conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29899 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29901 if test $ac_cv_lib_pthread_pthread_create = yes; then
29902 PTHREAD_LIB="-lpthread"
29904 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29905 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29906 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29907 echo $ECHO_N "(cached) $ECHO_C" >&6
29909 ac_check_lib_save_LIBS=$LIBS
29910 LIBS="-lpthreads $LIBS"
29911 cat >conftest.$ac_ext <<_ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h. */
29918 /* Override any GCC internal prototype to avoid an error.
29919 Use char because int might match the return type of a GCC
29920 builtin and then its argument prototype would still apply. */
29924 char pthread_create ();
29928 return pthread_create ();
29933 rm -f conftest.$ac_objext conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_link") 2>conftest.er1
29942 grep -v '^ *+' conftest.er1 >conftest.err
29944 cat conftest.err >&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } && {
29947 test -z "$ac_c_werror_flag" ||
29948 test ! -s conftest.err
29949 } && test -s conftest$ac_exeext &&
29950 $as_test_x conftest$ac_exeext; then
29951 ac_cv_lib_pthreads_pthread_create=yes
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_lib_pthreads_pthread_create=no
29959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29960 conftest$ac_exeext conftest.$ac_ext
29961 LIBS=$ac_check_lib_save_LIBS
29963 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29964 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29965 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29966 PTHREAD_LIB="-lpthreads"
29968 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29969 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29970 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29971 echo $ECHO_N "(cached) $ECHO_C" >&6
29973 ac_check_lib_save_LIBS=$LIBS
29975 cat >conftest.$ac_ext <<_ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h. */
29982 /* Override any GCC internal prototype to avoid an error.
29983 Use char because int might match the return type of a GCC
29984 builtin and then its argument prototype would still apply. */
29988 char pthread_create ();
29992 return pthread_create ();
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004 (eval "$ac_link") 2>conftest.er1
30006 grep -v '^ *+' conftest.er1 >conftest.err
30008 cat conftest.err >&5
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); } && {
30011 test -z "$ac_c_werror_flag" ||
30012 test ! -s conftest.err
30013 } && test -s conftest$ac_exeext &&
30014 $as_test_x conftest$ac_exeext; then
30015 ac_cv_lib_c_r_pthread_create=yes
30017 echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30020 ac_cv_lib_c_r_pthread_create=no
30023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30024 conftest$ac_exeext conftest.$ac_ext
30025 LIBS=$ac_check_lib_save_LIBS
30027 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30028 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30029 if test $ac_cv_lib_c_r_pthread_create = yes; then
30030 PTHREAD_LIB="-lc_r"
30032 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30033 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30034 if test "${ac_cv_func_pthread_create+set}" = set; then
30035 echo $ECHO_N "(cached) $ECHO_C" >&6
30037 cat >conftest.$ac_ext <<_ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h. */
30043 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30045 #define pthread_create innocuous_pthread_create
30047 /* System header to define __stub macros and hopefully few prototypes,
30048 which can conflict with char pthread_create (); below.
30049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30050 <limits.h> exists even on freestanding compilers. */
30053 # include <limits.h>
30055 # include <assert.h>
30058 #undef pthread_create
30060 /* Override any GCC internal prototype to avoid an error.
30061 Use char because int might match the return type of a GCC
30062 builtin and then its argument prototype would still apply. */
30066 char pthread_create ();
30067 /* The GNU C library defines this for functions which it implements
30068 to always fail with ENOSYS. Some functions are actually named
30069 something starting with __ and the normal name is an alias. */
30070 #if defined __stub_pthread_create || defined __stub___pthread_create
30077 return pthread_create ();
30082 rm -f conftest.$ac_objext conftest$ac_exeext
30083 if { (ac_try="$ac_link"
30084 case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_link") 2>conftest.er1
30091 grep -v '^ *+' conftest.er1 >conftest.err
30093 cat conftest.err >&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } && {
30096 test -z "$ac_c_werror_flag" ||
30097 test ! -s conftest.err
30098 } && test -s conftest$ac_exeext &&
30099 $as_test_x conftest$ac_exeext; then
30100 ac_cv_func_pthread_create=yes
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30105 ac_cv_func_pthread_create=no
30108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30109 conftest$ac_exeext conftest.$ac_ext
30111 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30112 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30125 cat >>confdefs.h <<\_ACEOF
30131 CFLAGS=${CFLAGS--O}
30133 if test x$have_gcc = xyes ; then
30134 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30135 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30137 LDFLAGS=${LDFLAGS--O}
30138 DB_LIBS="${SQL_LFLAGS}"
30139 CPPFLAGS="$CPPFLAGS"
30167 # Finally we set appropriate distribution specific
30168 # variables and defaults
30170 # PFILES are platform specific files
30171 PFILES="platforms/Makefile"
30175 hostname=`uname -n | cut -d '.' -f 1`
30176 if test x${hostname} = x ; then
30177 hostname="localhost"
30179 case "$DISTNAME" in
30182 PSCMD="ps -e -o pid,comm"
30183 PFILES="${PFILES} \
30184 platforms/aix/Makefile"
30185 TAPEDRIVE="/dev/rmt0.1"
30189 PTHREAD_LIB="-lpthread -lexc"
30190 if test "${CC}" = "gcc" ; then
30197 TAPEDRIVE="/dev/nrmt0"
30200 DISTVER=`uname -a |awk '{print $3}'`
30201 TAPEDRIVE="/dev/nrmt0"
30202 PTHREAD_LIB="-pthread"
30203 CFLAGS="${CFLAGS} -pthread"
30204 PSCMD="ps -ax -o pid,command"
30207 PFILES="${PFILES} \
30208 platforms/bsdi/Makefile \
30209 platforms/bsdi/bacula-fd \
30210 platforms/bsdi/bacula-sd \
30211 platforms/bsdi/bacula-dir"
30212 largefile_support="yes"
30215 DISTVER=`uname -a |awk '{print $3}'`
30216 TAPEDRIVE="/dev/nrst0"
30218 WCFLAGS="-mwindows"
30219 WLDFLAGS="-mwindows"
30223 TAPEDRIVE="/dev/nst0"
30224 PSCMD="ps -e -o pid,command"
30226 PFILES="${PFILES} \
30227 platforms/darwin/Makefile"
30230 if `grep -q ubuntu /etc/apt/sources.list`; then
30233 DISTVER=`cat /etc/debian_version`
30234 if test -f /etc/lsb-release ; then
30236 if test "x$DISTRIB_ID" != "x" ; then
30237 DISTNAME=$DISTRIB_ID
30239 if test "x$DISTRIB_RELEASE" != "x" ; then
30240 DISTVER=$DISTRIB_RELEASE
30243 if test "$DISTNAME" = "Ubuntu" ; then
30246 TAPEDRIVE="/dev/nst0"
30247 PSCMD="ps -e -o pid,command"
30248 if test "$DISTNAME" = "ubuntu" ; then
30249 PFILES="${PFILES} \
30250 platforms/ubuntu/Makefile \
30251 platforms/ubuntu/bacula-fd \
30252 platforms/ubuntu/bacula-sd \
30253 platforms/ubuntu/bacula-dir"
30255 PFILES="${PFILES} \
30256 platforms/debian/Makefile \
30257 platforms/debian/bacula-fd \
30258 platforms/debian/bacula-sd \
30259 platforms/debian/bacula-dir"
30263 DISTVER=`uname -a |awk '{print $3}'`
30264 VER=`echo $DISTVER | cut -c 1`
30265 if test x$VER = x4 ; then
30266 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30267 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30271 TAPEDRIVE="/dev/nrsa0"
30272 PSCMD="ps -ax -o pid,command"
30273 PFILES="${PFILES} \
30274 platforms/freebsd/Makefile \
30275 platforms/freebsd/bacula-fd \
30276 platforms/freebsd/bacula-sd \
30277 platforms/freebsd/bacula-dir"
30278 largefile_support="yes"
30281 PSCMD="UNIX95=1; ps -e -o pid,comm"
30282 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30284 TAPEDRIVE="/dev/rmt/0hnb"
30285 PTHREAD_LIB="-lpthread"
30286 cat >>confdefs.h <<\_ACEOF
30287 #define _INCLUDE_LONGLONG 1
30293 TAPEDRIVE="/dev/rmt/0cbn"
30294 PSCMD="ps -e -o pid,comm"
30295 PFILES="${PFILES} \
30296 platforms/irix/Makefile \
30297 platforms/irix/bacula-fd \
30298 platforms/irix/bacula-sd \
30299 platforms/irix/bacula-dir"
30302 DISTVER=`uname -a |awk '{print $3}'`
30305 TAPEDRIVE="/dev/nrst0"
30306 PSCMD="ps -ax -o pid,command"
30307 PTHREAD_LIB="-pthread"
30308 CFLAGS="${CFLAGS} -pthread"
30311 DISTVER=`uname -a |awk '{print $3}'`
30314 TAPEDRIVE="/dev/nrst0"
30315 PSCMD="ps -ax -o pid,command"
30316 PTHREAD_LIB="-pthread"
30317 CFLAGS="${CFLAGS} -pthread"
30318 PFILES="${PFILES} \
30319 platforms/openbsd/Makefile \
30320 platforms/openbsd/bacula-fd \
30321 platforms/openbsd/bacula-sd \
30322 platforms/openbsd/bacula-dir"
30325 if test -f /etc/whitebox-release ; then
30326 f=/etc/whitebox-release
30328 f=/etc/redhat-release
30330 if test `cat $f | grep release |\
30331 cut -f 3 -d ' '`x = "Enterprise"x ; then
30332 DISTVER="Enterprise "`cat $f | grep release |\
30335 DISTVER=`cat /etc/redhat-release | grep release |\
30338 TAPEDRIVE="/dev/nst0"
30339 PSCMD="ps -e -o pid,command"
30340 PFILES="${PFILES} \
30341 platforms/redhat/Makefile \
30342 platforms/redhat/bacula-fd \
30343 platforms/redhat/bacula-sd \
30344 platforms/redhat/bacula-dir \
30345 platforms/redhat/bacula.spec \
30349 DISTVER=`cat /etc/mandrake-release | grep release |\
30351 TAPEDRIVE="/dev/nst0"
30352 PSCMD="ps -e -o pid,command"
30353 PFILES="${PFILES} \
30354 platforms/mandrake/Makefile \
30355 platforms/mandrake/bacula-fd \
30356 platforms/mandrake/bacula-sd \
30357 platforms/mandrake/bacula-dir \
30358 platforms/mandrake/bacula.spec \
30362 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30363 TAPEDRIVE="/dev/nst0"
30364 PSCMD="ps -e -o pid,command"
30365 PFILES="${PFILES} \
30366 platforms/gentoo/Makefile \
30367 platforms/gentoo/bacula-init \
30368 platforms/gentoo/bacula-fd \
30369 platforms/gentoo/bacula-sd \
30370 platforms/gentoo/bacula-dir"
30373 DISTVER=`cat /etc/slackware-version`
30374 TAPEDRIVE="/dev/nst0"
30375 PSCMD="ps -e -o pid,command"
30376 PFILES="${PFILES} \
30377 platforms/slackware/Makefile \
30378 platforms/slackware/rc.bacula-fd \
30379 platforms/slackware/rc.bacula-sd \
30380 platforms/slackware/rc.bacula-dir\
30381 platforms/slackware/functions.bacula"
30385 TAPEDRIVE="/dev/rmt/0cbn"
30386 PSCMD="ps -e -o pid,comm"
30387 PFILES="${PFILES} \
30388 platforms/solaris/Makefile \
30389 platforms/solaris/bacula-fd \
30390 platforms/solaris/bacula-sd \
30391 platforms/solaris/bacula-dir"
30392 if test x$DISTVER = x5.6 ; then
30393 cat >>confdefs.h <<\_ACEOF
30394 #define HAVE_OLD_SOCKOPT 1
30398 LIBS="$LIBS -lresolv"
30401 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30403 TAPEDRIVE="/dev/nst0"
30404 PSCMD="ps -e -o pid,command"
30405 PFILES="${PFILES} \
30406 platforms/suse/Makefile \
30407 platforms/suse/bacula-fd \
30408 platforms/suse/bacula-sd \
30409 platforms/suse/bacula-dir \
30410 platforms/suse/bacula \
30411 platforms/suse/bacula.spec"
30416 TAPEDRIVE="/dev/nst0"
30417 PSCMD="ps -e -o pid,command"
30418 PFILES="${PFILES} \
30419 platforms/suse/Makefile \
30420 platforms/suse/bacula-fd \
30421 platforms/suse/bacula-sd \
30422 platforms/suse/bacula-dir"
30426 TAPEDRIVE="/dev/nst0"
30429 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30435 LIBS="$PTHREAD_LIB $LIBS"
30437 cat >>confdefs.h <<_ACEOF
30441 cat >>confdefs.h <<_ACEOF
30452 MCOMMON=./autoconf/Make.common
30455 if test "x${subsysdir}" = "x${sbindir}" ; then
30458 echo "You have set both --sbindir and --with-subsys-dir"
30459 echo " equal to: ${subsysdir} "
30460 echo "This is not permitted. Please reconfigure."
30462 echo "Aborting configuration ..."
30468 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"
30470 ac_config_commands="$ac_config_commands default"
30472 cat >confcache <<\_ACEOF
30473 # This file is a shell script that caches the results of configure
30474 # tests run on this system so they can be shared between configure
30475 # scripts and configure runs, see configure's option --config-cache.
30476 # It is not useful on other systems. If it contains results you don't
30477 # want to keep, you may remove or edit it.
30479 # config.status only pays attention to the cache file if you give it
30480 # the --recheck option to rerun configure.
30482 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30483 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30484 # following values.
30488 # The following way of writing the cache mishandles newlines in values,
30489 # but we know of no workaround that is simple, portable, and efficient.
30490 # So, we kill variables containing newlines.
30491 # Ultrix sh set writes to stderr and can't be redirected directly,
30492 # and sets the high bit in the cache file unless we assign to the vars.
30494 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30495 eval ac_val=\$$ac_var
30499 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30503 _ | IFS | as_nl) ;; #(
30504 *) $as_unset $ac_var ;;
30510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30511 *${as_nl}ac_space=\ *)
30512 # `set' does not quote correctly, so add quotes (double-quote
30513 # substitution turns \\\\ into \\, and sed turns \\ into \).
30516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30519 # `set' quotes correctly as required by POSIX, so do not add quotes.
30520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30534 if test -w "$cache_file"; then
30535 test "x$cache_file" != "x/dev/null" &&
30536 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30537 echo "$as_me: updating cache $cache_file" >&6;}
30538 cat confcache >$cache_file
30540 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30541 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30547 # Let make expand exec_prefix.
30548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30550 DEFS=-DHAVE_CONFIG_H
30554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30555 # 1. Remove the extension, and $U if already installed.
30556 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30557 ac_i=`echo "$ac_i" | sed "$ac_script"`
30558 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30559 # will be set to the directory where LIBOBJS objects are built.
30560 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30561 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30563 LIBOBJS=$ac_libobjs
30565 LTLIBOBJS=$ac_ltlibobjs
30569 : ${CONFIG_STATUS=./config.status}
30570 ac_clean_files_save=$ac_clean_files
30571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30572 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30573 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30574 cat >$CONFIG_STATUS <<_ACEOF
30576 # Generated by $as_me.
30577 # Run this file to recreate the current configuration.
30578 # Compiler output produced by configure, useful for debugging
30579 # configure, is in config.log if it exists.
30582 ac_cs_recheck=false
30584 SHELL=\${CONFIG_SHELL-$SHELL}
30587 cat >>$CONFIG_STATUS <<\_ACEOF
30588 ## --------------------- ##
30589 ## M4sh Initialization. ##
30590 ## --------------------- ##
30592 # Be more Bourne compatible
30593 DUALCASE=1; export DUALCASE # for MKS sh
30594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30598 # is contrary to our usage. Disable this feature.
30599 alias -g '${1+"$@"}'='"$@"'
30600 setopt NO_GLOB_SUBST
30602 case `(set -o) 2>/dev/null` in
30603 *posix*) set -o posix ;;
30612 # Avoid depending upon Character Ranges.
30613 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30614 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30615 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30616 as_cr_digits='0123456789'
30617 as_cr_alnum=$as_cr_Letters$as_cr_digits
30619 # The user is always right.
30620 if test "${PATH_SEPARATOR+set}" != set; then
30621 echo "#! /bin/sh" >conf$$.sh
30622 echo "exit 0" >>conf$$.sh
30624 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30632 # Support unset when possible.
30633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30641 # We need space, tab and new line, in precisely that order. Quoting is
30642 # there to prevent editors from complaining about space-tab.
30643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30644 # splitting by setting IFS to empty value.)
30649 # Find who we are. Look in the path if we contain no directory separator.
30651 *[\\/]* ) as_myself=$0 ;;
30652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653 for as_dir in $PATH
30656 test -z "$as_dir" && as_dir=.
30657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30663 # We did not find ourselves, most probably we were run as `sh COMMAND'
30664 # in which case we are not to be found in the path.
30665 if test "x$as_myself" = x; then
30668 if test ! -f "$as_myself"; then
30669 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30670 { (exit 1); exit 1; }
30673 # Work around bugs in pre-3.0 UWIN ksh.
30674 for as_var in ENV MAIL MAILPATH
30675 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30683 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30684 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30685 LC_TELEPHONE LC_TIME
30687 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30688 eval $as_var=C; export $as_var
30690 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30694 # Required to use basename.
30695 if expr a : '\(a\)' >/dev/null 2>&1 &&
30696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30703 as_basename=basename
30709 # Name of the executable.
30710 as_me=`$as_basename -- "$0" ||
30711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30712 X"$0" : 'X\(//\)$' \| \
30713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30715 sed '/^.*\/\([^/][^/]*\)\/*$/{
30734 as_lineno_1=$LINENO
30735 as_lineno_2=$LINENO
30736 test "x$as_lineno_1" != "x$as_lineno_2" &&
30737 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30740 # uniformly replaced by the line number. The first 'sed' inserts a
30741 # line-number line after each line using $LINENO; the second 'sed'
30742 # does the real work. The second script uses 'N' to pair each
30743 # line-number line with the line containing $LINENO, and appends
30744 # trailing '-' during substitution so that $LINENO is not a special
30745 # case at line end.
30746 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30747 # scripts with optimization help from Paolo Bonzini. Blame Lee
30748 # E. McMahon (1931-1989) for sed's syntax. :-)
30760 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30763 ' >$as_me.lineno &&
30764 chmod +x "$as_me.lineno" ||
30765 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30766 { (exit 1); exit 1; }; }
30768 # Don't try to exec as it changes $[0], causing all sort of problems
30769 # (the dirname of $[0] is not the place where we might find the
30770 # original and so on. Autoconf is especially sensitive to this).
30771 . "./$as_me.lineno"
30772 # Exit status is that of the last command.
30777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30783 ECHO_C= ECHO_N= ECHO_T=
30784 case `echo -n x` in
30786 case `echo 'x\c'` in
30787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30794 if expr a : '\(a\)' >/dev/null 2>&1 &&
30795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30801 rm -f conf$$ conf$$.exe conf$$.file
30802 if test -d conf$$.dir; then
30803 rm -f conf$$.dir/conf$$.file
30809 if ln -s conf$$.file conf$$ 2>/dev/null; then
30811 # ... but there are two gotchas:
30812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30814 # In both cases, we have to default to `cp -p'.
30815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30817 elif ln conf$$.file conf$$ 2>/dev/null; then
30822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30823 rmdir conf$$.dir 2>/dev/null
30825 if mkdir -p . 2>/dev/null; then
30828 test -d ./-p && rmdir ./-p
30832 if test -x / >/dev/null 2>&1; then
30833 as_test_x='test -x'
30835 if ls -dL / >/dev/null 2>&1; then
30842 if test -d "$1"; then
30848 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30849 ???[sx]*):;;*)false;;esac;fi
30853 as_executable_p=$as_test_x
30855 # Sed expression to map a string onto a valid CPP name.
30856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30858 # Sed expression to map a string onto a valid variable name.
30859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30864 # Save the log message, to keep $[0] and so on meaningful, and to
30865 # report actual input values of CONFIG_FILES etc. instead of their
30866 # values after options handling.
30868 This file was extended by $as_me, which was
30869 generated by GNU Autoconf 2.61. Invocation command line was
30871 CONFIG_FILES = $CONFIG_FILES
30872 CONFIG_HEADERS = $CONFIG_HEADERS
30873 CONFIG_LINKS = $CONFIG_LINKS
30874 CONFIG_COMMANDS = $CONFIG_COMMANDS
30877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30882 cat >>$CONFIG_STATUS <<_ACEOF
30883 # Files that config.status was made for.
30884 config_files="$ac_config_files"
30885 config_headers="$ac_config_headers"
30886 config_commands="$ac_config_commands"
30890 cat >>$CONFIG_STATUS <<\_ACEOF
30892 \`$as_me' instantiates files from templates according to the
30893 current configuration.
30895 Usage: $0 [OPTIONS] [FILE]...
30897 -h, --help print this help, then exit
30898 -V, --version print version number and configuration settings, then exit
30899 -q, --quiet do not print progress messages
30900 -d, --debug don't remove temporary files
30901 --recheck update $as_me by reconfiguring in the same conditions
30902 --file=FILE[:TEMPLATE]
30903 instantiate the configuration file FILE
30904 --header=FILE[:TEMPLATE]
30905 instantiate the configuration header FILE
30907 Configuration files:
30910 Configuration headers:
30913 Configuration commands:
30916 Report bugs to <bug-autoconf@gnu.org>."
30919 cat >>$CONFIG_STATUS <<_ACEOF
30922 configured by $0, generated by GNU Autoconf 2.61,
30923 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30925 Copyright (C) 2006 Free Software Foundation, Inc.
30926 This config.status script is free software; the Free Software Foundation
30927 gives unlimited permission to copy, distribute and modify it."
30934 cat >>$CONFIG_STATUS <<\_ACEOF
30935 # If no file are specified by the user, then we need to provide default
30936 # value. By we need to know if files were specified by the user.
30942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30954 # Handling of the options.
30955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30958 echo "$ac_cs_version"; exit ;;
30959 --debug | --debu | --deb | --de | --d | -d )
30961 --file | --fil | --fi | --f )
30963 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30964 ac_need_defaults=false;;
30965 --header | --heade | --head | --hea )
30967 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30968 ac_need_defaults=false;;
30970 # Conflict between --help and --header
30971 { echo "$as_me: error: ambiguous option: $1
30972 Try \`$0 --help' for more information." >&2
30973 { (exit 1); exit 1; }; };;
30974 --help | --hel | -h )
30975 echo "$ac_cs_usage"; exit ;;
30976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30980 # This is an error.
30981 -*) { echo "$as_me: error: unrecognized option: $1
30982 Try \`$0 --help' for more information." >&2
30983 { (exit 1); exit 1; }; } ;;
30985 *) ac_config_targets="$ac_config_targets $1"
30986 ac_need_defaults=false ;;
30992 ac_configure_extra_args=
30994 if $ac_cs_silent; then
30996 ac_configure_extra_args="$ac_configure_extra_args --silent"
31000 cat >>$CONFIG_STATUS <<_ACEOF
31001 if \$ac_cs_recheck; then
31002 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31003 CONFIG_SHELL=$SHELL
31004 export CONFIG_SHELL
31005 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31009 cat >>$CONFIG_STATUS <<\_ACEOF
31013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31014 ## Running $as_me. ##
31020 cat >>$CONFIG_STATUS <<_ACEOF
31024 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31025 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31027 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31028 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31029 LINGUAS="${LINGUAS-%UNSET%}"
31034 cat >>$CONFIG_STATUS <<\_ACEOF
31036 # Handling of arguments.
31037 for ac_config_target in $ac_config_targets
31039 case $ac_config_target in
31040 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31041 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31042 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31044 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31045 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31046 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31047 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31048 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31049 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31050 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31051 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31052 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31053 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31054 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31055 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31056 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31057 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31058 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31059 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31060 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31061 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31062 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31063 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31064 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31065 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31066 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31067 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31068 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31069 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31070 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31071 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31072 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31073 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31074 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31075 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31076 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31077 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31078 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31079 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31080 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31081 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31082 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31083 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31084 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31085 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31086 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31087 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31088 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31089 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31090 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31091 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31092 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31093 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31094 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31095 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31096 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31097 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31098 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31099 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31100 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31101 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31102 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31103 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31104 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31105 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31106 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31107 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31108 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31109 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31110 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31111 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31112 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31113 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31114 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31115 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31116 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31117 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31118 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31119 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31120 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31121 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31122 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31123 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31124 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31125 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31126 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31127 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31128 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31129 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31130 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31131 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31132 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31133 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31134 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31135 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31136 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31137 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31138 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31139 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31140 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31141 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31142 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31143 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31144 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31145 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31146 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31147 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31148 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31149 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31151 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31152 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31153 { (exit 1); exit 1; }; };;
31158 # If the user did not use the arguments to specify the items to instantiate,
31159 # then the envvar interface is used. Set only those that are not.
31160 # We use the long form for the default assignment because of an extremely
31161 # bizarre bug on SunOS 4.1.3.
31162 if $ac_need_defaults; then
31163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31168 # Have a temporary directory for convenience. Make it in the build tree
31169 # simply because there is no reason against having it here, and in addition,
31170 # creating and moving files from /tmp can sometimes cause problems.
31171 # Hook for its removal unless debugging.
31172 # Note that there is a small window in which the directory will not be cleaned:
31173 # after its creation but before its name has been assigned to `$tmp'.
31177 trap 'exit_status=$?
31178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31180 trap '{ (exit 1); exit 1; }' 1 2 13 15
31182 # Create a (secure) tmp directory for tmp files.
31185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31186 test -n "$tmp" && test -d "$tmp"
31189 tmp=./conf$$-$RANDOM
31190 (umask 077 && mkdir "$tmp")
31193 echo "$me: cannot create a temporary directory in ." >&2
31194 { (exit 1); exit 1; }
31198 # Set up the sed scripts for CONFIG_FILES section.
31201 # No need to generate the scripts if there are no CONFIG_FILES.
31202 # This happens for instance when ./config.status config.h
31203 if test -n "$CONFIG_FILES"; then
31207 # Create sed commands to just substitute file output variables.
31209 # Remaining file output variables are in a fragment that also has non-file
31215 for ac_last_try in false false false false false :; do
31216 cat >conf$$subs.sed <<_ACEOF
31217 SHELL!$SHELL$ac_delim
31218 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31219 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31220 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31221 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31222 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31223 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31224 exec_prefix!$exec_prefix$ac_delim
31225 prefix!$prefix$ac_delim
31226 program_transform_name!$program_transform_name$ac_delim
31227 bindir!$bindir$ac_delim
31228 sbindir!$sbindir$ac_delim
31229 libexecdir!$libexecdir$ac_delim
31230 datarootdir!$datarootdir$ac_delim
31231 datadir!$datadir$ac_delim
31232 sysconfdir!$sysconfdir$ac_delim
31233 sharedstatedir!$sharedstatedir$ac_delim
31234 localstatedir!$localstatedir$ac_delim
31235 includedir!$includedir$ac_delim
31236 oldincludedir!$oldincludedir$ac_delim
31237 docdir!$docdir$ac_delim
31238 infodir!$infodir$ac_delim
31239 htmldir!$htmldir$ac_delim
31240 dvidir!$dvidir$ac_delim
31241 pdfdir!$pdfdir$ac_delim
31242 psdir!$psdir$ac_delim
31243 libdir!$libdir$ac_delim
31244 localedir!$localedir$ac_delim
31245 mandir!$mandir$ac_delim
31246 DEFS!$DEFS$ac_delim
31247 ECHO_C!$ECHO_C$ac_delim
31248 ECHO_N!$ECHO_N$ac_delim
31249 ECHO_T!$ECHO_T$ac_delim
31250 LIBS!$LIBS$ac_delim
31251 build_alias!$build_alias$ac_delim
31252 host_alias!$host_alias$ac_delim
31253 target_alias!$target_alias$ac_delim
31254 BUILD_DIR!$BUILD_DIR$ac_delim
31255 TOP_DIR!$TOP_DIR$ac_delim
31256 TRUEPRG!$TRUEPRG$ac_delim
31257 FALSEPRG!$FALSEPRG$ac_delim
31258 VERSION!$VERSION$ac_delim
31259 DATE!$DATE$ac_delim
31260 LSMDATE!$LSMDATE$ac_delim
31262 CFLAGS!$CFLAGS$ac_delim
31263 LDFLAGS!$LDFLAGS$ac_delim
31264 CPPFLAGS!$CPPFLAGS$ac_delim
31265 ac_ct_CC!$ac_ct_CC$ac_delim
31266 EXEEXT!$EXEEXT$ac_delim
31267 OBJEXT!$OBJEXT$ac_delim
31269 CXXFLAGS!$CXXFLAGS$ac_delim
31270 ac_ct_CXX!$ac_ct_CXX$ac_delim
31272 GREP!$GREP$ac_delim
31273 EGREP!$EGREP$ac_delim
31274 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31275 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31276 INSTALL_DATA!$INSTALL_DATA$ac_delim
31277 RANLIB!$RANLIB$ac_delim
31282 ECHO!$ECHO$ac_delim
31286 OPENSSL!$OPENSSL$ac_delim
31289 MKISOFS!$MKISOFS$ac_delim
31290 PYTHON!$PYTHON$ac_delim
31291 GROWISOFS!$GROWISOFS$ac_delim
31292 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31293 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31294 PKGCONFIG!$PKGCONFIG$ac_delim
31295 QMAKE!$QMAKE$ac_delim
31296 QMAKEQT4!$QMAKEQT4$ac_delim
31297 WXCONFIG!$WXCONFIG$ac_delim
31298 WXFLAGS!$WXFLAGS$ac_delim
31299 CDRECORD!$CDRECORD$ac_delim
31300 PIDOF!$PIDOF$ac_delim
31302 ARFLAGS!$ARFLAGS$ac_delim
31303 MAKE_SHELL!$MAKE_SHELL$ac_delim
31304 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31305 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31306 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31307 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31308 build!$build$ac_delim
31309 build_cpu!$build_cpu$ac_delim
31310 build_vendor!$build_vendor$ac_delim
31313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31315 elif $ac_last_try; then
31316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31318 { (exit 1); exit 1; }; }
31320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31325 if test -n "$ac_eof"; then
31326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31327 ac_eof=`expr $ac_eof + 1`
31330 cat >>$CONFIG_STATUS <<_ACEOF
31331 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31333 /^[ ]*@MCOMMON@[ ]*$/{
31339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31340 s/^/s,@/; s/!/@,|#_!!_#|/
31343 s/'"$ac_delim"'$/,g/; t
31345 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31346 ' >>$CONFIG_STATUS <conf$$subs.sed
31347 rm -f conf$$subs.sed
31348 cat >>$CONFIG_STATUS <<_ACEOF
31354 for ac_last_try in false false false false false :; do
31355 cat >conf$$subs.sed <<_ACEOF
31356 build_os!$build_os$ac_delim
31357 host!$host$ac_delim
31358 host_cpu!$host_cpu$ac_delim
31359 host_vendor!$host_vendor$ac_delim
31360 host_os!$host_os$ac_delim
31361 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31362 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31363 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31364 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31365 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31366 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31367 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31368 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31369 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31370 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31371 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31372 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31373 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31374 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31375 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31376 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31377 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31378 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31379 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31380 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31381 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31382 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31383 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31384 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31385 SET_MAKE!$SET_MAKE$ac_delim
31386 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31387 USE_NLS!$USE_NLS$ac_delim
31388 MSGFMT!$MSGFMT$ac_delim
31389 GMSGFMT!$GMSGFMT$ac_delim
31390 XGETTEXT!$XGETTEXT$ac_delim
31391 MSGMERGE!$MSGMERGE$ac_delim
31392 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31393 LIBICONV!$LIBICONV$ac_delim
31394 LTLIBICONV!$LTLIBICONV$ac_delim
31395 INTLLIBS!$INTLLIBS$ac_delim
31396 LIBINTL!$LIBINTL$ac_delim
31397 LTLIBINTL!$LTLIBINTL$ac_delim
31398 POSUB!$POSUB$ac_delim
31399 GLIBC2!$GLIBC2$ac_delim
31400 ALLOCA!$ALLOCA$ac_delim
31401 GLIBC21!$GLIBC21$ac_delim
31402 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31403 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31404 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31405 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31406 INTLBISON!$INTLBISON$ac_delim
31407 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31408 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31409 CATOBJEXT!$CATOBJEXT$ac_delim
31410 DATADIRNAME!$DATADIRNAME$ac_delim
31411 INSTOBJEXT!$INSTOBJEXT$ac_delim
31412 GENCAT!$GENCAT$ac_delim
31413 INTLOBJS!$INTLOBJS$ac_delim
31414 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31415 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31416 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31417 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31418 GNOME_LIBS!$GNOME_LIBS$ac_delim
31419 GNOME_DIR!$GNOME_DIR$ac_delim
31420 BAT_DIR!$BAT_DIR$ac_delim
31421 QWT_INC!$QWT_INC$ac_delim
31422 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31423 QWT_LIB!$QWT_LIB$ac_delim
31425 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31426 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31427 WX_DIR!$WX_DIR$ac_delim
31428 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31429 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31430 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31431 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31432 STATIC_FD!$STATIC_FD$ac_delim
31433 STATIC_SD!$STATIC_SD$ac_delim
31434 STATIC_DIR!$STATIC_DIR$ac_delim
31435 STATIC_CONS!$STATIC_CONS$ac_delim
31436 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31437 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31438 ALL_DIRS!$ALL_DIRS$ac_delim
31439 DIRD_DIR!$DIRD_DIR$ac_delim
31440 DIR_TOOLS!$DIR_TOOLS$ac_delim
31441 STORED_DIR!$STORED_DIR$ac_delim
31442 CONS_INC!$CONS_INC$ac_delim
31443 CONS_OBJ!$CONS_OBJ$ac_delim
31444 CONS_SRC!$CONS_SRC$ac_delim
31445 CONS_LIBS!$CONS_LIBS$ac_delim
31446 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31447 READLINE_SRC!$READLINE_SRC$ac_delim
31448 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31449 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31450 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31451 OPENSSL_INC!$OPENSSL_INC$ac_delim
31452 working_dir!$working_dir$ac_delim
31455 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31457 elif $ac_last_try; then
31458 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31459 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31460 { (exit 1); exit 1; }; }
31462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31466 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31467 if test -n "$ac_eof"; then
31468 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31469 ac_eof=`expr $ac_eof + 1`
31472 cat >>$CONFIG_STATUS <<_ACEOF
31473 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31477 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31478 s/^/s,@/; s/!/@,|#_!!_#|/
31481 s/'"$ac_delim"'$/,g/; t
31483 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31484 ' >>$CONFIG_STATUS <conf$$subs.sed
31485 rm -f conf$$subs.sed
31486 cat >>$CONFIG_STATUS <<_ACEOF
31492 for ac_last_try in false false false false false :; do
31493 cat >conf$$subs.sed <<_ACEOF
31494 archivedir!$archivedir$ac_delim
31495 scriptdir!$scriptdir$ac_delim
31496 dump_email!$dump_email$ac_delim
31497 job_email!$job_email$ac_delim
31498 smtp_host!$smtp_host$ac_delim
31499 piddir!$piddir$ac_delim
31500 subsysdir!$subsysdir$ac_delim
31501 baseport!$baseport$ac_delim
31502 dir_port!$dir_port$ac_delim
31503 fd_port!$fd_port$ac_delim
31504 sd_port!$sd_port$ac_delim
31505 dir_password!$dir_password$ac_delim
31506 fd_password!$fd_password$ac_delim
31507 sd_password!$sd_password$ac_delim
31508 mon_dir_password!$mon_dir_password$ac_delim
31509 mon_fd_password!$mon_fd_password$ac_delim
31510 mon_sd_password!$mon_sd_password$ac_delim
31511 db_name!$db_name$ac_delim
31512 db_user!$db_user$ac_delim
31513 dir_user!$dir_user$ac_delim
31514 dir_group!$dir_group$ac_delim
31515 sd_user!$sd_user$ac_delim
31516 sd_group!$sd_group$ac_delim
31517 fd_user!$fd_user$ac_delim
31518 fd_group!$fd_group$ac_delim
31519 SBINPERM!$SBINPERM$ac_delim
31520 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31521 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31522 SQL_BINDIR!$SQL_BINDIR$ac_delim
31523 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31524 DB_PROG!$DB_PROG$ac_delim
31525 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31526 cats!$cats$ac_delim
31527 DB_TYPE!$DB_TYPE$ac_delim
31528 GETCONF!$GETCONF$ac_delim
31529 XMKMF!$XMKMF$ac_delim
31530 X_CFLAGS!$X_CFLAGS$ac_delim
31531 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31532 X_LIBS!$X_LIBS$ac_delim
31533 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31534 LIBOBJS!$LIBOBJS$ac_delim
31535 FDLIBS!$FDLIBS$ac_delim
31536 DEBUG!$DEBUG$ac_delim
31537 DINCLUDE!$DINCLUDE$ac_delim
31538 DLIB!$DLIB$ac_delim
31539 DB_LIBS!$DB_LIBS$ac_delim
31540 WCFLAGS!$WCFLAGS$ac_delim
31541 WLDFLAGS!$WLDFLAGS$ac_delim
31542 WRAPLIBS!$WRAPLIBS$ac_delim
31543 OBJLIST!$OBJLIST$ac_delim
31544 hostname!$hostname$ac_delim
31545 TAPEDRIVE!$TAPEDRIVE$ac_delim
31546 PSCMD!$PSCMD$ac_delim
31547 WIN32!$WIN32$ac_delim
31548 MACOSX!$MACOSX$ac_delim
31549 DISTNAME!$DISTNAME$ac_delim
31550 DISTVER!$DISTVER$ac_delim
31551 LTLIBOBJS!$LTLIBOBJS$ac_delim
31554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31556 elif $ac_last_try; then
31557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31559 { (exit 1); exit 1; }; }
31561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31566 if test -n "$ac_eof"; then
31567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31568 ac_eof=`expr $ac_eof + 1`
31571 cat >>$CONFIG_STATUS <<_ACEOF
31572 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31577 s/^/s,@/; s/!/@,|#_!!_#|/
31580 s/'"$ac_delim"'$/,g/; t
31582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31583 ' >>$CONFIG_STATUS <conf$$subs.sed
31584 rm -f conf$$subs.sed
31585 cat >>$CONFIG_STATUS <<_ACEOF
31592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31594 # trailing colons and then remove the whole line if VPATH becomes empty
31595 # (actually we leave an empty line to preserve line numbers).
31596 if test "x$srcdir" = x.; then
31597 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31598 s/:*\$(srcdir):*/:/
31599 s/:*\${srcdir}:*/:/
31601 s/^\([^=]*=[ ]*\):*/\1/
31607 cat >>$CONFIG_STATUS <<\_ACEOF
31608 fi # test -n "$CONFIG_FILES"
31611 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31614 :[FHLC]) ac_mode=$ac_tag; continue;;
31616 case $ac_mode$ac_tag in
31618 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31619 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31620 { (exit 1); exit 1; }; };;
31621 :[FH]-) ac_tag=-:-;;
31622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31639 -) ac_f="$tmp/stdin";;
31640 *) # Look for the file first in the build tree, then in the source tree
31641 # (if the path is not absolute). The absolute path cannot be DOS-style,
31642 # because $ac_f cannot contain `:'.
31646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31648 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31649 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31650 { (exit 1); exit 1; }; };;
31652 ac_file_inputs="$ac_file_inputs $ac_f"
31655 # Let's still pretend it is `configure' which instantiates (i.e., don't
31656 # use $as_me), people would be surprised to read:
31657 # /* config.h. Generated by config.status. */
31658 configure_input="Generated from "`IFS=:
31659 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31660 if test x"$ac_file" != x-; then
31661 configure_input="$ac_file. $configure_input"
31662 { echo "$as_me:$LINENO: creating $ac_file" >&5
31663 echo "$as_me: creating $ac_file" >&6;}
31667 *:-:* | *:-) cat >"$tmp/stdin";;
31672 ac_dir=`$as_dirname -- "$ac_file" ||
31673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31674 X"$ac_file" : 'X\(//\)[^/]' \| \
31675 X"$ac_file" : 'X\(//\)$' \| \
31676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31682 /^X\(\/\/\)[^/].*/{
31697 -*) as_dir=./$as_dir;;
31699 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31703 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31704 *) as_qdir=$as_dir;;
31706 as_dirs="'$as_qdir' $as_dirs"
31707 as_dir=`$as_dirname -- "$as_dir" ||
31708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31709 X"$as_dir" : 'X\(//\)[^/]' \| \
31710 X"$as_dir" : 'X\(//\)$' \| \
31711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31717 /^X\(\/\/\)[^/].*/{
31730 test -d "$as_dir" && break
31732 test -z "$as_dirs" || eval "mkdir $as_dirs"
31733 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31734 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31735 { (exit 1); exit 1; }; }; }
31739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31742 # A ".." for each directory in $ac_dir_suffix.
31743 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31744 case $ac_top_builddir_sub in
31745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31749 ac_abs_top_builddir=$ac_pwd
31750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31751 # for backward compatibility:
31752 ac_top_builddir=$ac_top_build_prefix
31755 .) # We are building in place.
31757 ac_top_srcdir=$ac_top_builddir_sub
31758 ac_abs_top_srcdir=$ac_pwd ;;
31759 [\\/]* | ?:[\\/]* ) # Absolute name.
31760 ac_srcdir=$srcdir$ac_dir_suffix;
31761 ac_top_srcdir=$srcdir
31762 ac_abs_top_srcdir=$srcdir ;;
31763 *) # Relative name.
31764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31765 ac_top_srcdir=$ac_top_build_prefix$srcdir
31766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31779 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31783 cat >>$CONFIG_STATUS <<\_ACEOF
31784 # If the template does not know about datarootdir, expand it.
31785 # FIXME: This hack should be removed a few years after 2.60.
31786 ac_datarootdir_hack=; ac_datarootdir_seen=
31788 case `sed -n '/datarootdir/ {
31797 ' $ac_file_inputs` in
31798 *datarootdir*) ac_datarootdir_seen=yes;;
31799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31800 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31801 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31803 cat >>$CONFIG_STATUS <<_ACEOF
31804 ac_datarootdir_hack='
31805 s&@datadir@&$datadir&g
31806 s&@docdir@&$docdir&g
31807 s&@infodir@&$infodir&g
31808 s&@localedir@&$localedir&g
31809 s&@mandir@&$mandir&g
31810 s&\\\${datarootdir}&$datarootdir&g' ;;
31814 # Neutralize VPATH when `$srcdir' = `.'.
31815 # Shell code in configure.ac might set extrasub.
31816 # FIXME: do we really want to maintain this feature?
31817 cat >>$CONFIG_STATUS <<_ACEOF
31821 cat >>$CONFIG_STATUS <<\_ACEOF
31823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31824 s&@configure_input@&$configure_input&;t t
31825 s&@top_builddir@&$ac_top_builddir_sub&;t t
31826 s&@srcdir@&$ac_srcdir&;t t
31827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31828 s&@top_srcdir@&$ac_top_srcdir&;t t
31829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31830 s&@builddir@&$ac_builddir&;t t
31831 s&@abs_builddir@&$ac_abs_builddir&;t t
31832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31833 s&@INSTALL@&$ac_INSTALL&;t t
31834 $ac_datarootdir_hack
31835 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31838 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31839 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31840 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31841 which seems to be undefined. Please make sure it is defined." >&5
31842 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31843 which seems to be undefined. Please make sure it is defined." >&2;}
31847 -) cat "$tmp/out"; rm -f "$tmp/out";;
31848 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31857 # Transform confdefs.h into a sed script `conftest.defines', that
31858 # substitutes the proper values into config.h.in to produce config.h.
31859 rm -f conftest.defines conftest.tail
31860 # First, append a space to every undef/define line, to ease matching.
31861 echo 's/$/ /' >conftest.defines
31862 # Then, protect against being on the right side of a sed subst, or in
31863 # an unquoted here document, in config.status. If some macros were
31864 # called several times there might be several #defines for the same
31865 # symbol, which is useless. But do not sort them, since the last
31866 # AC_DEFINE must be honored.
31867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31868 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31869 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31870 # PARAMS is the parameter list in the macro definition--in most cases, it's
31871 # just an empty string.
31872 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31873 ac_dB='\\)[ (].*,\\1define\\2'
31881 s/^[ ]*#[ ]*define[ ][ ]*//
31886 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31887 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31888 ' >>conftest.defines
31890 # Remove the space that was appended to ease matching.
31891 # Then replace #undef with comments. This is necessary, for
31892 # example, in the case of _POSIX_SOURCE, which is predefined and required
31893 # on some systems where configure will not decide to define it.
31894 # (The regexp can be short, since the line contains either #define or #undef.)
31896 s,^[ #]*u.*,/* & */,' >>conftest.defines
31898 # Break up conftest.defines:
31899 ac_max_sed_lines=50
31901 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31902 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31903 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31905 ac_in='$ac_file_inputs'
31906 ac_out='"$tmp/out1"'
31907 ac_nxt='"$tmp/out2"'
31911 # Write a here document:
31912 cat >>$CONFIG_STATUS <<_ACEOF
31913 # First, check the format of the line:
31914 cat >"\$tmp/defines.sed" <<\\CEOF
31915 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31916 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31920 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31922 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31923 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31924 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31925 grep . conftest.tail >/dev/null || break
31926 rm -f conftest.defines
31927 mv conftest.tail conftest.defines
31929 rm -f conftest.defines conftest.tail
31931 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31932 cat >>$CONFIG_STATUS <<\_ACEOF
31933 if test x"$ac_file" != x-; then
31934 echo "/* $configure_input */" >"$tmp/config.h"
31935 cat "$ac_result" >>"$tmp/config.h"
31936 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31938 echo "$as_me: $ac_file is unchanged" >&6;}
31941 mv "$tmp/config.h" $ac_file
31944 echo "/* $configure_input */"
31950 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31951 echo "$as_me: executing $ac_file commands" >&6;}
31956 case $ac_file$ac_mode in
31958 for ac_file in $CONFIG_FILES; do
31959 # Support "outfile[:infile[:infile...]]"
31961 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31963 # PO directories have a Makefile.in generated from Makefile.in.in.
31964 case "$ac_file" in */Makefile.in)
31965 # Adjust a relative srcdir.
31966 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31967 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31968 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31969 # In autoconf-2.13 it is called $ac_given_srcdir.
31970 # In autoconf-2.50 it is called $srcdir.
31971 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31972 case "$ac_given_srcdir" in
31973 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31974 /*) top_srcdir="$ac_given_srcdir" ;;
31975 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31977 # Treat a directory as a PO directory if and only if it has a
31978 # POTFILES.in file. This allows packages to have multiple PO
31979 # directories under different names or in different locations.
31980 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31981 rm -f "$ac_dir/POTFILES"
31982 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31983 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31984 POMAKEFILEDEPS="POTFILES.in"
31985 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31986 # on $ac_dir but don't depend on user-specified configuration
31988 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31989 # The LINGUAS file contains the set of available languages.
31990 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31991 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31993 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31994 # Hide the ALL_LINGUAS assigment from automake.
31995 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31996 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31998 # The set of available languages was given in configure.in.
31999 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32002 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32003 # Compute UPDATEPOFILES
32004 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32005 # Compute DUMMYPOFILES
32006 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32008 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32009 case "$ac_given_srcdir" in
32011 *) srcdirpre='$(srcdir)/' ;;
32017 for lang in $ALL_LINGUAS; do
32018 POFILES="$POFILES $srcdirpre$lang.po"
32019 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32020 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32021 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32023 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32024 # environment variable.
32026 if test -n "$ALL_LINGUAS"; then
32027 for presentlang in $ALL_LINGUAS; do
32029 if test "%UNSET%" != "$LINGUAS"; then
32030 desiredlanguages="$LINGUAS"
32032 desiredlanguages="$ALL_LINGUAS"
32034 for desiredlang in $desiredlanguages; do
32035 # Use the presentlang catalog if desiredlang is
32036 # a. equal to presentlang, or
32037 # b. a variant of presentlang (because in this case,
32038 # presentlang can be used as a fallback for messages
32039 # which are not translated in the desiredlang catalog).
32040 case "$desiredlang" in
32041 "$presentlang"*) useit=yes;;
32044 if test $useit = yes; then
32045 INST_LINGUAS="$INST_LINGUAS $presentlang"
32050 if test -n "$INST_LINGUAS"; then
32051 for lang in $INST_LINGUAS; do
32052 CATALOGS="$CATALOGS $lang.gmo"
32055 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32056 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"
32057 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32058 if test -f "$f"; then
32060 *.orig | *.bak | *~) ;;
32061 *) cat "$f" >> "$ac_dir/Makefile" ;;
32076 { (exit 0); exit 0; }
32078 chmod +x $CONFIG_STATUS
32079 ac_clean_files=$ac_clean_files_save
32082 # configure is writing to config.log, and then calls config.status.
32083 # config.status does its own redirection, appending to config.log.
32084 # Unfortunately, on DOS this fails, as config.log is still kept open
32085 # by configure, so config.status won't be able to write to it; its
32086 # output is simply discarded. So we exec the FD to /dev/null,
32087 # effectively closing config.log, so it can be properly (re)opened and
32088 # appended to by config.status. When coming back to configure, we
32089 # need to make the FD available again.
32090 if test "$no_create" != yes; then
32092 ac_config_status_args=
32093 test "$silent" = yes &&
32094 ac_config_status_args="$ac_config_status_args --quiet"
32096 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32099 # would make configure fail if this is the last instruction.
32100 $ac_cs_success || { (exit 1); exit 1; }
32104 if test "${support_bat}" = "yes" ; then
32105 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32106 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32112 if test "x$QMAKEQT4" != "xnone"; then
32119 chmod 755 install_conf_file build-depkgs-qt-console
32120 echo "Creating bat Makefile"
32125 echo "Doing make of dependencies"
32126 ${MAKE:-make} depend
32129 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32130 chmod 755 dvd-handler dvd-simulator
32131 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32135 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32136 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32140 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32141 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32143 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32144 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32146 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32147 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32149 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32150 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32152 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32153 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32155 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32156 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32158 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32159 chmod 755 $c/sqlite
32162 chmod 755 src/win32/build-depkgs-mingw32
32166 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32167 largefile_support="yes"
32171 # A whole lot of hand springs to get the compiler version.
32172 # This is because gcc changed the output in version 3.0
32174 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32175 if test "x${CCVERSION}" = "x" ; then
32176 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32178 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32179 if test x"${CXXVERSION}" = x ; then
32180 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32183 if test "x${subsysdir}" = "x${sbindir}" ; then
32186 echo "You have set --sbindir and --with-subsys-dir"
32187 echo " both equal to: ${subsysdir} "
32188 echo " This is not permitted. Please reconfigure."
32190 echo "Aborting configuration ..."
32196 if test "x${db_type}" = "xInternal" ; then
32199 echo "You have not specified either --enable-client-only or one of the"
32200 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32201 echo " This is not permitted. Please reconfigure."
32203 echo "Aborting the configuration ..."
32210 Configuration on `date`:
32212 Host: $host -- ${DISTNAME} ${DISTVER}
32213 Bacula version: ${VERSION} (${DATE})
32214 Source code location: ${srcdir}
32215 Install binaries: ${sbindir}
32216 Install config files: ${sysconfdir}
32217 Scripts directory: ${scriptdir}
32218 Archive directory: ${archivedir}
32219 Working directory: ${working_dir}
32220 PID directory: ${piddir}
32221 Subsys directory: ${subsysdir}
32222 Man directory: ${mandir}
32223 Data directory: ${datadir}
32224 C Compiler: ${CC} ${CCVERSION}
32225 C++ Compiler: ${CXX} ${CXXVERSION}
32226 Compiler flags: ${WCFLAGS} ${CFLAGS}
32227 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32229 Statically Linked Tools: ${support_static_tools}
32230 Statically Linked FD: ${support_static_fd}
32231 Statically Linked SD: ${support_static_sd}
32232 Statically Linked DIR: ${support_static_dir}
32233 Statically Linked CONS: ${support_static_cons}
32234 Database type: ${db_type}
32235 Database lib: ${DB_LIBS}
32236 Database name: ${db_name}
32237 Database user: ${db_user}
32239 Job Output Email: ${job_email}
32240 Traceback Email: ${dump_email}
32241 SMTP Host Address: ${smtp_host}
32243 Director Port: ${dir_port}
32244 File daemon Port: ${fd_port}
32245 Storage daemon Port: ${sd_port}
32247 Director User: ${dir_user}
32248 Director Group: ${dir_group}
32249 Storage Daemon User: ${sd_user}
32250 Storage DaemonGroup: ${sd_group}
32251 File Daemon User: ${fd_user}
32252 File Daemon Group: ${fd_group}
32254 SQL binaries Directory ${SQL_BINDIR}
32256 Large file support: $largefile_support
32257 Bacula conio support: ${got_conio} ${CONS_LIBS}
32258 readline support: ${got_readline} ${PRTREADLINE_SRC}
32259 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32260 TLS support: ${support_tls}
32261 Encryption support: ${support_crypto}
32262 ZLIB support: ${have_zlib}
32263 enable-smartalloc: ${support_smartalloc}
32264 enable-faketape: ${support_faketape}
32265 bat support: ${support_bat} ${QWT_LDFLAGS}
32266 enable-gnome: ${support_gnome} ${gnome_version}
32267 enable-bwx-console: ${support_wx_console} ${wx_version}
32268 enable-tray-monitor: ${support_tray_monitor}
32269 client-only: ${build_client_only}
32270 build-dird: ${build_dird}
32271 build-stored: ${build_stored}
32272 ACL support: ${have_acl}
32273 Python support: ${support_python} ${PYTHON_LIBS}
32274 Batch insert enabled: ${support_batch_insert}