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
780 TRAY_MONITOR_CPPFLAGS
860 ac_subst_files='MCOMMON'
861 ac_precious_vars='build_alias
878 # Initialize some variables set by options.
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985 eval enable_$ac_feature=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=\$ac_optarg ;;
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 htmldir=$ac_optarg ;;
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1049 -libdir | --libdir | --libdi | --libd)
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1140 -psdir | --psdir | --psdi | --psd | --ps)
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 sbindir=$ac_optarg ;;
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 sharedstatedir=$ac_optarg ;;
1166 -site | --site | --sit)
1168 -site=* | --site=* | --sit=*)
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1195 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201 eval with_$ac_package=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 if test -n "$ac_init_help"; then
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-nls do not use Native Language Support
1453 --disable-rpath do not hardcode runtime library paths
1454 --enable-gnome enable build of bgnome-console GUI disabled
1455 --enable-bat enable build of bat Qt4 GUI disabled
1456 --enable-bwx-console enable build of wxWidgets console disabled
1457 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1458 --enable-smartalloc enable smartalloc debugging support disabled
1459 --enable-static-tools enable static tape tools disabled
1460 --enable-static-fd enable static File daemon disabled
1461 --enable-static-sd enable static Storage daemon disabled
1462 --enable-static-dir enable static Director disabled
1463 --enable-static-cons enable static Console disabled
1464 --enable-client-only build client (File daemon) only disabled
1465 --enable-build-dird enable building of dird (Director) enabled
1466 --enable-build-stored enable building of stored (Storage daemon) enabled
1467 --disable-conio disable conio support enabled
1469 --enable-ipv6 enable ipv6 support enabled
1471 --disable-readline disable readline support disable
1473 --enable-batch-insert enable the DB batch insert code disabled
1474 --disable-largefile omit support for large files
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld default=no
1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1482 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1483 --without-libintl-prefix don't search for libintl in includedir and libdir
1484 --with-included-gettext use the GNU gettext library included here
1485 --with-qwt[=DIR] specify qwt library directory
1486 --with-readline[=DIR] specify readline library directory
1488 --with-python[=DIR] Include Python support. DIR is the Python base
1489 install directory, default is to search through
1490 a number of common places for the Python files.
1491 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1492 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1493 --with-working-dir=PATH specify path of Bacula working directory
1494 --with-archivedir=PATH specify path of SD archive directory
1495 --with-scriptdir=PATH specify path of Bacula scripts directory
1496 --with-dump-email=EMAIL dump email address
1497 --with-job-email=EMAIL job output email address
1498 --with-smtp-host=HOST SMTP mail host address
1499 --with-pid-dir=PATH specify location of Bacula pid files
1500 --with-subsys-dir=PATH specify location of Bacula subsys file
1501 --with-baseport=PORT specify base port address for daemons
1502 --with-dir-password=PASSWORD specify Director's password
1503 --with-fd-password=PASSWORD specify Client's password
1504 --with-sd-password=PASSWORD specify Storage daemon's password
1505 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1506 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1507 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1508 --with-db-name=DBNAME specify database name (default bacula)
1509 --with-db-user=UNAME specify database user (default bacula)
1510 --with-dir-user=USER specify user for Director daemon
1511 --with-dir-group=GROUP specify group for Director daemon
1512 --with-sd-user=USER specify user for Storage daemon
1513 --with-sd-group=GROUP specify group for Storage daemon
1514 --with-fd-user=USER specify user for File daemon
1515 --with-fd-group=GROUP specify group for File daemon
1516 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1517 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1518 base install directory, defaults to /usr/local/pgsql
1520 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1521 install directory, default is to search through
1522 a number of common places for the MySQL files.
1524 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1525 install directory, default is to search through
1526 a number of common places for the MySQL files.
1528 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1529 install directory, default is to search through
1530 a number of common places for the SQLite3 files.
1532 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1533 install directory, default is to search through
1534 a number of common places for the SQLite files.
1535 --with-x use the X Window System
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
1548 WXCONFIG wx-config command. On some systems, you must set it to
1549 wx-config-2.6 to use wxWidgets 2.6.
1550 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1551 XMKMF Path to xmkmf, Makefile generator for X Window System
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" || continue
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1617 generated by GNU Autoconf 2.61
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by $as_me, which was
1631 generated by GNU Autoconf 2.61. Invocation command line was
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 echo "$as_me: caught signal $ac_signal"
1824 echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868 set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872 set x "$ac_default_prefix/share/config.site" \
1873 "$ac_default_prefix/etc/config.site"
1878 if test -r "$ac_site_file"; then
1879 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1903 # Check that the precious variables saved in the cache have kept the same
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908 eval ac_new_set=\$ac_env_${ac_var}_set
1909 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910 eval ac_new_val=\$ac_env_${ac_var}_value
1911 case $ac_old_set,$ac_new_set in
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1922 if test "x$ac_old_val" != "x$ac_new_val"; then
1923 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1926 echo "$as_me: former value: $ac_old_val" >&2;}
1927 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1928 echo "$as_me: current value: $ac_new_val" >&2;}
1929 ac_cache_corrupted=:
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1935 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 *) ac_arg=$ac_var=$ac_new_val ;;
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944 if $ac_cache_corrupted; then
1945 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949 { (exit 1); exit 1; }; }
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1983 if test -f "$ac_dir/install-sh"; then
1985 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 elif test -f "$ac_dir/install.sh"; then
1989 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 elif test -f "$ac_dir/shtool"; then
1993 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 if test -z "$ac_aux_dir"; then
1998 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2000 { (exit 1); exit 1; }; }
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2012 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 TRUEPRG=$ac_cv_path_TRUEPRG
2051 if test -n "$TRUEPRG"; then
2052 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2053 echo "${ECHO_T}$TRUEPRG" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$TRUEPRG" && break
2062 test -n "$TRUEPRG" || TRUEPRG=":"
2064 for ac_prog in false
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 FALSEPRG=$ac_cv_path_FALSEPRG
2097 if test -n "$FALSEPRG"; then
2098 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2099 echo "${ECHO_T}$FALSEPRG" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$FALSEPRG" && break
2108 test -n "$FALSEPRG" || FALSEPRG=":"
2112 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2113 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2114 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2115 echo "configuring for bacula $VERSION ($DATE)"
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 if test -n "$ac_tool_prefix"; then
2125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 if test -n "$CC"; then
2154 { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2157 { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2163 if test -z "$ac_cv_prog_CC"; then
2165 # Extract the first word of "gcc", so it can be a program name with args.
2166 set dummy gcc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$ac_ct_CC"; then
2173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_ac_ct_CC="gcc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193 if test -n "$ac_ct_CC"; then
2194 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195 echo "${ECHO_T}$ac_ct_CC" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2201 if test "x$ac_ct_CC" = x; then
2204 case $cross_compiling:$ac_tool_warned in
2206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet. If you think this
2208 configuration is useful to you, please write to autoconf@gnu.org." >&5
2209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet. If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2212 ac_tool_warned=yes ;;
2220 if test -z "$CC"; then
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2223 set dummy ${ac_tool_prefix}cc; ac_word=$2
2224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239 ac_cv_prog_CC="${ac_tool_prefix}cc"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 if test -n "$CC"; then
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2261 if test -z "$CC"; then
2262 # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 ac_prog_rejected=yes
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 if test $ac_prog_rejected = yes; then
2293 # We found a bogon in the path, so make sure we never use it.
2294 set dummy $ac_cv_prog_CC
2296 if test $# != 0; then
2297 # We chose a different compiler from the bogus one.
2298 # However, it has the same basename, so the bogon will be chosen
2299 # first if we set CC to just the basename; use the full file name.
2301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2307 if test -n "$CC"; then
2308 { echo "$as_me:$LINENO: result: $CC" >&5
2309 echo "${ECHO_T}$CC" >&6; }
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2317 if test -z "$CC"; then
2318 if test -n "$ac_tool_prefix"; then
2319 for ac_prog in cl.exe
2321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 if test -n "$CC"; then
2350 { echo "$as_me:$LINENO: result: $CC" >&5
2351 echo "${ECHO_T}$CC" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2358 test -n "$CC" && break
2361 if test -z "$CC"; then
2363 for ac_prog in cl.exe
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_ac_ct_CC="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2395 echo "${ECHO_T}$ac_ct_CC" >&6; }
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2402 test -n "$ac_ct_CC" && break
2405 if test "x$ac_ct_CC" = x; then
2408 case $cross_compiling:$ac_tool_warned in
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2425 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&2;}
2429 { (exit 1); exit 1; }; }
2431 # Provide some information about the compiler.
2432 echo "$as_me:$LINENO: checking for C compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (ac_try="$ac_compiler --version >&5"
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440 (eval "$ac_compiler --version >&5") 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2444 { (ac_try="$ac_compiler -v >&5"
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_compiler -v >&5") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454 { (ac_try="$ac_compiler -V >&5"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compiler -V >&5") 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 ac_clean_files_save=$ac_clean_files
2481 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2482 # Try to create an executable without -o first, disregard a.out.
2483 # It will help us diagnose broken compilers, and finding out an intuition
2485 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2486 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2489 # List of possible output files, starting from the most likely.
2490 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2491 # only as a last resort. b.out is created by i960 compilers.
2492 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2494 # The IRIX 6 linker writes into existing files which may not be
2495 # executable, retaining their permissions. Remove them first so a
2496 # subsequent execution test works.
2498 for ac_file in $ac_files
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2507 if { (ac_try="$ac_link_default"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_link_default") 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; then
2517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2520 # so that the user can short-circuit this test for compilers unknown to
2522 for ac_file in $ac_files ''
2524 test -f "$ac_file" || continue
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2529 # We found the default executable, but exeext='' is most
2533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 # We set ac_cv_exeext here because the later test for it is not
2538 # safe: cross compilers may not add the suffix if given an `-o'
2539 # argument, so we may need to know it at that point already.
2540 # Even if this section looks crufty: it has the advantage of
2547 test "$ac_cv_exeext" = no && ac_cv_exeext=
2553 { echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6; }
2555 if test -z "$ac_file"; then
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563 { (exit 77); exit 77; }; }
2566 ac_exeext=$ac_cv_exeext
2568 # Check that the compiler produces executables we can run. If not, either
2569 # the compiler is broken, or we cross compile.
2570 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2571 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2573 # If not cross compiling, check that we can run a simple program.
2574 if test "$cross_compiling" != yes; then
2575 if { ac_try='./$ac_file'
2576 { (case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_try") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 if test "$cross_compiling" = maybe; then
2590 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }
2600 { echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6; }
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check that the compiler produces executables we can run. If not, either
2606 # the compiler is broken, or we cross compile.
2607 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2609 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6; }
2612 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2614 if { (ac_try="$ac_link"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_link") 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 for ac_file in conftest.exe conftest conftest.*; do
2629 test -f "$ac_file" || continue
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest$ac_cv_exeext
2646 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2652 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2654 if test "${ac_cv_objext+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 rm -f conftest.o conftest.obj
2673 if { (ac_try="$ac_compile"
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compile") 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; then
2683 for ac_file in conftest.o conftest.obj conftest.*; do
2684 test -f "$ac_file" || continue;
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2698 See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
2702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2705 echo "${ECHO_T}$ac_cv_objext" >&6; }
2706 OBJEXT=$ac_cv_objext
2708 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2765 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_cc_g+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 ac_save_c_werror_flag=$ac_c_werror_flag
2771 ac_c_werror_flag=yes
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2789 rm -f conftest.$ac_objext
2790 if { (ac_try="$ac_compile"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_compile") 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } && {
2803 test -z "$ac_c_werror_flag" ||
2804 test ! -s conftest.err
2805 } && test -s conftest.$ac_objext; then
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } && {
2841 test -z "$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest.$ac_objext; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 ac_c_werror_flag=$ac_save_c_werror_flag
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2866 rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_c_werror_flag=$ac_save_c_werror_flag
2900 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2902 if test "$ac_test_CFLAGS" = set; then
2903 CFLAGS=$ac_save_CFLAGS
2904 elif test $ac_cv_prog_cc_g = yes; then
2905 if test "$GCC" = yes; then
2911 if test "$GCC" = yes; then
2917 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2918 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_cc_c89+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 ac_cv_prog_cc_c89=no
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2932 #include <sys/types.h>
2933 #include <sys/stat.h>
2934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2935 struct buf { int x; };
2936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2937 static char *e (p, i)
2943 static char *f (char * (*g) (char **, int), char **p, ...)
2948 s = g (p, va_arg (v,int));
2953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2954 function prototypes and stuff, but not '\xHH' hex character constants.
2955 These don't provoke an error unfortunately, instead are silently treated
2956 as 'x'. The following induces an error, until -std is added to get
2957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2958 array size at least. It's necessary to write '\x00'==0 to get something
2959 that's true only with -std. */
2960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2963 inside strings and character constants. */
2965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2967 int test (int i, double x);
2968 struct s1 {int (*f) (int a);};
2969 struct s2 {int (*f) (double a);};
2970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2984 CC="$ac_save_CC $ac_arg"
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_cv_prog_cc_c89=$ac_arg
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3013 rm -f conftest.$ac_ext
3018 case "x$ac_cv_prog_cc_c89" in
3020 { echo "$as_me:$LINENO: result: none needed" >&5
3021 echo "${ECHO_T}none needed" >&6; } ;;
3023 { echo "$as_me:$LINENO: result: unsupported" >&5
3024 echo "${ECHO_T}unsupported" >&6; } ;;
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3028 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 if test -z "$CXX"; then
3044 if test -n "$CCC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 if test -n "$CXX"; then
3058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$CXX"; then
3079 { echo "$as_me:$LINENO: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6; }
3082 { echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6; }
3087 test -n "$CXX" && break
3090 if test -z "$CXX"; then
3092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -n "$ac_ct_CXX"; then
3102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_CXX="$ac_prog"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3122 if test -n "$ac_ct_CXX"; then
3123 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3124 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3126 { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3131 test -n "$ac_ct_CXX" && break
3134 if test "x$ac_ct_CXX" = x; then
3137 case $cross_compiling:$ac_tool_warned in
3139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet. If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet. If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler --version >&5") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler -v >&5") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compiler -V >&5") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3187 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && {
3224 test -z "$ac_cxx_werror_flag" ||
3225 test ! -s conftest.err
3226 } && test -s conftest.$ac_objext; then
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3239 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3240 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3241 GXX=`test $ac_compiler_gnu = yes && echo yes`
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3244 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3245 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_cxx_g+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3250 ac_cxx_werror_flag=yes
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_cxx_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 ac_cv_prog_cxx_g=yes
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } && {
3320 test -z "$ac_cxx_werror_flag" ||
3321 test ! -s conftest.err
3322 } && test -s conftest.$ac_objext; then
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3330 cat >conftest.$ac_ext <<_ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_cxx_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3362 ac_cv_prog_cxx_g=yes
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3381 if test "$ac_test_CXXFLAGS" = set; then
3382 CXXFLAGS=$ac_save_CXXFLAGS
3383 elif test $ac_cv_prog_cxx_g = yes; then
3384 if test "$GXX" = yes; then
3390 if test "$GXX" = yes; then
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 if test "x$CC" != xcc; then
3403 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3404 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3406 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3407 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3409 set dummy $CC; ac_cc=`echo $2 |
3410 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3411 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3429 # Make sure it works both with $CC and with simple cc.
3430 # We do the test twice because some compilers refuse to overwrite an
3431 # existing .o file with -o, though they will create one.
3432 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3434 if { (case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_try") 2>&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_try") 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); };
3453 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3454 if test "x$CC" != xcc; then
3455 # Test first that cc exists at all.
3456 if { ac_try='cc -c conftest.$ac_ext >&5'
3457 { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3468 if { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_try") 2>&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); };
3490 # cc exists but doesn't like -o.
3491 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3496 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3498 rm -f core conftest*
3501 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3502 { echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6; }
3505 { echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6; }
3508 cat >>confdefs.h <<\_ACEOF
3509 #define NO_MINUS_C_MINUS_O 1
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3525 if test -z "$CPP"; then
3526 if test "${ac_cv_prog_CPP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 # Double quotes because CPP needs to be expanded
3530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533 for ac_c_preproc_warn_flag in '' yes
3535 # Use a header file that comes with gcc, so configuring glibc
3536 # with a fresh cross-compiler works.
3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538 # <limits.h> exists even on freestanding compilers.
3539 # On the NeXT, cc -E runs the code through the compiler's parser,
3540 # not just through cpp. "Syntax error" is here to catch this case.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3548 # include <limits.h>
3550 # include <assert.h>
3554 if { (ac_try="$ac_cpp conftest.$ac_ext"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } >/dev/null && {
3567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null && {
3604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3605 test ! -s conftest.err
3607 # Broken: success on invalid input.
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 # Passes both tests.
3618 rm -f conftest.err conftest.$ac_ext
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3635 { echo "$as_me:$LINENO: result: $CPP" >&5
3636 echo "${ECHO_T}$CPP" >&6; }
3638 for ac_c_preproc_warn_flag in '' yes
3640 # Use a header file that comes with gcc, so configuring glibc
3641 # with a fresh cross-compiler works.
3642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643 # <limits.h> exists even on freestanding compilers.
3644 # On the NeXT, cc -E runs the code through the compiler's parser,
3645 # not just through cpp. "Syntax error" is here to catch this case.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3653 # include <limits.h>
3655 # include <assert.h>
3659 if { (ac_try="$ac_cpp conftest.$ac_ext"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null && {
3672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 # Broken: fails on valid input.
3684 rm -f conftest.err conftest.$ac_ext
3686 # OK, works on sane cases. Now check whether nonexistent headers
3687 # can be detected and how.
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #include <ac_nonexistent.h>
3696 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null && {
3709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3712 # Broken: success on invalid input.
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Passes both tests.
3723 rm -f conftest.err conftest.$ac_ext
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3731 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3746 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_GREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 # Extract the first word of "grep ggrep" to use in msg output
3751 if test -z "$GREP"; then
3752 set dummy grep ggrep; ac_prog_name=$2
3753 if test "${ac_cv_path_GREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_path_GREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in grep ggrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3766 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3767 # Check for GNU ac_path_GREP and select it if it is found.
3768 # Check for GNU $ac_path_GREP
3769 case `"$ac_path_GREP" --version 2>&1` in
3771 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'GREP' >> "conftest.nl"
3781 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_GREP="$ac_path_GREP"
3787 ac_path_GREP_max=$ac_count
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 $ac_path_GREP_found && break 3
3806 GREP="$ac_cv_path_GREP"
3807 if test -z "$GREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3814 ac_cv_path_GREP=$GREP
3819 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3820 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3821 GREP="$ac_cv_path_GREP"
3824 { echo "$as_me:$LINENO: checking for egrep" >&5
3825 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3826 if test "${ac_cv_path_EGREP+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3830 then ac_cv_path_EGREP="$GREP -E"
3832 # Extract the first word of "egrep" to use in msg output
3833 if test -z "$EGREP"; then
3834 set dummy egrep; ac_prog_name=$2
3835 if test "${ac_cv_path_EGREP+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 ac_path_EGREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844 test -z "$as_dir" && as_dir=.
3845 for ac_prog in egrep; do
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3848 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3849 # Check for GNU ac_path_EGREP and select it if it is found.
3850 # Check for GNU $ac_path_EGREP
3851 case `"$ac_path_EGREP" --version 2>&1` in
3853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3856 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3859 cat "conftest.in" "conftest.in" >"conftest.tmp"
3860 mv "conftest.tmp" "conftest.in"
3861 cp "conftest.in" "conftest.nl"
3862 echo 'EGREP' >> "conftest.nl"
3863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865 ac_count=`expr $ac_count + 1`
3866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3867 # Best one so far, save it but keep looking for a better one
3868 ac_cv_path_EGREP="$ac_path_EGREP"
3869 ac_path_EGREP_max=$ac_count
3871 # 10*(2^10) chars as input seems more than enough
3872 test $ac_count -gt 10 && break
3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 $ac_path_EGREP_found && break 3
3888 EGREP="$ac_cv_path_EGREP"
3889 if test -z "$EGREP"; then
3890 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3891 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3892 { (exit 1); exit 1; }; }
3896 ac_cv_path_EGREP=$EGREP
3902 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3903 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3904 EGREP="$ac_cv_path_EGREP"
3907 if test $ac_cv_c_compiler_gnu = yes; then
3908 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3909 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3910 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 ac_pattern="Autoconf.*'x'"
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3925 ac_cv_prog_gcc_traditional=yes
3927 ac_cv_prog_gcc_traditional=no
3932 if test $ac_cv_prog_gcc_traditional = no; then
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3944 ac_cv_prog_gcc_traditional=yes
3950 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3951 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3952 if test $ac_cv_prog_gcc_traditional = yes; then
3953 CC="$CC -traditional"
3957 BASECC=`basename $CC`
3959 if test "x$BASECC" = xgcc; then
3960 cat >>confdefs.h <<\_ACEOF
3966 # Extract the first word of "$CXX", so it can be a program name with args.
3967 set dummy $CXX; ac_word=$2
3968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_CXX+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3998 if test -n "$CXX"; then
3999 { echo "$as_me:$LINENO: result: $CXX" >&5
4000 echo "${ECHO_T}$CXX" >&6; }
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4007 if test ! -e $CXX; then
4008 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4009 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4010 { (exit 1); exit 1; }; }
4013 # Find a good install program. We prefer a C program (faster),
4014 # so one script is as good as another. But avoid the broken or
4015 # incompatible versions:
4016 # SysV /etc/install, /usr/sbin/install
4017 # SunOS /usr/etc/install
4018 # IRIX /sbin/install
4020 # AmigaOS /C/install, which installs bootblocks on floppy discs
4021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4024 # OS/2's system install, which has a completely different semantic
4025 # ./install, which can be erroneously created by make from ./install.sh.
4026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4028 if test -z "$INSTALL"; then
4029 if test "${ac_cv_path_install+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 # Account for people who put trailing slashes in PATH elements.
4039 ./ | .// | /cC/* | \
4040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4044 # OSF1 and SCO ODT 3.0 have their own names for install.
4045 # Don't use installbsd from OSF since it installs stuff as root
4047 for ac_prog in ginstall scoinst install; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4050 if test $ac_prog = install &&
4051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052 # AIX install. It has an incompatible calling convention.
4054 elif test $ac_prog = install &&
4055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056 # program-specific install script used by HP pwplus--don't use.
4059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4072 if test "${ac_cv_path_install+set}" = set; then
4073 INSTALL=$ac_cv_path_install
4075 # As a last resort, use the slow shell script. Don't cache a
4076 # value for INSTALL within a source directory, because that will
4077 # break other packages using the cache if that directory is
4078 # removed, or if the value is a relative name.
4079 INSTALL=$ac_install_sh
4082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4083 echo "${ECHO_T}$INSTALL" >&6; }
4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4086 # It thinks the first close brace ends the variable substitution.
4087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4098 if test "${ac_cv_prog_RANLIB+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$RANLIB"; then
4102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 RANLIB=$ac_cv_prog_RANLIB
4122 if test -n "$RANLIB"; then
4123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4124 echo "${ECHO_T}$RANLIB" >&6; }
4126 { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4132 if test -z "$ac_cv_prog_RANLIB"; then
4133 ac_ct_RANLIB=$RANLIB
4134 # Extract the first word of "ranlib", so it can be a program name with args.
4135 set dummy ranlib; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 if test -n "$ac_ct_RANLIB"; then
4142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_ac_ct_RANLIB="ranlib"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4162 if test -n "$ac_ct_RANLIB"; then
4163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4166 { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4170 if test "x$ac_ct_RANLIB" = x; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4176 whose name does not start with the host triplet. If you think this
4177 configuration is useful to you, please write to autoconf@gnu.org." >&5
4178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4179 whose name does not start with the host triplet. If you think this
4180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4181 ac_tool_warned=yes ;;
4183 RANLIB=$ac_ct_RANLIB
4186 RANLIB="$ac_cv_prog_RANLIB"
4189 # Extract the first word of "mv", so it can be a program name with args.
4190 set dummy mv; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_path_MV+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4221 if test -n "$MV"; then
4222 { echo "$as_me:$LINENO: result: $MV" >&5
4223 echo "${ECHO_T}$MV" >&6; }
4225 { echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6; }
4230 # Extract the first word of "rm", so it can be a program name with args.
4231 set dummy rm; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_path_RM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4262 if test -n "$RM"; then
4263 { echo "$as_me:$LINENO: result: $RM" >&5
4264 echo "${ECHO_T}$RM" >&6; }
4266 { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4271 # Extract the first word of "cp", so it can be a program name with args.
4272 set dummy cp; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_path_CP+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4303 if test -n "$CP"; then
4304 { echo "$as_me:$LINENO: result: $CP" >&5
4305 echo "${ECHO_T}$CP" >&6; }
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 # Extract the first word of "sed", so it can be a program name with args.
4313 set dummy sed; ac_word=$2
4314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4316 if test "${ac_cv_path_SED+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4344 if test -n "$SED"; then
4345 { echo "$as_me:$LINENO: result: $SED" >&5
4346 echo "${ECHO_T}$SED" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4353 # Extract the first word of "echo", so it can be a program name with args.
4354 set dummy echo; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_ECHO+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4384 ECHO=$ac_cv_path_ECHO
4385 if test -n "$ECHO"; then
4386 { echo "$as_me:$LINENO: result: $ECHO" >&5
4387 echo "${ECHO_T}$ECHO" >&6; }
4389 { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4394 # Extract the first word of "cmp", so it can be a program name with args.
4395 set dummy cmp; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_CMP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4426 if test -n "$CMP"; then
4427 { echo "$as_me:$LINENO: result: $CMP" >&5
4428 echo "${ECHO_T}$CMP" >&6; }
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4435 # Extract the first word of "tbl", so it can be a program name with args.
4436 set dummy tbl; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_TBL+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4467 if test -n "$TBL"; then
4468 { echo "$as_me:$LINENO: result: $TBL" >&5
4469 echo "${ECHO_T}$TBL" >&6; }
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_AR+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4508 if test -n "$AR"; then
4509 { echo "$as_me:$LINENO: result: $AR" >&5
4510 echo "${ECHO_T}$AR" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4517 # Extract the first word of "openssl", so it can be a program name with args.
4518 set dummy openssl; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_OPENSSL+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4548 OPENSSL=$ac_cv_path_OPENSSL
4549 if test -n "$OPENSSL"; then
4550 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4551 echo "${ECHO_T}$OPENSSL" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4558 # Extract the first word of "mtx", so it can be a program name with args.
4559 set dummy mtx; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_MTX+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4590 if test -n "$MTX"; then
4591 { echo "$as_me:$LINENO: result: $MTX" >&5
4592 echo "${ECHO_T}$MTX" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4599 # Extract the first word of "dd", so it can be a program name with args.
4600 set dummy dd; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_DD+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4631 if test -n "$DD"; then
4632 { echo "$as_me:$LINENO: result: $DD" >&5
4633 echo "${ECHO_T}$DD" >&6; }
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4640 # Extract the first word of "mkisofs", so it can be a program name with args.
4641 set dummy mkisofs; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_MKISOFS+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4671 MKISOFS=$ac_cv_path_MKISOFS
4672 if test -n "$MKISOFS"; then
4673 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4674 echo "${ECHO_T}$MKISOFS" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 # Extract the first word of "python", so it can be a program name with args.
4682 set dummy python; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_PYTHON+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4712 PYTHON=$ac_cv_path_PYTHON
4713 if test -n "$PYTHON"; then
4714 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4715 echo "${ECHO_T}$PYTHON" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 # Extract the first word of "growisofs", so it can be a program name with args.
4723 set dummy growisofs; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4753 GROWISOFS=$ac_cv_path_GROWISOFS
4754 if test -n "$GROWISOFS"; then
4755 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4756 echo "${ECHO_T}$GROWISOFS" >&6; }
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4763 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4764 set dummy dvd+rw-mediainfo; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 case $DVDRWMEDIAINFO in
4772 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4794 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4795 if test -n "$DVDRWMEDIAINFO"; then
4796 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4797 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4804 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4805 set dummy dvd+rw-format; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 case $DVDRWFORMAT in
4813 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4835 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4836 if test -n "$DVDRWFORMAT"; then
4837 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4838 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4845 # Extract the first word of "pkg-config", so it can be a program name with args.
4846 set dummy pkg-config; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4876 PKGCONFIG=$ac_cv_path_PKGCONFIG
4877 if test -n "$PKGCONFIG"; then
4878 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4879 echo "${ECHO_T}$PKGCONFIG" >&6; }
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4886 # Extract the first word of "qmake", so it can be a program name with args.
4887 set dummy qmake; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_QMAKE+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4917 QMAKE=$ac_cv_path_QMAKE
4918 if test -n "$QMAKE"; then
4919 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4920 echo "${ECHO_T}$QMAKE" >&6; }
4922 { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4927 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4928 set dummy qmake-qt4; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4958 QMAKEQT4=$ac_cv_path_QMAKEQT4
4959 if test -n "$QMAKEQT4"; then
4960 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4961 echo "${ECHO_T}$QMAKEQT4" >&6; }
4963 { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4969 if test "x$WXCONFIG" = x; then
4972 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4973 set dummy ${WXCONFIG}; ac_word=$2
4974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4976 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5003 WXCONFIG=$ac_cv_path_WXCONFIG
5004 if test -n "$WXCONFIG"; then
5005 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5006 echo "${ECHO_T}$WXCONFIG" >&6; }
5008 { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5014 # Extract the first word of "cdrecord", so it can be a program name with args.
5015 set dummy cdrecord; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_path_CDRECORD+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5045 CDRECORD=$ac_cv_path_CDRECORD
5046 if test -n "$CDRECORD"; then
5047 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5048 echo "${ECHO_T}$CDRECORD" >&6; }
5050 { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5055 # Extract the first word of "pidof", so it can be a program name with args.
5056 set dummy pidof; ac_word=$2
5057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5059 if test "${ac_cv_path_PIDOF+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5086 PIDOF=$ac_cv_path_PIDOF
5087 if test -n "$PIDOF"; then
5088 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5089 echo "${ECHO_T}$PIDOF" >&6; }
5091 { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5096 for ac_prog in gawk mawk nawk awk
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_AWK+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 if test -n "$AWK"; then
5106 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_AWK="$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 if test -n "$AWK"; then
5127 { echo "$as_me:$LINENO: result: $AWK" >&5
5128 echo "${ECHO_T}$AWK" >&6; }
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5135 test -n "$AWK" && break
5138 # Some AWK programs fail, so test it and warn the user
5139 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5140 { if ((prog == $2) || (("(" prog ")") == $2) ||
5141 (("" prog "") == $2) ||
5142 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5144 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5145 The regex engine of $AWK is too broken to be used you
5146 might want to install GNU AWK.
5147 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5148 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5149 The regex engine of $AWK is too broken to be used you
5150 might want to install GNU AWK.
5151 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5152 { (exit 1); exit 1; }; }
5155 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5156 set dummy $THE_AWK; ac_word=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_path_AWK+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5187 if test -n "$AWK"; then
5188 { echo "$as_me:$LINENO: result: $AWK" >&5
5189 echo "${ECHO_T}$AWK" >&6; }
5191 { echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6; }
5198 test -n "$ARFLAG" || ARFLAGS="cr"
5209 # Make sure we can run config.sub.
5210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5211 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5212 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5213 { (exit 1); exit 1; }; }
5215 { echo "$as_me:$LINENO: checking build system type" >&5
5216 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5217 if test "${ac_cv_build+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_build_alias=$build_alias
5221 test "x$ac_build_alias" = x &&
5222 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5223 test "x$ac_build_alias" = x &&
5224 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5225 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5226 { (exit 1); exit 1; }; }
5227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5228 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5230 { (exit 1); exit 1; }; }
5233 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5234 echo "${ECHO_T}$ac_cv_build" >&6; }
5235 case $ac_cv_build in
5237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5238 echo "$as_me: error: invalid value of canonical build" >&2;}
5239 { (exit 1); exit 1; }; };;
5242 ac_save_IFS=$IFS; IFS='-'
5248 # Remember, the first character of IFS is used to create $*,
5249 # except with old shells:
5252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5256 { echo "$as_me:$LINENO: checking host system type" >&5
5257 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5258 if test "${ac_cv_host+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 if test "x$host_alias" = x; then
5262 ac_cv_host=$ac_cv_build
5264 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5265 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5267 { (exit 1); exit 1; }; }
5271 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5272 echo "${ECHO_T}$ac_cv_host" >&6; }
5275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5276 echo "$as_me: error: invalid value of canonical host" >&2;}
5277 { (exit 1); exit 1; }; };;
5280 ac_save_IFS=$IFS; IFS='-'
5286 # Remember, the first character of IFS is used to create $*,
5287 # except with old shells:
5290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5294 *cygwin* ) CYGWIN=yes;;
5298 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5304 HAVE_SUN_OS_FALSE='#'
5306 HAVE_SUN_OS_TRUE='#'
5309 cat >>confdefs.h <<\_ACEOF
5310 #define HAVE_SUN_OS 1
5318 HAVE_SUN_OS_FALSE='#'
5320 HAVE_SUN_OS_TRUE='#'
5325 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5331 HAVE_OSF1_OS_FALSE='#'
5333 HAVE_OSF1_OS_TRUE='#'
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_OSF1_OS 1
5345 HAVE_OSF1_OS_FALSE='#'
5347 HAVE_OSF1_OS_TRUE='#'
5352 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5358 HAVE_AIX_OS_FALSE='#'
5360 HAVE_AIX_OS_TRUE='#'
5363 cat >>confdefs.h <<\_ACEOF
5364 #define HAVE_AIX_OS 1
5372 HAVE_AIX_OS_FALSE='#'
5374 HAVE_AIX_OS_TRUE='#'
5379 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5385 HAVE_HPUX_OS_FALSE='#'
5387 HAVE_HPUX_OS_TRUE='#'
5390 cat >>confdefs.h <<\_ACEOF
5391 #define HAVE_HPUX_OS 1
5399 HAVE_HPUX_OS_FALSE='#'
5401 HAVE_HPUX_OS_TRUE='#'
5406 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5412 HAVE_LINUX_OS_FALSE='#'
5414 HAVE_LINUX_OS_TRUE='#'
5415 HAVE_LINUX_OS_FALSE=
5417 cat >>confdefs.h <<\_ACEOF
5418 #define HAVE_LINUX_OS 1
5426 HAVE_LINUX_OS_FALSE='#'
5428 HAVE_LINUX_OS_TRUE='#'
5429 HAVE_LINUX_OS_FALSE=
5433 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5438 HAVE_FREEBSD_OS_TRUE=
5439 HAVE_FREEBSD_OS_FALSE='#'
5441 HAVE_FREEBSD_OS_TRUE='#'
5442 HAVE_FREEBSD_OS_FALSE=
5444 cat >>confdefs.h <<\_ACEOF
5445 #define HAVE_FREEBSD_OS 1
5452 HAVE_FREEBSD_OS_TRUE=
5453 HAVE_FREEBSD_OS_FALSE='#'
5455 HAVE_FREEBSD_OS_TRUE='#'
5456 HAVE_FREEBSD_OS_FALSE=
5460 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5465 HAVE_NETBSD_OS_TRUE=
5466 HAVE_NETBSD_OS_FALSE='#'
5468 HAVE_NETBSD_OS_TRUE='#'
5469 HAVE_NETBSD_OS_FALSE=
5471 cat >>confdefs.h <<\_ACEOF
5472 #define HAVE_NETBSD_OS 1
5479 HAVE_NETBSD_OS_TRUE=
5480 HAVE_NETBSD_OS_FALSE='#'
5482 HAVE_NETBSD_OS_TRUE='#'
5483 HAVE_NETBSD_OS_FALSE=
5487 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5492 HAVE_OPENBSD_OS_TRUE=
5493 HAVE_OPENBSD_OS_FALSE='#'
5495 HAVE_OPENBSD_OS_TRUE='#'
5496 HAVE_OPENBSD_OS_FALSE=
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_OPENBSD_OS 1
5506 HAVE_OPENBSD_OS_TRUE=
5507 HAVE_OPENBSD_OS_FALSE='#'
5509 HAVE_OPENBSD_OS_TRUE='#'
5510 HAVE_OPENBSD_OS_FALSE=
5514 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5520 HAVE_BSDI_OS_FALSE='#'
5522 HAVE_BSDI_OS_TRUE='#'
5525 cat >>confdefs.h <<\_ACEOF
5526 #define HAVE_BSDI_OS 1
5534 HAVE_BSDI_OS_FALSE='#'
5536 HAVE_BSDI_OS_TRUE='#'
5541 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5547 HAVE_SGI_OS_FALSE='#'
5549 HAVE_SGI_OS_TRUE='#'
5552 cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_SGI_OS 1
5561 HAVE_SGI_OS_FALSE='#'
5563 HAVE_SGI_OS_TRUE='#'
5568 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5574 HAVE_IRIX_OS_FALSE='#'
5576 HAVE_IRIX_OS_TRUE='#'
5579 cat >>confdefs.h <<\_ACEOF
5580 #define HAVE_IRIX_OS 1
5588 HAVE_IRIX_OS_FALSE='#'
5590 HAVE_IRIX_OS_TRUE='#'
5595 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5600 HAVE_DARWIN_OS_TRUE=
5601 HAVE_DARWIN_OS_FALSE='#'
5603 HAVE_DARWIN_OS_TRUE='#'
5604 HAVE_DARWIN_OS_FALSE=
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_DARWIN_OS 1
5614 HAVE_DARWIN_OS_TRUE=
5615 HAVE_DARWIN_OS_FALSE='#'
5617 HAVE_DARWIN_OS_TRUE='#'
5618 HAVE_DARWIN_OS_FALSE=
5623 # -----------------------------------------------------------
5624 # ----------------------------------------------------------
5625 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5626 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5627 if test "x$DISTNAME" != "x"
5629 echo "distname set to $DISTNAME"
5630 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5633 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5636 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5639 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5642 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5657 elif test -f /etc/SuSE-release
5660 elif test -d /etc/SuSEconfig
5663 elif test -f /etc/mandrake-release
5666 elif test -f /etc/whitebox-release
5669 elif test -f /etc/redhat-release
5672 elif test -f /etc/gentoo-release
5675 elif test -f /etc/debian_version
5678 elif test -f /etc/slackware-version
5681 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5684 elif test -f /etc/engarde-version
5687 elif test "$CYGWIN" = yes
5690 cat >>confdefs.h <<\_ACEOF
5691 #define HAVE_CYGWIN 1
5697 { echo "$as_me:$LINENO: result: done" >&5
5698 echo "${ECHO_T}done" >&6; }
5701 # --------------------------------------------------
5702 # Suppport for gettext (translations)
5703 # By default, $datadir is ${prefix}/share
5704 # --------------------------------------------------
5705 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5707 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5708 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.make <<\_ACEOF
5714 @echo '@@@%%%=$(MAKE)=@@@%%%'
5716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5719 eval ac_cv_prog_make_${ac_make}_set=yes;;
5721 eval ac_cv_prog_make_${ac_make}_set=no;;
5725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5726 { echo "$as_me:$LINENO: result: yes" >&5
5727 echo "${ECHO_T}yes" >&6; }
5730 { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 SET_MAKE="MAKE=${MAKE-make}"
5738 if test -n "$ac_aux_dir"; then
5739 case "$ac_aux_dir" in
5740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5744 if test -z "$MKINSTALLDIRS"; then
5745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5750 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5752 # Check whether --enable-nls was given.
5753 if test "${enable_nls+set}" = set; then
5754 enableval=$enable_nls; USE_NLS=$enableval
5759 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5760 echo "${ECHO_T}$USE_NLS" >&6; }
5767 # Prepare PATH_SEPARATOR.
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770 echo "#! /bin/sh" >conf$$.sh
5771 echo "exit 0" >>conf$$.sh
5773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5781 # Find out how to test for executable files. Don't use a zero-byte file,
5782 # as systems may use methods other than mode bits to determine executability.
5783 cat >conf$$.file <<_ASEOF
5787 chmod +x conf$$.file
5788 if test -x conf$$.file >/dev/null 2>&1; then
5789 ac_executable_p="test -x"
5791 ac_executable_p="test -f"
5795 # Extract the first word of "msgfmt", so it can be a program name with args.
5796 set dummy msgfmt; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_MSGFMT+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH; do
5810 test -z "$ac_dir" && ac_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5813 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5814 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5815 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5816 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5823 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5827 MSGFMT="$ac_cv_path_MSGFMT"
5828 if test "$MSGFMT" != ":"; then
5829 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5830 echo "${ECHO_T}$MSGFMT" >&6; }
5832 { echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6; }
5836 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5837 set dummy gmsgfmt; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5867 GMSGFMT=$ac_cv_path_GMSGFMT
5868 if test -n "$GMSGFMT"; then
5869 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5870 echo "${ECHO_T}$GMSGFMT" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5879 # Prepare PATH_SEPARATOR.
5880 # The user is always right.
5881 if test "${PATH_SEPARATOR+set}" != set; then
5882 echo "#! /bin/sh" >conf$$.sh
5883 echo "exit 0" >>conf$$.sh
5885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5893 # Find out how to test for executable files. Don't use a zero-byte file,
5894 # as systems may use methods other than mode bits to determine executability.
5895 cat >conf$$.file <<_ASEOF
5899 chmod +x conf$$.file
5900 if test -x conf$$.file >/dev/null 2>&1; then
5901 ac_executable_p="test -x"
5903 ac_executable_p="test -f"
5907 # Extract the first word of "xgettext", so it can be a program name with args.
5908 set dummy xgettext; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5920 for ac_dir in $PATH; do
5922 test -z "$ac_dir" && ac_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5925 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5926 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5927 (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
5928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5935 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5939 XGETTEXT="$ac_cv_path_XGETTEXT"
5940 if test "$XGETTEXT" != ":"; then
5941 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5942 echo "${ECHO_T}$XGETTEXT" >&6; }
5944 { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5951 # Prepare PATH_SEPARATOR.
5952 # The user is always right.
5953 if test "${PATH_SEPARATOR+set}" != set; then
5954 echo "#! /bin/sh" >conf$$.sh
5955 echo "exit 0" >>conf$$.sh
5957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5965 # Find out how to test for executable files. Don't use a zero-byte file,
5966 # as systems may use methods other than mode bits to determine executability.
5967 cat >conf$$.file <<_ASEOF
5971 chmod +x conf$$.file
5972 if test -x conf$$.file >/dev/null 2>&1; then
5973 ac_executable_p="test -x"
5975 ac_executable_p="test -f"
5979 # Extract the first word of "msgmerge", so it can be a program name with args.
5980 set dummy msgmerge; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5991 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5992 for ac_dir in $PATH; do
5994 test -z "$ac_dir" && ac_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5997 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5998 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5999 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6006 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6010 MSGMERGE="$ac_cv_path_MSGMERGE"
6011 if test "$MSGMERGE" != ":"; then
6012 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6013 echo "${ECHO_T}$MSGMERGE" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6020 if test "$GMSGFMT" != ":"; then
6021 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6022 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6025 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6026 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6027 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6032 if test "$XGETTEXT" != ":"; then
6033 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6034 (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
6037 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6038 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6044 ac_config_commands="$ac_config_commands default-1"
6048 if test "X$prefix" = "XNONE"; then
6049 acl_final_prefix="$ac_default_prefix"
6051 acl_final_prefix="$prefix"
6053 if test "X$exec_prefix" = "XNONE"; then
6054 acl_final_exec_prefix='${prefix}'
6056 acl_final_exec_prefix="$exec_prefix"
6058 acl_save_prefix="$prefix"
6059 prefix="$acl_final_prefix"
6060 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6061 prefix="$acl_save_prefix"
6064 # Check whether --with-gnu-ld was given.
6065 if test "${with_gnu_ld+set}" = set; then
6066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6071 # Prepare PATH_SEPARATOR.
6072 # The user is always right.
6073 if test "${PATH_SEPARATOR+set}" != set; then
6074 echo "#! /bin/sh" >conf$$.sh
6075 echo "exit 0" >>conf$$.sh
6077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6085 if test "$GCC" = yes; then
6086 # Check if gcc -print-prog-name=ld gives a path.
6087 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6088 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6091 # gcc leaves a trailing carriage return which upsets mingw
6092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6097 # Accept absolute paths.
6098 [\\/]* | [A-Za-z]:[\\/]*)
6099 re_direlt='/[^/][^/]*/\.\./'
6100 # Canonicalize the path of ld
6101 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6102 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6103 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6105 test -z "$LD" && LD="$ac_prog"
6108 # If it fails, then pretend we aren't using GCC.
6112 # If it is relative, then search for the first ld in PATH.
6116 elif test "$with_gnu_ld" = yes; then
6117 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6120 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6123 if test "${acl_cv_path_LD+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 if test -z "$LD"; then
6127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6128 for ac_dir in $PATH; do
6129 test -z "$ac_dir" && ac_dir=.
6130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6131 acl_cv_path_LD="$ac_dir/$ac_prog"
6132 # Check to see if the program is GNU ld. I'd rather use --version,
6133 # but apparently some GNU ld's only accept -v.
6134 # Break only if it was the GNU/non-GNU ld that we prefer.
6135 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6136 *GNU* | *'with BFD'*)
6137 test "$with_gnu_ld" != no && break ;;
6139 test "$with_gnu_ld" != yes && break ;;
6145 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6149 LD="$acl_cv_path_LD"
6150 if test -n "$LD"; then
6151 { echo "$as_me:$LINENO: result: $LD" >&5
6152 echo "${ECHO_T}$LD" >&6; }
6154 { echo "$as_me:$LINENO: result: no" >&5
6155 echo "${ECHO_T}no" >&6; }
6157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6159 { (exit 1); exit 1; }; }
6160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6162 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6166 case `$LD -v 2>&1 </dev/null` in
6167 *GNU* | *'with BFD'*)
6168 acl_cv_prog_gnu_ld=yes ;;
6170 acl_cv_prog_gnu_ld=no ;;
6173 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6174 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6175 with_gnu_ld=$acl_cv_prog_gnu_ld
6180 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6181 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6182 if test "${acl_cv_rpath+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6187 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6193 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6194 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6196 libext="$acl_cv_libext"
6197 shlibext="$acl_cv_shlibext"
6198 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6199 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6200 hardcode_direct="$acl_cv_hardcode_direct"
6201 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6202 # Check whether --enable-rpath was given.
6203 if test "${enable_rpath+set}" = set; then
6204 enableval=$enable_rpath; :
6218 acl_save_prefix="$prefix"
6219 prefix="$acl_final_prefix"
6220 acl_save_exec_prefix="$exec_prefix"
6221 exec_prefix="$acl_final_exec_prefix"
6223 eval additional_includedir=\"$includedir\"
6224 eval additional_libdir=\"$libdir\"
6226 exec_prefix="$acl_save_exec_prefix"
6227 prefix="$acl_save_prefix"
6230 # Check whether --with-libiconv-prefix was given.
6231 if test "${with_libiconv_prefix+set}" = set; then
6232 withval=$with_libiconv_prefix;
6233 if test "X$withval" = "Xno"; then
6236 if test "X$withval" = "X"; then
6238 acl_save_prefix="$prefix"
6239 prefix="$acl_final_prefix"
6240 acl_save_exec_prefix="$exec_prefix"
6241 exec_prefix="$acl_final_exec_prefix"
6243 eval additional_includedir=\"$includedir\"
6244 eval additional_libdir=\"$libdir\"
6246 exec_prefix="$acl_save_exec_prefix"
6247 prefix="$acl_save_prefix"
6250 additional_includedir="$withval/include"
6251 additional_libdir="$withval/lib"
6262 names_already_handled=
6263 names_next_round='iconv '
6264 while test -n "$names_next_round"; do
6265 names_this_round="$names_next_round"
6267 for name in $names_this_round; do
6269 for n in $names_already_handled; do
6270 if test "$n" = "$name"; then
6275 if test -z "$already_handled"; then
6276 names_already_handled="$names_already_handled $name"
6277 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6278 eval value=\"\$HAVE_LIB$uppername\"
6279 if test -n "$value"; then
6280 if test "$value" = yes; then
6281 eval value=\"\$LIB$uppername\"
6282 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6283 eval value=\"\$LTLIB$uppername\"
6284 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6293 if test $use_additional = yes; then
6294 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6295 found_dir="$additional_libdir"
6296 found_so="$additional_libdir/lib$name.$shlibext"
6297 if test -f "$additional_libdir/lib$name.la"; then
6298 found_la="$additional_libdir/lib$name.la"
6301 if test -f "$additional_libdir/lib$name.$libext"; then
6302 found_dir="$additional_libdir"
6303 found_a="$additional_libdir/lib$name.$libext"
6304 if test -f "$additional_libdir/lib$name.la"; then
6305 found_la="$additional_libdir/lib$name.la"
6310 if test "X$found_dir" = "X"; then
6311 for x in $LDFLAGS $LTLIBICONV; do
6313 acl_save_prefix="$prefix"
6314 prefix="$acl_final_prefix"
6315 acl_save_exec_prefix="$exec_prefix"
6316 exec_prefix="$acl_final_exec_prefix"
6318 exec_prefix="$acl_save_exec_prefix"
6319 prefix="$acl_save_prefix"
6323 dir=`echo "X$x" | sed -e 's/^X-L//'`
6324 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6326 found_so="$dir/lib$name.$shlibext"
6327 if test -f "$dir/lib$name.la"; then
6328 found_la="$dir/lib$name.la"
6331 if test -f "$dir/lib$name.$libext"; then
6333 found_a="$dir/lib$name.$libext"
6334 if test -f "$dir/lib$name.la"; then
6335 found_la="$dir/lib$name.la"
6341 if test "X$found_dir" != "X"; then
6346 if test "X$found_dir" != "X"; then
6347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6348 if test "X$found_so" != "X"; then
6349 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6350 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6353 for x in $ltrpathdirs; do
6354 if test "X$x" = "X$found_dir"; then
6359 if test -z "$haveit"; then
6360 ltrpathdirs="$ltrpathdirs $found_dir"
6362 if test "$hardcode_direct" = yes; then
6363 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6365 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6368 for x in $rpathdirs; do
6369 if test "X$x" = "X$found_dir"; then
6374 if test -z "$haveit"; then
6375 rpathdirs="$rpathdirs $found_dir"
6379 for x in $LDFLAGS $LIBICONV; do
6381 acl_save_prefix="$prefix"
6382 prefix="$acl_final_prefix"
6383 acl_save_exec_prefix="$exec_prefix"
6384 exec_prefix="$acl_final_exec_prefix"
6386 exec_prefix="$acl_save_exec_prefix"
6387 prefix="$acl_save_prefix"
6389 if test "X$x" = "X-L$found_dir"; then
6394 if test -z "$haveit"; then
6395 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6397 if test "$hardcode_minus_L" != no; then
6398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6400 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6406 if test "X$found_a" != "X"; then
6407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6409 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6412 additional_includedir=
6413 case "$found_dir" in
6415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6416 additional_includedir="$basedir/include"
6419 if test "X$additional_includedir" != "X"; then
6420 if test "X$additional_includedir" != "X/usr/include"; then
6422 if test "X$additional_includedir" = "X/usr/local/include"; then
6423 if test -n "$GCC"; then
6425 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6429 if test -z "$haveit"; then
6430 for x in $CPPFLAGS $INCICONV; do
6432 acl_save_prefix="$prefix"
6433 prefix="$acl_final_prefix"
6434 acl_save_exec_prefix="$exec_prefix"
6435 exec_prefix="$acl_final_exec_prefix"
6437 exec_prefix="$acl_save_exec_prefix"
6438 prefix="$acl_save_prefix"
6440 if test "X$x" = "X-I$additional_includedir"; then
6445 if test -z "$haveit"; then
6446 if test -d "$additional_includedir"; then
6447 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6453 if test -n "$found_la"; then
6454 save_libdir="$libdir"
6456 */* | *\\*) . "$found_la" ;;
6457 *) . "./$found_la" ;;
6459 libdir="$save_libdir"
6460 for dep in $dependency_libs; do
6463 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6464 if test "X$additional_libdir" != "X/usr/lib"; then
6466 if test "X$additional_libdir" = "X/usr/local/lib"; then
6467 if test -n "$GCC"; then
6469 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6473 if test -z "$haveit"; then
6475 for x in $LDFLAGS $LIBICONV; do
6477 acl_save_prefix="$prefix"
6478 prefix="$acl_final_prefix"
6479 acl_save_exec_prefix="$exec_prefix"
6480 exec_prefix="$acl_final_exec_prefix"
6482 exec_prefix="$acl_save_exec_prefix"
6483 prefix="$acl_save_prefix"
6485 if test "X$x" = "X-L$additional_libdir"; then
6490 if test -z "$haveit"; then
6491 if test -d "$additional_libdir"; then
6492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6496 for x in $LDFLAGS $LTLIBICONV; do
6498 acl_save_prefix="$prefix"
6499 prefix="$acl_final_prefix"
6500 acl_save_exec_prefix="$exec_prefix"
6501 exec_prefix="$acl_final_exec_prefix"
6503 exec_prefix="$acl_save_exec_prefix"
6504 prefix="$acl_save_prefix"
6506 if test "X$x" = "X-L$additional_libdir"; then
6511 if test -z "$haveit"; then
6512 if test -d "$additional_libdir"; then
6513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6520 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6521 if test "$enable_rpath" != no; then
6523 for x in $rpathdirs; do
6524 if test "X$x" = "X$dir"; then
6529 if test -z "$haveit"; then
6530 rpathdirs="$rpathdirs $dir"
6533 for x in $ltrpathdirs; do
6534 if test "X$x" = "X$dir"; then
6539 if test -z "$haveit"; then
6540 ltrpathdirs="$ltrpathdirs $dir"
6545 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6548 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6551 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6552 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6558 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6565 if test "X$rpathdirs" != "X"; then
6566 if test -n "$hardcode_libdir_separator"; then
6568 for found_dir in $rpathdirs; do
6569 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6571 acl_save_libdir="$libdir"
6573 eval flag=\"$hardcode_libdir_flag_spec\"
6574 libdir="$acl_save_libdir"
6575 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6577 for found_dir in $rpathdirs; do
6578 acl_save_libdir="$libdir"
6580 eval flag=\"$hardcode_libdir_flag_spec\"
6581 libdir="$acl_save_libdir"
6582 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6586 if test "X$ltrpathdirs" != "X"; then
6587 for found_dir in $ltrpathdirs; do
6588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6609 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6610 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6611 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 gt_save_CPPFLAGS="$CPPFLAGS"
6615 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6616 gt_save_LIBS="$LIBS"
6617 LIBS="$LIBS -framework CoreFoundation"
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 #include <CFPreferences.h>
6628 CFPreferencesCopyAppValue(NULL, NULL)
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_link") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest$ac_exeext &&
6650 $as_test_x conftest$ac_exeext; then
6651 gt_cv_func_CFPreferencesCopyAppValue=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 gt_cv_func_CFPreferencesCopyAppValue=no
6659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6660 conftest$ac_exeext conftest.$ac_ext
6661 CPPFLAGS="$gt_save_CPPFLAGS"
6662 LIBS="$gt_save_LIBS"
6664 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6665 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6666 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6673 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6674 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6675 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 gt_save_CPPFLAGS="$CPPFLAGS"
6679 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6680 gt_save_LIBS="$LIBS"
6681 LIBS="$LIBS -framework CoreFoundation"
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <CFLocale.h>
6692 CFLocaleCopyCurrent();
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest$ac_exeext &&
6714 $as_test_x conftest$ac_exeext; then
6715 gt_cv_func_CFLocaleCopyCurrent=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 gt_cv_func_CFLocaleCopyCurrent=no
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724 conftest$ac_exeext conftest.$ac_ext
6725 CPPFLAGS="$gt_save_CPPFLAGS"
6726 LIBS="$gt_save_LIBS"
6728 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6729 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6730 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_CFLOCALECOPYCURRENT 1
6738 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6739 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6745 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6746 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6747 # Check whether --enable-nls was given.
6748 if test "${enable_nls+set}" = set; then
6749 enableval=$enable_nls; USE_NLS=$enableval
6754 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6755 echo "${ECHO_T}$USE_NLS" >&6; }
6764 if test "$USE_NLS" = "yes"; then
6765 gt_use_preinstalled_gnugettext=no
6772 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6773 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6774 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 cat >conftest.$ac_ext <<_ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <libintl.h>
6784 extern int _nl_msg_cat_cntr;
6785 extern int *_nl_domain_bindings;
6789 bindtextdomain ("", "");
6790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext &&
6812 $as_test_x conftest$ac_exeext; then
6813 gt_cv_func_gnugettext1_libc=yes
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 gt_cv_func_gnugettext1_libc=no
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6824 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6825 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6827 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6833 am_save_CPPFLAGS="$CPPFLAGS"
6835 for element in $INCICONV; do
6837 for x in $CPPFLAGS; do
6839 acl_save_prefix="$prefix"
6840 prefix="$acl_final_prefix"
6841 acl_save_exec_prefix="$exec_prefix"
6842 exec_prefix="$acl_final_exec_prefix"
6844 exec_prefix="$acl_save_exec_prefix"
6845 prefix="$acl_save_prefix"
6847 if test "X$x" = "X$element"; then
6852 if test -z "$haveit"; then
6853 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6858 { echo "$as_me:$LINENO: checking for iconv" >&5
6859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6860 if test "${am_cv_func_iconv+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 am_cv_func_iconv="no, consider installing GNU libiconv"
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6877 iconv_t cd = iconv_open("","");
6878 iconv(cd,NULL,NULL,NULL,NULL);
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (ac_try="$ac_link"
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_link") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest$ac_exeext &&
6901 $as_test_x conftest$ac_exeext; then
6902 am_cv_func_iconv=yes
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6911 conftest$ac_exeext conftest.$ac_ext
6912 if test "$am_cv_func_iconv" != yes; then
6913 am_save_LIBS="$LIBS"
6914 LIBS="$LIBS $LIBICONV"
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6926 iconv_t cd = iconv_open("","");
6927 iconv(cd,NULL,NULL,NULL,NULL);
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_link") 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && {
6947 test -z "$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 } && test -s conftest$ac_exeext &&
6950 $as_test_x conftest$ac_exeext; then
6952 am_cv_func_iconv=yes
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961 conftest$ac_exeext conftest.$ac_ext
6962 LIBS="$am_save_LIBS"
6966 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6967 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6968 if test "$am_cv_func_iconv" = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_ICONV 1
6975 if test "$am_cv_lib_iconv" = yes; then
6976 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6977 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6978 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6979 echo "${ECHO_T}$LIBICONV" >&6; }
6981 CPPFLAGS="$am_save_CPPFLAGS"
6993 acl_save_prefix="$prefix"
6994 prefix="$acl_final_prefix"
6995 acl_save_exec_prefix="$exec_prefix"
6996 exec_prefix="$acl_final_exec_prefix"
6998 eval additional_includedir=\"$includedir\"
6999 eval additional_libdir=\"$libdir\"
7001 exec_prefix="$acl_save_exec_prefix"
7002 prefix="$acl_save_prefix"
7005 # Check whether --with-libintl-prefix was given.
7006 if test "${with_libintl_prefix+set}" = set; then
7007 withval=$with_libintl_prefix;
7008 if test "X$withval" = "Xno"; then
7011 if test "X$withval" = "X"; then
7013 acl_save_prefix="$prefix"
7014 prefix="$acl_final_prefix"
7015 acl_save_exec_prefix="$exec_prefix"
7016 exec_prefix="$acl_final_exec_prefix"
7018 eval additional_includedir=\"$includedir\"
7019 eval additional_libdir=\"$libdir\"
7021 exec_prefix="$acl_save_exec_prefix"
7022 prefix="$acl_save_prefix"
7025 additional_includedir="$withval/include"
7026 additional_libdir="$withval/lib"
7037 names_already_handled=
7038 names_next_round='intl '
7039 while test -n "$names_next_round"; do
7040 names_this_round="$names_next_round"
7042 for name in $names_this_round; do
7044 for n in $names_already_handled; do
7045 if test "$n" = "$name"; then
7050 if test -z "$already_handled"; then
7051 names_already_handled="$names_already_handled $name"
7052 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7053 eval value=\"\$HAVE_LIB$uppername\"
7054 if test -n "$value"; then
7055 if test "$value" = yes; then
7056 eval value=\"\$LIB$uppername\"
7057 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7058 eval value=\"\$LTLIB$uppername\"
7059 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7068 if test $use_additional = yes; then
7069 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7070 found_dir="$additional_libdir"
7071 found_so="$additional_libdir/lib$name.$shlibext"
7072 if test -f "$additional_libdir/lib$name.la"; then
7073 found_la="$additional_libdir/lib$name.la"
7076 if test -f "$additional_libdir/lib$name.$libext"; then
7077 found_dir="$additional_libdir"
7078 found_a="$additional_libdir/lib$name.$libext"
7079 if test -f "$additional_libdir/lib$name.la"; then
7080 found_la="$additional_libdir/lib$name.la"
7085 if test "X$found_dir" = "X"; then
7086 for x in $LDFLAGS $LTLIBINTL; do
7088 acl_save_prefix="$prefix"
7089 prefix="$acl_final_prefix"
7090 acl_save_exec_prefix="$exec_prefix"
7091 exec_prefix="$acl_final_exec_prefix"
7093 exec_prefix="$acl_save_exec_prefix"
7094 prefix="$acl_save_prefix"
7098 dir=`echo "X$x" | sed -e 's/^X-L//'`
7099 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7101 found_so="$dir/lib$name.$shlibext"
7102 if test -f "$dir/lib$name.la"; then
7103 found_la="$dir/lib$name.la"
7106 if test -f "$dir/lib$name.$libext"; then
7108 found_a="$dir/lib$name.$libext"
7109 if test -f "$dir/lib$name.la"; then
7110 found_la="$dir/lib$name.la"
7116 if test "X$found_dir" != "X"; then
7121 if test "X$found_dir" != "X"; then
7122 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7123 if test "X$found_so" != "X"; then
7124 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7125 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7128 for x in $ltrpathdirs; do
7129 if test "X$x" = "X$found_dir"; then
7134 if test -z "$haveit"; then
7135 ltrpathdirs="$ltrpathdirs $found_dir"
7137 if test "$hardcode_direct" = yes; then
7138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7140 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7143 for x in $rpathdirs; do
7144 if test "X$x" = "X$found_dir"; then
7149 if test -z "$haveit"; then
7150 rpathdirs="$rpathdirs $found_dir"
7154 for x in $LDFLAGS $LIBINTL; do
7156 acl_save_prefix="$prefix"
7157 prefix="$acl_final_prefix"
7158 acl_save_exec_prefix="$exec_prefix"
7159 exec_prefix="$acl_final_exec_prefix"
7161 exec_prefix="$acl_save_exec_prefix"
7162 prefix="$acl_save_prefix"
7164 if test "X$x" = "X-L$found_dir"; then
7169 if test -z "$haveit"; then
7170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7172 if test "$hardcode_minus_L" != no; then
7173 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7175 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7181 if test "X$found_a" != "X"; then
7182 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7184 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7187 additional_includedir=
7188 case "$found_dir" in
7190 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7191 additional_includedir="$basedir/include"
7194 if test "X$additional_includedir" != "X"; then
7195 if test "X$additional_includedir" != "X/usr/include"; then
7197 if test "X$additional_includedir" = "X/usr/local/include"; then
7198 if test -n "$GCC"; then
7200 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7204 if test -z "$haveit"; then
7205 for x in $CPPFLAGS $INCINTL; do
7207 acl_save_prefix="$prefix"
7208 prefix="$acl_final_prefix"
7209 acl_save_exec_prefix="$exec_prefix"
7210 exec_prefix="$acl_final_exec_prefix"
7212 exec_prefix="$acl_save_exec_prefix"
7213 prefix="$acl_save_prefix"
7215 if test "X$x" = "X-I$additional_includedir"; then
7220 if test -z "$haveit"; then
7221 if test -d "$additional_includedir"; then
7222 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7228 if test -n "$found_la"; then
7229 save_libdir="$libdir"
7231 */* | *\\*) . "$found_la" ;;
7232 *) . "./$found_la" ;;
7234 libdir="$save_libdir"
7235 for dep in $dependency_libs; do
7238 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7239 if test "X$additional_libdir" != "X/usr/lib"; then
7241 if test "X$additional_libdir" = "X/usr/local/lib"; then
7242 if test -n "$GCC"; then
7244 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7248 if test -z "$haveit"; then
7250 for x in $LDFLAGS $LIBINTL; do
7252 acl_save_prefix="$prefix"
7253 prefix="$acl_final_prefix"
7254 acl_save_exec_prefix="$exec_prefix"
7255 exec_prefix="$acl_final_exec_prefix"
7257 exec_prefix="$acl_save_exec_prefix"
7258 prefix="$acl_save_prefix"
7260 if test "X$x" = "X-L$additional_libdir"; then
7265 if test -z "$haveit"; then
7266 if test -d "$additional_libdir"; then
7267 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7271 for x in $LDFLAGS $LTLIBINTL; do
7273 acl_save_prefix="$prefix"
7274 prefix="$acl_final_prefix"
7275 acl_save_exec_prefix="$exec_prefix"
7276 exec_prefix="$acl_final_exec_prefix"
7278 exec_prefix="$acl_save_exec_prefix"
7279 prefix="$acl_save_prefix"
7281 if test "X$x" = "X-L$additional_libdir"; then
7286 if test -z "$haveit"; then
7287 if test -d "$additional_libdir"; then
7288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7296 if test "$enable_rpath" != no; then
7298 for x in $rpathdirs; do
7299 if test "X$x" = "X$dir"; then
7304 if test -z "$haveit"; then
7305 rpathdirs="$rpathdirs $dir"
7308 for x in $ltrpathdirs; do
7309 if test "X$x" = "X$dir"; then
7314 if test -z "$haveit"; then
7315 ltrpathdirs="$ltrpathdirs $dir"
7320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7326 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7327 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7333 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7334 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7340 if test "X$rpathdirs" != "X"; then
7341 if test -n "$hardcode_libdir_separator"; then
7343 for found_dir in $rpathdirs; do
7344 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7346 acl_save_libdir="$libdir"
7348 eval flag=\"$hardcode_libdir_flag_spec\"
7349 libdir="$acl_save_libdir"
7350 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7352 for found_dir in $rpathdirs; do
7353 acl_save_libdir="$libdir"
7355 eval flag=\"$hardcode_libdir_flag_spec\"
7356 libdir="$acl_save_libdir"
7357 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7361 if test "X$ltrpathdirs" != "X"; then
7362 for found_dir in $ltrpathdirs; do
7363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7367 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7368 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7369 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 gt_save_CPPFLAGS="$CPPFLAGS"
7373 CPPFLAGS="$CPPFLAGS $INCINTL"
7374 gt_save_LIBS="$LIBS"
7375 LIBS="$LIBS $LIBINTL"
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 #include <libintl.h>
7383 extern int _nl_msg_cat_cntr;
7388 const char *_nl_expand_alias (const char *);
7392 bindtextdomain ("", "");
7393 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_link") 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest$ac_exeext &&
7415 $as_test_x conftest$ac_exeext; then
7416 gt_cv_func_gnugettext1_libintl=yes
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 gt_cv_func_gnugettext1_libintl=no
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425 conftest$ac_exeext conftest.$ac_ext
7426 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7427 LIBS="$LIBS $LIBICONV"
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #include <libintl.h>
7435 extern int _nl_msg_cat_cntr;
7440 const char *_nl_expand_alias (const char *);
7444 bindtextdomain ("", "");
7445 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_link") 2>conftest.er1
7459 grep -v '^ *+' conftest.er1 >conftest.err
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } && {
7464 test -z "$ac_c_werror_flag" ||
7465 test ! -s conftest.err
7466 } && test -s conftest$ac_exeext &&
7467 $as_test_x conftest$ac_exeext; then
7468 LIBINTL="$LIBINTL $LIBICONV"
7469 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7470 gt_cv_func_gnugettext1_libintl=yes
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480 conftest$ac_exeext conftest.$ac_ext
7482 CPPFLAGS="$gt_save_CPPFLAGS"
7483 LIBS="$gt_save_LIBS"
7485 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7486 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7489 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7490 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7491 && test "$PACKAGE" != gettext-runtime \
7492 && test "$PACKAGE" != gettext-tools; }; then
7493 gt_use_preinstalled_gnugettext=yes
7502 if test -n "$INTL_MACOSX_LIBS"; then
7503 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7504 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7505 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7506 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7510 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7511 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define ENABLE_NLS 1
7522 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7523 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7524 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7525 echo "${ECHO_T}$USE_NLS" >&6; }
7526 if test "$USE_NLS" = "yes"; then
7527 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7528 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7529 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7530 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7531 gt_source="external libintl"
7536 gt_source="included intl directory"
7538 { echo "$as_me:$LINENO: result: $gt_source" >&5
7539 echo "${ECHO_T}$gt_source" >&6; }
7542 if test "$USE_NLS" = "yes"; then
7544 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7547 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7548 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7549 echo "${ECHO_T}$LIBINTL" >&6; }
7551 for element in $INCINTL; do
7553 for x in $CPPFLAGS; do
7555 acl_save_prefix="$prefix"
7556 prefix="$acl_final_prefix"
7557 acl_save_exec_prefix="$exec_prefix"
7558 exec_prefix="$acl_final_exec_prefix"
7560 exec_prefix="$acl_save_exec_prefix"
7561 prefix="$acl_save_prefix"
7563 if test "X$x" = "X$element"; then
7568 if test -z "$haveit"; then
7569 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_GETTEXT 1
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_DCGETTEXT 1
7599 if test x${prefix} = xNONE ; then
7600 if test `eval echo ${datadir}` = NONE/share ; then
7605 # ------------------------------------------------------------------
7606 # If the user has not set --prefix, we set our default to nothing.
7607 # In this case, if the user has not set --sysconfdir, we set it
7608 # to the package default of /etc/bacula. If either --prefix or
7609 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7610 # ------------------------------------------------------------------
7611 if test x${prefix} = xNONE ; then
7612 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7613 sysconfdir=/etc/bacula
7617 sysconfdir=`eval echo ${sysconfdir}`
7618 datadir=`eval echo ${datadir}`
7619 localedir=`eval echo ${datadir}/locale`
7620 cat >>confdefs.h <<_ACEOF
7621 #define LOCALEDIR "$localedir"
7624 cat >>confdefs.h <<_ACEOF
7625 #define SYSCONFDIR "$sysconfdir"
7629 # -------------------------------------------------------------------------
7630 # If the user has not set --exec-prefix, we default to ${prefix}
7631 # -------------------------------------------------------------------------
7632 if test x${exec_prefix} = xNONE ; then
7633 exec_prefix=${prefix}
7636 # ------------------------------------------------------------------
7637 # If the user has not set --sbindir, we set our default as /sbin
7638 # ------------------------------------------------------------------
7639 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7640 sbindir=${exec_prefix}/sbin
7642 sbindir=`eval echo ${sbindir}`
7645 # -------------------------------------------------------------------------
7646 # If the user has not set --mandir, we default to /usr/share/man
7647 # -------------------------------------------------------------------------
7648 if test x$mandir = x'${prefix}/man' ; then
7649 mandir=/usr/share/man
7653 for ac_prog in msgfmt
7655 # Extract the first word of "$ac_prog", so it can be a program name with args.
7656 set dummy $ac_prog; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_MSGFMT+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 MSGFMT=$ac_cv_path_MSGFMT
7686 if test -n "$MSGFMT"; then
7687 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7688 echo "${ECHO_T}$MSGFMT" >&6; }
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 test -n "$MSGFMT" && break
7697 test -n "$MSGFMT" || MSGFMT="no"
7699 if test "$MSGFMT" = "no"
7701 echo 'msgfmt program not found, disabling NLS !'
7703 USE_INCLUDED_LIBINTL=no
7706 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7707 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7708 if test "${ac_cv_gnu_library_2+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7718 #include <features.h>
7719 #ifdef __GNU_LIBRARY__
7720 #if (__GLIBC__ >= 2)
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7728 ac_cv_gnu_library_2=yes
7730 ac_cv_gnu_library_2=no
7737 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7738 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7740 GLIBC2="$ac_cv_gnu_library_2"
7744 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7745 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7746 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lcposix $LIBS"
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7758 /* Override any GCC internal prototype to avoid an error.
7759 Use char because int might match the return type of a GCC
7760 builtin and then its argument prototype would still apply. */
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_link") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest$ac_exeext &&
7790 $as_test_x conftest$ac_exeext; then
7791 ac_cv_lib_cposix_strerror=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_cv_lib_cposix_strerror=no
7799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800 conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7803 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7804 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7805 if test $ac_cv_lib_cposix_strerror = yes; then
7806 LIBS="$LIBS -lcposix"
7811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdc+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_cv_header_stdc=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_cv_header_stdc=no
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 if test $ac_cv_header_stdc = yes; then
7863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7874 $EGREP "memchr" >/dev/null 2>&1; then
7877 ac_cv_header_stdc=no
7883 if test $ac_cv_header_stdc = yes; then
7884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "free" >/dev/null 2>&1; then
7898 ac_cv_header_stdc=no
7904 if test $ac_cv_header_stdc = yes; then
7905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906 if test "$cross_compiling" = yes; then
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7917 #if ((' ' & 0x0FF) == 0x020)
7918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7921 # define ISLOWER(c) \
7922 (('a' <= (c) && (c) <= 'i') \
7923 || ('j' <= (c) && (c) <= 'r') \
7924 || ('s' <= (c) && (c) <= 'z'))
7925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7933 for (i = 0; i < 256; i++)
7934 if (XOR (islower (i), ISLOWER (i))
7935 || toupper (i) != TOUPPER (i))
7940 rm -f conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_link") 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7962 echo "$as_me: program exited with status $ac_status" >&5
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_header_stdc=no
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7976 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7979 cat >>confdefs.h <<\_ACEOF
7980 #define STDC_HEADERS 1
7985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987 if test "${ac_cv_c_const+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
8000 /* FIXME: Include the comments suggested by Paul. */
8002 /* Ultrix mips cc rejects this. */
8003 typedef int charset[2];
8005 /* SunOS 4.1.1 cc rejects this. */
8006 char const *const *pcpcc;
8008 /* NEC SVR4.0.2 mips cc rejects this. */
8009 struct point {int x, y;};
8010 static struct point const zero = {0,0};
8011 /* AIX XL C 1.02.0.0 rejects this.
8012 It does not let you subtract one const X* pointer from another in
8013 an arm of an if-expression whose if-part is not a constant
8015 const char *g = "string";
8016 pcpcc = &g + (g ? g-g : 0);
8017 /* HPUX 7.0 cc rejects these. */
8019 ppc = (char**) pcpcc;
8020 pcpcc = (char const *const *) ppc;
8021 { /* SCO 3.2v4 cc rejects this. */
8023 char const *s = 0 ? (char *) 0 : (char const *) 0;
8028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8030 const int *foo = &x[0];
8033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034 typedef const int *iptr;
8038 { /* AIX XL C 1.02.0.0 rejects this saying
8039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040 struct s { int j; const int *ap[3]; };
8041 struct s *b; b->j = 5;
8043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8047 return !cs[0] && !zero.x;
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8082 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8083 if test $ac_cv_c_const = no; then
8085 cat >>confdefs.h <<\_ACEOF
8092 { echo "$as_me:$LINENO: checking for signed" >&5
8093 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8094 if test "${bh_cv_c_signed+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8140 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8141 if test $bh_cv_c_signed = no; then
8143 cat >>confdefs.h <<\_ACEOF
8149 { echo "$as_me:$LINENO: checking for inline" >&5
8150 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8151 if test "${ac_cv_c_inline+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 for ac_kw in inline __inline__ __inline; do
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8164 static $ac_kw foo_t static_foo () {return 0; }
8165 $ac_kw foo_t foo () {return 0; }
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8178 grep -v '^ *+' conftest.er1 >conftest.err
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 } && test -s conftest.$ac_objext; then
8186 ac_cv_c_inline=$ac_kw
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 test "$ac_cv_c_inline" != no && break
8199 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8200 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8203 case $ac_cv_c_inline in
8206 case $ac_cv_c_inline in
8208 *) ac_val=$ac_cv_c_inline;;
8210 cat >>confdefs.h <<_ACEOF
8212 #define inline $ac_val
8218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8229 inttypes.h stdint.h unistd.h
8231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8245 #include <$ac_header>
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 eval "$as_ac_Header=yes"
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 eval "$as_ac_Header=no"
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 ac_res=`eval echo '${'$as_ac_Header'}'`
8275 { echo "$as_me:$LINENO: result: $ac_res" >&5
8276 echo "${ECHO_T}$ac_res" >&6; }
8277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8278 cat >>confdefs.h <<_ACEOF
8279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287 { echo "$as_me:$LINENO: checking for off_t" >&5
8288 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8289 if test "${ac_cv_type_off_t+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 typedef off_t ac__type_new_;
8303 if ((ac__type_new_ *) 0)
8305 if (sizeof (ac__type_new_))
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_cv_type_off_t=yes
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8339 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8340 if test $ac_cv_type_off_t = yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define off_t long int
8350 { echo "$as_me:$LINENO: checking for size_t" >&5
8351 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8352 if test "${ac_cv_type_size_t+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 typedef size_t ac__type_new_;
8366 if ((ac__type_new_ *) 0)
8368 if (sizeof (ac__type_new_))
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_cv_type_size_t=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_type_size_t=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8402 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8403 if test $ac_cv_type_size_t = yes; then
8407 cat >>confdefs.h <<_ACEOF
8408 #define size_t unsigned int
8414 { echo "$as_me:$LINENO: checking for long long" >&5
8415 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8416 if test "${ac_cv_type_long_long+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 long long ll = 1LL; int i = 63;
8429 long long llmax = (long long) -1;
8430 return ll << i | ll >> i | llmax / ll | llmax % ll;
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest$ac_exeext &&
8452 $as_test_x conftest$ac_exeext; then
8453 ac_cv_type_long_long=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_type_long_long=no
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462 conftest$ac_exeext conftest.$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8465 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8466 if test $ac_cv_type_long_long = yes; then
8468 cat >>confdefs.h <<\_ACEOF
8469 #define HAVE_LONG_LONG 1
8475 { echo "$as_me:$LINENO: checking for long double" >&5
8476 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8477 if test "${gt_cv_c_long_double+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 if test "$GCC" = yes; then
8481 gt_cv_c_long_double=yes
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8491 long double foo = 0.0;
8492 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8493 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 gt_cv_c_long_double=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 gt_cv_c_long_double=no
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8532 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8533 if test $gt_cv_c_long_double = yes; then
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_LONG_DOUBLE 1
8542 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8543 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8544 if test "${gt_cv_c_wchar_t+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8554 wchar_t foo = (wchar_t)'\0';
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8591 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8592 if test $gt_cv_c_wchar_t = yes; then
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_WCHAR_T 1
8601 { echo "$as_me:$LINENO: checking for wint_t" >&5
8602 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8603 if test "${gt_cv_c_wint_t+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8613 wint_t foo = (wchar_t)'\0';
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8650 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8651 if test $gt_cv_c_wint_t = yes; then
8653 cat >>confdefs.h <<\_ACEOF
8654 #define HAVE_WINT_T 1
8660 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8661 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8662 if test "${gl_cv_header_inttypes_h+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 #include <sys/types.h>
8672 #include <inttypes.h>
8676 uintmax_t i = (uintmax_t) -1;
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8690 grep -v '^ *+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.$ac_objext; then
8698 gl_cv_header_inttypes_h=yes
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 gl_cv_header_inttypes_h=no
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8709 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8710 if test $gl_cv_header_inttypes_h = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8719 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8720 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8721 if test "${gl_cv_header_stdint_h+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <sys/types.h>
8735 uintmax_t i = (uintmax_t) -1;
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_compile") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && {
8754 test -z "$ac_c_werror_flag" ||
8755 test ! -s conftest.err
8756 } && test -s conftest.$ac_objext; then
8757 gl_cv_header_stdint_h=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 gl_cv_header_stdint_h=no
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8768 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8769 if test $gl_cv_header_stdint_h = yes; then
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_STDINT_H_WITH_UINTMAX 1
8780 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8781 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8782 if test "${gt_cv_c_intmax_t+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8794 #if HAVE_STDINT_H_WITH_UINTMAX
8797 #if HAVE_INTTYPES_H_WITH_UINTMAX
8798 #include <inttypes.h>
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 gt_cv_c_intmax_t=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8837 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8838 if test $gt_cv_c_intmax_t = yes; then
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_INTMAX_T 1
8848 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8849 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8850 if test "${gt_cv_func_printf_posix+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 if test "$cross_compiling" = yes; then
8856 cat >conftest.$ac_ext <<_ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869 $EGREP "notposix" >/dev/null 2>&1; then
8870 gt_cv_func_printf_posix="guessing no"
8872 gt_cv_func_printf_posix="guessing yes"
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8887 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8888 dollar expansion (possibly an autoconf bug). */
8889 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8890 static char buf[100];
8893 sprintf (buf, format, 33, 55);
8894 return (strcmp (buf, "55 33") != 0);
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 gt_cv_func_printf_posix=yes
8919 echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8924 gt_cv_func_printf_posix=no
8926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8932 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8933 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8934 case $gt_cv_func_printf_posix in
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_POSIX_PRINTF 1
8944 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8945 # for constant arguments. Useless!
8946 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8947 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8948 if test "${ac_cv_working_alloca_h+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8961 char *p = (char *) alloca (2 * sizeof (int));
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_link") 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest$ac_exeext &&
8984 $as_test_x conftest$ac_exeext; then
8985 ac_cv_working_alloca_h=yes
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_cv_working_alloca_h=no
8993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994 conftest$ac_exeext conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8997 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8998 if test $ac_cv_working_alloca_h = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_ALLOCA_H 1
9006 { echo "$as_me:$LINENO: checking for alloca" >&5
9007 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9008 if test "${ac_cv_func_alloca_works+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 # define alloca __builtin_alloca
9021 # include <malloc.h>
9022 # define alloca _alloca
9024 # ifdef HAVE_ALLOCA_H
9025 # include <alloca.h>
9030 # ifndef alloca /* predefined by HP cc +Olibcalls */
9041 char *p = (char *) alloca (1);
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>conftest.er1
9056 grep -v '^ *+' conftest.er1 >conftest.err
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && {
9061 test -z "$ac_c_werror_flag" ||
9062 test ! -s conftest.err
9063 } && test -s conftest$ac_exeext &&
9064 $as_test_x conftest$ac_exeext; then
9065 ac_cv_func_alloca_works=yes
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_cv_func_alloca_works=no
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9074 conftest$ac_exeext conftest.$ac_ext
9076 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9077 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9079 if test $ac_cv_func_alloca_works = yes; then
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_ALLOCA 1
9086 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9087 # that cause trouble. Some versions do not even contain alloca or
9088 # contain a buggy version. If you still want to use their alloca,
9089 # use ar to extract alloca.o from them instead of compiling alloca.c.
9091 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9093 cat >>confdefs.h <<\_ACEOF
9098 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9099 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9100 if test "${ac_cv_os_cray+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #if defined CRAY && ! defined CRAY2
9116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9117 $EGREP "webecray" >/dev/null 2>&1; then
9125 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9126 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9127 if test $ac_cv_os_cray = yes; then
9128 for ac_func in _getb67 GETB67 getb67; do
9129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143 #define $ac_func innocuous_$ac_func
9145 /* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9151 # include <limits.h>
9153 # include <assert.h>
9158 /* Override any GCC internal prototype to avoid an error.
9159 Use char because int might match the return type of a GCC
9160 builtin and then its argument prototype would still apply. */
9165 /* The GNU C library defines this for functions which it implements
9166 to always fail with ENOSYS. Some functions are actually named
9167 something starting with __ and the normal name is an alias. */
9168 #if defined __stub_$ac_func || defined __stub___$ac_func
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_link") 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest$ac_exeext &&
9197 $as_test_x conftest$ac_exeext; then
9198 eval "$as_ac_var=yes"
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 eval "$as_ac_var=no"
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207 conftest$ac_exeext conftest.$ac_ext
9209 ac_res=`eval echo '${'$as_ac_var'}'`
9210 { echo "$as_me:$LINENO: result: $ac_res" >&5
9211 echo "${ECHO_T}$ac_res" >&6; }
9212 if test `eval echo '${'$as_ac_var'}'` = yes; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define CRAY_STACKSEG_END $ac_func
9224 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9225 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9226 if test "${ac_cv_c_stack_direction+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 if test "$cross_compiling" = yes; then
9230 ac_cv_c_stack_direction=0
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 $ac_includes_default
9240 find_stack_direction ()
9242 static char *addr = 0;
9247 return find_stack_direction ();
9250 return (&dummy > addr) ? 1 : -1;
9256 return find_stack_direction () < 0;
9259 rm -f conftest$ac_exeext
9260 if { (ac_try="$ac_link"
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_link") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_c_stack_direction=1
9281 echo "$as_me: program exited with status $ac_status" >&5
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_c_stack_direction=-1
9288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9293 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9294 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9296 cat >>confdefs.h <<_ACEOF
9297 #define STACK_DIRECTION $ac_cv_c_stack_direction
9305 for ac_header in stdlib.h unistd.h
9307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 ac_res=`eval echo '${'$as_ac_Header'}'`
9315 { echo "$as_me:$LINENO: result: $ac_res" >&5
9316 echo "${ECHO_T}$ac_res" >&6; }
9318 # Is the header compilable?
9319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9328 #include <$ac_header>
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_compile") 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest.$ac_objext; then
9347 ac_header_compiler=yes
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_header_compiler=no
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357 echo "${ECHO_T}$ac_header_compiler" >&6; }
9359 # Is the header present?
9360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <$ac_header>
9370 if { (ac_try="$ac_cpp conftest.$ac_ext"
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } >/dev/null && {
9383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9386 ac_header_preproc=yes
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_preproc=no
9394 rm -f conftest.err conftest.$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9396 echo "${ECHO_T}$ac_header_preproc" >&6; }
9398 # So? What about this header?
9399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9405 ac_header_preproc=yes
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 eval "$as_ac_Header=\$ac_header_preproc"
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431 { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9445 for ac_func in getpagesize
9447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9461 #define $ac_func innocuous_$ac_func
9463 /* System header to define __stub macros and hopefully few prototypes,
9464 which can conflict with char $ac_func (); below.
9465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9466 <limits.h> exists even on freestanding compilers. */
9469 # include <limits.h>
9471 # include <assert.h>
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9483 /* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486 #if defined __stub_$ac_func || defined __stub___$ac_func
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9507 grep -v '^ *+' conftest.er1 >conftest.err
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && {
9512 test -z "$ac_c_werror_flag" ||
9513 test ! -s conftest.err
9514 } && test -s conftest$ac_exeext &&
9515 $as_test_x conftest$ac_exeext; then
9516 eval "$as_ac_var=yes"
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 eval "$as_ac_var=no"
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9527 ac_res=`eval echo '${'$as_ac_var'}'`
9528 { echo "$as_me:$LINENO: result: $ac_res" >&5
9529 echo "${ECHO_T}$ac_res" >&6; }
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 { echo "$as_me:$LINENO: checking for working mmap" >&5
9539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 if test "$cross_compiling" = yes; then
9544 ac_cv_func_mmap_fixed_mapped=no
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 /* malloc might have been renamed as rpl_malloc. */
9556 /* Thanks to Mike Haertel and Jim Avera for this test.
9557 Here is a matrix of mmap possibilities:
9558 mmap private not fixed
9559 mmap private fixed at somewhere currently unmapped
9560 mmap private fixed at somewhere already mapped
9561 mmap shared not fixed
9562 mmap shared fixed at somewhere currently unmapped
9563 mmap shared fixed at somewhere already mapped
9564 For private mappings, we should verify that changes cannot be read()
9565 back from the file, nor mmap's back from the file at a different
9566 address. (There have been systems where private was not correctly
9567 implemented like the infamous i386 svr4.0, and systems where the
9568 VM page cache was not coherent with the file system buffer cache
9569 like early versions of FreeBSD and possibly contemporary NetBSD.)
9570 For shared mappings, we should conversely verify that changes get
9571 propagated back to all the places they're supposed to be.
9573 Grep wants private fixed already mapped.
9574 The main things grep needs to know about mmap are:
9575 * does it exist and is it safe to write into the mmap'd area
9576 * how to use it (BSD variants) */
9579 #include <sys/mman.h>
9581 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9585 /* This mess was copied from the GNU getpagesize.h. */
9586 #ifndef HAVE_GETPAGESIZE
9587 /* Assume that all systems that can run configure have sys/param.h. */
9588 # ifndef HAVE_SYS_PARAM_H
9589 # define HAVE_SYS_PARAM_H 1
9592 # ifdef _SC_PAGESIZE
9593 # define getpagesize() sysconf(_SC_PAGESIZE)
9594 # else /* no _SC_PAGESIZE */
9595 # ifdef HAVE_SYS_PARAM_H
9596 # include <sys/param.h>
9597 # ifdef EXEC_PAGESIZE
9598 # define getpagesize() EXEC_PAGESIZE
9599 # else /* no EXEC_PAGESIZE */
9601 # define getpagesize() NBPG * CLSIZE
9604 # endif /* no CLSIZE */
9605 # else /* no NBPG */
9607 # define getpagesize() NBPC
9608 # else /* no NBPC */
9610 # define getpagesize() PAGESIZE
9611 # endif /* PAGESIZE */
9612 # endif /* no NBPC */
9613 # endif /* no NBPG */
9614 # endif /* no EXEC_PAGESIZE */
9615 # else /* no HAVE_SYS_PARAM_H */
9616 # define getpagesize() 8192 /* punt totally */
9617 # endif /* no HAVE_SYS_PARAM_H */
9618 # endif /* no _SC_PAGESIZE */
9620 #endif /* no HAVE_GETPAGESIZE */
9625 char *data, *data2, *data3;
9629 pagesize = getpagesize ();
9631 /* First, make a file with some known garbage in it. */
9632 data = (char *) malloc (pagesize);
9635 for (i = 0; i < pagesize; ++i)
9636 *(data + i) = rand ();
9638 fd = creat ("conftest.mmap", 0600);
9641 if (write (fd, data, pagesize) != pagesize)
9645 /* Next, try to mmap the file at a fixed address which already has
9646 something else allocated at it. If we can, also make sure that
9647 we see the same garbage. */
9648 fd = open ("conftest.mmap", O_RDWR);
9651 data2 = (char *) malloc (2 * pagesize);
9654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9658 for (i = 0; i < pagesize; ++i)
9659 if (*(data + i) != *(data2 + i))
9662 /* Finally, make sure that changes to the mapped area do not
9663 percolate back to the file as seen by read(). (This is a bug on
9664 some variants of i386 svr4.0.) */
9665 for (i = 0; i < pagesize; ++i)
9666 *(data2 + i) = *(data2 + i) + 1;
9667 data3 = (char *) malloc (pagesize);
9670 if (read (fd, data3, pagesize) != pagesize)
9672 for (i = 0; i < pagesize; ++i)
9673 if (*(data + i) != *(data3 + i))
9679 rm -f conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_link") 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_func_mmap_fixed_mapped=yes
9701 echo "$as_me: program exited with status $ac_status" >&5
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_func_mmap_fixed_mapped=no
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9717 cat >>confdefs.h <<\_ACEOF
9725 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9726 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9727 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 #include <features.h>
9738 #ifdef __GNU_LIBRARY__
9739 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9746 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9747 ac_cv_gnu_library_2_1=yes
9749 ac_cv_gnu_library_2_1=no
9756 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9757 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9759 GLIBC21="$ac_cv_gnu_library_2_1"
9764 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9765 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9766 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 if test "$cross_compiling" = yes; then
9772 # Guess based on the CPU.
9774 alpha* | i3456786 | m68k | s390*)
9775 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9777 gt_cv_int_divbyzero_sigfpe="guessing no";;
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9793 sigfpe_handler (int sig)
9795 sigfpe_handler (sig) int sig;
9798 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9799 exit (sig != SIGFPE);
9809 signal (SIGFPE, sigfpe_handler);
9810 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9811 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9812 signal (SIGTRAP, sigfpe_handler);
9814 /* Linux/SPARC yields signal SIGILL. */
9815 #if defined (__sparc__) && defined (__linux__)
9816 signal (SIGILL, sigfpe_handler);
9825 rm -f conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 gt_cv_int_divbyzero_sigfpe=yes
9847 echo "$as_me: program exited with status $ac_status" >&5
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9852 gt_cv_int_divbyzero_sigfpe=no
9854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9861 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9862 case "$gt_cv_int_divbyzero_sigfpe" in
9867 cat >>confdefs.h <<_ACEOF
9868 #define INTDIV0_RAISES_SIGFPE $value
9873 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9874 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9875 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884 unsigned long long ull = 1ULL; int i = 63;
9888 unsigned long long ullmax = (unsigned long long) -1;
9889 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (ac_try="$ac_link"
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_link") 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && {
9908 test -z "$ac_c_werror_flag" ||
9909 test ! -s conftest.err
9910 } && test -s conftest$ac_exeext &&
9911 $as_test_x conftest$ac_exeext; then
9912 ac_cv_type_unsigned_long_long=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_cv_type_unsigned_long_long=no
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921 conftest$ac_exeext conftest.$ac_ext
9923 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9924 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9925 if test $ac_cv_type_unsigned_long_long = yes; then
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_UNSIGNED_LONG_LONG 1
9936 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9938 test $ac_cv_type_unsigned_long_long = yes \
9939 && ac_type='unsigned long long' \
9940 || ac_type='unsigned long'
9942 cat >>confdefs.h <<_ACEOF
9943 #define uintmax_t $ac_type
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_UINTMAX_T 1
9955 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9956 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9957 if test "${gt_cv_header_inttypes_h+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <sys/types.h>
9968 #include <inttypes.h>
9977 rm -f conftest.$ac_objext
9978 if { (ac_try="$ac_compile"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_compile") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest.$ac_objext; then
9994 gt_cv_header_inttypes_h=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 gt_cv_header_inttypes_h=no
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10006 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10007 if test $gt_cv_header_inttypes_h = yes; then
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_INTTYPES_H 1
10017 if test $gt_cv_header_inttypes_h = yes; then
10018 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10019 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10020 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <inttypes.h>
10043 rm -f conftest.$ac_objext
10044 if { (ac_try="$ac_compile"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest.$ac_objext; then
10060 gt_cv_inttypes_pri_broken=no
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 gt_cv_inttypes_pri_broken=yes
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10072 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10074 if test "$gt_cv_inttypes_pri_broken" = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define PRI_MACROS_BROKEN 1
10084 for ac_header in stdint.h
10086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 ac_res=`eval echo '${'$as_ac_Header'}'`
10094 { echo "$as_me:$LINENO: result: $ac_res" >&5
10095 echo "${ECHO_T}$ac_res" >&6; }
10097 # Is the header compilable?
10098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 $ac_includes_default
10107 #include <$ac_header>
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_compile") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest.$ac_objext; then
10126 ac_header_compiler=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_compiler=no
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 echo "${ECHO_T}$ac_header_compiler" >&6; }
10138 # Is the header present?
10139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <$ac_header>
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } >/dev/null && {
10162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10165 ac_header_preproc=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6; }
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 eval "$as_ac_Header=\$ac_header_preproc"
10209 ac_res=`eval echo '${'$as_ac_Header'}'`
10210 { echo "$as_me:$LINENO: result: $ac_res" >&5
10211 echo "${ECHO_T}$ac_res" >&6; }
10214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10215 cat >>confdefs.h <<_ACEOF
10216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10223 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10224 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 #include <limits.h>
10235 #include <stdint.h>
10242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10243 $EGREP "Found it" >/dev/null 2>&1; then
10248 if test -z "$result"; then
10249 if test "$cross_compiling" = yes; then
10250 # Depending upon the size, compute the lo and hi bounds.
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 #include <stddef.h>
10261 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10268 rm -f conftest.$ac_objext
10269 if { (ac_try="$ac_compile"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_compile") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest.$ac_objext; then
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <stddef.h>
10297 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest.$ac_objext; then
10321 ac_hi=$ac_mid; break
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_lo=`expr $ac_mid + 1`
10327 if test $ac_lo -le $ac_mid; then
10331 ac_mid=`expr 2 '*' $ac_mid + 1`
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346 #include <stddef.h>
10350 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 #include <stddef.h>
10386 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.$ac_objext; then
10410 ac_lo=$ac_mid; break
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_hi=`expr '(' $ac_mid ')' - 1`
10416 if test $ac_mid -le $ac_hi; then
10420 ac_mid=`expr 2 '*' $ac_mid`
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 # Binary search between lo and hi bounds.
10437 while test "x$ac_lo" != "x$ac_hi"; do
10438 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10439 cat >conftest.$ac_ext <<_ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 #include <stddef.h>
10449 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_compile") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest.$ac_objext; then
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_lo=`expr '(' $ac_mid ')' + 1`
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10484 ?*) res_hi=$ac_lo;;
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <stddef.h>
10495 static long int longval () { return ~(size_t)0 / 10; }
10496 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10498 #include <stdlib.h>
10503 FILE *f = fopen ("conftest.val", "w");
10506 if ((~(size_t)0 / 10) < 0)
10508 long int i = longval ();
10509 if (i != (~(size_t)0 / 10))
10511 fprintf (f, "%ld\n", i);
10515 unsigned long int i = ulongval ();
10516 if (i != (~(size_t)0 / 10))
10518 fprintf (f, "%lu\n", i);
10520 return ferror (f) || fclose (f) != 0;
10526 rm -f conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10537 { (case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_try") 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 res_hi=`cat conftest.val`
10548 echo "$as_me: program exited with status $ac_status" >&5
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ( exit $ac_status )
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10559 if test "$cross_compiling" = yes; then
10560 # Depending upon the size, compute the lo and hi bounds.
10561 cat >conftest.$ac_ext <<_ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567 #include <stddef.h>
10571 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10578 rm -f conftest.$ac_objext
10579 if { (ac_try="$ac_compile"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_compile") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest.$ac_objext; then
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <stddef.h>
10607 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_compile") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest.$ac_objext; then
10631 ac_hi=$ac_mid; break
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_lo=`expr $ac_mid + 1`
10637 if test $ac_lo -le $ac_mid; then
10641 ac_mid=`expr 2 '*' $ac_mid + 1`
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 cat >conftest.$ac_ext <<_ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 #include <stddef.h>
10660 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_compile") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1 >conftest.err
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest.$ac_objext; then
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <stddef.h>
10696 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_lo=$ac_mid; break
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_hi=`expr '(' $ac_mid ')' - 1`
10726 if test $ac_mid -le $ac_hi; then
10730 ac_mid=`expr 2 '*' $ac_mid`
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 # Binary search between lo and hi bounds.
10747 while test "x$ac_lo" != "x$ac_hi"; do
10748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <stddef.h>
10759 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_compile") 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } && {
10780 test -z "$ac_c_werror_flag" ||
10781 test ! -s conftest.err
10782 } && test -s conftest.$ac_objext; then
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_lo=`expr '(' $ac_mid ')' + 1`
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 ?*) res_lo=$ac_lo;;
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 #include <stddef.h>
10805 static long int longval () { return ~(size_t)0 % 10; }
10806 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10808 #include <stdlib.h>
10813 FILE *f = fopen ("conftest.val", "w");
10816 if ((~(size_t)0 % 10) < 0)
10818 long int i = longval ();
10819 if (i != (~(size_t)0 % 10))
10821 fprintf (f, "%ld\n", i);
10825 unsigned long int i = ulongval ();
10826 if (i != (~(size_t)0 % 10))
10828 fprintf (f, "%lu\n", i);
10830 return ferror (f) || fclose (f) != 0;
10836 rm -f conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10847 { (case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_try") 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 res_lo=`cat conftest.val`
10858 echo "$as_me: program exited with status $ac_status" >&5
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ( exit $ac_status )
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10869 if test "$cross_compiling" = yes; then
10870 # Depending upon the size, compute the lo and hi bounds.
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <stddef.h>
10881 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <stddef.h>
10917 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
10941 ac_hi=$ac_mid; break
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 ac_lo=`expr $ac_mid + 1`
10947 if test $ac_lo -le $ac_mid; then
10951 ac_mid=`expr 2 '*' $ac_mid + 1`
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 cat >conftest.$ac_ext <<_ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 #include <stddef.h>
10970 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1 >conftest.err
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.$ac_objext; then
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <stddef.h>
11006 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_compile") 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest.$ac_objext; then
11030 ac_lo=$ac_mid; break
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_hi=`expr '(' $ac_mid ')' - 1`
11036 if test $ac_mid -le $ac_hi; then
11040 ac_mid=`expr 2 '*' $ac_mid`
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 # Binary search between lo and hi bounds.
11057 while test "x$ac_lo" != "x$ac_hi"; do
11058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 #include <stddef.h>
11069 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11076 rm -f conftest.$ac_objext
11077 if { (ac_try="$ac_compile"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_compile") 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest.$ac_objext; then
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ac_lo=`expr '(' $ac_mid ')' + 1`
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 ?*) fits_in_uint=$ac_lo;;
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <stddef.h>
11115 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11116 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11118 #include <stdlib.h>
11123 FILE *f = fopen ("conftest.val", "w");
11126 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11128 long int i = longval ();
11129 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11131 fprintf (f, "%ld\n", i);
11135 unsigned long int i = ulongval ();
11136 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11138 fprintf (f, "%lu\n", i);
11140 return ferror (f) || fclose (f) != 0;
11146 rm -f conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 fits_in_uint=`cat conftest.val`
11168 echo "$as_me: program exited with status $ac_status" >&5
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ( exit $ac_status )
11175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11179 if test "$fits_in_uint" = 1; then
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <stddef.h>
11188 extern unsigned long foo;
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_compile") 2>conftest.er1
11207 grep -v '^ *+' conftest.er1 >conftest.err
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest.$ac_objext; then
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 if test -z "$result"; then
11226 if test "$fits_in_uint" = 1; then
11227 result="$res_hi$res_lo"U
11229 result="$res_hi$res_lo"UL
11232 result='~(size_t)0'
11235 { echo "$as_me:$LINENO: result: $result" >&5
11236 echo "${ECHO_T}$result" >&6; }
11237 if test "$result" != yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define SIZE_MAX $result
11249 for ac_header in stdint.h
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11262 # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 #include <$ac_header>
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest.$ac_objext; then
11291 ac_header_compiler=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_header_compiler=no
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301 echo "${ECHO_T}$ac_header_compiler" >&6; }
11303 # Is the header present?
11304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 #include <$ac_header>
11314 if { (ac_try="$ac_cpp conftest.$ac_ext"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } >/dev/null && {
11327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11328 test ! -s conftest.err
11330 ac_header_preproc=yes
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_header_preproc=no
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11342 # So? What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349 ac_header_preproc=yes
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 eval "$as_ac_Header=\$ac_header_preproc"
11374 ac_res=`eval echo '${'$as_ac_Header'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11380 cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11396 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11397 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 typedef ptrdiff_t ac__type_new_;
11411 if ((ac__type_new_ *) 0)
11413 if (sizeof (ac__type_new_))
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11436 ac_cv_type_ptrdiff_t=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_cv_type_ptrdiff_t=no
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11447 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11448 if test $ac_cv_type_ptrdiff_t = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define ptrdiff_t long
11469 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11470 stdlib.h string.h unistd.h sys/param.h
11472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480 { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11483 # Is the header compilable?
11484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 #include <$ac_header>
11495 rm -f conftest.$ac_objext
11496 if { (ac_try="$ac_compile"
11497 case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_compile") 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && {
11509 test -z "$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 } && test -s conftest.$ac_objext; then
11512 ac_header_compiler=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_compiler=no
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522 echo "${ECHO_T}$ac_header_compiler" >&6; }
11524 # Is the header present?
11525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 #include <$ac_header>
11535 if { (ac_try="$ac_cpp conftest.$ac_ext"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } >/dev/null && {
11548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11551 ac_header_preproc=yes
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11556 ac_header_preproc=no
11559 rm -f conftest.err conftest.$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11561 echo "${ECHO_T}$ac_header_preproc" >&6; }
11563 # So? What about this header?
11564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11570 ac_header_preproc=yes
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 eval "$as_ac_Header=\$ac_header_preproc"
11595 ac_res=`eval echo '${'$as_ac_Header'}'`
11596 { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11632 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11633 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11634 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11651 #define $ac_func innocuous_$ac_func
11653 /* System header to define __stub macros and hopefully few prototypes,
11654 which can conflict with char $ac_func (); below.
11655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656 <limits.h> exists even on freestanding compilers. */
11659 # include <limits.h>
11661 # include <assert.h>
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11673 /* The GNU C library defines this for functions which it implements
11674 to always fail with ENOSYS. Some functions are actually named
11675 something starting with __ and the normal name is an alias. */
11676 #if defined __stub_$ac_func || defined __stub___$ac_func
11683 return $ac_func ();
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_link") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest$ac_exeext &&
11705 $as_test_x conftest$ac_exeext; then
11706 eval "$as_ac_var=yes"
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 eval "$as_ac_var=no"
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715 conftest$ac_exeext conftest.$ac_ext
11717 ac_res=`eval echo '${'$as_ac_var'}'`
11718 { echo "$as_me:$LINENO: result: $ac_res" >&5
11719 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_var'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11731 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11732 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11747 char *p = (char *) _snprintf;
11754 rm -f conftest.$ac_objext
11755 if { (ac_try="$ac_compile"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_compile") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest.$ac_objext; then
11771 ac_cv_have_decl__snprintf=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_have_decl__snprintf=no
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11782 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11783 if test $ac_cv_have_decl__snprintf = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define HAVE_DECL__SNPRINTF $gt_value
11795 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11796 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11797 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11812 char *p = (char *) _snwprintf;
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 ac_cv_have_decl__snwprintf=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_cv_have_decl__snwprintf=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11847 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11848 if test $ac_cv_have_decl__snwprintf = yes; then
11854 cat >>confdefs.h <<_ACEOF
11855 #define HAVE_DECL__SNWPRINTF $gt_value
11861 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11862 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11863 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11877 #ifndef feof_unlocked
11878 char *p = (char *) feof_unlocked;
11885 rm -f conftest.$ac_objext
11886 if { (ac_try="$ac_compile"
11887 case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_compile") 2>conftest.er1
11894 grep -v '^ *+' conftest.er1 >conftest.err
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest.$ac_objext; then
11902 ac_cv_have_decl_feof_unlocked=yes
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_cv_have_decl_feof_unlocked=no
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11913 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11914 if test $ac_cv_have_decl_feof_unlocked = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11926 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11927 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11928 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11942 #ifndef fgets_unlocked
11943 char *p = (char *) fgets_unlocked;
11950 rm -f conftest.$ac_objext
11951 if { (ac_try="$ac_compile"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_compile") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest.$ac_objext; then
11967 ac_cv_have_decl_fgets_unlocked=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_cv_have_decl_fgets_unlocked=no
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11978 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11979 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11991 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11992 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11993 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12007 #ifndef getc_unlocked
12008 char *p = (char *) getc_unlocked;
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_compile") 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } && {
12029 test -z "$ac_c_werror_flag" ||
12030 test ! -s conftest.err
12031 } && test -s conftest.$ac_objext; then
12032 ac_cv_have_decl_getc_unlocked=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 ac_cv_have_decl_getc_unlocked=no
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12043 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12044 if test $ac_cv_have_decl_getc_unlocked = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12056 case $gt_cv_func_printf_posix in
12057 *yes) HAVE_POSIX_PRINTF=1 ;;
12058 *) HAVE_POSIX_PRINTF=0 ;;
12061 if test "$ac_cv_func_asprintf" = yes; then
12067 if test "$ac_cv_func_snprintf" = yes; then
12073 if test "$ac_cv_func_wprintf" = yes; then
12085 am_save_CPPFLAGS="$CPPFLAGS"
12087 for element in $INCICONV; do
12089 for x in $CPPFLAGS; do
12091 acl_save_prefix="$prefix"
12092 prefix="$acl_final_prefix"
12093 acl_save_exec_prefix="$exec_prefix"
12094 exec_prefix="$acl_final_exec_prefix"
12096 exec_prefix="$acl_save_exec_prefix"
12097 prefix="$acl_save_prefix"
12099 if test "X$x" = "X$element"; then
12104 if test -z "$haveit"; then
12105 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12110 { echo "$as_me:$LINENO: checking for iconv" >&5
12111 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12112 if test "${am_cv_func_iconv+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 am_cv_func_iconv="no, consider installing GNU libiconv"
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 #include <stdlib.h>
12129 iconv_t cd = iconv_open("","");
12130 iconv(cd,NULL,NULL,NULL,NULL);
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 am_cv_func_iconv=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12164 if test "$am_cv_func_iconv" != yes; then
12165 am_save_LIBS="$LIBS"
12166 LIBS="$LIBS $LIBICONV"
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <stdlib.h>
12178 iconv_t cd = iconv_open("","");
12179 iconv(cd,NULL,NULL,NULL,NULL);
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12203 am_cv_lib_iconv=yes
12204 am_cv_func_iconv=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS="$am_save_LIBS"
12218 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12219 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12220 if test "$am_cv_func_iconv" = yes; then
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_ICONV 1
12227 if test "$am_cv_lib_iconv" = yes; then
12228 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12229 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12230 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12231 echo "${ECHO_T}$LIBICONV" >&6; }
12233 CPPFLAGS="$am_save_CPPFLAGS"
12240 if test "$am_cv_func_iconv" = yes; then
12241 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12242 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12243 if test "${am_cv_proto_iconv+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 cat >conftest.$ac_ext <<_ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12254 #include <stdlib.h>
12260 #if defined(__STDC__) || defined(__cplusplus)
12261 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.$ac_objext; then
12291 am_cv_proto_iconv_arg1=""
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 am_cv_proto_iconv_arg1="const"
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 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);"
12303 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12304 { echo "$as_me:$LINENO: result: ${ac_t:-
12305 }$am_cv_proto_iconv" >&5
12306 echo "${ECHO_T}${ac_t:-
12307 }$am_cv_proto_iconv" >&6; }
12309 cat >>confdefs.h <<_ACEOF
12310 #define ICONV_CONST $am_cv_proto_iconv_arg1
12316 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12317 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12318 if test "${am_cv_langinfo_codeset+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include <langinfo.h>
12331 char* cs = nl_langinfo(CODESET);
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 am_cv_langinfo_codeset=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 am_cv_langinfo_codeset=no
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12366 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12367 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12368 if test $am_cv_langinfo_codeset = yes; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_LANGINFO_CODESET 1
12376 if test $ac_cv_header_locale_h = yes; then
12378 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12379 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12380 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389 #include <locale.h>
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest$ac_exeext &&
12415 $as_test_x conftest$ac_exeext; then
12416 gt_cv_val_LC_MESSAGES=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 gt_cv_val_LC_MESSAGES=no
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12427 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12428 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12429 if test $gt_cv_val_LC_MESSAGES = yes; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_LC_MESSAGES 1
12439 if test -n "$INTL_MACOSX_LIBS"; then
12440 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12443 for ac_prog in bison
12445 # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12449 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 if test -n "$INTLBISON"; then
12453 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_prog_INTLBISON="$ac_prog"
12463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 INTLBISON=$ac_cv_prog_INTLBISON
12473 if test -n "$INTLBISON"; then
12474 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12475 echo "${ECHO_T}$INTLBISON" >&6; }
12477 { echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6; }
12482 test -n "$INTLBISON" && break
12485 if test -z "$INTLBISON"; then
12488 { echo "$as_me:$LINENO: checking version of bison" >&5
12489 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12490 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12491 case $ac_prog_version in
12492 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12493 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12494 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12495 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12497 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12498 echo "${ECHO_T}$ac_prog_version" >&6; }
12500 if test $ac_verc_fail = yes; then
12519 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12520 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12521 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 gt_save_CPPFLAGS="$CPPFLAGS"
12525 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12526 gt_save_LIBS="$LIBS"
12527 LIBS="$LIBS -framework CoreFoundation"
12528 cat >conftest.$ac_ext <<_ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 #include <CFPreferences.h>
12538 CFPreferencesCopyAppValue(NULL, NULL)
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest$ac_exeext &&
12560 $as_test_x conftest$ac_exeext; then
12561 gt_cv_func_CFPreferencesCopyAppValue=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 gt_cv_func_CFPreferencesCopyAppValue=no
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570 conftest$ac_exeext conftest.$ac_ext
12571 CPPFLAGS="$gt_save_CPPFLAGS"
12572 LIBS="$gt_save_LIBS"
12574 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12575 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12576 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12583 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12584 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12585 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 gt_save_CPPFLAGS="$CPPFLAGS"
12589 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12590 gt_save_LIBS="$LIBS"
12591 LIBS="$LIBS -framework CoreFoundation"
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 #include <CFLocale.h>
12602 CFLocaleCopyCurrent();
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest$ac_exeext &&
12624 $as_test_x conftest$ac_exeext; then
12625 gt_cv_func_CFLocaleCopyCurrent=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 gt_cv_func_CFLocaleCopyCurrent=no
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634 conftest$ac_exeext conftest.$ac_ext
12635 CPPFLAGS="$gt_save_CPPFLAGS"
12636 LIBS="$gt_save_LIBS"
12638 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12639 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12640 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_CFLOCALECOPYCURRENT 1
12648 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12649 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12655 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12656 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12657 # Check whether --enable-nls was given.
12658 if test "${enable_nls+set}" = set; then
12659 enableval=$enable_nls; USE_NLS=$enableval
12664 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6; }
12670 BUILD_INCLUDED_LIBINTL=no
12671 USE_INCLUDED_LIBINTL=no
12677 if test "$USE_NLS" = "yes"; then
12678 gt_use_preinstalled_gnugettext=no
12680 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12681 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12683 # Check whether --with-included-gettext was given.
12684 if test "${with_included_gettext+set}" = set; then
12685 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12687 nls_cv_force_use_gnu_gettext=no
12690 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12691 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12693 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12694 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12701 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12702 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12703 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 #include <libintl.h>
12713 extern int _nl_msg_cat_cntr;
12714 extern int *_nl_domain_bindings;
12718 bindtextdomain ("", "");
12719 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_link") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext &&
12741 $as_test_x conftest$ac_exeext; then
12742 gt_cv_func_gnugettext1_libc=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 gt_cv_func_gnugettext1_libc=no
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12753 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12754 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12756 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12762 acl_save_prefix="$prefix"
12763 prefix="$acl_final_prefix"
12764 acl_save_exec_prefix="$exec_prefix"
12765 exec_prefix="$acl_final_exec_prefix"
12767 eval additional_includedir=\"$includedir\"
12768 eval additional_libdir=\"$libdir\"
12770 exec_prefix="$acl_save_exec_prefix"
12771 prefix="$acl_save_prefix"
12774 # Check whether --with-libintl-prefix was given.
12775 if test "${with_libintl_prefix+set}" = set; then
12776 withval=$with_libintl_prefix;
12777 if test "X$withval" = "Xno"; then
12780 if test "X$withval" = "X"; then
12782 acl_save_prefix="$prefix"
12783 prefix="$acl_final_prefix"
12784 acl_save_exec_prefix="$exec_prefix"
12785 exec_prefix="$acl_final_exec_prefix"
12787 eval additional_includedir=\"$includedir\"
12788 eval additional_libdir=\"$libdir\"
12790 exec_prefix="$acl_save_exec_prefix"
12791 prefix="$acl_save_prefix"
12794 additional_includedir="$withval/include"
12795 additional_libdir="$withval/lib"
12806 names_already_handled=
12807 names_next_round='intl '
12808 while test -n "$names_next_round"; do
12809 names_this_round="$names_next_round"
12811 for name in $names_this_round; do
12813 for n in $names_already_handled; do
12814 if test "$n" = "$name"; then
12815 already_handled=yes
12819 if test -z "$already_handled"; then
12820 names_already_handled="$names_already_handled $name"
12821 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12822 eval value=\"\$HAVE_LIB$uppername\"
12823 if test -n "$value"; then
12824 if test "$value" = yes; then
12825 eval value=\"\$LIB$uppername\"
12826 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12827 eval value=\"\$LTLIB$uppername\"
12828 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12837 if test $use_additional = yes; then
12838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12839 found_dir="$additional_libdir"
12840 found_so="$additional_libdir/lib$name.$shlibext"
12841 if test -f "$additional_libdir/lib$name.la"; then
12842 found_la="$additional_libdir/lib$name.la"
12845 if test -f "$additional_libdir/lib$name.$libext"; then
12846 found_dir="$additional_libdir"
12847 found_a="$additional_libdir/lib$name.$libext"
12848 if test -f "$additional_libdir/lib$name.la"; then
12849 found_la="$additional_libdir/lib$name.la"
12854 if test "X$found_dir" = "X"; then
12855 for x in $LDFLAGS $LTLIBINTL; do
12857 acl_save_prefix="$prefix"
12858 prefix="$acl_final_prefix"
12859 acl_save_exec_prefix="$exec_prefix"
12860 exec_prefix="$acl_final_exec_prefix"
12862 exec_prefix="$acl_save_exec_prefix"
12863 prefix="$acl_save_prefix"
12867 dir=`echo "X$x" | sed -e 's/^X-L//'`
12868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12870 found_so="$dir/lib$name.$shlibext"
12871 if test -f "$dir/lib$name.la"; then
12872 found_la="$dir/lib$name.la"
12875 if test -f "$dir/lib$name.$libext"; then
12877 found_a="$dir/lib$name.$libext"
12878 if test -f "$dir/lib$name.la"; then
12879 found_la="$dir/lib$name.la"
12885 if test "X$found_dir" != "X"; then
12890 if test "X$found_dir" != "X"; then
12891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12892 if test "X$found_so" != "X"; then
12893 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12894 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12897 for x in $ltrpathdirs; do
12898 if test "X$x" = "X$found_dir"; then
12903 if test -z "$haveit"; then
12904 ltrpathdirs="$ltrpathdirs $found_dir"
12906 if test "$hardcode_direct" = yes; then
12907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12912 for x in $rpathdirs; do
12913 if test "X$x" = "X$found_dir"; then
12918 if test -z "$haveit"; then
12919 rpathdirs="$rpathdirs $found_dir"
12923 for x in $LDFLAGS $LIBINTL; do
12925 acl_save_prefix="$prefix"
12926 prefix="$acl_final_prefix"
12927 acl_save_exec_prefix="$exec_prefix"
12928 exec_prefix="$acl_final_exec_prefix"
12930 exec_prefix="$acl_save_exec_prefix"
12931 prefix="$acl_save_prefix"
12933 if test "X$x" = "X-L$found_dir"; then
12938 if test -z "$haveit"; then
12939 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12941 if test "$hardcode_minus_L" != no; then
12942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12944 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12950 if test "X$found_a" != "X"; then
12951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12953 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12956 additional_includedir=
12957 case "$found_dir" in
12959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12960 additional_includedir="$basedir/include"
12963 if test "X$additional_includedir" != "X"; then
12964 if test "X$additional_includedir" != "X/usr/include"; then
12966 if test "X$additional_includedir" = "X/usr/local/include"; then
12967 if test -n "$GCC"; then
12969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12973 if test -z "$haveit"; then
12974 for x in $CPPFLAGS $INCINTL; do
12976 acl_save_prefix="$prefix"
12977 prefix="$acl_final_prefix"
12978 acl_save_exec_prefix="$exec_prefix"
12979 exec_prefix="$acl_final_exec_prefix"
12981 exec_prefix="$acl_save_exec_prefix"
12982 prefix="$acl_save_prefix"
12984 if test "X$x" = "X-I$additional_includedir"; then
12989 if test -z "$haveit"; then
12990 if test -d "$additional_includedir"; then
12991 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12997 if test -n "$found_la"; then
12998 save_libdir="$libdir"
12999 case "$found_la" in
13000 */* | *\\*) . "$found_la" ;;
13001 *) . "./$found_la" ;;
13003 libdir="$save_libdir"
13004 for dep in $dependency_libs; do
13007 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13008 if test "X$additional_libdir" != "X/usr/lib"; then
13010 if test "X$additional_libdir" = "X/usr/local/lib"; then
13011 if test -n "$GCC"; then
13013 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13017 if test -z "$haveit"; then
13019 for x in $LDFLAGS $LIBINTL; do
13021 acl_save_prefix="$prefix"
13022 prefix="$acl_final_prefix"
13023 acl_save_exec_prefix="$exec_prefix"
13024 exec_prefix="$acl_final_exec_prefix"
13026 exec_prefix="$acl_save_exec_prefix"
13027 prefix="$acl_save_prefix"
13029 if test "X$x" = "X-L$additional_libdir"; then
13034 if test -z "$haveit"; then
13035 if test -d "$additional_libdir"; then
13036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13040 for x in $LDFLAGS $LTLIBINTL; do
13042 acl_save_prefix="$prefix"
13043 prefix="$acl_final_prefix"
13044 acl_save_exec_prefix="$exec_prefix"
13045 exec_prefix="$acl_final_exec_prefix"
13047 exec_prefix="$acl_save_exec_prefix"
13048 prefix="$acl_save_prefix"
13050 if test "X$x" = "X-L$additional_libdir"; then
13055 if test -z "$haveit"; then
13056 if test -d "$additional_libdir"; then
13057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13064 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13065 if test "$enable_rpath" != no; then
13067 for x in $rpathdirs; do
13068 if test "X$x" = "X$dir"; then
13073 if test -z "$haveit"; then
13074 rpathdirs="$rpathdirs $dir"
13077 for x in $ltrpathdirs; do
13078 if test "X$x" = "X$dir"; then
13083 if test -z "$haveit"; then
13084 ltrpathdirs="$ltrpathdirs $dir"
13089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13095 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13096 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13102 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13109 if test "X$rpathdirs" != "X"; then
13110 if test -n "$hardcode_libdir_separator"; then
13112 for found_dir in $rpathdirs; do
13113 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13115 acl_save_libdir="$libdir"
13117 eval flag=\"$hardcode_libdir_flag_spec\"
13118 libdir="$acl_save_libdir"
13119 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13121 for found_dir in $rpathdirs; do
13122 acl_save_libdir="$libdir"
13123 libdir="$found_dir"
13124 eval flag=\"$hardcode_libdir_flag_spec\"
13125 libdir="$acl_save_libdir"
13126 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13130 if test "X$ltrpathdirs" != "X"; then
13131 for found_dir in $ltrpathdirs; do
13132 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13136 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13137 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13138 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 gt_save_CPPFLAGS="$CPPFLAGS"
13142 CPPFLAGS="$CPPFLAGS $INCINTL"
13143 gt_save_LIBS="$LIBS"
13144 LIBS="$LIBS $LIBINTL"
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 #include <libintl.h>
13152 extern int _nl_msg_cat_cntr;
13157 const char *_nl_expand_alias (const char *);
13161 bindtextdomain ("", "");
13162 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest$ac_exeext &&
13184 $as_test_x conftest$ac_exeext; then
13185 gt_cv_func_gnugettext1_libintl=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 gt_cv_func_gnugettext1_libintl=no
13193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13194 conftest$ac_exeext conftest.$ac_ext
13195 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13196 LIBS="$LIBS $LIBICONV"
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <libintl.h>
13204 extern int _nl_msg_cat_cntr;
13209 const char *_nl_expand_alias (const char *);
13213 bindtextdomain ("", "");
13214 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest$ac_exeext &&
13236 $as_test_x conftest$ac_exeext; then
13237 LIBINTL="$LIBINTL $LIBICONV"
13238 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13239 gt_cv_func_gnugettext1_libintl=yes
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 CPPFLAGS="$gt_save_CPPFLAGS"
13252 LIBS="$gt_save_LIBS"
13254 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13258 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13259 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13260 && test "$PACKAGE" != gettext-runtime \
13261 && test "$PACKAGE" != gettext-tools; }; then
13262 gt_use_preinstalled_gnugettext=yes
13270 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13271 nls_cv_use_gnu_gettext=yes
13275 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13276 BUILD_INCLUDED_LIBINTL=yes
13277 USE_INCLUDED_LIBINTL=yes
13278 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13279 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13280 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13284 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13285 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13290 if test -n "$INTL_MACOSX_LIBS"; then
13291 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13292 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13293 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13294 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13298 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13299 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13301 cat >>confdefs.h <<\_ACEOF
13302 #define ENABLE_NLS 1
13310 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13311 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13312 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13313 echo "${ECHO_T}$USE_NLS" >&6; }
13314 if test "$USE_NLS" = "yes"; then
13315 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13316 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13317 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13318 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13319 gt_source="external libintl"
13324 gt_source="included intl directory"
13326 { echo "$as_me:$LINENO: result: $gt_source" >&5
13327 echo "${ECHO_T}$gt_source" >&6; }
13330 if test "$USE_NLS" = "yes"; then
13332 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13335 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13336 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13337 echo "${ECHO_T}$LIBINTL" >&6; }
13339 for element in $INCINTL; do
13341 for x in $CPPFLAGS; do
13343 acl_save_prefix="$prefix"
13344 prefix="$acl_final_prefix"
13345 acl_save_exec_prefix="$exec_prefix"
13346 exec_prefix="$acl_final_exec_prefix"
13348 exec_prefix="$acl_save_exec_prefix"
13349 prefix="$acl_save_prefix"
13351 if test "X$x" = "X$element"; then
13356 if test -z "$haveit"; then
13357 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_GETTEXT 1
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_DCGETTEXT 1
13379 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13380 BUILD_INCLUDED_LIBINTL=yes
13387 nls_cv_header_intl=
13388 nls_cv_header_libgt=
13400 if test "$USE_INCLUDED_LIBINTL" = yes; then
13401 INTLOBJS="\$(GETTOBJS)"
13405 INTL_LIBTOOL_SUFFIX_PREFIX=
13409 INTLLIBS="$LIBINTL"
13422 support_postgresql=no
13423 support_smartalloc=yes
13424 support_readline=yes
13428 support_wx_console=no
13433 support_static_tools=no
13434 support_static_fd=no
13435 support_static_sd=no
13436 support_static_dir=no
13437 support_static_cons=no
13439 build_client_only=no
13447 # -------------------------------------------
13448 # gnome (default off)
13449 # -------------------------------------------
13450 # Check whether --enable-gnome was given.
13451 if test "${enable_gnome+set}" = set; then
13452 enableval=$enable_gnome; if test x$enableval = xyes; then
13459 if test x$support_gnome = xyes; then
13460 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13462 if test $pkg = 0; then
13463 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13464 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13465 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13466 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13471 GNOME_DIR=src/gnome2-console
13472 gnome_version="Version 2.x"
13474 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13475 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13476 { (exit 1); exit 1; }; }
13481 # -------------------------------------------
13482 # bat (default off)
13483 # -------------------------------------------
13484 # Check whether --enable-bat was given.
13485 if test "${enable_bat+set}" = set; then
13486 enableval=$enable_bat; if test x$enableval = xyes; then
13488 cat >>confdefs.h <<\_ACEOF
13498 if test x$support_bat = xyes; then
13499 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13501 if test $pkg = 0; then
13502 BAT_DIR=src/qt-console
13504 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13505 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13506 { (exit 1); exit 1; }; }
13511 # If bat is enabled, we need the qwt library
13515 if test x$support_bat = xyes; then
13516 { echo "$as_me:$LINENO: checking for qwt support" >&5
13517 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13519 # Check whether --with-qwt was given.
13520 if test "${with_qwt+set}" = set; then
13522 case "$with_qwt" in
13526 if test -f ${with_qwt}/include/qwt.h; then
13527 QWT_INC="${with_qwt}/include"
13528 QWT_LDFLAGS="-L${with_qwt}/lib"
13537 # Search in standard places, or --with-qwt not specified
13539 if test x$QWT_INC = x; then
13540 for root in /usr /usr/local; do
13541 for ver in qwt qwt5 qwt-qt4; do
13542 if test -f ${root}/include/${ver}/qwt.h; then
13543 QWT_INC="${root}/include/${ver}"
13544 if test -d ${root}/lib64/; then
13545 QWT_LDFLAGS="-L${root}/lib64"
13547 QWT_LDFLAGS="-L${root}/lib"
13555 if test x$QWT_INC = x; then
13556 { echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6; }
13558 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13559 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13560 { (exit 1); exit 1; }; }
13564 { echo "$as_me:$LINENO: result: yes" >&5
13565 echo "${ECHO_T}yes" >&6; }
13574 # -------------------------------------------
13575 # bwx-console (default off)
13576 # -------------------------------------------
13577 # Check whether --enable-bwx-console was given.
13578 if test "${enable_bwx_console+set}" = set; then
13579 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13580 support_wx_console=yes
13586 if test x$support_wx_console = xyes; then
13587 abc=`$WXCONFIG $WXFLAGS --cppflags`
13589 if test $pkg = 0; then
13590 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13591 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13592 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13596 WX_DIR=src/wx-console
13599 echo "wx-config program not found. bwx-console disabled."
13601 support_wx_console=no
13607 # -------------------------------------------
13608 # tray-monitor (default off)
13609 # -------------------------------------------
13610 # Check whether --enable-tray-monitor was given.
13611 if test "${enable_tray_monitor+set}" = set; then
13612 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13613 support_tray_monitor=yes
13619 if test x$support_tray_monitor = xyes; then
13620 abc=`$PKGCONFIG --exists gtk+-2.0`
13622 if test $pkg = 0; then
13623 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13624 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13627 TRAY_MONITOR_DIR=src/tray-monitor
13628 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13630 if test $pkg = 0; then
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_GTK_2_4 1
13641 # -------------------------------------------
13642 # smartalloc (default off)
13643 # -------------------------------------------
13644 # Check whether --enable-smartalloc was given.
13645 if test "${enable_smartalloc+set}" = set; then
13646 enableval=$enable_smartalloc; if test x$enableval = xno; then
13647 support_smartalloc=no
13652 if test x$support_smartalloc = xyes; then
13654 cat >>confdefs.h <<\_ACEOF
13655 #define SMARTALLOC 1
13660 # -------------------------------------------
13661 # static-tools (default off)
13662 # -------------------------------------------
13663 # Check whether --enable-static-tools was given.
13664 if test "${enable_static_tools+set}" = set; then
13665 enableval=$enable_static_tools; if test x$enableval = xyes; then
13666 support_static_tools=yes
13672 if test x$support_static_tools = xyes; then
13673 TTOOL_LDFLAGS="-static"
13677 # -------------------------------------------
13678 # static-fd (default off)
13679 # -------------------------------------------
13680 # Check whether --enable-static-fd was given.
13681 if test "${enable_static_fd+set}" = set; then
13682 enableval=$enable_static_fd; if test x$enableval = xyes; then
13683 support_static_fd=yes
13689 if test x$support_static_fd = xyes; then
13690 STATIC_FD="static-bacula-fd"
13694 # -------------------------------------------
13695 # static-sd (default off)
13696 # -------------------------------------------
13697 # Check whether --enable-static-sd was given.
13698 if test "${enable_static_sd+set}" = set; then
13699 enableval=$enable_static_sd; if test x$enableval = xyes; then
13700 support_static_sd=yes
13706 if test x$support_static_sd = xyes; then
13707 STATIC_SD="static-bacula-sd"
13711 # -------------------------------------------
13712 # static-dir (default off)
13713 # -------------------------------------------
13714 # Check whether --enable-static-dir was given.
13715 if test "${enable_static_dir+set}" = set; then
13716 enableval=$enable_static_dir; if test x$enableval = xyes; then
13717 support_static_dir=yes
13723 if test x$support_static_dir = xyes; then
13724 STATIC_DIR="static-bacula-dir"
13728 # -------------------------------------------
13729 # static-cons (default off)
13730 # -------------------------------------------
13731 # Check whether --enable-static-cons was given.
13732 if test "${enable_static_cons+set}" = set; then
13733 enableval=$enable_static_cons; if test x$enableval = xyes; then
13734 support_static_cons=yes
13742 if test x$support_static_cons = xyes; then
13743 STATIC_CONS="static-bconsole"
13744 STATIC_GNOME_CONS="static-bgnome-console"
13745 STATIC_WX_CONS="static-bwx-console"
13751 # -------------------------------------------
13752 # client_only (default off)
13753 # -------------------------------------------
13754 # Check whether --enable-client-only was given.
13755 if test "${enable_client_only+set}" = set; then
13756 enableval=$enable_client_only; if test x$enableval = xyes; then
13757 build_client_only=yes
13763 if test x$build_client_only = xno; then
13770 # -------------------------------------------
13771 # director (default on)
13772 # -------------------------------------------
13773 # Check whether --enable-build-dird was given.
13774 if test "${enable_build_dird+set}" = set; then
13775 enableval=$enable_build_dird; if test x$enableval = xno; then
13780 if test x$build_dird = xyes; then
13781 DIRD_DIR="src/dird"
13782 DIR_TOOLS="DIRTOOLS"
13785 DIR_TOOLS="NODIRTOOLS"
13790 # -------------------------------------------
13791 # stored (default on)
13792 # -------------------------------------------
13793 # Check whether --enable-build-stored was given.
13794 if test "${enable_build_stored+set}" = set; then
13795 enableval=$enable_build_stored; if test x$enableval = xno; then
13800 if test x$build_stored = xyes; then
13801 STORED_DIR="src/stored"
13807 # ---------------------------------------------------
13808 # Check for conio (Bacula readline substitute)(
13809 # ---------------------------------------------------
13810 # this allows you to turn it completely off
13811 # Check whether --enable-conio was given.
13812 if test "${enable_conio+set}" = set; then
13813 enableval=$enable_conio; if test x$enableval = xno; then
13821 # ---------------------------------------------------
13822 # Check for IPv6 support
13823 # ---------------------------------------------------
13824 # this allows you to turn it completely off
13826 # Check whether --enable-ipv6 was given.
13827 if test "${enable_ipv6+set}" = set; then
13828 enableval=$enable_ipv6; if test x$enableval = xno; then
13835 if test x$support_ipv6 = xyes; then
13836 cat >conftest.$ac_ext <<_ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13842 #include <sys/types.h>
13843 #include <sys/socket.h>
13844 #include <netinet/in.h>
13848 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (ac_try="$ac_link"
13855 case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_link") 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest$ac_exeext &&
13870 $as_test_x conftest$ac_exeext; then
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13880 conftest$ac_exeext conftest.$ac_ext
13883 if test x$support_ipv6 = xyes; then
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_IPV6 1
13894 if test x$support_conio = xyes; then
13895 if test "${ac_cv_header_termcap_h+set}" = set; then
13896 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13897 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13898 if test "${ac_cv_header_termcap_h+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13904 # Is the header compilable?
13905 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13906 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 #include <termcap.h>
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_compile") 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && {
13930 test -z "$ac_c_werror_flag" ||
13931 test ! -s conftest.err
13932 } && test -s conftest.$ac_objext; then
13933 ac_header_compiler=yes
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_header_compiler=no
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13943 echo "${ECHO_T}$ac_header_compiler" >&6; }
13945 # Is the header present?
13946 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13947 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <termcap.h>
13956 if { (ac_try="$ac_cpp conftest.$ac_ext"
13957 case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13964 grep -v '^ *+' conftest.er1 >conftest.err
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } >/dev/null && {
13969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13972 ac_header_preproc=yes
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ac_header_preproc=no
13980 rm -f conftest.err conftest.$ac_ext
13981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13982 echo "${ECHO_T}$ac_header_preproc" >&6; }
13984 # So? What about this header?
13985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13987 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13988 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13990 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13991 ac_header_preproc=yes
13994 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13995 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13997 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13999 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14001 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14005 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14009 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14010 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14011 if test "${ac_cv_header_termcap_h+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 ac_cv_header_termcap_h=$ac_header_preproc
14016 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14017 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14020 if test $ac_cv_header_termcap_h = yes; then
14021 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14022 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-ltermcap $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest$ac_exeext &&
14067 $as_test_x conftest$ac_exeext; then
14068 ac_cv_lib_termcap_tgetent=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_lib_termcap_tgetent=no
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14081 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14082 if test $ac_cv_lib_termcap_tgetent = yes; then
14083 CONS_LIBS="-ltermcap"
14087 support_readline=no
14089 cat >>confdefs.h <<\_ACEOF
14090 #define HAVE_CONIO 1
14095 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14096 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lncurses $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext &&
14141 $as_test_x conftest$ac_exeext; then
14142 ac_cv_lib_ncurses_tgetent=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_lib_ncurses_tgetent=no
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151 conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14155 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14156 if test $ac_cv_lib_ncurses_tgetent = yes; then
14157 CONS_LIBS="-lncurses"
14161 support_readline=no
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_CONIO 1
14177 for ac_header in curses.h
14179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 ac_res=`eval echo '${'$as_ac_Header'}'`
14187 { echo "$as_me:$LINENO: result: $ac_res" >&5
14188 echo "${ECHO_T}$ac_res" >&6; }
14190 # Is the header compilable?
14191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 $ac_includes_default
14200 #include <$ac_header>
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_compile") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest.$ac_objext; then
14219 ac_header_compiler=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 ac_header_compiler=no
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14229 echo "${ECHO_T}$ac_header_compiler" >&6; }
14231 # Is the header present?
14232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 #include <$ac_header>
14242 if { (ac_try="$ac_cpp conftest.$ac_ext"
14243 case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } >/dev/null && {
14255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14258 ac_header_preproc=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_header_preproc=no
14266 rm -f conftest.err conftest.$ac_ext
14267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14268 echo "${ECHO_T}$ac_header_preproc" >&6; }
14270 # So? What about this header?
14271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14277 ac_header_preproc=yes
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 eval "$as_ac_Header=\$ac_header_preproc"
14302 ac_res=`eval echo '${'$as_ac_Header'}'`
14303 { echo "$as_me:$LINENO: result: $ac_res" >&5
14304 echo "${ECHO_T}$ac_res" >&6; }
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14316 { echo "$as_me:$LINENO: checking for term.h" >&5
14317 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14318 if test "${ac_cv_header_term_h+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14328 #include <curses.h>
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest.$ac_objext; then
14351 ac_cv_header_term_h=yes
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 ac_cv_header_term_h=no
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14362 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14363 if test $ac_cv_header_term_h = yes; then
14364 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14365 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14366 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lcurses $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_link") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest$ac_exeext &&
14410 $as_test_x conftest$ac_exeext; then
14411 ac_cv_lib_curses_tgetent=yes
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_cv_lib_curses_tgetent=no
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14424 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14425 if test $ac_cv_lib_curses_tgetent = yes; then
14426 CONS_LIBS="-lcurses"
14430 support_readline=no
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_CONIO 1
14441 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14452 # ---------------------------------------------------
14453 # Check for readline support/directory (default off)
14454 # ---------------------------------------------------
14455 # this allows you to turn it completely off
14456 # Check whether --enable-readline was given.
14457 if test "${enable_readline+set}" = set; then
14458 enableval=$enable_readline; if test x$enableval = xno; then
14459 support_readline=no
14466 if test x$support_readline = xyes; then
14468 # Check whether --with-readline was given.
14469 if test "${with_readline+set}" = set; then
14470 withval=$with_readline;
14471 case "$with_readline" in
14474 if test -f ${with_readline}/readline.h; then
14475 CONS_INC="-I${with_readline}"
14476 CONS_LDFLAGS="-L$with_readline"
14477 elif test -f ${with_readline}/include/readline/readline.h; then
14478 CONS_INC="-I${with_readline}/include/readline"
14479 CONS_LDFLAGS="-L${with_readline}/lib"
14480 with_readline="${with_readline}/include/readline"
14482 with_readline="/usr/include/readline"
14484 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14486 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14487 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 ac_res=`eval echo '${'$as_ac_Header'}'`
14492 { echo "$as_me:$LINENO: result: $ac_res" >&5
14493 echo "${ECHO_T}$ac_res" >&6; }
14495 # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14497 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 #include <${with_readline}/readline.h>
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest.$ac_objext; then
14524 ac_header_compiler=yes
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 ac_header_compiler=no
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14534 echo "${ECHO_T}$ac_header_compiler" >&6; }
14536 # Is the header present?
14537 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14538 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <${with_readline}/readline.h>
14547 if { (ac_try="$ac_cpp conftest.$ac_ext"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null && {
14560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14563 ac_header_preproc=yes
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_header_preproc=no
14571 rm -f conftest.err conftest.$ac_ext
14572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573 echo "${ECHO_T}$ac_header_preproc" >&6; }
14575 # So? What about this header?
14576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14578 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14579 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14581 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14582 ac_header_preproc=yes
14585 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14586 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14588 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14594 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14596 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14600 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14601 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 eval "$as_ac_Header=\$ac_header_preproc"
14607 ac_res=`eval echo '${'$as_ac_Header'}'`
14608 { echo "$as_me:$LINENO: result: $ac_res" >&5
14609 echo "${ECHO_T}$ac_res" >&6; }
14612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_READLINE 1
14618 CONS_LIBS="-lreadline -lhistory -ltermcap"
14623 echo "readline.h not found. readline turned off ..."
14635 # check for standard readline library
14636 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14637 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14638 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14643 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14645 # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14647 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14655 #include </usr/include/readline/readline.h>
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_compile") 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && {
14671 test -z "$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 } && test -s conftest.$ac_objext; then
14674 ac_header_compiler=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_header_compiler=no
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14688 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include </usr/include/readline/readline.h>
14697 if { (ac_try="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } >/dev/null && {
14710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14713 ac_header_preproc=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_header_preproc=no
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14725 # So? What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14728 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14732 ac_header_preproc=yes
14735 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14750 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14751 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14757 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14758 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14761 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_READLINE 1
14768 CONS_INC="-I/usr/include/readline"
14769 CONS_LIBS="-lreadline -ltermcap"
14773 # Did not find standard library, so try Bacula's default
14774 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14777 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 ac_res=`eval echo '${'$as_ac_Header'}'`
14782 { echo "$as_me:$LINENO: result: $ac_res" >&5
14783 echo "${ECHO_T}$ac_res" >&6; }
14785 # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14787 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <${TOP_DIR}/depkgs/readline/readline.h>
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_compile") 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest.$ac_objext; then
14814 ac_header_compiler=yes
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_header_compiler=no
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14828 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <${TOP_DIR}/depkgs/readline/readline.h>
14837 if { (ac_try="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null && {
14850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14853 ac_header_preproc=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_header_preproc=no
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14865 # So? What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14868 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14872 ac_header_preproc=yes
14875 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14890 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14891 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 eval "$as_ac_Header=\$ac_header_preproc"
14897 ac_res=`eval echo '${'$as_ac_Header'}'`
14898 { echo "$as_me:$LINENO: result: $ac_res" >&5
14899 echo "${ECHO_T}$ac_res" >&6; }
14902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_READLINE 1
14909 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14910 CONS_LIBS="-lreadline -lhistory -ltermcap"
14911 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14912 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14916 echo "readline.h not found. readline turned off ..."
14943 # Minimal stuff for readline Makefile configuration
14946 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14947 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14948 if test "${ac_cv_header_stat_broken+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 #include <sys/types.h>
14958 #include <sys/stat.h>
14960 #if defined S_ISBLK && defined S_IFDIR
14961 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14964 #if defined S_ISBLK && defined S_IFCHR
14965 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14968 #if defined S_ISLNK && defined S_IFREG
14969 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14972 #if defined S_ISSOCK && defined S_IFREG
14973 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_compile") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest.$ac_objext; then
14994 ac_cv_header_stat_broken=no
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_header_stat_broken=yes
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15006 if test $ac_cv_header_stat_broken = yes; then
15008 cat >>confdefs.h <<\_ACEOF
15009 #define STAT_MACROS_BROKEN 1
15019 ac_header_dirent=no
15020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15021 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15022 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15023 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 #include <sys/types.h>
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_compile") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest.$ac_objext; then
15062 eval "$as_ac_Header=yes"
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 eval "$as_ac_Header=no"
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 ac_res=`eval echo '${'$as_ac_Header'}'`
15073 { echo "$as_me:$LINENO: result: $ac_res" >&5
15074 echo "${ECHO_T}$ac_res" >&6; }
15075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15080 ac_header_dirent=$ac_hdr; break
15084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15085 if test $ac_header_dirent = dirent.h; then
15086 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15087 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15088 if test "${ac_cv_search_opendir+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 ac_func_search_save_LIBS=$LIBS
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15114 for ac_lib in '' dir; do
15115 if test -z "$ac_lib"; then
15116 ac_res="none required"
15119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15121 rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_link") 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && {
15135 test -z "$ac_c_werror_flag" ||
15136 test ! -s conftest.err
15137 } && test -s conftest$ac_exeext &&
15138 $as_test_x conftest$ac_exeext; then
15139 ac_cv_search_opendir=$ac_res
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15149 if test "${ac_cv_search_opendir+set}" = set; then
15153 if test "${ac_cv_search_opendir+set}" = set; then
15156 ac_cv_search_opendir=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15163 ac_res=$ac_cv_search_opendir
15164 if test "$ac_res" != no; then
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172 if test "${ac_cv_search_opendir+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_func_search_save_LIBS=$LIBS
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15198 for ac_lib in '' x; do
15199 if test -z "$ac_lib"; then
15200 ac_res="none required"
15203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1 >conftest.err
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
15223 ac_cv_search_opendir=$ac_res
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 if test "${ac_cv_search_opendir+set}" = set; then
15237 if test "${ac_cv_search_opendir+set}" = set; then
15240 ac_cv_search_opendir=no
15242 rm conftest.$ac_ext
15243 LIBS=$ac_func_search_save_LIBS
15245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15247 ac_res=$ac_cv_search_opendir
15248 if test "$ac_res" != no; then
15249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15262 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15278 #define $ac_func innocuous_$ac_func
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char $ac_func (); below.
15282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283 <limits.h> exists even on freestanding compilers. */
15286 # include <limits.h>
15288 # include <assert.h>
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined __stub_$ac_func || defined __stub___$ac_func
15310 return $ac_func ();
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest$ac_exeext &&
15332 $as_test_x conftest$ac_exeext; then
15333 eval "$as_ac_var=yes"
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 eval "$as_ac_var=no"
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342 conftest$ac_exeext conftest.$ac_ext
15344 ac_res=`eval echo '${'$as_ac_var'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15347 if test `eval echo '${'$as_ac_var'}'` = yes; then
15348 cat >>confdefs.h <<_ACEOF
15349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 for ac_func in nanosleep nl_langinfo
15359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 cat >conftest.$ac_ext <<_ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15373 #define $ac_func innocuous_$ac_func
15375 /* System header to define __stub macros and hopefully few prototypes,
15376 which can conflict with char $ac_func (); below.
15377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15378 <limits.h> exists even on freestanding compilers. */
15381 # include <limits.h>
15383 # include <assert.h>
15388 /* Override any GCC internal prototype to avoid an error.
15389 Use char because int might match the return type of a GCC
15390 builtin and then its argument prototype would still apply. */
15395 /* The GNU C library defines this for functions which it implements
15396 to always fail with ENOSYS. Some functions are actually named
15397 something starting with __ and the normal name is an alias. */
15398 #if defined __stub_$ac_func || defined __stub___$ac_func
15405 return $ac_func ();
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_link") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext &&
15427 $as_test_x conftest$ac_exeext; then
15428 eval "$as_ac_var=yes"
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 eval "$as_ac_var=no"
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437 conftest$ac_exeext conftest.$ac_ext
15439 ac_res=`eval echo '${'$as_ac_var'}'`
15440 { echo "$as_me:$LINENO: result: $ac_res" >&5
15441 echo "${ECHO_T}$ac_res" >&6; }
15442 if test `eval echo '${'$as_ac_var'}'` = yes; then
15443 cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15451 for ac_header in varargs.h
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15464 # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 $ac_includes_default
15474 #include <$ac_header>
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest.$ac_objext; then
15493 ac_header_compiler=yes
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_compiler=no
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6; }
15505 # Is the header present?
15506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 #include <$ac_header>
15516 if { (ac_try="$ac_cpp conftest.$ac_ext"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15524 grep -v '^ *+' conftest.er1 >conftest.err
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } >/dev/null && {
15529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15532 ac_header_preproc=yes
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_header_preproc=no
15540 rm -f conftest.err conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 echo "${ECHO_T}$ac_header_preproc" >&6; }
15544 # So? What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551 ac_header_preproc=yes
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 eval "$as_ac_Header=\$ac_header_preproc"
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577 { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591 # End of readline/conio stuff
15592 # -----------------------------------------------------------------------
15594 # -----------------------------------------------------------------------
15595 # Check for Python support
15597 { echo "$as_me:$LINENO: checking for Python support" >&5
15598 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15600 # Check whether --with-python was given.
15601 if test "${with_python+set}" = set; then
15602 withval=$with_python;
15605 if test "$withval" != "no"; then
15606 if test "$withval" = "yes"; then
15607 for python_root in /usr /usr/local /usr/sfw; do
15608 for ver in python2.2 python2.3 python2.4 python2.5; do
15609 if test -f $python_root/include/${ver}/Python.h; then
15610 PYTHON_INCDIR=-I$python_root/include/${ver}
15611 if test -d $python_root/lib64/${ver}/config; then
15612 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15614 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15620 if test x$PYTHON_INCDIR = x; then
15621 if test -f $prefix/include/Python.h; then
15622 PYTHON_INCDIR=-I$prefix/include
15623 if test -d $prefix/lib64/config; then
15624 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15626 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15629 { echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6; }
15631 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15632 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15633 { (exit 1); exit 1; }; }
15637 if test -f $withval/Python.h; then
15638 PYTHON_INCDIR=-I$withval
15639 PYTHON_LIBS="-L$withval/config -lpython"
15640 elif test -f $withval/include/Python.h; then
15641 PYTHON_INCDIR=-I$withval/include
15642 if test -d $withval/lib64/config; then
15643 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15645 PYTHON_LIBS="-L$withval/lib/config -lpython"
15647 elif test -f $withval/include/python/Python.h; then
15648 PYTHON_INCDIR=-I$withval/include/python
15649 if test -d $withval/lib64/python/config; then
15650 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15652 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15655 { echo "$as_me:$LINENO: result: no" >&5
15656 echo "${ECHO_T}no" >&6; }
15657 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15658 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15659 { (exit 1); exit 1; }; }
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_PYTHON 1
15666 { echo "$as_me:$LINENO: result: yes" >&5
15667 echo "${ECHO_T}yes" >&6; }
15669 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15670 echo "$as_me: checking for more Python libs" >&6;}
15671 saved_LIBS="$LIBS"; LIBS=
15672 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15673 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15674 if test "${ac_cv_search_shm_open+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 ac_func_search_save_LIBS=$LIBS
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15685 /* Override any GCC internal prototype to avoid an error.
15686 Use char because int might match the return type of a GCC
15687 builtin and then its argument prototype would still apply. */
15695 return shm_open ();
15700 for ac_lib in '' rt; do
15701 if test -z "$ac_lib"; then
15702 ac_res="none required"
15705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } && {
15721 test -z "$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 } && test -s conftest$ac_exeext &&
15724 $as_test_x conftest$ac_exeext; then
15725 ac_cv_search_shm_open=$ac_res
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735 if test "${ac_cv_search_shm_open+set}" = set; then
15739 if test "${ac_cv_search_shm_open+set}" = set; then
15742 ac_cv_search_shm_open=no
15744 rm conftest.$ac_ext
15745 LIBS=$ac_func_search_save_LIBS
15747 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15748 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15749 ac_res=$ac_cv_search_shm_open
15750 if test "$ac_res" != no; then
15751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15756 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15757 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15758 if test "${ac_cv_lib_util_openpty+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lutil $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 /* Override any GCC internal prototype to avoid an error.
15771 Use char because int might match the return type of a GCC
15772 builtin and then its argument prototype would still apply. */
15785 rm -f conftest.$ac_objext conftest$ac_exeext
15786 if { (ac_try="$ac_link"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_link") 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } && {
15799 test -z "$ac_c_werror_flag" ||
15800 test ! -s conftest.err
15801 } && test -s conftest$ac_exeext &&
15802 $as_test_x conftest$ac_exeext; then
15803 ac_cv_lib_util_openpty=yes
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_cv_lib_util_openpty=no
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812 conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15815 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15816 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15817 if test $ac_cv_lib_util_openpty = yes; then
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_LIBUTIL 1
15822 LIBS="-lutil $LIBS"
15826 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15829 { echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6; }
15835 { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15844 # Find where sockets are (especially for Solaris)
15845 # Do this before the TCP Wrappers test since tcp wrappers
15846 # uses the socket library and some linkers are stupid.
15848 { echo "$as_me:$LINENO: checking for socket" >&5
15849 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15850 if test "${ac_cv_func_socket+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15861 #define socket innocuous_socket
15863 /* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char socket (); below.
15865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15866 <limits.h> exists even on freestanding compilers. */
15869 # include <limits.h>
15871 # include <assert.h>
15876 /* Override any GCC internal prototype to avoid an error.
15877 Use char because int might match the return type of a GCC
15878 builtin and then its argument prototype would still apply. */
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined __stub_socket || defined __stub___socket
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>conftest.er1
15907 grep -v '^ *+' conftest.er1 >conftest.err
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest$ac_exeext &&
15915 $as_test_x conftest$ac_exeext; then
15916 ac_cv_func_socket=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_cv_func_socket=no
15924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15925 conftest$ac_exeext conftest.$ac_ext
15927 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15928 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15929 if test $ac_cv_func_socket = yes; then
15930 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15931 echo "${ECHO_T}using libc's socket" >&6; }
15934 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15935 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15936 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-lxnet $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15948 /* Override any GCC internal prototype to avoid an error.
15949 Use char because int might match the return type of a GCC
15950 builtin and then its argument prototype would still apply. */
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (ac_try="$ac_link"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_link") 2>conftest.er1
15972 grep -v '^ *+' conftest.er1 >conftest.err
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest$ac_exeext &&
15980 $as_test_x conftest$ac_exeext; then
15981 ac_cv_lib_xnet_socket=yes
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_lib_xnet_socket=no
15989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15990 conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15993 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15994 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
15995 if test $ac_cv_lib_xnet_socket = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_LIBXNET 1
16000 LIBS="-lxnet $LIBS"
16005 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16006 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16007 if test "${ac_cv_lib_socket_socket+set}" = set; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lsocket $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_link") 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest$ac_exeext &&
16051 $as_test_x conftest$ac_exeext; then
16052 ac_cv_lib_socket_socket=yes
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_cv_lib_socket_socket=no
16060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16061 conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16064 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16065 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16066 if test $ac_cv_lib_socket_socket = yes; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_LIBSOCKET 1
16071 LIBS="-lsocket $LIBS"
16076 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16077 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16078 if test "${ac_cv_lib_inet_socket+set}" = set; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-linet $LIBS"
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16090 /* Override any GCC internal prototype to avoid an error.
16091 Use char because int might match the return type of a GCC
16092 builtin and then its argument prototype would still apply. */
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (ac_try="$ac_link"
16107 case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_link") 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } && {
16119 test -z "$ac_c_werror_flag" ||
16120 test ! -s conftest.err
16121 } && test -s conftest$ac_exeext &&
16122 $as_test_x conftest$ac_exeext; then
16123 ac_cv_lib_inet_socket=yes
16125 echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16128 ac_cv_lib_inet_socket=no
16131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16132 conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16135 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16136 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16137 if test $ac_cv_lib_inet_socket = yes; then
16138 cat >>confdefs.h <<_ACEOF
16139 #define HAVE_LIBINET 1
16142 LIBS="-linet $LIBS"
16150 # -----------------------------------------------------------
16151 # Check whether user wants TCP wrappers support (default off)
16152 # -----------------------------------------------------------
16156 # Check whether --with-tcp-wrappers was given.
16157 if test "${with_tcp_wrappers+set}" = set; then
16158 withval=$with_tcp_wrappers;
16159 if test "x$withval" != "xno" ; then
16161 LIBS="$saved_LIBS -lwrap"
16162 { echo "$as_me:$LINENO: checking for libwrap" >&5
16163 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16164 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16165 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16166 if test "${ac_cv_search_nanosleep+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 ac_func_search_save_LIBS=$LIBS
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 /* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16187 return nanosleep ();
16192 for ac_lib in '' rt; do
16193 if test -z "$ac_lib"; then
16194 ac_res="none required"
16197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (ac_try="$ac_link"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_link") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest$ac_exeext &&
16216 $as_test_x conftest$ac_exeext; then
16217 ac_cv_search_nanosleep=$ac_res
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16227 if test "${ac_cv_search_nanosleep+set}" = set; then
16231 if test "${ac_cv_search_nanosleep+set}" = set; then
16234 ac_cv_search_nanosleep=no
16236 rm conftest.$ac_ext
16237 LIBS=$ac_func_search_save_LIBS
16239 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16240 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16241 ac_res=$ac_cv_search_nanosleep
16242 if test "$ac_res" != no; then
16243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <sys/types.h>
16255 int deny_severity = 0;
16256 int allow_severity = 0;
16257 struct request_info *req;
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_link") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest$ac_exeext &&
16283 $as_test_x conftest$ac_exeext; then
16285 { echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6; }
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_LIBWRAP 1
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16301 LIBS="$saved_LIBS -lwrap -lnsl"
16302 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <sys/types.h>
16311 int deny_severity = 0;
16312 int allow_severity = 0;
16313 struct request_info *req;
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_link") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } && {
16336 test -z "$ac_c_werror_flag" ||
16337 test ! -s conftest.err
16338 } && test -s conftest$ac_exeext &&
16339 $as_test_x conftest$ac_exeext; then
16341 { echo "$as_me:$LINENO: result: yes" >&5
16342 echo "${ECHO_T}yes" >&6; }
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_LIBWRAP 1
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16357 echo "$as_me: error: *** libwrap missing" >&2;}
16358 { (exit 1); exit 1; }; }
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363 conftest$ac_exeext conftest.$ac_ext
16367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16368 conftest$ac_exeext conftest.$ac_ext
16375 # -----------------------------------------------------------
16376 # Check whether OpenSSL is available
16377 # -----------------------------------------------------------
16378 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16379 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16381 # Check whether --with-openssl was given.
16382 if test "${with_openssl+set}" = set; then
16383 withval=$with_openssl; with_openssl_directory=${withval}
16387 if test "x$with_openssl_directory" != "x"; then
16388 OPENSSL_LIBS="-lssl -lcrypto"
16391 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16392 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16393 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16396 saved_LIBS="${LIBS}"
16397 saved_CFLAGS="${CFLAGS}"
16398 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16399 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <openssl/ssl.h>
16411 CRYPTO_set_id_callback(NULL);
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (ac_try="$ac_link"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_link") 2>conftest.er1
16425 grep -v '^ *+' conftest.er1 >conftest.err
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } && {
16430 test -z "$ac_c_werror_flag" ||
16431 test ! -s conftest.err
16432 } && test -s conftest$ac_exeext &&
16433 $as_test_x conftest$ac_exeext; then
16436 support_crypto="yes"
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447 conftest$ac_exeext conftest.$ac_ext
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <openssl/evp.h>
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_link") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext &&
16481 $as_test_x conftest$ac_exeext; then
16482 ac_cv_openssl_sha2="yes"
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_cv_openssl_sha2="no"
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492 conftest$ac_exeext conftest.$ac_ext
16494 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16495 # implementation, presumably for export reasons. If 192bit AES
16496 # is available, we assume that we're running with a 'non-export'
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16504 #include <openssl/evp.h>
16513 rm -f conftest.$ac_objext conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_link") 2>conftest.er1
16522 grep -v '^ *+' conftest.er1 >conftest.err
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && {
16527 test -z "$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16529 } && test -s conftest$ac_exeext &&
16530 $as_test_x conftest$ac_exeext; then
16531 ac_cv_openssl_export="no"
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_openssl_export="yes"
16540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16541 conftest$ac_exeext conftest.$ac_ext
16543 LIBS="${saved_LIBS}"
16544 CFLAGS="${saved_CFLAGS}"
16546 if test "$support_tls" = "yes"; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPENSSL 1
16553 cat >>confdefs.h <<\_ACEOF
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_CRYPTO 1
16564 if test "$ac_cv_openssl_sha2" = "yes"; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_SHA2 1
16572 if test "$ac_cv_openssl_export" = "yes"; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16581 support_crypto="no"
16586 { echo "$as_me:$LINENO: result: $support_tls" >&5
16587 echo "${ECHO_T}$support_tls" >&6; }
16592 # -----------------------------------------------------------
16593 # Python and OpenSSL are using dlopen
16594 # -----------------------------------------------------------
16596 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16597 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16598 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16599 if test "${ac_cv_search_dlopen+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_func_search_save_LIBS=$LIBS
16603 cat >conftest.$ac_ext <<_ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16625 for ac_lib in '' dl; do
16626 if test -z "$ac_lib"; then
16627 ac_res="none required"
16630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest$ac_exeext &&
16649 $as_test_x conftest$ac_exeext; then
16650 ac_cv_search_dlopen=$ac_res
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16660 if test "${ac_cv_search_dlopen+set}" = set; then
16664 if test "${ac_cv_search_dlopen+set}" = set; then
16667 ac_cv_search_dlopen=no
16669 rm conftest.$ac_ext
16670 LIBS=$ac_func_search_save_LIBS
16672 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16673 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16674 ac_res=$ac_cv_search_dlopen
16675 if test "$ac_res" != no; then
16676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16682 # ------------------------------------------
16683 # Where to place working dir
16684 # ------------------------------------------
16685 working_dir=`eval echo ${prefix}/var/bacula/working`
16687 # Check whether --with-working-dir was given.
16688 if test "${with_working_dir+set}" = set; then
16689 withval=$with_working_dir;
16690 if test "x$withval" != "xno" ; then
16691 working_dir=$withval
16700 # ------------------------------------------------------------------
16701 # If the user has not set archivedir, we set our default as /tmp
16702 # ------------------------------------------------------------------
16705 # Check whether --with-archivedir was given.
16706 if test "${with_archivedir+set}" = set; then
16707 withval=$with_archivedir;
16708 if test "x$withval" != "xno" ; then
16709 archivedir=$withval
16720 # ------------------------------------------
16721 # Where to place scriptdir (script files)
16722 # ------------------------------------------
16723 scriptdir=`eval echo ${sysconfdir}`
16725 # Check whether --with-scriptdir was given.
16726 if test "${with_scriptdir+set}" = set; then
16727 withval=$with_scriptdir;
16728 if test "x$withval" != "xno" ; then
16739 # ------------------------------------------
16740 # Where to send dump email
16741 # ------------------------------------------
16742 dump_email=root@localhost
16744 # Check whether --with-dump-email was given.
16745 if test "${with_dump_email+set}" = set; then
16746 withval=$with_dump_email;
16747 if test "x$withval" != "xno" ; then
16748 dump_email=$withval
16757 # ------------------------------------------
16758 # Where to send job email
16759 # ------------------------------------------
16760 job_email=root@localhost
16762 # Check whether --with-job-email was given.
16763 if test "${with_job_email+set}" = set; then
16764 withval=$with_job_email;
16765 if test "x$withval" != "xno" ; then
16775 # ------------------------------------------
16776 # Where to find smtp host
16777 # ------------------------------------------
16778 smtp_host=localhost
16780 # Check whether --with-smtp_host was given.
16781 if test "${with_smtp_host+set}" = set; then
16782 withval=$with_smtp_host;
16783 if test "x$withval" != "xno" ; then
16794 # ------------------------------------
16795 # Where to place pid files
16796 # ------------------------------------
16799 # Check whether --with-pid-dir was given.
16800 if test "${with_pid_dir+set}" = set; then
16801 withval=$with_pid_dir;
16802 if test "x$withval" != "xno" ; then
16810 cat >>confdefs.h <<_ACEOF
16811 #define _PATH_BACULA_PIDDIR "$piddir"
16817 # ------------------------------------
16818 # Where to place subsys "lock file"
16819 # ------------------------------------
16820 subsysdir=/var/run/subsys
16821 if test -d /var/run/subsys; then
16822 subsysdir=/var/run/subsys
16823 elif test -d /var/lock/subsys; then
16824 subsysdir=/var/lock/subsys
16826 subsysdir=/var/run/subsys
16829 # Check whether --with-subsys-dir was given.
16830 if test "${with_subsys_dir+set}" = set; then
16831 withval=$with_subsys_dir;
16832 if test "x$withval" != "xno" ; then
16844 # ------------------------------------
16845 # Where to start assigning ports
16846 # ------------------------------------
16849 # Check whether --with-baseport was given.
16850 if test "${with_baseport+set}" = set; then
16851 withval=$with_baseport;
16852 if test "x$withval" != "xno" ; then
16861 dir_port=`expr $baseport`
16862 fd_port=`expr $baseport + 1`
16863 sd_port=`expr $fd_port + 1`
16870 # ------------------------------------------
16871 # Generate passwords
16872 # ------------------------------------------
16875 # Check whether --with-dir-password was given.
16876 if test "${with_dir_password+set}" = set; then
16877 withval=$with_dir_password;
16878 if test "x$withval" != "xno" ; then
16879 dir_password=$withval
16886 if test "x$dir_password" = "x" ; then
16887 if test "x$OPENSSL" = "xnone" ; then
16888 key=`autoconf/randpass 33`
16890 key=`openssl rand -base64 33`
16897 # Check whether --with-fd-password was given.
16898 if test "${with_fd_password+set}" = set; then
16899 withval=$with_fd_password;
16900 if test "x$withval" != "xno" ; then
16901 fd_password=$withval
16908 if test "x$fd_password" = "x" ; then
16909 if test "x$OPENSSL" = "xnone" ; then
16910 key=`autoconf/randpass 37`
16912 key=`openssl rand -base64 33`
16919 # Check whether --with-sd-password was given.
16920 if test "${with_sd_password+set}" = set; then
16921 withval=$with_sd_password;
16922 if test "x$withval" != "xno" ; then
16923 sd_password=$withval
16930 if test "x$sd_password" = "x" ; then
16931 if test "x$OPENSSL" = "xnone" ; then
16932 key=`autoconf/randpass 41`
16934 key=`openssl rand -base64 33`
16941 # Check whether --with-mon-dir-password was given.
16942 if test "${with_mon_dir_password+set}" = set; then
16943 withval=$with_mon_dir_password;
16944 if test "x$withval" != "xno" ; then
16945 mon_dir_password=$withval
16952 if test "x$mon_dir_password" = "x" ; then
16953 if test "x$OPENSSL" = "xnone" ; then
16954 key=`autoconf/randpass 33`
16956 key=`openssl rand -base64 33`
16958 mon_dir_password=$key
16963 # Check whether --with-mon-fd-password was given.
16964 if test "${with_mon_fd_password+set}" = set; then
16965 withval=$with_mon_fd_password;
16966 if test "x$withval" != "xno" ; then
16967 mon_fd_password=$withval
16974 if test "x$mon_fd_password" = "x" ; then
16975 if test "x$OPENSSL" = "xnone" ; then
16976 key=`autoconf/randpass 37`
16978 key=`openssl rand -base64 33`
16980 mon_fd_password=$key
16985 # Check whether --with-mon-sd-password was given.
16986 if test "${with_mon_sd_password+set}" = set; then
16987 withval=$with_mon_sd_password;
16988 if test "x$withval" != "xno" ; then
16989 mon_sd_password=$withval
16996 if test "x$mon_sd_password" = "x" ; then
16997 if test "x$OPENSSL" = "xnone" ; then
16998 key=`autoconf/randpass 41`
17000 key=`openssl rand -base64 33`
17002 mon_sd_password=$key
17013 # Pickup any database name
17017 # Check whether --with-db_name was given.
17018 if test "${with_db_name+set}" = set; then
17019 withval=$with_db_name;
17020 if test "x$withval" != "x" ; then
17031 # Check whether --with-db_user was given.
17032 if test "${with_db_user+set}" = set; then
17033 withval=$with_db_user;
17034 if test "x$withval" != "x" ; then
17045 # Handle users and groups for each daemon
17049 # Check whether --with-dir_user was given.
17050 if test "${with_dir_user+set}" = set; then
17051 withval=$with_dir_user;
17052 if test "x$withval" != "x" ; then
17062 # Check whether --with-dir_group was given.
17063 if test "${with_dir_group+set}" = set; then
17064 withval=$with_dir_group;
17065 if test "x$withval" != "x" ; then
17075 # Check whether --with-sd_user was given.
17076 if test "${with_sd_user+set}" = set; then
17077 withval=$with_sd_user;
17078 if test "x$withval" != "x" ; then
17088 # Check whether --with-sd_group was given.
17089 if test "${with_sd_group+set}" = set; then
17090 withval=$with_sd_group;
17091 if test "x$withval" != "x" ; then
17101 # Check whether --with-fd_user was given.
17102 if test "${with_fd_user+set}" = set; then
17103 withval=$with_fd_user;
17104 if test "x$withval" != "x" ; then
17114 # Check whether --with-fd_group was given.
17115 if test "${with_fd_group+set}" = set; then
17116 withval=$with_fd_group;
17117 if test "x$withval" != "x" ; then
17133 # allow setting default executable permissions
17137 # Check whether --with-sbin-perm was given.
17138 if test "${with_sbin_perm+set}" = set; then
17139 withval=$with_sbin_perm;
17140 if test "x$withval" != "x" ; then
17150 # ------------------------------------------------
17151 # Bacula check for various SQL database engines
17152 # ------------------------------------------------
17156 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17157 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17159 # Check whether --with-postgresql was given.
17160 if test "${with_postgresql+set}" = set; then
17161 withval=$with_postgresql;
17162 if test "$withval" != "no"; then
17163 if test "$db_found" = "yes"; then
17164 { echo "$as_me:$LINENO: result: error" >&5
17165 echo "${ECHO_T}error" >&6; }
17166 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17167 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17168 { (exit 1); exit 1; }; };
17170 if test "$withval" = "yes"; then
17171 PG_CONFIG=`which pg_config`
17172 if test -n "$PG_CONFIG";then
17173 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17174 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17175 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17176 elif test -f /usr/local/include/libpq-fe.h; then
17177 POSTGRESQL_INCDIR=/usr/local/include
17178 if test -d /usr/local/lib64; then
17179 POSTGRESQL_LIBDIR=/usr/local/lib64
17181 POSTGRESQL_LIBDIR=/usr/local/lib
17183 POSTGRESQL_BINDIR=/usr/local/bin
17184 elif test -f /usr/include/libpq-fe.h; then
17185 POSTGRESQL_INCDIR=/usr/include
17186 if test -d /usr/lib64; then
17187 POSTGRESQL_LIBDIR=/usr/lib64
17189 POSTGRESQL_LIBDIR=/usr/lib
17191 POSTGRESQL_BINDIR=/usr/bin
17192 elif test -f /usr/include/pgsql/libpq-fe.h; then
17193 POSTGRESQL_INCDIR=/usr/include/pgsql
17194 if test -d /usr/lib64/pgsql; then
17195 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17197 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17199 POSTGRESQL_BINDIR=/usr/bin
17200 elif test -f /usr/include/postgresql/libpq-fe.h; then
17201 POSTGRESQL_INCDIR=/usr/include/postgresql
17202 if test -d /usr/lib64/postgresql; then
17203 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17205 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17207 POSTGRESQL_BINDIR=/usr/bin
17209 { echo "$as_me:$LINENO: result: no" >&5
17210 echo "${ECHO_T}no" >&6; }
17211 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17212 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17213 { (exit 1); exit 1; }; }
17215 elif test -f $withval/include/libpq-fe.h; then
17216 POSTGRESQL_INCDIR=$withval/include
17217 POSTGRESQL_LIBDIR=$withval/lib
17218 POSTGRESQL_BINDIR=$withval/bin
17219 elif test -f $withval/include/postgresql/libpq-fe.h; then
17220 POSTGRESQL_INCDIR=$withval/include/postgresql
17221 if test -d $withval/lib64; then
17222 POSTGRESQL_LIBDIR=$withval/lib64
17224 POSTGRESQL_LIBDIR=$withval/lib
17226 POSTGRESQL_BINDIR=$withval/bin
17228 { echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6; }
17230 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17231 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17232 { (exit 1); exit 1; }; }
17234 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17235 { echo "$as_me:$LINENO: checking for crypt" >&5
17236 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17237 if test "${ac_cv_func_crypt+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17248 #define crypt innocuous_crypt
17250 /* System header to define __stub macros and hopefully few prototypes,
17251 which can conflict with char crypt (); below.
17252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17253 <limits.h> exists even on freestanding compilers. */
17256 # include <limits.h>
17258 # include <assert.h>
17263 /* Override any GCC internal prototype to avoid an error.
17264 Use char because int might match the return type of a GCC
17265 builtin and then its argument prototype would still apply. */
17270 /* The GNU C library defines this for functions which it implements
17271 to always fail with ENOSYS. Some functions are actually named
17272 something starting with __ and the normal name is an alias. */
17273 #if defined __stub_crypt || defined __stub___crypt
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (ac_try="$ac_link"
17287 case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_link") 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } && {
17299 test -z "$ac_c_werror_flag" ||
17300 test ! -s conftest.err
17301 } && test -s conftest$ac_exeext &&
17302 $as_test_x conftest$ac_exeext; then
17303 ac_cv_func_crypt=yes
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_func_crypt=no
17311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17312 conftest$ac_exeext conftest.$ac_ext
17314 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17315 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17316 if test $ac_cv_func_crypt = yes; then
17319 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17320 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17321 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 ac_check_lib_save_LIBS=$LIBS
17325 LIBS="-lcrypt $LIBS"
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17333 /* Override any GCC internal prototype to avoid an error.
17334 Use char because int might match the return type of a GCC
17335 builtin and then its argument prototype would still apply. */
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_link") 2>conftest.er1
17357 grep -v '^ *+' conftest.er1 >conftest.err
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } && {
17362 test -z "$ac_c_werror_flag" ||
17363 test ! -s conftest.err
17364 } && test -s conftest$ac_exeext &&
17365 $as_test_x conftest$ac_exeext; then
17366 ac_cv_lib_crypt_crypt=yes
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_cv_lib_crypt_crypt=no
17374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375 conftest$ac_exeext conftest.$ac_ext
17376 LIBS=$ac_check_lib_save_LIBS
17378 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17379 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17380 if test $ac_cv_lib_crypt_crypt = yes; then
17381 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17386 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17387 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17388 SQL_BINDIR=$POSTGRESQL_BINDIR
17389 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_POSTGRESQL 1
17395 { echo "$as_me:$LINENO: result: yes" >&5
17396 echo "${ECHO_T}yes" >&6; }
17398 support_postgresql=yes
17402 { echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6; }
17408 { echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6; }
17421 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17422 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17424 # Check whether --with-mysql was given.
17425 if test "${with_mysql+set}" = set; then
17426 withval=$with_mysql;
17427 if test "$withval" != "no"; then
17428 if test "$withval" = "yes"; then
17429 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17430 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17431 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17432 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17433 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17435 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17437 MYSQL_BINDIR=/usr/local/mysql/bin
17438 elif test -f /usr/include/mysql/mysql.h; then
17439 MYSQL_INCDIR=/usr/include/mysql
17440 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17441 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17442 MYSQL_LIBDIR=/usr/lib64/mysql
17443 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17444 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17445 MYSQL_LIBDIR=/usr/lib/mysql
17447 MYSQL_LIBDIR=/usr/lib
17449 MYSQL_BINDIR=/usr/bin
17450 elif test -f /usr/include/mysql.h; then
17451 MYSQL_INCDIR=/usr/include
17452 if test -f /usr/lib64/libmysqlclient_r.a \
17453 -o -f /usr/lib64/libmysqlclient_r.so; then
17454 MYSQL_LIBDIR=/usr/lib64
17456 MYSQL_LIBDIR=/usr/lib
17458 MYSQL_BINDIR=/usr/bin
17459 elif test -f /usr/local/include/mysql/mysql.h; then
17460 MYSQL_INCDIR=/usr/local/include/mysql
17461 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17462 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17463 MYSQL_LIBDIR=/usr/local/lib64/mysql
17465 MYSQL_LIBDIR=/usr/local/lib/mysql
17467 MYSQL_BINDIR=/usr/local/bin
17468 elif test -f /usr/local/include/mysql.h; then
17469 MYSQL_INCDIR=/usr/local/include
17470 if test -f /usr/local/lib64/libmysqlclient_r.a \
17471 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17472 MYSQL_LIBDIR=/usr/local/lib64
17474 MYSQL_LIBDIR=/usr/local/lib
17476 MYSQL_BINDIR=/usr/local/bin
17478 { echo "$as_me:$LINENO: result: no" >&5
17479 echo "${ECHO_T}no" >&6; }
17480 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17482 { (exit 1); exit 1; }; }
17485 if test -f $withval/include/mysql/mysql.h; then
17486 MYSQL_INCDIR=$withval/include/mysql
17487 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17488 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17489 MYSQL_LIBDIR=$withval/lib64/mysql
17491 MYSQL_LIBDIR=$withval/lib/mysql
17493 if test -f $withval/lib/libmysqlclient_r.so; then
17494 MYSQL_LIBDIR=$withval/lib
17497 MYSQL_BINDIR=$withval/bin
17498 elif test -f $withval/include/mysql.h; then
17499 MYSQL_INCDIR=$withval/include
17500 if test -f $withval/lib64/libmysqlclient_r.a \
17501 -o -f $withval/lib64/libmysqlclient_r.so; then
17502 MYSQL_LIBDIR=$withval/lib64
17504 MYSQL_LIBDIR=$withval/lib
17506 MYSQL_BINDIR=$withval/bin
17508 { echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6; }
17510 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17511 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17512 { (exit 1); exit 1; }; }
17515 SQL_INCLUDE=-I$MYSQL_INCDIR
17516 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17517 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17518 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_THREAD_SAFE_MYSQL 1
17524 SQL_BINDIR=$MYSQL_BINDIR
17525 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17527 cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_MYSQL 1
17531 { echo "$as_me:$LINENO: result: yes" >&5
17532 echo "${ECHO_T}yes" >&6; }
17539 { echo "$as_me:$LINENO: result: no" >&5
17540 echo "${ECHO_T}no" >&6; }
17548 # Check whether --with-embedded-mysql was given.
17549 if test "${with_embedded_mysql+set}" = set; then
17550 withval=$with_embedded_mysql;
17551 if test "$withval" != "no"; then
17552 if test "$withval" = "yes"; then
17553 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17554 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17555 if test -d /usr/local/mysql/lib64/mysql; then
17556 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17558 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17560 MYSQL_BINDIR=/usr/local/mysql/bin
17561 elif test -f /usr/include/mysql/mysql.h; then
17562 MYSQL_INCDIR=/usr/include/mysql
17563 if test -d /usr/lib64/mysql; then
17564 MYSQL_LIBDIR=/usr/lib64/mysql
17566 MYSQL_LIBDIR=/usr/lib/mysql
17568 MYSQL_BINDIR=/usr/bin
17569 elif test -f /usr/include/mysql.h; then
17570 MYSQL_INCDIR=/usr/include
17571 if test -d /usr/lib64; then
17572 MYSQL_LIBDIR=/usr/lib64
17574 MYSQL_LIBDIR=/usr/lib
17576 MYSQL_BINDIR=/usr/bin
17577 elif test -f /usr/local/include/mysql/mysql.h; then
17578 MYSQL_INCDIR=/usr/local/include/mysql
17579 if test -d /usr/local/lib64/mysql; then
17580 MYSQL_LIBDIR=/usr/local/lib64/mysql
17582 MYSQL_LIBDIR=/usr/local/lib/mysql
17584 MYSQL_BINDIR=/usr/local/bin
17585 elif test -f /usr/local/include/mysql.h; then
17586 MYSQL_INCDIR=/usr/local/include
17587 if test -d /usr/local/lib64; then
17588 MYSQL_LIBDIR=/usr/local/lib64
17590 MYSQL_LIBDIR=/usr/local/lib
17592 MYSQL_BINDIR=/usr/local/bin
17594 { echo "$as_me:$LINENO: result: no" >&5
17595 echo "${ECHO_T}no" >&6; }
17596 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17597 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17598 { (exit 1); exit 1; }; }
17601 if test -f $withval/include/mysql/mysql.h; then
17602 MYSQL_INCDIR=$withval/include/mysql
17603 if test -d $withval/lib64/mysql; then
17604 MYSQL_LIBDIR=$withval/lib64/mysql
17606 MYSQL_LIBDIR=$withval/lib/mysql
17608 MYSQL_BINDIR=$withval/bin
17609 elif test -f $withval/include/mysql.h; then
17610 MYSQL_INCDIR=$withval/include
17611 if test -d $withval/lib64; then
17612 MYSQL_LIBDIR=$withval/lib64
17614 MYSQL_LIBDIR=$withval/lib
17616 MYSQL_BINDIR=$withval/bin
17618 { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17620 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17621 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17622 { (exit 1); exit 1; }; }
17625 SQL_INCLUDE=-I$MYSQL_INCDIR
17626 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17627 SQL_BINDIR=$MYSQL_BINDIR
17628 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17630 cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_MYSQL 1
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_EMBEDDED_MYSQL 1
17638 { echo "$as_me:$LINENO: result: yes" >&5
17639 echo "${ECHO_T}yes" >&6; }
17646 { echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6; }
17663 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17664 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17666 # Check whether --with-sqlite3 was given.
17667 if test "${with_sqlite3+set}" = set; then
17668 withval=$with_sqlite3;
17669 if test "$withval" != "no"; then
17670 if test "$withval" = "yes"; then
17671 if test -f /usr/local/include/sqlite3.h; then
17672 SQLITE_INCDIR=/usr/local/include
17673 if test -d /usr/local/lib64; then
17674 SQLITE_LIBDIR=/usr/local/lib64
17676 SQLITE_LIBDIR=/usr/local/lib
17678 SQLITE_BINDIR=/usr/local/bin
17679 elif test -f /usr/include/sqlite3.h; then
17680 SQLITE_INCDIR=/usr/include
17681 if test -d /usr/lib64; then
17682 SQLITE_LIBDIR=/usr/lib64
17684 SQLITE_LIBDIR=/usr/lib
17686 SQLITE_BINDIR=/usr/bin
17687 elif test -f $prefix/include/sqlite3.h; then
17688 SQLITE_INCDIR=$prefix/include
17689 if test -d $prefix/lib64; then
17690 SQLITE_LIBDIR=$prefix/lib64
17692 SQLITE_LIBDIR=$prefix/lib
17694 SQLITE_BINDIR=$prefix/bin
17696 { echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6; }
17698 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17699 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17700 { (exit 1); exit 1; }; }
17703 if test -f $withval/sqlite3.h; then
17704 SQLITE_INCDIR=$withval
17705 SQLITE_LIBDIR=$withval
17706 SQLITE_BINDIR=$withval
17707 elif test -f $withval/include/sqlite3.h; then
17708 SQLITE_INCDIR=$withval/include
17709 if test -d $withval/lib64; then
17710 SQLITE_LIBDIR=$withval/lib64
17712 SQLITE_LIBDIR=$withval/lib
17714 SQLITE_BINDIR=$withval/bin
17716 { echo "$as_me:$LINENO: result: no" >&5
17717 echo "${ECHO_T}no" >&6; }
17718 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17719 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17720 { (exit 1); exit 1; }; }
17723 SQL_INCLUDE=-I$SQLITE_INCDIR
17724 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17725 SQL_BINDIR=$SQLITE_BINDIR
17726 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17728 cat >>confdefs.h <<\_ACEOF
17729 #define HAVE_SQLITE3 1
17732 { echo "$as_me:$LINENO: result: yes" >&5
17733 echo "${ECHO_T}yes" >&6; }
17735 support_sqlite3=yes
17740 { echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6; }
17746 { echo "$as_me:$LINENO: result: no" >&5
17747 echo "${ECHO_T}no" >&6; }
17759 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17760 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17762 # Check whether --with-sqlite was given.
17763 if test "${with_sqlite+set}" = set; then
17764 withval=$with_sqlite;
17765 if test "$withval" != "no"; then
17766 if test "$withval" = "yes"; then
17767 if test -f /usr/local/include/sqlite.h; then
17768 SQLITE_INCDIR=/usr/local/include
17769 if test -d /usr/local/lib64; then
17770 SQLITE_LIBDIR=/usr/local/lib64
17772 SQLITE_LIBDIR=/usr/local/lib
17774 SQLITE_BINDIR=/usr/local/bin
17775 elif test -f /usr/include/sqlite.h; then
17776 SQLITE_INCDIR=/usr/include
17777 if test -d /usr/lib64; then
17778 SQLITE_LIBDIR=/usr/lib64
17780 SQLITE_LIBDIR=/usr/lib
17782 SQLITE_BINDIR=/usr/bin
17783 elif test -f $prefix/include/sqlite.h; then
17784 SQLITE_INCDIR=$prefix/include
17785 if test -d $prefix/lib64; then
17786 SQLITE_LIBDIR=$prefix/lib64
17788 SQLITE_LIBDIR=$prefix/lib
17790 SQLITE_BINDIR=$prefix/bin
17792 { echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6; }
17794 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17795 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17796 { (exit 1); exit 1; }; }
17799 if test -f $withval/sqlite.h; then
17800 SQLITE_INCDIR=$withval
17801 SQLITE_LIBDIR=$withval
17802 SQLITE_BINDIR=$withval
17803 elif test -f $withval/include/sqlite.h; then
17804 SQLITE_INCDIR=$withval/include
17805 if test -d $withval/lib64; then
17806 SQLITE_LIBDIR=$withval/lib64
17808 SQLITE_LIBDIR=$withval/lib
17810 SQLITE_BINDIR=$withval/bin
17812 { echo "$as_me:$LINENO: result: no" >&5
17813 echo "${ECHO_T}no" >&6; }
17814 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17815 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17816 { (exit 1); exit 1; }; }
17819 SQL_INCLUDE=-I$SQLITE_INCDIR
17820 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17821 SQL_BINDIR=$SQLITE_BINDIR
17822 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17824 cat >>confdefs.h <<\_ACEOF
17825 #define HAVE_SQLITE 1
17828 { echo "$as_me:$LINENO: result: yes" >&5
17829 echo "${ECHO_T}yes" >&6; }
17836 { echo "$as_me:$LINENO: result: no" >&5
17837 echo "${ECHO_T}no" >&6; }
17842 { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17856 # -------------------------------------------
17857 # enable batch attribute DB insert (default on)
17858 # -------------------------------------------
17859 support_batch_insert=no
17860 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17862 if test $pkg = 0; then
17863 support_batch_insert=yes
17864 # Check whether --enable-batch-insert was given.
17865 if test "${enable_batch_insert+set}" = set; then
17866 enableval=$enable_batch_insert; if test x$enableval = xno; then
17867 support_batch_insert=no
17869 support_batch_insert=yes
17875 # Check if postgresql support batch mode
17876 if test x$DB_TYPE = xpostgresql; then
17877 A=`nm $SQL_LIB | grep PQputCopyData`
17879 if test $pkg != 0; then
17880 support_batch_insert=no
17884 if test $support_batch_insert = yes ; then
17886 cat >>confdefs.h <<\_ACEOF
17887 #define HAVE_BATCH_FILE_INSERT 1
17893 cat >>confdefs.h <<\_ACEOF
17894 #define PROTOTYPES 1
17898 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17899 if test -z "$CCOPTS"; then
17900 CCOPTS='-g -O2 -Wall'
17908 largefile_support="no"
17910 # Check whether --enable-largefile was given.
17911 if test "${enable_largefile+set}" = set; then
17912 enableval=$enable_largefile;
17915 if test "$enable_largefile" != no; then
17916 if test -n "$ac_tool_prefix"; then
17917 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17918 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17921 if test "${ac_cv_prog_GETCONF+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 if test -n "$GETCONF"; then
17925 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17931 test -z "$as_dir" && as_dir=.
17932 for ac_exec_ext in '' $ac_executable_extensions; do
17933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17934 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17944 GETCONF=$ac_cv_prog_GETCONF
17945 if test -n "$GETCONF"; then
17946 { echo "$as_me:$LINENO: result: $GETCONF" >&5
17947 echo "${ECHO_T}$GETCONF" >&6; }
17949 { echo "$as_me:$LINENO: result: no" >&5
17950 echo "${ECHO_T}no" >&6; }
17955 if test -z "$ac_cv_prog_GETCONF"; then
17956 ac_ct_GETCONF=$GETCONF
17957 # Extract the first word of "getconf", so it can be a program name with args.
17958 set dummy getconf; ac_word=$2
17959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17961 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 if test -n "$ac_ct_GETCONF"; then
17965 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17968 for as_dir in $PATH
17971 test -z "$as_dir" && as_dir=.
17972 for ac_exec_ext in '' $ac_executable_extensions; do
17973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17974 ac_cv_prog_ac_ct_GETCONF="getconf"
17975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17984 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17985 if test -n "$ac_ct_GETCONF"; then
17986 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17987 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17989 { echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6; }
17993 if test "x$ac_ct_GETCONF" = x; then
17996 case $cross_compiling:$ac_tool_warned in
17998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17999 whose name does not start with the host triplet. If you think this
18000 configuration is useful to you, please write to autoconf@gnu.org." >&5
18001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18002 whose name does not start with the host triplet. If you think this
18003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18004 ac_tool_warned=yes ;;
18006 GETCONF=$ac_ct_GETCONF
18009 GETCONF="$ac_cv_prog_GETCONF"
18012 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18013 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18014 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18018 ac_cv_sys_largefile_CFLAGS=no
18020 # IRIX 6.2 and later require cc -n32.
18021 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18022 if test "$GCC" != yes; then
18023 ac_cv_sys_largefile_CFLAGS=-n32
18026 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest$ac_exeext &&
18059 $as_test_x conftest$ac_exeext; then
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_cv_sys_largefile_CFLAGS=no
18068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18069 conftest$ac_exeext conftest.$ac_ext
18074 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18075 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18076 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18077 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18078 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18082 ac_cv_sys_largefile_LDFLAGS=no
18086 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18087 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18088 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18089 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18090 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18094 ac_cv_sys_largefile_LIBS=no
18098 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18099 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18101 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18104 -D_FILE_OFFSET_BITS=*) ;;
18105 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18106 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18111 case "$CPPFLAGS" in
18112 '') CPPFLAGS="$ac_flag" ;;
18113 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18121 '') CFLAGS="$ac_flag" ;;
18122 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18127 case "$ac_cv_sys_largefile_LDFLAGS" in
18131 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18132 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18135 case "$ac_cv_sys_largefile_LIBS" in
18139 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18140 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18143 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18144 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18145 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_cv_sys_file_offset_bits=no
18149 ac_cv_sys_file_offset_bits=64
18150 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18152 -D_FILE_OFFSET_BITS)
18153 ac_cv_sys_file_offset_bits=1 ;;
18154 -D_FILE_OFFSET_BITS=*)
18155 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18160 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18161 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18162 if test "$ac_cv_sys_file_offset_bits" != no; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18169 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18170 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18171 if test "${ac_cv_sys_largefile_source+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 ac_cv_sys_largefile_source=no
18175 ac_cv_sys_largefile_source=1
18176 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18178 -D_LARGEFILE_SOURCE)
18179 ac_cv_sys_largefile_source=1 ;;
18180 -D_LARGEFILE_SOURCE=*)
18181 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18186 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18187 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18188 if test "$ac_cv_sys_largefile_source" != no; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18195 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18196 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18197 if test "${ac_cv_sys_large_files+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 ac_cv_sys_large_files=no
18201 ac_cv_sys_large_files=1
18202 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18205 ac_cv_sys_large_files=1 ;;
18207 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18212 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18213 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18214 if test "$ac_cv_sys_large_files" != no; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define _LARGE_FILES $ac_cv_sys_large_files
18225 { echo "$as_me:$LINENO: checking for X" >&5
18226 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18229 # Check whether --with-x was given.
18230 if test "${with_x+set}" = set; then
18234 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18235 if test "x$with_x" = xno; then
18236 # The user explicitly disabled X.
18239 case $x_includes,$x_libraries in #(
18240 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18241 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18242 { (exit 1); exit 1; }; };; #(
18243 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 # One or both of the vars are not set, and there is no cached value.
18247 ac_x_includes=no ac_x_libraries=no
18248 rm -f -r conftest.dir
18249 if mkdir conftest.dir; then
18251 cat >Imakefile <<'_ACEOF'
18253 @echo incroot='${INCROOT}'
18255 @echo usrlibdir='${USRLIBDIR}'
18257 @echo libdir='${LIBDIR}'
18259 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18261 for ac_var in incroot usrlibdir libdir; do
18262 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18264 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18265 for ac_extension in a so sl; do
18266 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18267 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18268 ac_im_usrlibdir=$ac_im_libdir; break
18271 # Screen out bogus values from the imake configuration. They are
18272 # bogus both because they are the default anyway, and because
18273 # using them would break gcc on systems where it needs fixed includes.
18274 case $ac_im_incroot in
18275 /usr/include) ac_x_includes= ;;
18276 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18278 case $ac_im_usrlibdir in
18279 /usr/lib | /lib) ;;
18280 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18284 rm -f -r conftest.dir
18287 # Standard set of common directories for X headers.
18288 # Check X11 before X11Rn because it is often a symlink to the current release.
18300 /usr/local/X11/include
18301 /usr/local/X11R6/include
18302 /usr/local/X11R5/include
18303 /usr/local/X11R4/include
18305 /usr/local/include/X11
18306 /usr/local/include/X11R6
18307 /usr/local/include/X11R5
18308 /usr/local/include/X11R4
18312 /usr/XFree86/include/X11
18316 /usr/unsupported/include
18317 /usr/athena/include
18318 /usr/local/x11r5/include
18319 /usr/lpp/Xamples/include
18321 /usr/openwin/include
18322 /usr/openwin/share/include'
18324 if test "$ac_x_includes" = no; then
18325 # Guess where to find include files, by looking for Xlib.h.
18326 # First, try using that file with no special directory specified.
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 #include <X11/Xlib.h>
18335 if { (ac_try="$ac_cpp conftest.$ac_ext"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } >/dev/null && {
18348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18351 # We can compile using X headers with no special include directory.
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 for ac_dir in $ac_x_header_dirs; do
18358 if test -r "$ac_dir/X11/Xlib.h"; then
18359 ac_x_includes=$ac_dir
18365 rm -f conftest.err conftest.$ac_ext
18366 fi # $ac_x_includes = no
18368 if test "$ac_x_libraries" = no; then
18369 # Check for the libraries.
18370 # See if we find them without any special options.
18371 # Don't add to $LIBS permanently.
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 #include <X11/Xlib.h>
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest$ac_exeext &&
18406 $as_test_x conftest$ac_exeext; then
18408 # We can link X programs with no special library path.
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18415 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18417 # Don't even attempt the hair of trying to link an X program!
18418 for ac_extension in a so sl; do
18419 if test -r "$ac_dir/libX11.$ac_extension"; then
18420 ac_x_libraries=$ac_dir
18427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18428 conftest$ac_exeext conftest.$ac_ext
18429 fi # $ac_x_libraries = no
18431 case $ac_x_includes,$ac_x_libraries in #(
18432 no,* | *,no | *\'*)
18433 # Didn't find X, or a directory has "'" in its name.
18434 ac_cv_have_x="have_x=no";; #(
18436 # Record where we found X for the cache.
18437 ac_cv_have_x="have_x=yes\
18438 ac_x_includes='$ac_x_includes'\
18439 ac_x_libraries='$ac_x_libraries'"
18445 eval "$ac_cv_have_x"
18448 if test "$have_x" != yes; then
18449 { echo "$as_me:$LINENO: result: $have_x" >&5
18450 echo "${ECHO_T}$have_x" >&6; }
18453 # If each of the values was on the command line, it overrides each guess.
18454 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18455 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18456 # Update the cache value to reflect the command line values.
18457 ac_cv_have_x="have_x=yes\
18458 ac_x_includes='$x_includes'\
18459 ac_x_libraries='$x_libraries'"
18460 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18461 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18464 if test "$no_x" = yes; then
18465 # Not all programs may use this symbol, but it does not hurt to define it.
18467 cat >>confdefs.h <<\_ACEOF
18468 #define X_DISPLAY_MISSING 1
18471 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18473 if test -n "$x_includes"; then
18474 X_CFLAGS="$X_CFLAGS -I$x_includes"
18477 # It would also be nice to do this for all -L options, not just this one.
18478 if test -n "$x_libraries"; then
18479 X_LIBS="$X_LIBS -L$x_libraries"
18480 # For Solaris; some versions of Sun CC require a space after -R and
18481 # others require no space. Words are not sufficient . . . .
18482 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18483 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18484 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18485 ac_xsave_c_werror_flag=$ac_c_werror_flag
18486 ac_c_werror_flag=yes
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_link") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest$ac_exeext &&
18519 $as_test_x conftest$ac_exeext; then
18520 { echo "$as_me:$LINENO: result: no" >&5
18521 echo "${ECHO_T}no" >&6; }
18522 X_LIBS="$X_LIBS -R$x_libraries"
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 LIBS="$ac_xsave_LIBS -R $x_libraries"
18528 cat >conftest.$ac_ext <<_ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest$ac_exeext &&
18560 $as_test_x conftest$ac_exeext; then
18561 { echo "$as_me:$LINENO: result: yes" >&5
18562 echo "${ECHO_T}yes" >&6; }
18563 X_LIBS="$X_LIBS -R $x_libraries"
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 { echo "$as_me:$LINENO: result: neither works" >&5
18569 echo "${ECHO_T}neither works" >&6; }
18572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18573 conftest$ac_exeext conftest.$ac_ext
18576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18577 conftest$ac_exeext conftest.$ac_ext
18578 ac_c_werror_flag=$ac_xsave_c_werror_flag
18579 LIBS=$ac_xsave_LIBS
18582 # Check for system-dependent libraries X programs must link with.
18583 # Do this before checking for the system-independent R6 libraries
18584 # (-lICE), since we may need -lsocket or whatever for X linking.
18586 if test "$ISC" = yes; then
18587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18589 # Martyn Johnson says this is needed for Ultrix, if the X
18590 # libraries were built with DECnet support. And Karl Berry says
18591 # the Alpha needs dnet_stub (dnet does not exist).
18592 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18606 char XOpenDisplay ();
18610 return XOpenDisplay ();
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest$ac_exeext &&
18632 $as_test_x conftest$ac_exeext; then
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18639 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18640 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 ac_check_lib_save_LIBS=$LIBS
18644 LIBS="-ldnet $LIBS"
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18662 return dnet_ntoa ();
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_link") 2>conftest.er1
18676 grep -v '^ *+' conftest.er1 >conftest.err
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } && {
18681 test -z "$ac_c_werror_flag" ||
18682 test ! -s conftest.err
18683 } && test -s conftest$ac_exeext &&
18684 $as_test_x conftest$ac_exeext; then
18685 ac_cv_lib_dnet_dnet_ntoa=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_cv_lib_dnet_dnet_ntoa=no
18693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18694 conftest$ac_exeext conftest.$ac_ext
18695 LIBS=$ac_check_lib_save_LIBS
18697 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18698 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18699 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18700 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18703 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18704 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18705 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18706 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-ldnet_stub $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18718 /* Override any GCC internal prototype to avoid an error.
18719 Use char because int might match the return type of a GCC
18720 builtin and then its argument prototype would still apply. */
18728 return dnet_ntoa ();
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_link") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest$ac_exeext &&
18750 $as_test_x conftest$ac_exeext; then
18751 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_lib_dnet_stub_dnet_ntoa=no
18759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18764 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18765 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18773 conftest$ac_exeext conftest.$ac_ext
18774 LIBS="$ac_xsave_LIBS"
18776 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18777 # to get the SysV transport functions.
18778 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18780 # The nsl library prevents programs from opening the X display
18781 # on Irix 5.2, according to T.E. Dickey.
18782 # The functions gethostbyname, getservbyname, and inet_addr are
18783 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18784 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18785 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18786 if test "${ac_cv_func_gethostbyname+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define gethostbyname innocuous_gethostbyname
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char gethostbyname (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18810 #undef gethostbyname
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18818 char gethostbyname ();
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18829 return gethostbyname ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_func_gethostbyname=yes
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 ac_cv_func_gethostbyname=no
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18864 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18866 if test $ac_cv_func_gethostbyname = no; then
18867 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18868 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS=$LIBS
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18887 char gethostbyname ();
18891 return gethostbyname ();
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest$ac_exeext &&
18913 $as_test_x conftest$ac_exeext; then
18914 ac_cv_lib_nsl_gethostbyname=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_lib_nsl_gethostbyname=no
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923 conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18927 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18928 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18932 if test $ac_cv_lib_nsl_gethostbyname = no; then
18933 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18934 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18935 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 ac_check_lib_save_LIBS=$LIBS
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18953 char gethostbyname ();
18957 return gethostbyname ();
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext &&
18979 $as_test_x conftest$ac_exeext; then
18980 ac_cv_lib_bsd_gethostbyname=yes
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18985 ac_cv_lib_bsd_gethostbyname=no
18988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18989 conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18992 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18993 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18994 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18995 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19001 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19002 # socket/setsockopt and other routines are undefined under SCO ODT
19003 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19004 # on later versions), says Simon Leinen: it contains gethostby*
19005 # variants that don't use the name server (or something). -lsocket
19006 # must be given before -lnsl if both are needed. We assume that
19007 # if connect needs -lnsl, so does gethostbyname.
19008 { echo "$as_me:$LINENO: checking for connect" >&5
19009 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19010 if test "${ac_cv_func_connect+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define connect innocuous_connect
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char connect (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19029 # include <limits.h>
19031 # include <assert.h>
19036 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */
19043 /* The GNU C library defines this for functions which it implements
19044 to always fail with ENOSYS. Some functions are actually named
19045 something starting with __ and the normal name is an alias. */
19046 #if defined __stub_connect || defined __stub___connect
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_func_connect=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_func_connect=no
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19087 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19088 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19090 if test $ac_cv_func_connect = no; then
19091 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19093 if test "${ac_cv_lib_socket_connect+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext &&
19137 $as_test_x conftest$ac_exeext; then
19138 ac_cv_lib_socket_connect=yes
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_cv_lib_socket_connect=no
19146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19147 conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19150 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19151 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19152 if test $ac_cv_lib_socket_connect = yes; then
19153 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19158 # Guillermo Gomez says -lposix is necessary on A/UX.
19159 { echo "$as_me:$LINENO: checking for remove" >&5
19160 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19161 if test "${ac_cv_func_remove+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19172 #define remove innocuous_remove
19174 /* System header to define __stub macros and hopefully few prototypes,
19175 which can conflict with char remove (); below.
19176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19177 <limits.h> exists even on freestanding compilers. */
19180 # include <limits.h>
19182 # include <assert.h>
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19194 /* The GNU C library defines this for functions which it implements
19195 to always fail with ENOSYS. Some functions are actually named
19196 something starting with __ and the normal name is an alias. */
19197 #if defined __stub_remove || defined __stub___remove
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest$ac_exeext &&
19226 $as_test_x conftest$ac_exeext; then
19227 ac_cv_func_remove=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_func_remove=no
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236 conftest$ac_exeext conftest.$ac_ext
19238 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19239 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19241 if test $ac_cv_func_remove = no; then
19242 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19243 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19244 if test "${ac_cv_lib_posix_remove+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 ac_check_lib_save_LIBS=$LIBS
19248 LIBS="-lposix $LIBS"
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19256 /* Override any GCC internal prototype to avoid an error.
19257 Use char because int might match the return type of a GCC
19258 builtin and then its argument prototype would still apply. */
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (ac_try="$ac_link"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_link") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest$ac_exeext &&
19288 $as_test_x conftest$ac_exeext; then
19289 ac_cv_lib_posix_remove=yes
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 ac_cv_lib_posix_remove=no
19297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19298 conftest$ac_exeext conftest.$ac_ext
19299 LIBS=$ac_check_lib_save_LIBS
19301 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19302 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19303 if test $ac_cv_lib_posix_remove = yes; then
19304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19309 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19310 { echo "$as_me:$LINENO: checking for shmat" >&5
19311 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19312 if test "${ac_cv_func_shmat+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define shmat innocuous_shmat
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char shmat (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19331 # include <limits.h>
19333 # include <assert.h>
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19345 /* The GNU C library defines this for functions which it implements
19346 to always fail with ENOSYS. Some functions are actually named
19347 something starting with __ and the normal name is an alias. */
19348 #if defined __stub_shmat || defined __stub___shmat
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_link") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest$ac_exeext &&
19377 $as_test_x conftest$ac_exeext; then
19378 ac_cv_func_shmat=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_func_shmat=no
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19390 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19392 if test $ac_cv_func_shmat = no; then
19393 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19394 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19395 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_check_lib_save_LIBS=$LIBS
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 /* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 ac_cv_lib_ipc_shmat=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_ipc_shmat=no
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19453 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19454 if test $ac_cv_lib_ipc_shmat = yes; then
19455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19461 # Check for libraries that X11R6 Xt/Xaw programs need.
19462 ac_save_LDFLAGS=$LDFLAGS
19463 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19464 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19465 # check for ICE first), but we must link in the order -lSM -lICE or
19466 # we get undefined symbols. So assume we have SM if we have ICE.
19467 # These have to be linked with before -lX11, unlike the other
19468 # libraries we check for below, so use a different variable.
19469 # John Interrante, Karl Berry
19470 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19471 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19490 char IceConnectionNumber ();
19494 return IceConnectionNumber ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_ICE_IceConnectionNumber=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_lib_ICE_IceConnectionNumber=no
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19530 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19531 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19532 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19535 LDFLAGS=$ac_save_LDFLAGS
19603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 ac_res=`eval echo '${'$as_ac_Header'}'`
19611 { echo "$as_me:$LINENO: result: $ac_res" >&5
19612 echo "${ECHO_T}$ac_res" >&6; }
19614 # Is the header compilable?
19615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 $ac_includes_default
19624 #include <$ac_header>
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest.$ac_objext; then
19643 ac_header_compiler=yes
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_header_compiler=no
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653 echo "${ECHO_T}$ac_header_compiler" >&6; }
19655 # Is the header present?
19656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19658 cat >conftest.$ac_ext <<_ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 #include <$ac_header>
19666 if { (ac_try="$ac_cpp conftest.$ac_ext"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } >/dev/null && {
19679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19682 ac_header_preproc=yes
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_header_preproc=no
19690 rm -f conftest.err conftest.$ac_ext
19691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19692 echo "${ECHO_T}$ac_header_preproc" >&6; }
19694 # So? What about this header?
19695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19701 ac_header_preproc=yes
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 eval "$as_ac_Header=\$ac_header_preproc"
19726 ac_res=`eval echo '${'$as_ac_Header'}'`
19727 { echo "$as_me:$LINENO: result: $ac_res" >&5
19728 echo "${ECHO_T}$ac_res" >&6; }
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19740 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19742 if test "${ac_cv_header_stdc+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #include <stdlib.h>
19752 #include <stdarg.h>
19753 #include <string.h>
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_compile") 2>conftest.er1
19773 grep -v '^ *+' conftest.er1 >conftest.err
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } && {
19778 test -z "$ac_c_werror_flag" ||
19779 test ! -s conftest.err
19780 } && test -s conftest.$ac_objext; then
19781 ac_cv_header_stdc=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_cv_header_stdc=no
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 if test $ac_cv_header_stdc = yes; then
19792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 #include <string.h>
19802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19803 $EGREP "memchr" >/dev/null 2>&1; then
19806 ac_cv_header_stdc=no
19812 if test $ac_cv_header_stdc = yes; then
19813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <stdlib.h>
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824 $EGREP "free" >/dev/null 2>&1; then
19827 ac_cv_header_stdc=no
19833 if test $ac_cv_header_stdc = yes; then
19834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19835 if test "$cross_compiling" = yes; then
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 #include <stdlib.h>
19846 #if ((' ' & 0x0FF) == 0x020)
19847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19850 # define ISLOWER(c) \
19851 (('a' <= (c) && (c) <= 'i') \
19852 || ('j' <= (c) && (c) <= 'r') \
19853 || ('s' <= (c) && (c) <= 'z'))
19854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19862 for (i = 0; i < 256; i++)
19863 if (XOR (islower (i), ISLOWER (i))
19864 || toupper (i) != TOUPPER (i))
19869 rm -f conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_link") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880 { (case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_try") 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19891 echo "$as_me: program exited with status $ac_status" >&5
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ( exit $ac_status )
19896 ac_cv_header_stdc=no
19898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19904 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19905 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19906 if test $ac_cv_header_stdc = yes; then
19908 cat >>confdefs.h <<\_ACEOF
19909 #define STDC_HEADERS 1
19914 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19915 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19916 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <sys/types.h>
19929 return makedev(0, 0);
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext &&
19951 $as_test_x conftest$ac_exeext; then
19952 ac_cv_header_sys_types_h_makedev=yes
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_header_sys_types_h_makedev=no
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19964 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19965 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19967 if test $ac_cv_header_sys_types_h_makedev = no; then
19968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19969 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19970 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19971 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19975 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19977 # Is the header compilable?
19978 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19979 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 $ac_includes_default
19987 #include <sys/mkdev.h>
19989 rm -f conftest.$ac_objext
19990 if { (ac_try="$ac_compile"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_compile") 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } && {
20003 test -z "$ac_c_werror_flag" ||
20004 test ! -s conftest.err
20005 } && test -s conftest.$ac_objext; then
20006 ac_header_compiler=yes
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ac_header_compiler=no
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016 echo "${ECHO_T}$ac_header_compiler" >&6; }
20018 # Is the header present?
20019 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20020 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <sys/mkdev.h>
20029 if { (ac_try="$ac_cpp conftest.$ac_ext"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null && {
20042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20043 test ! -s conftest.err
20045 ac_header_preproc=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_preproc=no
20053 rm -f conftest.err conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055 echo "${ECHO_T}$ac_header_preproc" >&6; }
20057 # So? What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20061 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20063 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20064 ac_header_preproc=yes
20067 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20068 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20070 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20072 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20074 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20076 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20078 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20082 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20083 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20084 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20089 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20090 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20093 if test $ac_cv_header_sys_mkdev_h = yes; then
20095 cat >>confdefs.h <<\_ACEOF
20096 #define MAJOR_IN_MKDEV 1
20103 if test $ac_cv_header_sys_mkdev_h = no; then
20104 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20105 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20106 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20107 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20111 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20113 # Is the header compilable?
20114 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20115 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <sys/sysmacros.h>
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_header_compiler=no
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 echo "${ECHO_T}$ac_header_compiler" >&6; }
20154 # Is the header present?
20155 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20156 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <sys/sysmacros.h>
20165 if { (ac_try="$ac_cpp conftest.$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20173 grep -v '^ *+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } >/dev/null && {
20178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20181 ac_header_preproc=yes
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_header_preproc=no
20189 rm -f conftest.err conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20191 echo "${ECHO_T}$ac_header_preproc" >&6; }
20193 # So? What about this header?
20194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20196 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20197 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20199 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20200 ac_header_preproc=yes
20203 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20204 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20206 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20208 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20210 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20212 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20214 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20218 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20219 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20226 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20229 if test $ac_cv_header_sys_sysmacros_h = yes; then
20231 cat >>confdefs.h <<\_ACEOF
20232 #define MAJOR_IN_SYSMACROS 1
20246 ac_header_dirent=no
20247 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20248 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20249 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20250 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <sys/types.h>
20272 rm -f conftest.$ac_objext
20273 if { (ac_try="$ac_compile"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_compile") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest.$ac_objext; then
20289 eval "$as_ac_Header=yes"
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 eval "$as_ac_Header=no"
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20299 ac_res=`eval echo '${'$as_ac_Header'}'`
20300 { echo "$as_me:$LINENO: result: $ac_res" >&5
20301 echo "${ECHO_T}$ac_res" >&6; }
20302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20303 cat >>confdefs.h <<_ACEOF
20304 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20307 ac_header_dirent=$ac_hdr; break
20311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20312 if test $ac_header_dirent = dirent.h; then
20313 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20315 if test "${ac_cv_search_opendir+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 ac_func_search_save_LIBS=$LIBS
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20341 for ac_lib in '' dir; do
20342 if test -z "$ac_lib"; then
20343 ac_res="none required"
20346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_link") 2>conftest.er1
20357 grep -v '^ *+' conftest.er1 >conftest.err
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && {
20362 test -z "$ac_c_werror_flag" ||
20363 test ! -s conftest.err
20364 } && test -s conftest$ac_exeext &&
20365 $as_test_x conftest$ac_exeext; then
20366 ac_cv_search_opendir=$ac_res
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20376 if test "${ac_cv_search_opendir+set}" = set; then
20380 if test "${ac_cv_search_opendir+set}" = set; then
20383 ac_cv_search_opendir=no
20385 rm conftest.$ac_ext
20386 LIBS=$ac_func_search_save_LIBS
20388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20390 ac_res=$ac_cv_search_opendir
20391 if test "$ac_res" != no; then
20392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20397 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20398 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20399 if test "${ac_cv_search_opendir+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 ac_func_search_save_LIBS=$LIBS
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 /* Override any GCC internal prototype to avoid an error.
20411 Use char because int might match the return type of a GCC
20412 builtin and then its argument prototype would still apply. */
20425 for ac_lib in '' x; do
20426 if test -z "$ac_lib"; then
20427 ac_res="none required"
20430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20432 rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_link") 2>conftest.er1
20441 grep -v '^ *+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest$ac_exeext &&
20449 $as_test_x conftest$ac_exeext; then
20450 ac_cv_search_opendir=$ac_res
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 if test "${ac_cv_search_opendir+set}" = set; then
20464 if test "${ac_cv_search_opendir+set}" = set; then
20467 ac_cv_search_opendir=no
20469 rm conftest.$ac_ext
20470 LIBS=$ac_func_search_save_LIBS
20472 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20473 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20474 ac_res=$ac_cv_search_opendir
20475 if test "$ac_res" != no; then
20476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20482 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20483 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20484 if test "${ac_cv_header_stat_broken+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <sys/types.h>
20494 #include <sys/stat.h>
20496 #if defined S_ISBLK && defined S_IFDIR
20497 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20500 #if defined S_ISBLK && defined S_IFCHR
20501 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20504 #if defined S_ISLNK && defined S_IFREG
20505 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20508 #if defined S_ISSOCK && defined S_IFREG
20509 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_compile") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && {
20527 test -z "$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20529 } && test -s conftest.$ac_objext; then
20530 ac_cv_header_stat_broken=no
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_cv_header_stat_broken=yes
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20541 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20542 if test $ac_cv_header_stat_broken = yes; then
20544 cat >>confdefs.h <<\_ACEOF
20545 #define STAT_MACROS_BROKEN 1
20550 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20551 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20552 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <sys/types.h>
20562 #include <sys/wait.h>
20563 #ifndef WEXITSTATUS
20564 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20567 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_compile") 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_c_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest.$ac_objext; then
20597 ac_cv_header_sys_wait_h=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ac_cv_header_sys_wait_h=no
20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20608 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20609 if test $ac_cv_header_sys_wait_h = yes; then
20611 cat >>confdefs.h <<\_ACEOF
20612 #define HAVE_SYS_WAIT_H 1
20617 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20619 if test "${ac_cv_header_time+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 #include <sys/types.h>
20629 #include <sys/time.h>
20635 if ((struct tm *) 0)
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 ac_cv_header_time=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_header_time=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20669 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20670 if test $ac_cv_header_time = yes; then
20672 cat >>confdefs.h <<\_ACEOF
20673 #define TIME_WITH_SYS_TIME 1
20678 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20679 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20680 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20693 static struct stat ac_aggr;
20694 if (ac_aggr.st_blksize)
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_member_struct_stat_st_blksize=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 $ac_includes_default
20732 static struct stat ac_aggr;
20733 if (sizeof ac_aggr.st_blksize)
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest.$ac_objext; then
20756 ac_cv_member_struct_stat_st_blksize=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_member_struct_stat_st_blksize=no
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20771 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20773 cat >>confdefs.h <<_ACEOF
20774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20778 cat >>confdefs.h <<\_ACEOF
20779 #define HAVE_ST_BLKSIZE 1
20785 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20786 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20787 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 $ac_includes_default
20800 static struct stat ac_aggr;
20801 if (ac_aggr.st_blocks)
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 ac_cv_member_struct_stat_st_blocks=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 cat >conftest.$ac_ext <<_ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 $ac_includes_default
20839 static struct stat ac_aggr;
20840 if (sizeof ac_aggr.st_blocks)
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_cv_member_struct_stat_st_blocks=yes
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_cv_member_struct_stat_st_blocks=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20877 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20878 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20880 cat >>confdefs.h <<_ACEOF
20881 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_ST_BLOCKS 1
20890 case " $LIBOBJS " in
20891 *" fileblocks.$ac_objext "* ) ;;
20892 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20899 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20901 if test "${ac_cv_struct_tm+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 #include <sys/types.h>
20917 int *p = &tm.tm_sec;
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 ac_cv_struct_tm=time.h
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_struct_tm=sys/time.h
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20951 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20952 if test $ac_cv_struct_tm = sys/time.h; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define TM_IN_SYS_TIME 1
20960 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20961 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20962 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <sys/types.h>
20972 #include <$ac_cv_struct_tm>
20978 static struct tm ac_aggr;
20979 if (ac_aggr.tm_zone)
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_compile") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest.$ac_objext; then
21002 ac_cv_member_struct_tm_tm_zone=yes
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 cat >conftest.$ac_ext <<_ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21013 #include <sys/types.h>
21014 #include <$ac_cv_struct_tm>
21020 static struct tm ac_aggr;
21021 if (sizeof ac_aggr.tm_zone)
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_compile") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest.$ac_objext; then
21044 ac_cv_member_struct_tm_tm_zone=yes
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_cv_member_struct_tm_tm_zone=no
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21058 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21059 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21061 cat >>confdefs.h <<_ACEOF
21062 #define HAVE_STRUCT_TM_TM_ZONE 1
21068 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21070 cat >>confdefs.h <<\_ACEOF
21071 #define HAVE_TM_ZONE 1
21075 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21076 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21077 if test "${ac_cv_have_decl_tzname+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_cv_have_decl_tzname=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_have_decl_tzname=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21127 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21128 if test $ac_cv_have_decl_tzname = yes; then
21130 cat >>confdefs.h <<_ACEOF
21131 #define HAVE_DECL_TZNAME 1
21136 cat >>confdefs.h <<_ACEOF
21137 #define HAVE_DECL_TZNAME 0
21144 { echo "$as_me:$LINENO: checking for tzname" >&5
21145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21146 if test "${ac_cv_var_tzname+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21156 #if !HAVE_DECL_TZNAME
21157 extern char *tzname[];
21163 return tzname[0][0];
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_link") 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest$ac_exeext &&
21185 $as_test_x conftest$ac_exeext; then
21186 ac_cv_var_tzname=yes
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_var_tzname=no
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195 conftest$ac_exeext conftest.$ac_ext
21197 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21198 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21199 if test $ac_cv_var_tzname = yes; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_TZNAME 1
21209 { echo "$as_me:$LINENO: checking for utime.h" >&5
21210 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21211 if test "${ba_cv_header_utime_h+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21214 cat >conftest.$ac_ext <<_ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21221 #include <sys/types.h>
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } && {
21245 test -z "$ac_c_werror_flag" ||
21246 test ! -s conftest.err
21247 } && test -s conftest.$ac_objext; then
21248 ba_cv_header_utime_h=yes
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 ba_cv_header_utime_h=no
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21259 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21260 test $ba_cv_header_utime_h = yes &&
21261 cat >>confdefs.h <<\_ACEOF
21262 #define HAVE_UTIME_H 1
21266 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21267 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21268 if test "${ba_cv_header_socklen_t+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21278 #include <sys/types.h>
21279 #include <sys/socket.h>
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ba_cv_header_socklen_t=yes
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ba_cv_header_socklen_t=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21316 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21317 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21318 #define HAVE_SOCKLEN_T 1
21322 { echo "$as_me:$LINENO: checking for bigendian" >&5
21323 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21324 if test "${ba_cv_bigendian+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 if test "$cross_compiling" = yes; then
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21338 rm -f conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_link") 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349 { (case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_try") 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ba_cv_bigendian=yes
21360 echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ( exit $ac_status )
21367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21372 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21373 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21374 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_BIGENDIAN 1
21380 ac_cpp='$CXXCPP $CPPFLAGS'
21381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21386 { echo "$as_me:$LINENO: checking for typeof" >&5
21387 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21388 if test "${ba_cv_have_typeof+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 if test "$cross_compiling" = yes; then
21392 ba_cv_have_typeof=no
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 main(){char *a = 0; a = (typeof a)a;}
21402 rm -f conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_link") 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413 { (case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_try") 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ba_cv_have_typeof=yes
21424 echo "$as_me: program exited with status $ac_status" >&5
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ( exit $ac_status )
21429 ba_cv_have_typeof=no
21431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21437 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21438 test $ba_cv_have_typeof = yes &&
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_TYPEOF 1
21444 ac_cpp='$CPP $CPPFLAGS'
21445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21451 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21452 if test "${ac_cv_c_const+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21465 /* FIXME: Include the comments suggested by Paul. */
21466 #ifndef __cplusplus
21467 /* Ultrix mips cc rejects this. */
21468 typedef int charset[2];
21470 /* SunOS 4.1.1 cc rejects this. */
21471 char const *const *pcpcc;
21473 /* NEC SVR4.0.2 mips cc rejects this. */
21474 struct point {int x, y;};
21475 static struct point const zero = {0,0};
21476 /* AIX XL C 1.02.0.0 rejects this.
21477 It does not let you subtract one const X* pointer from another in
21478 an arm of an if-expression whose if-part is not a constant
21480 const char *g = "string";
21481 pcpcc = &g + (g ? g-g : 0);
21482 /* HPUX 7.0 cc rejects these. */
21484 ppc = (char**) pcpcc;
21485 pcpcc = (char const *const *) ppc;
21486 { /* SCO 3.2v4 cc rejects this. */
21488 char const *s = 0 ? (char *) 0 : (char const *) 0;
21493 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21494 int x[] = {25, 17};
21495 const int *foo = &x[0];
21498 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21499 typedef const int *iptr;
21503 { /* AIX XL C 1.02.0.0 rejects this saying
21504 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21505 struct s { int j; const int *ap[3]; };
21506 struct s *b; b->j = 5;
21508 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21509 const int foo = 10;
21510 if (!foo) return 0;
21512 return !cs[0] && !zero.x;
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_compile") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest.$ac_objext; then
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21547 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21548 if test $ac_cv_c_const = no; then
21550 cat >>confdefs.h <<\_ACEOF
21558 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21559 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21561 # The order of these tests is important.
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include <sys/statvfs.h>
21569 #include <sys/fstyp.h>
21571 if { (ac_try="$ac_cpp conftest.$ac_ext"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21587 cat >>confdefs.h <<\_ACEOF
21588 #define FSTYPE_STATVFS 1
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21598 rm -f conftest.err conftest.$ac_ext
21599 if test $fstype = no; then
21600 cat >conftest.$ac_ext <<_ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 #include <sys/statfs.h>
21607 #include <sys/fstyp.h>
21609 if { (ac_try="$ac_cpp conftest.$ac_ext"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21617 grep -v '^ *+' conftest.er1 >conftest.err
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } >/dev/null && {
21622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21625 cat >>confdefs.h <<\_ACEOF
21626 #define FSTYPE_USG_STATFS 1
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21636 rm -f conftest.err conftest.$ac_ext
21638 if test $fstype = no; then
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <sys/statfs.h>
21646 #include <sys/vmount.h>
21648 if { (ac_try="$ac_cpp conftest.$ac_ext"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } >/dev/null && {
21661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21664 cat >>confdefs.h <<\_ACEOF
21665 #define FSTYPE_AIX_STATFS 1
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21675 rm -f conftest.err conftest.$ac_ext
21677 if test $fstype = no; then
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 #include <mntent.h>
21686 if { (ac_try="$ac_cpp conftest.$ac_ext"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } >/dev/null && {
21699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21702 cat >>confdefs.h <<\_ACEOF
21703 #define FSTYPE_MNTENT 1
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21713 rm -f conftest.err conftest.$ac_ext
21715 if test $fstype = no; then
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <sys/mount.h>
21725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21726 $EGREP "f_type;" >/dev/null 2>&1; then
21727 cat >>confdefs.h <<\_ACEOF
21728 #define FSTYPE_STATFS 1
21735 if test $fstype = no; then
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 #include <sys/mount.h>
21743 #include <sys/fs_types.h>
21745 if { (ac_try="$ac_cpp conftest.$ac_ext"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } >/dev/null && {
21758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21761 cat >>confdefs.h <<\_ACEOF
21762 #define FSTYPE_GETMNT 1
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21772 rm -f conftest.err conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result: $fstype" >&5
21775 echo "${ECHO_T}$fstype" >&6; }
21777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21778 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21779 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21780 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21784 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21786 # Is the header compilable?
21787 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21788 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 #include <sys/statvfs.h>
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21815 ac_header_compiler=yes
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_compiler=no
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21825 echo "${ECHO_T}$ac_header_compiler" >&6; }
21827 # Is the header present?
21828 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21829 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 #include <sys/statvfs.h>
21838 if { (ac_try="$ac_cpp conftest.$ac_ext"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21846 grep -v '^ *+' conftest.er1 >conftest.err
21848 cat conftest.err >&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } >/dev/null && {
21851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21854 ac_header_preproc=yes
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ac_header_preproc=no
21862 rm -f conftest.err conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21864 echo "${ECHO_T}$ac_header_preproc" >&6; }
21866 # So? What about this header?
21867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21869 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21870 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21872 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21873 ac_header_preproc=yes
21876 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21877 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21879 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21881 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21883 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21885 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21886 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21887 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21891 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21892 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21893 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21898 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21899 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21902 if test $ac_cv_header_sys_statvfs_h = yes; then
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_SYS_STATVFS_H 1
21912 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21913 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21914 if test "${ac_cv_type_signal+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 cat >conftest.$ac_ext <<_ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 #include <sys/types.h>
21924 #include <signal.h>
21929 return *(signal (0, 0)) (0) == 1;
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_cv_type_signal=int
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ac_cv_type_signal=void
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21962 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21964 cat >>confdefs.h <<_ACEOF
21965 #define RETSIGTYPE $ac_cv_type_signal
21970 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21971 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21972 if test "${bash_cv_signal_vintage+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 #include <signal.h>
21988 struct sigaction sa;
21989 sigemptyset(&ss); sigsuspend(&ss);
21990 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21991 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest$ac_exeext &&
22014 $as_test_x conftest$ac_exeext; then
22015 bash_cv_signal_vintage="posix"
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <signal.h>
22032 int mask = sigmask(SIGINT);
22033 sigsetmask(mask); sigblock(mask); sigpause(mask);
22039 rm -f conftest.$ac_objext conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest$ac_exeext &&
22056 $as_test_x conftest$ac_exeext; then
22057 bash_cv_signal_vintage="4.2bsd"
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22063 cat >conftest.$ac_ext <<_ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22070 #include <signal.h>
22071 RETSIGTYPE foo() { }
22076 int mask = sigmask(SIGINT);
22077 sigset(SIGINT, foo); sigrelse(SIGINT);
22078 sighold(SIGINT); sigpause(SIGINT);
22084 rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest$ac_exeext &&
22101 $as_test_x conftest$ac_exeext; then
22102 bash_cv_signal_vintage="svr3"
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22107 bash_cv_signal_vintage="v7"
22111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22112 conftest$ac_exeext conftest.$ac_ext
22116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22117 conftest$ac_exeext conftest.$ac_ext
22121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22122 conftest$ac_exeext conftest.$ac_ext
22126 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22127 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22128 if test "$bash_cv_signal_vintage" = "posix"; then
22129 cat >>confdefs.h <<\_ACEOF
22130 #define HAVE_POSIX_SIGNALS 1
22133 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22134 cat >>confdefs.h <<\_ACEOF
22135 #define HAVE_BSD_SIGNALS 1
22138 elif test "$bash_cv_signal_vintage" = "svr3"; then
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_USG_SIGHOLD 1
22145 { echo "$as_me:$LINENO: checking for mode_t" >&5
22146 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22147 if test "${ac_cv_type_mode_t+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22157 typedef mode_t ac__type_new_;
22161 if ((ac__type_new_ *) 0)
22163 if (sizeof (ac__type_new_))
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1 >conftest.err
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_cv_type_mode_t=yes
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ac_cv_type_mode_t=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22197 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22198 if test $ac_cv_type_mode_t = yes; then
22202 cat >>confdefs.h <<_ACEOF
22208 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22209 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22210 if test "${ac_cv_type_uid_t+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 cat >conftest.$ac_ext <<_ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22219 #include <sys/types.h>
22222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22223 $EGREP "uid_t" >/dev/null 2>&1; then
22224 ac_cv_type_uid_t=yes
22226 ac_cv_type_uid_t=no
22231 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22233 if test $ac_cv_type_uid_t = no; then
22235 cat >>confdefs.h <<\_ACEOF
22240 cat >>confdefs.h <<\_ACEOF
22246 { echo "$as_me:$LINENO: checking for size_t" >&5
22247 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22248 if test "${ac_cv_type_size_t+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 typedef size_t ac__type_new_;
22262 if ((ac__type_new_ *) 0)
22264 if (sizeof (ac__type_new_))
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.$ac_objext; then
22287 ac_cv_type_size_t=yes
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292 ac_cv_type_size_t=no
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22298 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22299 if test $ac_cv_type_size_t = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define size_t unsigned int
22309 { echo "$as_me:$LINENO: checking for pid_t" >&5
22310 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22311 if test "${ac_cv_type_pid_t+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22321 typedef pid_t ac__type_new_;
22325 if ((ac__type_new_ *) 0)
22327 if (sizeof (ac__type_new_))
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest.$ac_objext; then
22350 ac_cv_type_pid_t=yes
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_type_pid_t=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22361 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22362 if test $ac_cv_type_pid_t = yes; then
22366 cat >>confdefs.h <<_ACEOF
22372 { echo "$as_me:$LINENO: checking for off_t" >&5
22373 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_off_t+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 $ac_includes_default
22384 typedef off_t ac__type_new_;
22388 if ((ac__type_new_ *) 0)
22390 if (sizeof (ac__type_new_))
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 ac_cv_type_off_t=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_type_off_t=no
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22424 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22425 if test $ac_cv_type_off_t = yes; then
22429 cat >>confdefs.h <<_ACEOF
22430 #define off_t long int
22435 { echo "$as_me:$LINENO: checking for ino_t" >&5
22436 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22437 if test "${ac_cv_type_ino_t+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 $ac_includes_default
22447 typedef ino_t ac__type_new_;
22451 if ((ac__type_new_ *) 0)
22453 if (sizeof (ac__type_new_))
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_cv_type_ino_t=yes
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_type_ino_t=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22487 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22488 if test $ac_cv_type_ino_t = yes; then
22492 cat >>confdefs.h <<_ACEOF
22493 #define ino_t unsigned long
22498 { echo "$as_me:$LINENO: checking for dev_t" >&5
22499 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22500 if test "${ac_cv_type_dev_t+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 cat >conftest.$ac_ext <<_ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h. */
22509 $ac_includes_default
22510 typedef dev_t ac__type_new_;
22514 if ((ac__type_new_ *) 0)
22516 if (sizeof (ac__type_new_))
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_cv_type_dev_t=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_cv_type_dev_t=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22550 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22551 if test $ac_cv_type_dev_t = yes; then
22555 cat >>confdefs.h <<_ACEOF
22556 #define dev_t unsigned long
22561 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22562 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22563 if test "${ac_cv_type_daddr_t+set}" = set; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 $ac_includes_default
22573 typedef daddr_t ac__type_new_;
22577 if ((ac__type_new_ *) 0)
22579 if (sizeof (ac__type_new_))
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 ac_cv_type_daddr_t=yes
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_cv_type_daddr_t=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22613 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22614 if test $ac_cv_type_daddr_t = yes; then
22618 cat >>confdefs.h <<_ACEOF
22619 #define daddr_t long
22624 { echo "$as_me:$LINENO: checking for major_t" >&5
22625 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22626 if test "${ac_cv_type_major_t+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22635 $ac_includes_default
22636 typedef major_t ac__type_new_;
22640 if ((ac__type_new_ *) 0)
22642 if (sizeof (ac__type_new_))
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_compile") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest.$ac_objext; then
22665 ac_cv_type_major_t=yes
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 ac_cv_type_major_t=no
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22676 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22677 if test $ac_cv_type_major_t = yes; then
22681 cat >>confdefs.h <<_ACEOF
22682 #define major_t int
22687 { echo "$as_me:$LINENO: checking for minor_t" >&5
22688 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22689 if test "${ac_cv_type_minor_t+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 cat >conftest.$ac_ext <<_ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 $ac_includes_default
22699 typedef minor_t ac__type_new_;
22703 if ((ac__type_new_ *) 0)
22705 if (sizeof (ac__type_new_))
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_type_minor_t=yes
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_type_minor_t=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22739 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22740 if test $ac_cv_type_minor_t = yes; then
22744 cat >>confdefs.h <<_ACEOF
22745 #define minor_t int
22750 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22751 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22752 if test "${ac_cv_type_ssize_t+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 $ac_includes_default
22762 typedef ssize_t ac__type_new_;
22766 if ((ac__type_new_ *) 0)
22768 if (sizeof (ac__type_new_))
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_compile") 2>conftest.er1
22783 grep -v '^ *+' conftest.er1 >conftest.err
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest.$ac_objext; then
22791 ac_cv_type_ssize_t=yes
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 ac_cv_type_ssize_t=no
22799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22802 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22803 if test $ac_cv_type_ssize_t = yes; then
22807 cat >>confdefs.h <<_ACEOF
22808 #define ssize_t int
22813 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22814 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22815 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 $ac_includes_default
22828 static struct stat ac_aggr;
22829 if (ac_aggr.st_blocks)
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22852 ac_cv_member_struct_stat_st_blocks=yes
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 $ac_includes_default
22867 static struct stat ac_aggr;
22868 if (sizeof ac_aggr.st_blocks)
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 ac_cv_member_struct_stat_st_blocks=yes
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_cv_member_struct_stat_st_blocks=no
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22905 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22906 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22908 cat >>confdefs.h <<_ACEOF
22909 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_ST_BLOCKS 1
22918 case " $LIBOBJS " in
22919 *" fileblocks.$ac_objext "* ) ;;
22920 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22927 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22928 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22929 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 $ac_includes_default
22942 static struct stat ac_aggr;
22943 if (ac_aggr.st_rdev)
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22958 grep -v '^ *+' conftest.er1 >conftest.err
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest.$ac_objext; then
22966 ac_cv_member_struct_stat_st_rdev=yes
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 $ac_includes_default
22981 static struct stat ac_aggr;
22982 if (sizeof ac_aggr.st_rdev)
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_compile") 2>conftest.er1
22997 grep -v '^ *+' conftest.er1 >conftest.err
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } && {
23002 test -z "$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23004 } && test -s conftest.$ac_objext; then
23005 ac_cv_member_struct_stat_st_rdev=yes
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_cv_member_struct_stat_st_rdev=no
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23019 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23020 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_STRUCT_STAT_ST_RDEV 1
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_ST_RDEV 1
23034 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23035 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23036 if test "${ac_cv_struct_tm+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 #include <sys/types.h>
23052 int *p = &tm.tm_sec;
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_cv_struct_tm=time.h
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 ac_cv_struct_tm=sys/time.h
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23086 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23087 if test $ac_cv_struct_tm = sys/time.h; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define TM_IN_SYS_TIME 1
23095 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23096 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23097 if test "${ac_cv_c_const+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. */
23110 /* FIXME: Include the comments suggested by Paul. */
23111 #ifndef __cplusplus
23112 /* Ultrix mips cc rejects this. */
23113 typedef int charset[2];
23115 /* SunOS 4.1.1 cc rejects this. */
23116 char const *const *pcpcc;
23118 /* NEC SVR4.0.2 mips cc rejects this. */
23119 struct point {int x, y;};
23120 static struct point const zero = {0,0};
23121 /* AIX XL C 1.02.0.0 rejects this.
23122 It does not let you subtract one const X* pointer from another in
23123 an arm of an if-expression whose if-part is not a constant
23125 const char *g = "string";
23126 pcpcc = &g + (g ? g-g : 0);
23127 /* HPUX 7.0 cc rejects these. */
23129 ppc = (char**) pcpcc;
23130 pcpcc = (char const *const *) ppc;
23131 { /* SCO 3.2v4 cc rejects this. */
23133 char const *s = 0 ? (char *) 0 : (char const *) 0;
23138 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23139 int x[] = {25, 17};
23140 const int *foo = &x[0];
23143 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23144 typedef const int *iptr;
23148 { /* AIX XL C 1.02.0.0 rejects this saying
23149 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23150 struct s { int j; const int *ap[3]; };
23151 struct s *b; b->j = 5;
23153 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23154 const int foo = 10;
23155 if (!foo) return 0;
23157 return !cs[0] && !zero.x;
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23192 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23193 if test $ac_cv_c_const = no; then
23195 cat >>confdefs.h <<\_ACEOF
23203 { echo "$as_me:$LINENO: checking for char" >&5
23204 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23205 if test "${ac_cv_type_char+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 $ac_includes_default
23215 typedef char ac__type_new_;
23219 if ((ac__type_new_ *) 0)
23221 if (sizeof (ac__type_new_))
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_compile") 2>conftest.er1
23236 grep -v '^ *+' conftest.er1 >conftest.err
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } && {
23241 test -z "$ac_c_werror_flag" ||
23242 test ! -s conftest.err
23243 } && test -s conftest.$ac_objext; then
23244 ac_cv_type_char=yes
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23255 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23257 # The cast to long int works around a bug in the HP C Compiler
23258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23260 # This bug is HP SR number 8606223364.
23261 { echo "$as_me:$LINENO: checking size of char" >&5
23262 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23263 if test "${ac_cv_sizeof_char+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 if test "$cross_compiling" = yes; then
23267 # Depending upon the size, compute the lo and hi bounds.
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 typedef char ac__type_sizeof_;
23279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23305 cat >conftest.$ac_ext <<_ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 $ac_includes_default
23312 typedef char ac__type_sizeof_;
23316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_hi=$ac_mid; break
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_lo=`expr $ac_mid + 1`
23346 if test $ac_lo -le $ac_mid; then
23350 ac_mid=`expr 2 '*' $ac_mid + 1`
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 cat >conftest.$ac_ext <<_ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 $ac_includes_default
23366 typedef char ac__type_sizeof_;
23370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_compile") 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest.$ac_objext; then
23396 cat >conftest.$ac_ext <<_ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23402 $ac_includes_default
23403 typedef char ac__type_sizeof_;
23407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_compile") 2>conftest.er1
23423 grep -v '^ *+' conftest.er1 >conftest.err
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } && {
23428 test -z "$ac_c_werror_flag" ||
23429 test ! -s conftest.err
23430 } && test -s conftest.$ac_objext; then
23431 ac_lo=$ac_mid; break
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_hi=`expr '(' $ac_mid ')' - 1`
23437 if test $ac_mid -le $ac_hi; then
23441 ac_mid=`expr 2 '*' $ac_mid`
23444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 # Binary search between lo and hi bounds.
23458 while test "x$ac_lo" != "x$ac_hi"; do
23459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 typedef char ac__type_sizeof_;
23471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23478 rm -f conftest.$ac_objext
23479 if { (ac_try="$ac_compile"
23480 case "(($ac_try" in
23481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482 *) ac_try_echo=$ac_try;;
23484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23485 (eval "$ac_compile") 2>conftest.er1
23487 grep -v '^ *+' conftest.er1 >conftest.err
23489 cat conftest.err >&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } && {
23492 test -z "$ac_c_werror_flag" ||
23493 test ! -s conftest.err
23494 } && test -s conftest.$ac_objext; then
23497 echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23500 ac_lo=`expr '(' $ac_mid ')' + 1`
23503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506 ?*) ac_cv_sizeof_char=$ac_lo;;
23507 '') if test "$ac_cv_type_char" = yes; then
23508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23509 See \`config.log' for more details." >&5
23510 echo "$as_me: error: cannot compute sizeof (char)
23511 See \`config.log' for more details." >&2;}
23512 { (exit 77); exit 77; }; }
23514 ac_cv_sizeof_char=0
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 typedef char ac__type_sizeof_;
23526 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23527 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23529 #include <stdlib.h>
23534 FILE *f = fopen ("conftest.val", "w");
23537 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23539 long int i = longval ();
23540 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23542 fprintf (f, "%ld\n", i);
23546 unsigned long int i = ulongval ();
23547 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23549 fprintf (f, "%lu\n", i);
23551 return ferror (f) || fclose (f) != 0;
23557 rm -f conftest$ac_exeext
23558 if { (ac_try="$ac_link"
23559 case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_link") 2>&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23568 { (case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_try") 2>&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); }; }; then
23577 ac_cv_sizeof_char=`cat conftest.val`
23579 echo "$as_me: program exited with status $ac_status" >&5
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ( exit $ac_status )
23584 if test "$ac_cv_type_char" = yes; then
23585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23586 See \`config.log' for more details." >&5
23587 echo "$as_me: error: cannot compute sizeof (char)
23588 See \`config.log' for more details." >&2;}
23589 { (exit 77); exit 77; }; }
23591 ac_cv_sizeof_char=0
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23598 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23599 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23603 cat >>confdefs.h <<_ACEOF
23604 #define SIZEOF_CHAR $ac_cv_sizeof_char
23608 { echo "$as_me:$LINENO: checking for short int" >&5
23609 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23610 if test "${ac_cv_type_short_int+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
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 short int ac__type_new_;
23624 if ((ac__type_new_ *) 0)
23626 if (sizeof (ac__type_new_))
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_cv_type_short_int=yes
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_type_short_int=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23660 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23662 # The cast to long int works around a bug in the HP C Compiler
23663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23665 # This bug is HP SR number 8606223364.
23666 { echo "$as_me:$LINENO: checking size of short int" >&5
23667 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23668 if test "${ac_cv_sizeof_short_int+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 if test "$cross_compiling" = yes; then
23672 # Depending upon the size, compute the lo and hi bounds.
23673 cat >conftest.$ac_ext <<_ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23679 $ac_includes_default
23680 typedef short int ac__type_sizeof_;
23684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23691 rm -f conftest.$ac_objext
23692 if { (ac_try="$ac_compile"
23693 case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_compile") 2>conftest.er1
23700 grep -v '^ *+' conftest.er1 >conftest.err
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest.$ac_objext; then
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 $ac_includes_default
23717 typedef short int ac__type_sizeof_;
23721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_compile") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest.$ac_objext; then
23745 ac_hi=$ac_mid; break
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ac_lo=`expr $ac_mid + 1`
23751 if test $ac_lo -le $ac_mid; then
23755 ac_mid=`expr 2 '*' $ac_mid + 1`
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23764 cat >conftest.$ac_ext <<_ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 $ac_includes_default
23771 typedef short int ac__type_sizeof_;
23775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23782 rm -f conftest.$ac_objext
23783 if { (ac_try="$ac_compile"
23784 case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_compile") 2>conftest.er1
23791 grep -v '^ *+' conftest.er1 >conftest.err
23793 cat conftest.err >&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } && {
23796 test -z "$ac_c_werror_flag" ||
23797 test ! -s conftest.err
23798 } && test -s conftest.$ac_objext; then
23801 cat >conftest.$ac_ext <<_ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 $ac_includes_default
23808 typedef short int ac__type_sizeof_;
23812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1 >conftest.err
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.$ac_objext; then
23836 ac_lo=$ac_mid; break
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ac_hi=`expr '(' $ac_mid ')' - 1`
23842 if test $ac_mid -le $ac_hi; then
23846 ac_mid=`expr 2 '*' $ac_mid`
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 # Binary search between lo and hi bounds.
23863 while test "x$ac_lo" != "x$ac_hi"; do
23864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23865 cat >conftest.$ac_ext <<_ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23871 $ac_includes_default
23872 typedef short int ac__type_sizeof_;
23876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23883 rm -f conftest.$ac_objext
23884 if { (ac_try="$ac_compile"
23885 case "(($ac_try" in
23886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890 (eval "$ac_compile") 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && {
23897 test -z "$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 } && test -s conftest.$ac_objext; then
23902 echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23905 ac_lo=`expr '(' $ac_mid ')' + 1`
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23911 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23912 '') if test "$ac_cv_type_short_int" = yes; then
23913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23914 See \`config.log' for more details." >&5
23915 echo "$as_me: error: cannot compute sizeof (short int)
23916 See \`config.log' for more details." >&2;}
23917 { (exit 77); exit 77; }; }
23919 ac_cv_sizeof_short_int=0
23923 cat >conftest.$ac_ext <<_ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 $ac_includes_default
23930 typedef short int ac__type_sizeof_;
23931 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23932 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23934 #include <stdlib.h>
23939 FILE *f = fopen ("conftest.val", "w");
23942 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23944 long int i = longval ();
23945 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23947 fprintf (f, "%ld\n", i);
23951 unsigned long int i = ulongval ();
23952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23954 fprintf (f, "%lu\n", i);
23956 return ferror (f) || fclose (f) != 0;
23962 rm -f conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_link") 2>&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23973 { (case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_try") 2>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 ac_cv_sizeof_short_int=`cat conftest.val`
23984 echo "$as_me: program exited with status $ac_status" >&5
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 ( exit $ac_status )
23989 if test "$ac_cv_type_short_int" = yes; then
23990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23991 See \`config.log' for more details." >&5
23992 echo "$as_me: error: cannot compute sizeof (short int)
23993 See \`config.log' for more details." >&2;}
23994 { (exit 77); exit 77; }; }
23996 ac_cv_sizeof_short_int=0
23999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24003 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24004 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24008 cat >>confdefs.h <<_ACEOF
24009 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24013 { echo "$as_me:$LINENO: checking for int" >&5
24014 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24015 if test "${ac_cv_type_int+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
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 int ac__type_new_;
24029 if ((ac__type_new_ *) 0)
24031 if (sizeof (ac__type_new_))
24037 rm -f conftest.$ac_objext
24038 if { (ac_try="$ac_compile"
24039 case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_compile") 2>conftest.er1
24046 grep -v '^ *+' conftest.er1 >conftest.err
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } && {
24051 test -z "$ac_c_werror_flag" ||
24052 test ! -s conftest.err
24053 } && test -s conftest.$ac_objext; then
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24065 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24067 # The cast to long int works around a bug in the HP C Compiler
24068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24070 # This bug is HP SR number 8606223364.
24071 { echo "$as_me:$LINENO: checking size of int" >&5
24072 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24073 if test "${ac_cv_sizeof_int+set}" = set; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24076 if test "$cross_compiling" = yes; then
24077 # Depending upon the size, compute the lo and hi bounds.
24078 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 $ac_includes_default
24085 typedef int ac__type_sizeof_;
24089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24115 cat >conftest.$ac_ext <<_ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 $ac_includes_default
24122 typedef int ac__type_sizeof_;
24126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_compile") 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } && {
24147 test -z "$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 } && test -s conftest.$ac_objext; then
24150 ac_hi=$ac_mid; break
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ac_lo=`expr $ac_mid + 1`
24156 if test $ac_lo -le $ac_mid; then
24160 ac_mid=`expr 2 '*' $ac_mid + 1`
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 cat >conftest.$ac_ext <<_ACEOF
24172 cat confdefs.h >>conftest.$ac_ext
24173 cat >>conftest.$ac_ext <<_ACEOF
24174 /* end confdefs.h. */
24175 $ac_includes_default
24176 typedef int ac__type_sizeof_;
24180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_compile") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && {
24201 test -z "$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest.$ac_objext; then
24206 cat >conftest.$ac_ext <<_ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24212 $ac_includes_default
24213 typedef int ac__type_sizeof_;
24217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_compile") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest.$ac_objext; then
24241 ac_lo=$ac_mid; break
24243 echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24246 ac_hi=`expr '(' $ac_mid ')' - 1`
24247 if test $ac_mid -le $ac_hi; then
24251 ac_mid=`expr 2 '*' $ac_mid`
24254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 # Binary search between lo and hi bounds.
24268 while test "x$ac_lo" != "x$ac_hi"; do
24269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24270 cat >conftest.$ac_ext <<_ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h. */
24276 $ac_includes_default
24277 typedef int ac__type_sizeof_;
24281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24288 rm -f conftest.$ac_objext
24289 if { (ac_try="$ac_compile"
24290 case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295 (eval "$ac_compile") 2>conftest.er1
24297 grep -v '^ *+' conftest.er1 >conftest.err
24299 cat conftest.err >&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } && {
24302 test -z "$ac_c_werror_flag" ||
24303 test ! -s conftest.err
24304 } && test -s conftest.$ac_objext; then
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 ac_lo=`expr '(' $ac_mid ')' + 1`
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 ?*) ac_cv_sizeof_int=$ac_lo;;
24317 '') if test "$ac_cv_type_int" = yes; then
24318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24319 See \`config.log' for more details." >&5
24320 echo "$as_me: error: cannot compute sizeof (int)
24321 See \`config.log' for more details." >&2;}
24322 { (exit 77); exit 77; }; }
24328 cat >conftest.$ac_ext <<_ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 $ac_includes_default
24335 typedef int ac__type_sizeof_;
24336 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24337 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24339 #include <stdlib.h>
24344 FILE *f = fopen ("conftest.val", "w");
24347 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24349 long int i = longval ();
24350 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24352 fprintf (f, "%ld\n", i);
24356 unsigned long int i = ulongval ();
24357 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24359 fprintf (f, "%lu\n", i);
24361 return ferror (f) || fclose (f) != 0;
24367 rm -f conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374 (eval "$ac_link") 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24378 { (case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383 (eval "$ac_try") 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 ac_cv_sizeof_int=`cat conftest.val`
24389 echo "$as_me: program exited with status $ac_status" >&5
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 ( exit $ac_status )
24394 if test "$ac_cv_type_int" = yes; then
24395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24396 See \`config.log' for more details." >&5
24397 echo "$as_me: error: cannot compute sizeof (int)
24398 See \`config.log' for more details." >&2;}
24399 { (exit 77); exit 77; }; }
24404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24408 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24409 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24413 cat >>confdefs.h <<_ACEOF
24414 #define SIZEOF_INT $ac_cv_sizeof_int
24418 { echo "$as_me:$LINENO: checking for long int" >&5
24419 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24420 if test "${ac_cv_type_long_int+set}" = set; then
24421 echo $ECHO_N "(cached) $ECHO_C" >&6
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 long int ac__type_new_;
24434 if ((ac__type_new_ *) 0)
24436 if (sizeof (ac__type_new_))
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_compile") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest.$ac_objext; then
24459 ac_cv_type_long_int=yes
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 ac_cv_type_long_int=no
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24469 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24470 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24472 # The cast to long int works around a bug in the HP C Compiler
24473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24475 # This bug is HP SR number 8606223364.
24476 { echo "$as_me:$LINENO: checking size of long int" >&5
24477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24478 if test "${ac_cv_sizeof_long_int+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 if test "$cross_compiling" = yes; then
24482 # Depending upon the size, compute the lo and hi bounds.
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 $ac_includes_default
24490 typedef long int ac__type_sizeof_;
24494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_compile") 2>conftest.er1
24510 grep -v '^ *+' conftest.er1 >conftest.err
24512 cat conftest.err >&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } && {
24515 test -z "$ac_c_werror_flag" ||
24516 test ! -s conftest.err
24517 } && test -s conftest.$ac_objext; then
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 $ac_includes_default
24527 typedef long int ac__type_sizeof_;
24531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24538 rm -f conftest.$ac_objext
24539 if { (ac_try="$ac_compile"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545 (eval "$ac_compile") 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } && {
24552 test -z "$ac_c_werror_flag" ||
24553 test ! -s conftest.err
24554 } && test -s conftest.$ac_objext; then
24555 ac_hi=$ac_mid; break
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 ac_lo=`expr $ac_mid + 1`
24561 if test $ac_lo -le $ac_mid; then
24565 ac_mid=`expr 2 '*' $ac_mid + 1`
24568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 $ac_includes_default
24581 typedef long int ac__type_sizeof_;
24585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_compile") 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } && {
24606 test -z "$ac_c_werror_flag" ||
24607 test ! -s conftest.err
24608 } && test -s conftest.$ac_objext; then
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24617 $ac_includes_default
24618 typedef long int ac__type_sizeof_;
24622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24629 rm -f conftest.$ac_objext
24630 if { (ac_try="$ac_compile"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_compile") 2>conftest.er1
24638 grep -v '^ *+' conftest.er1 >conftest.err
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } && {
24643 test -z "$ac_c_werror_flag" ||
24644 test ! -s conftest.err
24645 } && test -s conftest.$ac_objext; then
24646 ac_lo=$ac_mid; break
24648 echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24651 ac_hi=`expr '(' $ac_mid ')' - 1`
24652 if test $ac_mid -le $ac_hi; then
24656 ac_mid=`expr 2 '*' $ac_mid`
24659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 # Binary search between lo and hi bounds.
24673 while test "x$ac_lo" != "x$ac_hi"; do
24674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 $ac_includes_default
24682 typedef long int ac__type_sizeof_;
24686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24693 rm -f conftest.$ac_objext
24694 if { (ac_try="$ac_compile"
24695 case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700 (eval "$ac_compile") 2>conftest.er1
24702 grep -v '^ *+' conftest.er1 >conftest.err
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } && {
24707 test -z "$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 } && test -s conftest.$ac_objext; then
24712 echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24715 ac_lo=`expr '(' $ac_mid ')' + 1`
24718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24722 '') if test "$ac_cv_type_long_int" = yes; then
24723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24724 See \`config.log' for more details." >&5
24725 echo "$as_me: error: cannot compute sizeof (long int)
24726 See \`config.log' for more details." >&2;}
24727 { (exit 77); exit 77; }; }
24729 ac_cv_sizeof_long_int=0
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 $ac_includes_default
24740 typedef long int ac__type_sizeof_;
24741 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24742 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24744 #include <stdlib.h>
24749 FILE *f = fopen ("conftest.val", "w");
24752 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24754 long int i = longval ();
24755 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24757 fprintf (f, "%ld\n", i);
24761 unsigned long int i = ulongval ();
24762 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24764 fprintf (f, "%lu\n", i);
24766 return ferror (f) || fclose (f) != 0;
24772 rm -f conftest$ac_exeext
24773 if { (ac_try="$ac_link"
24774 case "(($ac_try" in
24775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776 *) ac_try_echo=$ac_try;;
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779 (eval "$ac_link") 2>&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24783 { (case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 (eval "$ac_try") 2>&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 ac_cv_sizeof_long_int=`cat conftest.val`
24794 echo "$as_me: program exited with status $ac_status" >&5
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 ( exit $ac_status )
24799 if test "$ac_cv_type_long_int" = yes; then
24800 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24801 See \`config.log' for more details." >&5
24802 echo "$as_me: error: cannot compute sizeof (long int)
24803 See \`config.log' for more details." >&2;}
24804 { (exit 77); exit 77; }; }
24806 ac_cv_sizeof_long_int=0
24809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24813 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24814 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24818 cat >>confdefs.h <<_ACEOF
24819 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24823 { echo "$as_me:$LINENO: checking for long long int" >&5
24824 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24825 if test "${ac_cv_type_long_long_int+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
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 long int ac__type_new_;
24839 if ((ac__type_new_ *) 0)
24841 if (sizeof (ac__type_new_))
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest.$ac_objext; then
24864 ac_cv_type_long_long_int=yes
24866 echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ac_cv_type_long_long_int=no
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24875 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24877 # The cast to long int works around a bug in the HP C Compiler
24878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24880 # This bug is HP SR number 8606223364.
24881 { echo "$as_me:$LINENO: checking size of long long int" >&5
24882 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24883 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24886 if test "$cross_compiling" = yes; then
24887 # Depending upon the size, compute the lo and hi bounds.
24888 cat >conftest.$ac_ext <<_ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24894 $ac_includes_default
24895 typedef long long int ac__type_sizeof_;
24899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 $ac_includes_default
24932 typedef long long int ac__type_sizeof_;
24936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24943 rm -f conftest.$ac_objext
24944 if { (ac_try="$ac_compile"
24945 case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_compile") 2>conftest.er1
24952 grep -v '^ *+' conftest.er1 >conftest.err
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } && {
24957 test -z "$ac_c_werror_flag" ||
24958 test ! -s conftest.err
24959 } && test -s conftest.$ac_objext; then
24960 ac_hi=$ac_mid; break
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 ac_lo=`expr $ac_mid + 1`
24966 if test $ac_lo -le $ac_mid; then
24970 ac_mid=`expr 2 '*' $ac_mid + 1`
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24979 cat >conftest.$ac_ext <<_ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24985 $ac_includes_default
24986 typedef long long int ac__type_sizeof_;
24990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_compile") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest.$ac_objext; then
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 $ac_includes_default
25023 typedef long long int ac__type_sizeof_;
25027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041 (eval "$ac_compile") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest.$ac_objext; then
25051 ac_lo=$ac_mid; break
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_hi=`expr '(' $ac_mid ')' - 1`
25057 if test $ac_mid -le $ac_hi; then
25061 ac_mid=`expr 2 '*' $ac_mid`
25064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077 # Binary search between lo and hi bounds.
25078 while test "x$ac_lo" != "x$ac_hi"; do
25079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 $ac_includes_default
25087 typedef long long int ac__type_sizeof_;
25091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25098 rm -f conftest.$ac_objext
25099 if { (ac_try="$ac_compile"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_compile") 2>conftest.er1
25107 grep -v '^ *+' conftest.er1 >conftest.err
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest.$ac_objext; then
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25120 ac_lo=`expr '(' $ac_mid ')' + 1`
25123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25126 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25127 '') if test "$ac_cv_type_long_long_int" = yes; then
25128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25129 See \`config.log' for more details." >&5
25130 echo "$as_me: error: cannot compute sizeof (long long int)
25131 See \`config.log' for more details." >&2;}
25132 { (exit 77); exit 77; }; }
25134 ac_cv_sizeof_long_long_int=0
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 $ac_includes_default
25145 typedef long long int ac__type_sizeof_;
25146 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25147 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25149 #include <stdlib.h>
25154 FILE *f = fopen ("conftest.val", "w");
25157 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25159 long int i = longval ();
25160 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25162 fprintf (f, "%ld\n", i);
25166 unsigned long int i = ulongval ();
25167 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25169 fprintf (f, "%lu\n", i);
25171 return ferror (f) || fclose (f) != 0;
25177 rm -f conftest$ac_exeext
25178 if { (ac_try="$ac_link"
25179 case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_link") 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25188 { (case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193 (eval "$ac_try") 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_sizeof_long_long_int=`cat conftest.val`
25199 echo "$as_me: program exited with status $ac_status" >&5
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 ( exit $ac_status )
25204 if test "$ac_cv_type_long_long_int" = yes; then
25205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25206 See \`config.log' for more details." >&5
25207 echo "$as_me: error: cannot compute sizeof (long long int)
25208 See \`config.log' for more details." >&2;}
25209 { (exit 77); exit 77; }; }
25211 ac_cv_sizeof_long_long_int=0
25214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25218 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25219 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25223 cat >>confdefs.h <<_ACEOF
25224 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25228 { echo "$as_me:$LINENO: checking for int *" >&5
25229 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25230 if test "${ac_cv_type_int_p+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
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 int * ac__type_new_;
25244 if ((ac__type_new_ *) 0)
25246 if (sizeof (ac__type_new_))
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259 (eval "$ac_compile") 2>conftest.er1
25261 grep -v '^ *+' conftest.er1 >conftest.err
25263 cat conftest.err >&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } && {
25266 test -z "$ac_c_werror_flag" ||
25267 test ! -s conftest.err
25268 } && test -s conftest.$ac_objext; then
25269 ac_cv_type_int_p=yes
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25274 ac_cv_type_int_p=no
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25280 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25282 # The cast to long int works around a bug in the HP C Compiler
25283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25285 # This bug is HP SR number 8606223364.
25286 { echo "$as_me:$LINENO: checking size of int *" >&5
25287 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25288 if test "${ac_cv_sizeof_int_p+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 if test "$cross_compiling" = yes; then
25292 # Depending upon the size, compute the lo and hi bounds.
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25299 $ac_includes_default
25300 typedef int * ac__type_sizeof_;
25304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318 (eval "$ac_compile") 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } && {
25325 test -z "$ac_c_werror_flag" ||
25326 test ! -s conftest.err
25327 } && test -s conftest.$ac_objext; then
25330 cat >conftest.$ac_ext <<_ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h. */
25336 $ac_includes_default
25337 typedef int * ac__type_sizeof_;
25341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25365 ac_hi=$ac_mid; break
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_lo=`expr $ac_mid + 1`
25371 if test $ac_lo -le $ac_mid; then
25375 ac_mid=`expr 2 '*' $ac_mid + 1`
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 $ac_includes_default
25391 typedef int * ac__type_sizeof_;
25395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409 (eval "$ac_compile") 2>conftest.er1
25411 grep -v '^ *+' conftest.er1 >conftest.err
25413 cat conftest.err >&5
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } && {
25416 test -z "$ac_c_werror_flag" ||
25417 test ! -s conftest.err
25418 } && test -s conftest.$ac_objext; then
25421 cat >conftest.$ac_ext <<_ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h. */
25427 $ac_includes_default
25428 typedef int * ac__type_sizeof_;
25432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25439 rm -f conftest.$ac_objext
25440 if { (ac_try="$ac_compile"
25441 case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25446 (eval "$ac_compile") 2>conftest.er1
25448 grep -v '^ *+' conftest.er1 >conftest.err
25450 cat conftest.err >&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); } && {
25453 test -z "$ac_c_werror_flag" ||
25454 test ! -s conftest.err
25455 } && test -s conftest.$ac_objext; then
25456 ac_lo=$ac_mid; break
25458 echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25461 ac_hi=`expr '(' $ac_mid ')' - 1`
25462 if test $ac_mid -le $ac_hi; then
25466 ac_mid=`expr 2 '*' $ac_mid`
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 # Binary search between lo and hi bounds.
25483 while test "x$ac_lo" != "x$ac_hi"; do
25484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 $ac_includes_default
25492 typedef int * ac__type_sizeof_;
25496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25503 rm -f conftest.$ac_objext
25504 if { (ac_try="$ac_compile"
25505 case "(($ac_try" in
25506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25507 *) ac_try_echo=$ac_try;;
25509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25510 (eval "$ac_compile") 2>conftest.er1
25512 grep -v '^ *+' conftest.er1 >conftest.err
25514 cat conftest.err >&5
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } && {
25517 test -z "$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25519 } && test -s conftest.$ac_objext; then
25522 echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_lo=`expr '(' $ac_mid ')' + 1`
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25532 '') if test "$ac_cv_type_int_p" = yes; then
25533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25534 See \`config.log' for more details." >&5
25535 echo "$as_me: error: cannot compute sizeof (int *)
25536 See \`config.log' for more details." >&2;}
25537 { (exit 77); exit 77; }; }
25539 ac_cv_sizeof_int_p=0
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549 $ac_includes_default
25550 typedef int * ac__type_sizeof_;
25551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25554 #include <stdlib.h>
25559 FILE *f = fopen ("conftest.val", "w");
25562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25564 long int i = longval ();
25565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25567 fprintf (f, "%ld\n", i);
25571 unsigned long int i = ulongval ();
25572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25574 fprintf (f, "%lu\n", i);
25576 return ferror (f) || fclose (f) != 0;
25582 rm -f conftest$ac_exeext
25583 if { (ac_try="$ac_link"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_link") 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593 { (case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598 (eval "$ac_try") 2>&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 ac_cv_sizeof_int_p=`cat conftest.val`
25604 echo "$as_me: program exited with status $ac_status" >&5
25605 echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25608 ( exit $ac_status )
25609 if test "$ac_cv_type_int_p" = yes; then
25610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25611 See \`config.log' for more details." >&5
25612 echo "$as_me: error: cannot compute sizeof (int *)
25613 See \`config.log' for more details." >&2;}
25614 { (exit 77); exit 77; }; }
25616 ac_cv_sizeof_int_p=0
25619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25624 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25628 cat >>confdefs.h <<_ACEOF
25629 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25634 # Check for sys/types.h types
25635 { echo "$as_me:$LINENO: checking for u_int type" >&5
25636 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25637 if test "${ac_cv_have_u_int+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25641 cat >conftest.$ac_ext <<_ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h. */
25647 #include <sys/types.h>
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
25673 ac_cv_have_u_int="yes"
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 ac_cv_have_u_int="no"
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25686 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25687 if test "x$ac_cv_have_u_int" = "xyes" ; then
25688 cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_U_INT 1
25695 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25696 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25697 if test "${ac_cv_have_intmax_t+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 #include <sys/types.h>
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_compile") 2>conftest.er1
25725 grep -v '^ *+' conftest.er1 >conftest.err
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } && {
25730 test -z "$ac_c_werror_flag" ||
25731 test ! -s conftest.err
25732 } && test -s conftest.$ac_objext; then
25733 ac_cv_have_intmax_t="yes"
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25745 #include <stdint.h>
25754 rm -f conftest.$ac_objext
25755 if { (ac_try="$ac_compile"
25756 case "(($ac_try" in
25757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758 *) ac_try_echo=$ac_try;;
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761 (eval "$ac_compile") 2>conftest.er1
25763 grep -v '^ *+' conftest.er1 >conftest.err
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest.$ac_objext; then
25771 ac_cv_have_intmax_t="yes"
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 ac_cv_have_intmax_t="no"
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25789 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25790 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25791 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_INTMAX_T 1
25800 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25801 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25802 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 cat >conftest.$ac_ext <<_ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h. */
25812 #include <sys/types.h>
25816 u_intmax_t a; a = 1;
25821 rm -f conftest.$ac_objext
25822 if { (ac_try="$ac_compile"
25823 case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828 (eval "$ac_compile") 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && {
25835 test -z "$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25837 } && test -s conftest.$ac_objext; then
25838 ac_cv_have_u_intmax_t="yes"
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <stdint.h>
25854 u_intmax_t a; a = 1;
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_compile") 2>conftest.er1
25868 grep -v '^ *+' conftest.er1 >conftest.err
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } && {
25873 test -z "$ac_c_werror_flag" ||
25874 test ! -s conftest.err
25875 } && test -s conftest.$ac_objext; then
25876 ac_cv_have_u_intmax_t="yes"
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ac_cv_have_u_intmax_t="no"
25885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25893 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25894 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25896 cat >>confdefs.h <<\_ACEOF
25897 #define HAVE_U_INTMAX_T 1
25904 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25905 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25906 if test "${ac_cv_have_intxx_t+set}" = set; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 #include <sys/types.h>
25920 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25925 rm -f conftest.$ac_objext
25926 if { (ac_try="$ac_compile"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932 (eval "$ac_compile") 2>conftest.er1
25934 grep -v '^ *+' conftest.er1 >conftest.err
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } && {
25939 test -z "$ac_c_werror_flag" ||
25940 test ! -s conftest.err
25941 } && test -s conftest.$ac_objext; then
25942 ac_cv_have_intxx_t="yes"
25944 echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25947 ac_cv_have_intxx_t="no"
25951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25954 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25955 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25956 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25957 cat >>confdefs.h <<\_ACEOF
25958 #define HAVE_INTXX_T 1
25964 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25965 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25966 if test "${ac_cv_have_int64_t+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 #include <sys/types.h>
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_compile") 2>conftest.er1
25994 grep -v '^ *+' conftest.er1 >conftest.err
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } && {
25999 test -z "$ac_c_werror_flag" ||
26000 test ! -s conftest.err
26001 } && test -s conftest.$ac_objext; then
26002 ac_cv_have_int64_t="yes"
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 ac_cv_have_int64_t="no"
26011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26014 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26015 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26016 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26017 cat >>confdefs.h <<\_ACEOF
26018 #define HAVE_INT64_T 1
26024 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26025 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26026 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26030 cat >conftest.$ac_ext <<_ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h. */
26036 #include <sys/types.h>
26040 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26045 rm -f conftest.$ac_objext
26046 if { (ac_try="$ac_compile"
26047 case "(($ac_try" in
26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049 *) ac_try_echo=$ac_try;;
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052 (eval "$ac_compile") 2>conftest.er1
26054 grep -v '^ *+' conftest.er1 >conftest.err
26056 cat conftest.err >&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } && {
26059 test -z "$ac_c_werror_flag" ||
26060 test ! -s conftest.err
26061 } && test -s conftest.$ac_objext; then
26062 ac_cv_have_u_intxx_t="yes"
26064 echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26067 ac_cv_have_u_intxx_t="no"
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26075 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26076 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26077 cat >>confdefs.h <<\_ACEOF
26078 #define HAVE_U_INTXX_T 1
26084 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26085 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26086 if test "${ac_cv_have_u_int64_t+set}" = set; then
26087 echo $ECHO_N "(cached) $ECHO_C" >&6
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 #include <sys/types.h>
26100 u_int64_t a; a = 1;
26105 rm -f conftest.$ac_objext
26106 if { (ac_try="$ac_compile"
26107 case "(($ac_try" in
26108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109 *) ac_try_echo=$ac_try;;
26111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26112 (eval "$ac_compile") 2>conftest.er1
26114 grep -v '^ *+' conftest.er1 >conftest.err
26116 cat conftest.err >&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } && {
26119 test -z "$ac_c_werror_flag" ||
26120 test ! -s conftest.err
26121 } && test -s conftest.$ac_objext; then
26122 ac_cv_have_u_int64_t="yes"
26124 echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.$ac_ext >&5
26127 ac_cv_have_u_int64_t="no"
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26135 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26136 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26137 cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_U_INT64_T 1
26144 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26145 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26147 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26148 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 #include <sys/bitypes.h>
26159 int8_t a; int16_t b; int32_t c;
26160 u_int8_t e; u_int16_t f; u_int32_t g;
26161 a = b = c = e = f = g = 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 cat >>confdefs.h <<\_ACEOF
26184 #define HAVE_U_INTXX_T 1
26187 cat >>confdefs.h <<\_ACEOF
26188 #define HAVE_INTXX_T 1
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_SYS_BITYPES_H 1
26195 { echo "$as_me:$LINENO: result: yes" >&5
26196 echo "${ECHO_T}yes" >&6; }
26198 echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26201 { echo "$as_me:$LINENO: result: no" >&5
26202 echo "${ECHO_T}no" >&6; }
26206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209 if test -z "$have_u_intxx_t" ; then
26210 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26211 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26212 if test "${ac_cv_have_uintxx_t+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222 #include <sys/types.h>
26226 uint8_t a; uint16_t b;
26227 uint32_t c; a = b = c = 1;
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236 *) ac_try_echo=$ac_try;;
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239 (eval "$ac_compile") 2>conftest.er1
26241 grep -v '^ *+' conftest.er1 >conftest.err
26243 cat conftest.err >&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } && {
26246 test -z "$ac_c_werror_flag" ||
26247 test ! -s conftest.err
26248 } && test -s conftest.$ac_objext; then
26249 ac_cv_have_uintxx_t="yes"
26251 echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26254 ac_cv_have_uintxx_t="no"
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26261 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26262 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26263 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26264 cat >>confdefs.h <<\_ACEOF
26265 #define HAVE_UINTXX_T 1
26271 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26272 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26274 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26275 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 #include <sys/bitypes.h>
26286 int64_t a; u_int64_t b;
26292 rm -f conftest.$ac_objext
26293 if { (ac_try="$ac_compile"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299 (eval "$ac_compile") 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } && {
26306 test -z "$ac_c_werror_flag" ||
26307 test ! -s conftest.err
26308 } && test -s conftest.$ac_objext; then
26309 cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_U_INT64_T 1
26313 cat >>confdefs.h <<\_ACEOF
26314 #define HAVE_INT64_T 1
26317 { echo "$as_me:$LINENO: result: yes" >&5
26318 echo "${ECHO_T}yes" >&6; }
26320 echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26323 { echo "$as_me:$LINENO: result: no" >&5
26324 echo "${ECHO_T}no" >&6; }
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331 if (test -z "$have_uintxx_t" && \
26332 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26334 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26335 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 #include <sys/bitypes.h>
26346 uint8_t a; uint16_t b;
26347 uint32_t c; a = b = c = 1;
26352 rm -f conftest.$ac_objext
26353 if { (ac_try="$ac_compile"
26354 case "(($ac_try" in
26355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356 *) ac_try_echo=$ac_try;;
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359 (eval "$ac_compile") 2>conftest.er1
26361 grep -v '^ *+' conftest.er1 >conftest.err
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } && {
26366 test -z "$ac_c_werror_flag" ||
26367 test ! -s conftest.err
26368 } && test -s conftest.$ac_objext; then
26369 cat >>confdefs.h <<\_ACEOF
26370 #define HAVE_UINTXX_T 1
26373 { echo "$as_me:$LINENO: result: yes" >&5
26374 echo "${ECHO_T}yes" >&6; }
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 { echo "$as_me:$LINENO: result: no" >&5
26380 echo "${ECHO_T}no" >&6; }
26384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 cat >conftest.$ac_ext <<_ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26434 #define $ac_func innocuous_$ac_func
26436 /* System header to define __stub macros and hopefully few prototypes,
26437 which can conflict with char $ac_func (); below.
26438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26439 <limits.h> exists even on freestanding compilers. */
26442 # include <limits.h>
26444 # include <assert.h>
26449 /* Override any GCC internal prototype to avoid an error.
26450 Use char because int might match the return type of a GCC
26451 builtin and then its argument prototype would still apply. */
26456 /* The GNU C library defines this for functions which it implements
26457 to always fail with ENOSYS. Some functions are actually named
26458 something starting with __ and the normal name is an alias. */
26459 #if defined __stub_$ac_func || defined __stub___$ac_func
26466 return $ac_func ();
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_link") 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } && {
26485 test -z "$ac_c_werror_flag" ||
26486 test ! -s conftest.err
26487 } && test -s conftest$ac_exeext &&
26488 $as_test_x conftest$ac_exeext; then
26489 eval "$as_ac_var=yes"
26491 echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26494 eval "$as_ac_var=no"
26497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26498 conftest$ac_exeext conftest.$ac_ext
26500 ac_res=`eval echo '${'$as_ac_var'}'`
26501 { echo "$as_me:$LINENO: result: $ac_res" >&5
26502 echo "${ECHO_T}$ac_res" >&6; }
26503 if test `eval echo '${'$as_ac_var'}'` = yes; then
26504 cat >>confdefs.h <<_ACEOF
26505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26509 echo 'configure: cannot find needed function.'; exit 1
26516 for ac_func in fchdir
26518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26532 #define $ac_func innocuous_$ac_func
26534 /* System header to define __stub macros and hopefully few prototypes,
26535 which can conflict with char $ac_func (); below.
26536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26537 <limits.h> exists even on freestanding compilers. */
26540 # include <limits.h>
26542 # include <assert.h>
26547 /* Override any GCC internal prototype to avoid an error.
26548 Use char because int might match the return type of a GCC
26549 builtin and then its argument prototype would still apply. */
26554 /* The GNU C library defines this for functions which it implements
26555 to always fail with ENOSYS. Some functions are actually named
26556 something starting with __ and the normal name is an alias. */
26557 #if defined __stub_$ac_func || defined __stub___$ac_func
26564 return $ac_func ();
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573 *) ac_try_echo=$ac_try;;
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576 (eval "$ac_link") 2>conftest.er1
26578 grep -v '^ *+' conftest.er1 >conftest.err
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } && {
26583 test -z "$ac_c_werror_flag" ||
26584 test ! -s conftest.err
26585 } && test -s conftest$ac_exeext &&
26586 $as_test_x conftest$ac_exeext; then
26587 eval "$as_ac_var=yes"
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 eval "$as_ac_var=no"
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596 conftest$ac_exeext conftest.$ac_ext
26598 ac_res=`eval echo '${'$as_ac_var'}'`
26599 { echo "$as_me:$LINENO: result: $ac_res" >&5
26600 echo "${ECHO_T}$ac_res" >&6; }
26601 if test `eval echo '${'$as_ac_var'}'` = yes; then
26602 cat >>confdefs.h <<_ACEOF
26603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26605 cat >>confdefs.h <<\_ACEOF
26606 #define HAVE_FCHDIR 1
26613 for ac_func in strtoll
26615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26619 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26629 #define $ac_func innocuous_$ac_func
26631 /* System header to define __stub macros and hopefully few prototypes,
26632 which can conflict with char $ac_func (); below.
26633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26634 <limits.h> exists even on freestanding compilers. */
26637 # include <limits.h>
26639 # include <assert.h>
26644 /* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply. */
26651 /* The GNU C library defines this for functions which it implements
26652 to always fail with ENOSYS. Some functions are actually named
26653 something starting with __ and the normal name is an alias. */
26654 #if defined __stub_$ac_func || defined __stub___$ac_func
26661 return $ac_func ();
26666 rm -f conftest.$ac_objext conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673 (eval "$ac_link") 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest$ac_exeext &&
26683 $as_test_x conftest$ac_exeext; then
26684 eval "$as_ac_var=yes"
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 eval "$as_ac_var=no"
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693 conftest$ac_exeext conftest.$ac_ext
26695 ac_res=`eval echo '${'$as_ac_var'}'`
26696 { echo "$as_me:$LINENO: result: $ac_res" >&5
26697 echo "${ECHO_T}$ac_res" >&6; }
26698 if test `eval echo '${'$as_ac_var'}'` = yes; then
26699 cat >>confdefs.h <<_ACEOF
26700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26702 cat >>confdefs.h <<\_ACEOF
26703 #define HAVE_STRTOLL 1
26710 for ac_func in posix_fadvise
26712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26718 cat >conftest.$ac_ext <<_ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26726 #define $ac_func innocuous_$ac_func
26728 /* System header to define __stub macros and hopefully few prototypes,
26729 which can conflict with char $ac_func (); below.
26730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26731 <limits.h> exists even on freestanding compilers. */
26734 # include <limits.h>
26736 # include <assert.h>
26741 /* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26748 /* The GNU C library defines this for functions which it implements
26749 to always fail with ENOSYS. Some functions are actually named
26750 something starting with __ and the normal name is an alias. */
26751 #if defined __stub_$ac_func || defined __stub___$ac_func
26758 return $ac_func ();
26763 rm -f conftest.$ac_objext conftest$ac_exeext
26764 if { (ac_try="$ac_link"
26765 case "(($ac_try" in
26766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767 *) ac_try_echo=$ac_try;;
26769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26770 (eval "$ac_link") 2>conftest.er1
26772 grep -v '^ *+' conftest.er1 >conftest.err
26774 cat conftest.err >&5
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); } && {
26777 test -z "$ac_c_werror_flag" ||
26778 test ! -s conftest.err
26779 } && test -s conftest$ac_exeext &&
26780 $as_test_x conftest$ac_exeext; then
26781 eval "$as_ac_var=yes"
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 eval "$as_ac_var=no"
26789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26790 conftest$ac_exeext conftest.$ac_ext
26792 ac_res=`eval echo '${'$as_ac_var'}'`
26793 { echo "$as_me:$LINENO: result: $ac_res" >&5
26794 echo "${ECHO_T}$ac_res" >&6; }
26795 if test `eval echo '${'$as_ac_var'}'` = yes; then
26796 cat >>confdefs.h <<_ACEOF
26797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26804 for ac_func in fdatasync
26806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26820 #define $ac_func innocuous_$ac_func
26822 /* System header to define __stub macros and hopefully few prototypes,
26823 which can conflict with char $ac_func (); below.
26824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26825 <limits.h> exists even on freestanding compilers. */
26828 # include <limits.h>
26830 # include <assert.h>
26835 /* Override any GCC internal prototype to avoid an error.
26836 Use char because int might match the return type of a GCC
26837 builtin and then its argument prototype would still apply. */
26842 /* The GNU C library defines this for functions which it implements
26843 to always fail with ENOSYS. Some functions are actually named
26844 something starting with __ and the normal name is an alias. */
26845 #if defined __stub_$ac_func || defined __stub___$ac_func
26852 return $ac_func ();
26857 rm -f conftest.$ac_objext conftest$ac_exeext
26858 if { (ac_try="$ac_link"
26859 case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864 (eval "$ac_link") 2>conftest.er1
26866 grep -v '^ *+' conftest.er1 >conftest.err
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } && {
26871 test -z "$ac_c_werror_flag" ||
26872 test ! -s conftest.err
26873 } && test -s conftest$ac_exeext &&
26874 $as_test_x conftest$ac_exeext; then
26875 eval "$as_ac_var=yes"
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26880 eval "$as_ac_var=no"
26883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26884 conftest$ac_exeext conftest.$ac_ext
26886 ac_res=`eval echo '${'$as_ac_var'}'`
26887 { echo "$as_me:$LINENO: result: $ac_res" >&5
26888 echo "${ECHO_T}$ac_res" >&6; }
26889 if test `eval echo '${'$as_ac_var'}'` = yes; then
26890 cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26899 for ac_func in chflags
26901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26907 cat >conftest.$ac_ext <<_ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h. */
26913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26915 #define $ac_func innocuous_$ac_func
26917 /* System header to define __stub macros and hopefully few prototypes,
26918 which can conflict with char $ac_func (); below.
26919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26920 <limits.h> exists even on freestanding compilers. */
26923 # include <limits.h>
26925 # include <assert.h>
26930 /* Override any GCC internal prototype to avoid an error.
26931 Use char because int might match the return type of a GCC
26932 builtin and then its argument prototype would still apply. */
26937 /* The GNU C library defines this for functions which it implements
26938 to always fail with ENOSYS. Some functions are actually named
26939 something starting with __ and the normal name is an alias. */
26940 #if defined __stub_$ac_func || defined __stub___$ac_func
26947 return $ac_func ();
26952 rm -f conftest.$ac_objext conftest$ac_exeext
26953 if { (ac_try="$ac_link"
26954 case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_link") 2>conftest.er1
26961 grep -v '^ *+' conftest.er1 >conftest.err
26963 cat conftest.err >&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); } && {
26966 test -z "$ac_c_werror_flag" ||
26967 test ! -s conftest.err
26968 } && test -s conftest$ac_exeext &&
26969 $as_test_x conftest$ac_exeext; then
26970 eval "$as_ac_var=yes"
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 eval "$as_ac_var=no"
26978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26979 conftest$ac_exeext conftest.$ac_ext
26981 ac_res=`eval echo '${'$as_ac_var'}'`
26982 { echo "$as_me:$LINENO: result: $ac_res" >&5
26983 echo "${ECHO_T}$ac_res" >&6; }
26984 if test `eval echo '${'$as_ac_var'}'` = yes; then
26985 cat >>confdefs.h <<_ACEOF
26986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26997 for ac_func in snprintf vsnprintf gethostid fseeko
26999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 cat >conftest.$ac_ext <<_ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h. */
27011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27013 #define $ac_func innocuous_$ac_func
27015 /* System header to define __stub macros and hopefully few prototypes,
27016 which can conflict with char $ac_func (); below.
27017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27018 <limits.h> exists even on freestanding compilers. */
27021 # include <limits.h>
27023 # include <assert.h>
27028 /* Override any GCC internal prototype to avoid an error.
27029 Use char because int might match the return type of a GCC
27030 builtin and then its argument prototype would still apply. */
27035 /* The GNU C library defines this for functions which it implements
27036 to always fail with ENOSYS. Some functions are actually named
27037 something starting with __ and the normal name is an alias. */
27038 #if defined __stub_$ac_func || defined __stub___$ac_func
27045 return $ac_func ();
27050 rm -f conftest.$ac_objext conftest$ac_exeext
27051 if { (ac_try="$ac_link"
27052 case "(($ac_try" in
27053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057 (eval "$ac_link") 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } && {
27064 test -z "$ac_c_werror_flag" ||
27065 test ! -s conftest.err
27066 } && test -s conftest$ac_exeext &&
27067 $as_test_x conftest$ac_exeext; then
27068 eval "$as_ac_var=yes"
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 eval "$as_ac_var=no"
27076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27077 conftest$ac_exeext conftest.$ac_ext
27079 ac_res=`eval echo '${'$as_ac_var'}'`
27080 { echo "$as_me:$LINENO: result: $ac_res" >&5
27081 echo "${ECHO_T}$ac_res" >&6; }
27082 if test `eval echo '${'$as_ac_var'}'` = yes; then
27083 cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27091 { echo "$as_me:$LINENO: checking for va_copy" >&5
27092 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27093 if test "${ba_cv_va_copy+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27103 #include <stdarg.h>
27104 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27105 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27110 call_use_va_copy(1,2,3)
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (ac_try="$ac_link"
27117 case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_link") 2>conftest.er1
27124 grep -v '^ *+' conftest.er1 >conftest.err
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } && {
27129 test -z "$ac_c_werror_flag" ||
27130 test ! -s conftest.err
27131 } && test -s conftest$ac_exeext &&
27132 $as_test_x conftest$ac_exeext; then
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27142 conftest$ac_exeext conftest.$ac_ext
27144 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27145 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27146 test $ba_cv_va_copy = yes &&
27147 cat >>confdefs.h <<\_ACEOF
27148 #define HAVE_VA_COPY 1
27157 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27173 #define $ac_func innocuous_$ac_func
27175 /* System header to define __stub macros and hopefully few prototypes,
27176 which can conflict with char $ac_func (); below.
27177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27178 <limits.h> exists even on freestanding compilers. */
27181 # include <limits.h>
27183 # include <assert.h>
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27195 /* The GNU C library defines this for functions which it implements
27196 to always fail with ENOSYS. Some functions are actually named
27197 something starting with __ and the normal name is an alias. */
27198 #if defined __stub_$ac_func || defined __stub___$ac_func
27205 return $ac_func ();
27210 rm -f conftest.$ac_objext conftest$ac_exeext
27211 if { (ac_try="$ac_link"
27212 case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_link") 2>conftest.er1
27219 grep -v '^ *+' conftest.er1 >conftest.err
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } && {
27224 test -z "$ac_c_werror_flag" ||
27225 test ! -s conftest.err
27226 } && test -s conftest$ac_exeext &&
27227 $as_test_x conftest$ac_exeext; then
27228 eval "$as_ac_var=yes"
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27233 eval "$as_ac_var=no"
27236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27237 conftest$ac_exeext conftest.$ac_ext
27239 ac_res=`eval echo '${'$as_ac_var'}'`
27240 { echo "$as_me:$LINENO: result: $ac_res" >&5
27241 echo "${ECHO_T}$ac_res" >&6; }
27242 if test `eval echo '${'$as_ac_var'}'` = yes; then
27243 cat >>confdefs.h <<_ACEOF
27244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27251 # If resolver functions are not in libc check for -lnsl or -lresolv.
27252 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27253 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27254 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27265 #define gethostbyname_r innocuous_gethostbyname_r
27267 /* System header to define __stub macros and hopefully few prototypes,
27268 which can conflict with char gethostbyname_r (); below.
27269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27270 <limits.h> exists even on freestanding compilers. */
27273 # include <limits.h>
27275 # include <assert.h>
27278 #undef gethostbyname_r
27280 /* Override any GCC internal prototype to avoid an error.
27281 Use char because int might match the return type of a GCC
27282 builtin and then its argument prototype would still apply. */
27286 char gethostbyname_r ();
27287 /* The GNU C library defines this for functions which it implements
27288 to always fail with ENOSYS. Some functions are actually named
27289 something starting with __ and the normal name is an alias. */
27290 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27297 return gethostbyname_r ();
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (ac_try="$ac_link"
27304 case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_link") 2>conftest.er1
27311 grep -v '^ *+' conftest.er1 >conftest.err
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } && {
27316 test -z "$ac_c_werror_flag" ||
27317 test ! -s conftest.err
27318 } && test -s conftest$ac_exeext &&
27319 $as_test_x conftest$ac_exeext; then
27320 ac_cv_func_gethostbyname_r=yes
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27325 ac_cv_func_gethostbyname_r=no
27328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27329 conftest$ac_exeext conftest.$ac_ext
27331 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27332 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27333 if test $ac_cv_func_gethostbyname_r = yes; then
27334 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27335 echo "${ECHO_T}using libc's resolver" >&6; }
27338 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27339 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27340 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 ac_check_lib_save_LIBS=$LIBS
27345 cat >conftest.$ac_ext <<_ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27352 /* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
27358 char gethostbyname_r ();
27362 return gethostbyname_r ();
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (ac_try="$ac_link"
27369 case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_link") 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } && {
27381 test -z "$ac_c_werror_flag" ||
27382 test ! -s conftest.err
27383 } && test -s conftest$ac_exeext &&
27384 $as_test_x conftest$ac_exeext; then
27385 ac_cv_lib_nsl_gethostbyname_r=yes
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ac_cv_lib_nsl_gethostbyname_r=no
27393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27394 conftest$ac_exeext conftest.$ac_ext
27395 LIBS=$ac_check_lib_save_LIBS
27397 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27398 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27399 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27400 cat >>confdefs.h <<_ACEOF
27401 #define HAVE_LIBNSL 1
27409 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27410 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27411 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27414 ac_check_lib_save_LIBS=$LIBS
27415 LIBS="-lresolv $LIBS"
27416 cat >conftest.$ac_ext <<_ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27423 /* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27429 char gethostbyname_r ();
27433 return gethostbyname_r ();
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_link") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_c_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest$ac_exeext &&
27455 $as_test_x conftest$ac_exeext; then
27456 ac_cv_lib_resolv_gethostbyname_r=yes
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 ac_cv_lib_resolv_gethostbyname_r=no
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465 conftest$ac_exeext conftest.$ac_ext
27466 LIBS=$ac_check_lib_save_LIBS
27468 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27469 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27470 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27471 cat >>confdefs.h <<_ACEOF
27472 #define HAVE_LIBRESOLV 1
27475 LIBS="-lresolv $LIBS"
27485 for ac_func in inet_pton
27487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27501 #define $ac_func innocuous_$ac_func
27503 /* System header to define __stub macros and hopefully few prototypes,
27504 which can conflict with char $ac_func (); below.
27505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27506 <limits.h> exists even on freestanding compilers. */
27509 # include <limits.h>
27511 # include <assert.h>
27516 /* Override any GCC internal prototype to avoid an error.
27517 Use char because int might match the return type of a GCC
27518 builtin and then its argument prototype would still apply. */
27523 /* The GNU C library defines this for functions which it implements
27524 to always fail with ENOSYS. Some functions are actually named
27525 something starting with __ and the normal name is an alias. */
27526 #if defined __stub_$ac_func || defined __stub___$ac_func
27533 return $ac_func ();
27538 rm -f conftest.$ac_objext conftest$ac_exeext
27539 if { (ac_try="$ac_link"
27540 case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545 (eval "$ac_link") 2>conftest.er1
27547 grep -v '^ *+' conftest.er1 >conftest.err
27549 cat conftest.err >&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && {
27552 test -z "$ac_c_werror_flag" ||
27553 test ! -s conftest.err
27554 } && test -s conftest$ac_exeext &&
27555 $as_test_x conftest$ac_exeext; then
27556 eval "$as_ac_var=yes"
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27561 eval "$as_ac_var=no"
27564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27565 conftest$ac_exeext conftest.$ac_ext
27567 ac_res=`eval echo '${'$as_ac_var'}'`
27568 { echo "$as_me:$LINENO: result: $ac_res" >&5
27569 echo "${ECHO_T}$ac_res" >&6; }
27570 if test `eval echo '${'$as_ac_var'}'` = yes; then
27571 cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27574 cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_INET_PTON 1
27582 for ac_func in inet_ntop
27584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27598 #define $ac_func innocuous_$ac_func
27600 /* System header to define __stub macros and hopefully few prototypes,
27601 which can conflict with char $ac_func (); below.
27602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27603 <limits.h> exists even on freestanding compilers. */
27606 # include <limits.h>
27608 # include <assert.h>
27613 /* Override any GCC internal prototype to avoid an error.
27614 Use char because int might match the return type of a GCC
27615 builtin and then its argument prototype would still apply. */
27620 /* The GNU C library defines this for functions which it implements
27621 to always fail with ENOSYS. Some functions are actually named
27622 something starting with __ and the normal name is an alias. */
27623 #if defined __stub_$ac_func || defined __stub___$ac_func
27630 return $ac_func ();
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (ac_try="$ac_link"
27637 case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_link") 2>conftest.er1
27644 grep -v '^ *+' conftest.er1 >conftest.err
27646 cat conftest.err >&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); } && {
27649 test -z "$ac_c_werror_flag" ||
27650 test ! -s conftest.err
27651 } && test -s conftest$ac_exeext &&
27652 $as_test_x conftest$ac_exeext; then
27653 eval "$as_ac_var=yes"
27655 echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27658 eval "$as_ac_var=no"
27661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27662 conftest$ac_exeext conftest.$ac_ext
27664 ac_res=`eval echo '${'$as_ac_var'}'`
27665 { echo "$as_me:$LINENO: result: $ac_res" >&5
27666 echo "${ECHO_T}$ac_res" >&6; }
27667 if test `eval echo '${'$as_ac_var'}'` = yes; then
27668 cat >>confdefs.h <<_ACEOF
27669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27671 cat >>confdefs.h <<\_ACEOF
27672 #define HAVE_INET_NTOP 1
27679 for ac_func in gethostbyname2
27681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27695 #define $ac_func innocuous_$ac_func
27697 /* System header to define __stub macros and hopefully few prototypes,
27698 which can conflict with char $ac_func (); below.
27699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27700 <limits.h> exists even on freestanding compilers. */
27703 # include <limits.h>
27705 # include <assert.h>
27710 /* Override any GCC internal prototype to avoid an error.
27711 Use char because int might match the return type of a GCC
27712 builtin and then its argument prototype would still apply. */
27717 /* The GNU C library defines this for functions which it implements
27718 to always fail with ENOSYS. Some functions are actually named
27719 something starting with __ and the normal name is an alias. */
27720 #if defined __stub_$ac_func || defined __stub___$ac_func
27727 return $ac_func ();
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_link") 2>conftest.er1
27741 grep -v '^ *+' conftest.er1 >conftest.err
27743 cat conftest.err >&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } && {
27746 test -z "$ac_c_werror_flag" ||
27747 test ! -s conftest.err
27748 } && test -s conftest$ac_exeext &&
27749 $as_test_x conftest$ac_exeext; then
27750 eval "$as_ac_var=yes"
27752 echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27755 eval "$as_ac_var=no"
27758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27759 conftest$ac_exeext conftest.$ac_ext
27761 ac_res=`eval echo '${'$as_ac_var'}'`
27762 { echo "$as_me:$LINENO: result: $ac_res" >&5
27763 echo "${ECHO_T}$ac_res" >&6; }
27764 if test `eval echo '${'$as_ac_var'}'` = yes; then
27765 cat >>confdefs.h <<_ACEOF
27766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27768 cat >>confdefs.h <<\_ACEOF
27769 #define HAVE_GETHOSTBYNAME2 1
27776 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27777 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27778 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27779 echo $ECHO_N "(cached) $ECHO_C" >&6
27781 cat >conftest.$ac_ext <<_ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27787 #include <sys/socket.h>
27791 struct sockaddr s; s.sa_len;
27796 rm -f conftest.$ac_objext
27797 if { (ac_try="$ac_compile"
27798 case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_compile") 2>conftest.er1
27805 grep -v '^ *+' conftest.er1 >conftest.err
27807 cat conftest.err >&5
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); } && {
27810 test -z "$ac_c_werror_flag" ||
27811 test ! -s conftest.err
27812 } && test -s conftest.$ac_objext; then
27813 ac_cv_struct_sockaddr_sa_len=yes
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27818 ac_cv_struct_sockaddr_sa_len=no
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27824 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27826 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_SA_LEN 1
27838 for ac_func in strftime
27840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27854 #define $ac_func innocuous_$ac_func
27856 /* System header to define __stub macros and hopefully few prototypes,
27857 which can conflict with char $ac_func (); below.
27858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27859 <limits.h> exists even on freestanding compilers. */
27862 # include <limits.h>
27864 # include <assert.h>
27869 /* Override any GCC internal prototype to avoid an error.
27870 Use char because int might match the return type of a GCC
27871 builtin and then its argument prototype would still apply. */
27876 /* The GNU C library defines this for functions which it implements
27877 to always fail with ENOSYS. Some functions are actually named
27878 something starting with __ and the normal name is an alias. */
27879 #if defined __stub_$ac_func || defined __stub___$ac_func
27886 return $ac_func ();
27891 rm -f conftest.$ac_objext conftest$ac_exeext
27892 if { (ac_try="$ac_link"
27893 case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_link") 2>conftest.er1
27900 grep -v '^ *+' conftest.er1 >conftest.err
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } && {
27905 test -z "$ac_c_werror_flag" ||
27906 test ! -s conftest.err
27907 } && test -s conftest$ac_exeext &&
27908 $as_test_x conftest$ac_exeext; then
27909 eval "$as_ac_var=yes"
27911 echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.$ac_ext >&5
27914 eval "$as_ac_var=no"
27917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27918 conftest$ac_exeext conftest.$ac_ext
27920 ac_res=`eval echo '${'$as_ac_var'}'`
27921 { echo "$as_me:$LINENO: result: $ac_res" >&5
27922 echo "${ECHO_T}$ac_res" >&6; }
27923 if test `eval echo '${'$as_ac_var'}'` = yes; then
27924 cat >>confdefs.h <<_ACEOF
27925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27929 # strftime is in -lintl on SCO UNIX.
27930 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27935 ac_check_lib_save_LIBS=$LIBS
27936 LIBS="-lintl $LIBS"
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27944 /* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
27954 return strftime ();
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (ac_try="$ac_link"
27961 case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_link") 2>conftest.er1
27968 grep -v '^ *+' conftest.er1 >conftest.err
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } && {
27973 test -z "$ac_c_werror_flag" ||
27974 test ! -s conftest.err
27975 } && test -s conftest$ac_exeext &&
27976 $as_test_x conftest$ac_exeext; then
27977 ac_cv_lib_intl_strftime=yes
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27982 ac_cv_lib_intl_strftime=no
27985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27986 conftest$ac_exeext conftest.$ac_ext
27987 LIBS=$ac_check_lib_save_LIBS
27989 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27990 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27991 if test $ac_cv_lib_intl_strftime = yes; then
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_STRFTIME 1
27996 LIBS="-lintl $LIBS"
28003 for ac_func in vprintf
28005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28019 #define $ac_func innocuous_$ac_func
28021 /* System header to define __stub macros and hopefully few prototypes,
28022 which can conflict with char $ac_func (); below.
28023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024 <limits.h> exists even on freestanding compilers. */
28027 # include <limits.h>
28029 # include <assert.h>
28034 /* Override any GCC internal prototype to avoid an error.
28035 Use char because int might match the return type of a GCC
28036 builtin and then its argument prototype would still apply. */
28041 /* The GNU C library defines this for functions which it implements
28042 to always fail with ENOSYS. Some functions are actually named
28043 something starting with __ and the normal name is an alias. */
28044 #if defined __stub_$ac_func || defined __stub___$ac_func
28051 return $ac_func ();
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (ac_try="$ac_link"
28058 case "(($ac_try" in
28059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060 *) ac_try_echo=$ac_try;;
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063 (eval "$ac_link") 2>conftest.er1
28065 grep -v '^ *+' conftest.er1 >conftest.err
28067 cat conftest.err >&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } && {
28070 test -z "$ac_c_werror_flag" ||
28071 test ! -s conftest.err
28072 } && test -s conftest$ac_exeext &&
28073 $as_test_x conftest$ac_exeext; then
28074 eval "$as_ac_var=yes"
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 eval "$as_ac_var=no"
28082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28083 conftest$ac_exeext conftest.$ac_ext
28085 ac_res=`eval echo '${'$as_ac_var'}'`
28086 { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089 cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28093 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28094 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28095 if test "${ac_cv_func__doprnt+set}" = set; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 cat >conftest.$ac_ext <<_ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h. */
28104 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28106 #define _doprnt innocuous__doprnt
28108 /* System header to define __stub macros and hopefully few prototypes,
28109 which can conflict with char _doprnt (); below.
28110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111 <limits.h> exists even on freestanding compilers. */
28114 # include <limits.h>
28116 # include <assert.h>
28121 /* Override any GCC internal prototype to avoid an error.
28122 Use char because int might match the return type of a GCC
28123 builtin and then its argument prototype would still apply. */
28128 /* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131 #if defined __stub__doprnt || defined __stub____doprnt
28143 rm -f conftest.$ac_objext conftest$ac_exeext
28144 if { (ac_try="$ac_link"
28145 case "(($ac_try" in
28146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28147 *) ac_try_echo=$ac_try;;
28149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28150 (eval "$ac_link") 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } && {
28157 test -z "$ac_c_werror_flag" ||
28158 test ! -s conftest.err
28159 } && test -s conftest$ac_exeext &&
28160 $as_test_x conftest$ac_exeext; then
28161 ac_cv_func__doprnt=yes
28163 echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28166 ac_cv_func__doprnt=no
28169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28170 conftest$ac_exeext conftest.$ac_ext
28172 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28173 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28174 if test $ac_cv_func__doprnt = yes; then
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_DOPRNT 1
28186 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28187 # for constant arguments. Useless!
28188 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28189 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28190 if test "${ac_cv_working_alloca_h+set}" = set; then
28191 echo $ECHO_N "(cached) $ECHO_C" >&6
28193 cat >conftest.$ac_ext <<_ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h. */
28199 #include <alloca.h>
28203 char *p = (char *) alloca (2 * sizeof (int));
28209 rm -f conftest.$ac_objext conftest$ac_exeext
28210 if { (ac_try="$ac_link"
28211 case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_link") 2>conftest.er1
28218 grep -v '^ *+' conftest.er1 >conftest.err
28220 cat conftest.err >&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); } && {
28223 test -z "$ac_c_werror_flag" ||
28224 test ! -s conftest.err
28225 } && test -s conftest$ac_exeext &&
28226 $as_test_x conftest$ac_exeext; then
28227 ac_cv_working_alloca_h=yes
28229 echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28232 ac_cv_working_alloca_h=no
28235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28236 conftest$ac_exeext conftest.$ac_ext
28238 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28239 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28240 if test $ac_cv_working_alloca_h = yes; then
28242 cat >>confdefs.h <<\_ACEOF
28243 #define HAVE_ALLOCA_H 1
28248 { echo "$as_me:$LINENO: checking for alloca" >&5
28249 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_alloca_works+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28260 # define alloca __builtin_alloca
28263 # include <malloc.h>
28264 # define alloca _alloca
28266 # ifdef HAVE_ALLOCA_H
28267 # include <alloca.h>
28272 # ifndef alloca /* predefined by HP cc +Olibcalls */
28283 char *p = (char *) alloca (1);
28289 rm -f conftest.$ac_objext conftest$ac_exeext
28290 if { (ac_try="$ac_link"
28291 case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_link") 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } && {
28303 test -z "$ac_c_werror_flag" ||
28304 test ! -s conftest.err
28305 } && test -s conftest$ac_exeext &&
28306 $as_test_x conftest$ac_exeext; then
28307 ac_cv_func_alloca_works=yes
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28312 ac_cv_func_alloca_works=no
28315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28316 conftest$ac_exeext conftest.$ac_ext
28318 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28319 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28321 if test $ac_cv_func_alloca_works = yes; then
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_ALLOCA 1
28328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28329 # that cause trouble. Some versions do not even contain alloca or
28330 # contain a buggy version. If you still want to use their alloca,
28331 # use ar to extract alloca.o from them instead of compiling alloca.c.
28333 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28335 cat >>confdefs.h <<\_ACEOF
28340 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28341 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28342 if test "${ac_cv_os_cray+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28351 #if defined CRAY && ! defined CRAY2
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359 $EGREP "webecray" >/dev/null 2>&1; then
28367 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28368 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28369 if test $ac_cv_os_cray = yes; then
28370 for ac_func in _getb67 GETB67 getb67; do
28371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 cat >conftest.$ac_ext <<_ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28385 #define $ac_func innocuous_$ac_func
28387 /* System header to define __stub macros and hopefully few prototypes,
28388 which can conflict with char $ac_func (); below.
28389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28390 <limits.h> exists even on freestanding compilers. */
28393 # include <limits.h>
28395 # include <assert.h>
28400 /* Override any GCC internal prototype to avoid an error.
28401 Use char because int might match the return type of a GCC
28402 builtin and then its argument prototype would still apply. */
28407 /* The GNU C library defines this for functions which it implements
28408 to always fail with ENOSYS. Some functions are actually named
28409 something starting with __ and the normal name is an alias. */
28410 #if defined __stub_$ac_func || defined __stub___$ac_func
28417 return $ac_func ();
28422 rm -f conftest.$ac_objext conftest$ac_exeext
28423 if { (ac_try="$ac_link"
28424 case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_link") 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest$ac_exeext &&
28439 $as_test_x conftest$ac_exeext; then
28440 eval "$as_ac_var=yes"
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 eval "$as_ac_var=no"
28448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28449 conftest$ac_exeext conftest.$ac_ext
28451 ac_res=`eval echo '${'$as_ac_var'}'`
28452 { echo "$as_me:$LINENO: result: $ac_res" >&5
28453 echo "${ECHO_T}$ac_res" >&6; }
28454 if test `eval echo '${'$as_ac_var'}'` = yes; then
28456 cat >>confdefs.h <<_ACEOF
28457 #define CRAY_STACKSEG_END $ac_func
28466 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28467 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28468 if test "${ac_cv_c_stack_direction+set}" = set; then
28469 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 if test "$cross_compiling" = yes; then
28472 ac_cv_c_stack_direction=0
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480 $ac_includes_default
28482 find_stack_direction ()
28484 static char *addr = 0;
28489 return find_stack_direction ();
28492 return (&dummy > addr) ? 1 : -1;
28498 return find_stack_direction () < 0;
28501 rm -f conftest$ac_exeext
28502 if { (ac_try="$ac_link"
28503 case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_link") 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28512 { (case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_try") 2>&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; }; then
28521 ac_cv_c_stack_direction=1
28523 echo "$as_me: program exited with status $ac_status" >&5
28524 echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28527 ( exit $ac_status )
28528 ac_cv_c_stack_direction=-1
28530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28535 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28536 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28538 cat >>confdefs.h <<_ACEOF
28539 #define STACK_DIRECTION $ac_cv_c_stack_direction
28545 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28546 # -lseq on Dynix/PTX, -lgen on Unixware.
28547 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28548 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28549 if test "${ac_cv_search_getmntent+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28552 ac_func_search_save_LIBS=$LIBS
28553 cat >conftest.$ac_ext <<_ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28560 /* Override any GCC internal prototype to avoid an error.
28561 Use char because int might match the return type of a GCC
28562 builtin and then its argument prototype would still apply. */
28570 return getmntent ();
28575 for ac_lib in '' sun seq gen; do
28576 if test -z "$ac_lib"; then
28577 ac_res="none required"
28580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28582 rm -f conftest.$ac_objext conftest$ac_exeext
28583 if { (ac_try="$ac_link"
28584 case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_link") 2>conftest.er1
28591 grep -v '^ *+' conftest.er1 >conftest.err
28593 cat conftest.err >&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } && {
28596 test -z "$ac_c_werror_flag" ||
28597 test ! -s conftest.err
28598 } && test -s conftest$ac_exeext &&
28599 $as_test_x conftest$ac_exeext; then
28600 ac_cv_search_getmntent=$ac_res
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28610 if test "${ac_cv_search_getmntent+set}" = set; then
28614 if test "${ac_cv_search_getmntent+set}" = set; then
28617 ac_cv_search_getmntent=no
28619 rm conftest.$ac_ext
28620 LIBS=$ac_func_search_save_LIBS
28622 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28623 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28624 ac_res=$ac_cv_search_getmntent
28625 if test "$ac_res" != no; then
28626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28627 ac_cv_func_getmntent=yes
28629 cat >>confdefs.h <<\_ACEOF
28630 #define HAVE_GETMNTENT 1
28634 ac_cv_func_getmntent=no
28638 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28639 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28640 if test "${ac_cv_func_closedir_void+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28643 if test "$cross_compiling" = yes; then
28644 ac_cv_func_closedir_void=yes
28646 cat >conftest.$ac_ext <<_ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h. */
28652 $ac_includes_default
28653 #include <$ac_header_dirent>
28654 #ifndef __cplusplus
28661 return closedir (opendir (".")) != 0;
28666 rm -f conftest$ac_exeext
28667 if { (ac_try="$ac_link"
28668 case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_link") 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_try") 2>&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 ac_cv_func_closedir_void=no
28688 echo "$as_me: program exited with status $ac_status" >&5
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28692 ( exit $ac_status )
28693 ac_cv_func_closedir_void=yes
28695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28700 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28701 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28702 if test $ac_cv_func_closedir_void = yes; then
28704 cat >>confdefs.h <<\_ACEOF
28705 #define CLOSEDIR_VOID 1
28710 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28711 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28712 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28713 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 if test "$cross_compiling" = yes; then
28716 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28717 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28718 { (exit 1); exit 1; }; }
28720 cat >conftest.$ac_ext <<_ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h. */
28726 $ac_includes_default
28730 /* If this system has a BSD-style setpgrp which takes arguments,
28731 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28732 exit successfully. */
28733 return setpgrp (1,1) != -1;
28738 rm -f conftest$ac_exeext
28739 if { (ac_try="$ac_link"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_link") 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28749 { (case "(($ac_try" in
28750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751 *) ac_try_echo=$ac_try;;
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754 (eval "$ac_try") 2>&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; }; then
28758 ac_cv_func_setpgrp_void=no
28760 echo "$as_me: program exited with status $ac_status" >&5
28761 echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28764 ( exit $ac_status )
28765 ac_cv_func_setpgrp_void=yes
28767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28772 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28773 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28774 if test $ac_cv_func_setpgrp_void = yes; then
28776 cat >>confdefs.h <<\_ACEOF
28777 #define SETPGRP_VOID 1
28781 # AC_FUNC_FNMATCH dnl use local version
28784 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28785 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28786 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 ac_check_lib_save_LIBS=$LIBS
28790 LIBS="-lintl $LIBS"
28791 cat >conftest.$ac_ext <<_ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h. */
28798 /* Override any GCC internal prototype to avoid an error.
28799 Use char because int might match the return type of a GCC
28800 builtin and then its argument prototype would still apply. */
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817 *) ac_try_echo=$ac_try;;
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820 (eval "$ac_link") 2>conftest.er1
28822 grep -v '^ *+' conftest.er1 >conftest.err
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } && {
28827 test -z "$ac_c_werror_flag" ||
28828 test ! -s conftest.err
28829 } && test -s conftest$ac_exeext &&
28830 $as_test_x conftest$ac_exeext; then
28831 ac_cv_lib_intl_gettext=yes
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_cv_lib_intl_gettext=no
28839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28840 conftest$ac_exeext conftest.$ac_ext
28841 LIBS=$ac_check_lib_save_LIBS
28843 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28844 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28845 if test $ac_cv_lib_intl_gettext = yes; then
28846 LIBS="$LIBS -lintl"
28852 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28853 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28854 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28855 echo $ECHO_N "(cached) $ECHO_C" >&6
28857 ac_check_lib_save_LIBS=$LIBS
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28866 /* Override any GCC internal prototype to avoid an error.
28867 Use char because int might match the return type of a GCC
28868 builtin and then its argument prototype would still apply. */
28876 return getpwnam ();
28881 rm -f conftest.$ac_objext conftest$ac_exeext
28882 if { (ac_try="$ac_link"
28883 case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_link") 2>conftest.er1
28890 grep -v '^ *+' conftest.er1 >conftest.err
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } && {
28895 test -z "$ac_c_werror_flag" ||
28896 test ! -s conftest.err
28897 } && test -s conftest$ac_exeext &&
28898 $as_test_x conftest$ac_exeext; then
28899 ac_cv_lib_sun_getpwnam=yes
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ac_cv_lib_sun_getpwnam=no
28907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28908 conftest$ac_exeext conftest.$ac_ext
28909 LIBS=$ac_check_lib_save_LIBS
28911 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28912 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28913 if test $ac_cv_lib_sun_getpwnam = yes; then
28914 cat >>confdefs.h <<_ACEOF
28915 #define HAVE_LIBSUN 1
28924 for ac_header in zlib.h
28926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 ac_res=`eval echo '${'$as_ac_Header'}'`
28934 { echo "$as_me:$LINENO: result: $ac_res" >&5
28935 echo "${ECHO_T}$ac_res" >&6; }
28937 # Is the header compilable?
28938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28940 cat >conftest.$ac_ext <<_ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h. */
28946 $ac_includes_default
28947 #include <$ac_header>
28949 rm -f conftest.$ac_objext
28950 if { (ac_try="$ac_compile"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_compile") 2>conftest.er1
28958 grep -v '^ *+' conftest.er1 >conftest.err
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } && {
28963 test -z "$ac_c_werror_flag" ||
28964 test ! -s conftest.err
28965 } && test -s conftest.$ac_objext; then
28966 ac_header_compiler=yes
28968 echo "$as_me: failed program was:" >&5
28969 sed 's/^/| /' conftest.$ac_ext >&5
28971 ac_header_compiler=no
28974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28976 echo "${ECHO_T}$ac_header_compiler" >&6; }
28978 # Is the header present?
28979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28987 #include <$ac_header>
28989 if { (ac_try="$ac_cpp conftest.$ac_ext"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } >/dev/null && {
29002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29003 test ! -s conftest.err
29005 ac_header_preproc=yes
29007 echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29010 ac_header_preproc=no
29013 rm -f conftest.err conftest.$ac_ext
29014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015 echo "${ECHO_T}$ac_header_preproc" >&6; }
29017 # So? What about this header?
29018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29024 ac_header_preproc=yes
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29047 eval "$as_ac_Header=\$ac_header_preproc"
29049 ac_res=`eval echo '${'$as_ac_Header'}'`
29050 { echo "$as_me:$LINENO: result: $ac_res" >&5
29051 echo "${ECHO_T}$ac_res" >&6; }
29054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055 cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29063 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29064 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29065 if test "${ac_cv_lib_z_deflate+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 ac_check_lib_save_LIBS=$LIBS
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29077 /* Override any GCC internal prototype to avoid an error.
29078 Use char because int might match the return type of a GCC
29079 builtin and then its argument prototype would still apply. */
29092 rm -f conftest.$ac_objext conftest$ac_exeext
29093 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } && {
29106 test -z "$ac_c_werror_flag" ||
29107 test ! -s conftest.err
29108 } && test -s conftest$ac_exeext &&
29109 $as_test_x conftest$ac_exeext; then
29110 ac_cv_lib_z_deflate=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_lib_z_deflate=no
29118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29119 conftest$ac_exeext conftest.$ac_ext
29120 LIBS=$ac_check_lib_save_LIBS
29122 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29123 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29124 if test $ac_cv_lib_z_deflate = yes; then
29129 if test x$FDLIBS = x-lz; then
29130 cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_LIBZ 1
29138 # Check for ACL libraries
29141 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29142 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29143 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29144 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29148 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29150 # Is the header compilable?
29151 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29152 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29153 cat >conftest.$ac_ext <<_ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159 $ac_includes_default
29160 #include <sys/acl.h>
29162 rm -f conftest.$ac_objext
29163 if { (ac_try="$ac_compile"
29164 case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169 (eval "$ac_compile") 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } && {
29176 test -z "$ac_c_werror_flag" ||
29177 test ! -s conftest.err
29178 } && test -s conftest.$ac_objext; then
29179 ac_header_compiler=yes
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_header_compiler=no
29187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29189 echo "${ECHO_T}$ac_header_compiler" >&6; }
29191 # Is the header present?
29192 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29193 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29194 cat >conftest.$ac_ext <<_ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h. */
29200 #include <sys/acl.h>
29202 if { (ac_try="$ac_cpp conftest.$ac_ext"
29203 case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } >/dev/null && {
29215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29216 test ! -s conftest.err
29218 ac_header_preproc=yes
29220 echo "$as_me: failed program was:" >&5
29221 sed 's/^/| /' conftest.$ac_ext >&5
29223 ac_header_preproc=no
29226 rm -f conftest.err conftest.$ac_ext
29227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29228 echo "${ECHO_T}$ac_header_preproc" >&6; }
29230 # So? What about this header?
29231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29233 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29234 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29235 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29236 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29237 ac_header_preproc=yes
29240 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29241 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29243 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29244 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29245 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29247 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29248 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29249 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29251 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29255 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29256 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29257 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29258 echo $ECHO_N "(cached) $ECHO_C" >&6
29260 ac_cv_header_sys_acl_h=$ac_header_preproc
29262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29263 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29268 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29269 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29270 if test "${ac_cv_func_acl_get_file+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29273 cat >conftest.$ac_ext <<_ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29281 #define acl_get_file innocuous_acl_get_file
29283 /* System header to define __stub macros and hopefully few prototypes,
29284 which can conflict with char acl_get_file (); below.
29285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29286 <limits.h> exists even on freestanding compilers. */
29289 # include <limits.h>
29291 # include <assert.h>
29294 #undef acl_get_file
29296 /* Override any GCC internal prototype to avoid an error.
29297 Use char because int might match the return type of a GCC
29298 builtin and then its argument prototype would still apply. */
29302 char acl_get_file ();
29303 /* The GNU C library defines this for functions which it implements
29304 to always fail with ENOSYS. Some functions are actually named
29305 something starting with __ and the normal name is an alias. */
29306 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29313 return acl_get_file ();
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (ac_try="$ac_link"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_link") 2>conftest.er1
29327 grep -v '^ *+' conftest.er1 >conftest.err
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } && {
29332 test -z "$ac_c_werror_flag" ||
29333 test ! -s conftest.err
29334 } && test -s conftest$ac_exeext &&
29335 $as_test_x conftest$ac_exeext; then
29336 ac_cv_func_acl_get_file=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_cv_func_acl_get_file=no
29344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29345 conftest$ac_exeext conftest.$ac_ext
29347 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29348 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29349 if test $ac_cv_func_acl_get_file = yes; then
29352 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29353 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29354 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29357 ac_check_lib_save_LIBS=$LIBS
29359 cat >conftest.$ac_ext <<_ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h. */
29366 /* Override any GCC internal prototype to avoid an error.
29367 Use char because int might match the return type of a GCC
29368 builtin and then its argument prototype would still apply. */
29372 char acl_get_file ();
29376 return acl_get_file ();
29381 rm -f conftest.$ac_objext conftest$ac_exeext
29382 if { (ac_try="$ac_link"
29383 case "(($ac_try" in
29384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385 *) ac_try_echo=$ac_try;;
29387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29388 (eval "$ac_link") 2>conftest.er1
29390 grep -v '^ *+' conftest.er1 >conftest.err
29392 cat conftest.err >&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); } && {
29395 test -z "$ac_c_werror_flag" ||
29396 test ! -s conftest.err
29397 } && test -s conftest$ac_exeext &&
29398 $as_test_x conftest$ac_exeext; then
29399 ac_cv_lib_acl_acl_get_file=yes
29401 echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29404 ac_cv_lib_acl_acl_get_file=no
29407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29408 conftest$ac_exeext conftest.$ac_ext
29409 LIBS=$ac_check_lib_save_LIBS
29411 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29412 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29413 if test $ac_cv_lib_acl_acl_get_file = yes; then
29414 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29416 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29417 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29418 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29421 ac_check_lib_save_LIBS=$LIBS
29423 cat >conftest.$ac_ext <<_ACEOF
29426 cat confdefs.h >>conftest.$ac_ext
29427 cat >>conftest.$ac_ext <<_ACEOF
29428 /* end confdefs.h. */
29430 /* Override any GCC internal prototype to avoid an error.
29431 Use char because int might match the return type of a GCC
29432 builtin and then its argument prototype would still apply. */
29440 return acltotext ();
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (ac_try="$ac_link"
29447 case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_link") 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } && {
29459 test -z "$ac_c_werror_flag" ||
29460 test ! -s conftest.err
29461 } && test -s conftest$ac_exeext &&
29462 $as_test_x conftest$ac_exeext; then
29463 ac_cv_lib_sec_acltotext=yes
29465 echo "$as_me: failed program was:" >&5
29466 sed 's/^/| /' conftest.$ac_ext >&5
29468 ac_cv_lib_sec_acltotext=no
29471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29472 conftest$ac_exeext conftest.$ac_ext
29473 LIBS=$ac_check_lib_save_LIBS
29475 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29476 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29477 if test $ac_cv_lib_sec_acltotext = yes; then
29478 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29487 if test $have_acl = yes; then
29488 cat >>confdefs.h <<\_ACEOF
29495 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29496 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29497 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29500 ac_check_lib_save_LIBS=$LIBS
29501 LIBS="-lpthread $LIBS"
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29509 /* Override any GCC internal prototype to avoid an error.
29510 Use char because int might match the return type of a GCC
29511 builtin and then its argument prototype would still apply. */
29515 char pthread_create ();
29519 return pthread_create ();
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_link") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest$ac_exeext &&
29541 $as_test_x conftest$ac_exeext; then
29542 ac_cv_lib_pthread_pthread_create=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ac_cv_lib_pthread_pthread_create=no
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551 conftest$ac_exeext conftest.$ac_ext
29552 LIBS=$ac_check_lib_save_LIBS
29554 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29555 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29556 if test $ac_cv_lib_pthread_pthread_create = yes; then
29557 PTHREAD_LIB="-lpthread"
29559 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29560 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29561 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 ac_check_lib_save_LIBS=$LIBS
29565 LIBS="-lpthreads $LIBS"
29566 cat >conftest.$ac_ext <<_ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h. */
29573 /* Override any GCC internal prototype to avoid an error.
29574 Use char because int might match the return type of a GCC
29575 builtin and then its argument prototype would still apply. */
29579 char pthread_create ();
29583 return pthread_create ();
29588 rm -f conftest.$ac_objext conftest$ac_exeext
29589 if { (ac_try="$ac_link"
29590 case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595 (eval "$ac_link") 2>conftest.er1
29597 grep -v '^ *+' conftest.er1 >conftest.err
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } && {
29602 test -z "$ac_c_werror_flag" ||
29603 test ! -s conftest.err
29604 } && test -s conftest$ac_exeext &&
29605 $as_test_x conftest$ac_exeext; then
29606 ac_cv_lib_pthreads_pthread_create=yes
29608 echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29611 ac_cv_lib_pthreads_pthread_create=no
29614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29615 conftest$ac_exeext conftest.$ac_ext
29616 LIBS=$ac_check_lib_save_LIBS
29618 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29619 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29620 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29621 PTHREAD_LIB="-lpthreads"
29623 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29624 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29625 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29626 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 ac_check_lib_save_LIBS=$LIBS
29630 cat >conftest.$ac_ext <<_ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29637 /* Override any GCC internal prototype to avoid an error.
29638 Use char because int might match the return type of a GCC
29639 builtin and then its argument prototype would still apply. */
29643 char pthread_create ();
29647 return pthread_create ();
29652 rm -f conftest.$ac_objext conftest$ac_exeext
29653 if { (ac_try="$ac_link"
29654 case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659 (eval "$ac_link") 2>conftest.er1
29661 grep -v '^ *+' conftest.er1 >conftest.err
29663 cat conftest.err >&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); } && {
29666 test -z "$ac_c_werror_flag" ||
29667 test ! -s conftest.err
29668 } && test -s conftest$ac_exeext &&
29669 $as_test_x conftest$ac_exeext; then
29670 ac_cv_lib_c_r_pthread_create=yes
29672 echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29675 ac_cv_lib_c_r_pthread_create=no
29678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29679 conftest$ac_exeext conftest.$ac_ext
29680 LIBS=$ac_check_lib_save_LIBS
29682 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29683 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29684 if test $ac_cv_lib_c_r_pthread_create = yes; then
29685 PTHREAD_LIB="-lc_r"
29687 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29688 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29689 if test "${ac_cv_func_pthread_create+set}" = set; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 cat >conftest.$ac_ext <<_ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h. */
29698 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29700 #define pthread_create innocuous_pthread_create
29702 /* System header to define __stub macros and hopefully few prototypes,
29703 which can conflict with char pthread_create (); below.
29704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29705 <limits.h> exists even on freestanding compilers. */
29708 # include <limits.h>
29710 # include <assert.h>
29713 #undef pthread_create
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29721 char pthread_create ();
29722 /* The GNU C library defines this for functions which it implements
29723 to always fail with ENOSYS. Some functions are actually named
29724 something starting with __ and the normal name is an alias. */
29725 #if defined __stub_pthread_create || defined __stub___pthread_create
29732 return pthread_create ();
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_link") 2>conftest.er1
29746 grep -v '^ *+' conftest.er1 >conftest.err
29748 cat conftest.err >&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && {
29751 test -z "$ac_c_werror_flag" ||
29752 test ! -s conftest.err
29753 } && test -s conftest$ac_exeext &&
29754 $as_test_x conftest$ac_exeext; then
29755 ac_cv_func_pthread_create=yes
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 ac_cv_func_pthread_create=no
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764 conftest$ac_exeext conftest.$ac_ext
29766 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29767 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29780 cat >>confdefs.h <<\_ACEOF
29786 CFLAGS=${CFLAGS--O}
29788 if test x$have_gcc = xyes ; then
29789 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29790 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29792 LDFLAGS=${LDFLAGS--O}
29793 DB_LIBS="${SQL_LFLAGS}"
29794 CPPFLAGS="$CPPFLAGS"
29822 # Finally we set appropriate distribution specific
29823 # variables and defaults
29825 # PFILES are platform specific files
29826 PFILES="platforms/Makefile"
29830 hostname=`uname -n | cut -d '.' -f 1`
29831 if test x${hostname} = x ; then
29832 hostname="localhost"
29834 case "$DISTNAME" in
29837 PSCMD="ps -e -o pid,comm"
29838 PFILES="${PFILES} \
29839 platforms/aix/Makefile"
29840 TAPEDRIVE="/dev/rmt0.1"
29844 PTHREAD_LIB="-lpthread -lexc"
29845 if test "${CC}" = "gcc" ; then
29852 TAPEDRIVE="/dev/nrmt0"
29855 DISTVER=`uname -a |awk '{print $3}'`
29856 TAPEDRIVE="/dev/nrmt0"
29857 PTHREAD_LIB="-pthread"
29858 CFLAGS="${CFLAGS} -pthread"
29859 PSCMD="ps -ax -o pid,command"
29862 PFILES="${PFILES} \
29863 platforms/bsdi/Makefile \
29864 platforms/bsdi/bacula-fd \
29865 platforms/bsdi/bacula-sd \
29866 platforms/bsdi/bacula-dir"
29867 largefile_support="yes"
29870 DISTVER=`uname -a |awk '{print $3}'`
29871 TAPEDRIVE="/dev/nrst0"
29873 WCFLAGS="-mwindows"
29874 WLDFLAGS="-mwindows"
29878 TAPEDRIVE="/dev/nst0"
29879 PSCMD="ps -e -o pid,command"
29881 PFILES="${PFILES} \
29882 platforms/darwin/Makefile"
29885 DISTVER=`cat /etc/debian_version`
29886 TAPEDRIVE="/dev/nrst0"
29887 PSCMD="ps -e -o pid,command"
29888 PFILES="${PFILES} \
29889 platforms/debian/Makefile \
29890 platforms/debian/bacula-fd \
29891 platforms/debian/bacula-sd \
29892 platforms/debian/bacula-dir"
29895 DISTVER=`uname -a |awk '{print $3}'`
29896 VER=`echo $DISTVER | cut -c 1`
29897 if test x$VER = x4 ; then
29898 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29899 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29903 TAPEDRIVE="/dev/nrsa0"
29904 PSCMD="ps -ax -o pid,command"
29905 PFILES="${PFILES} \
29906 platforms/freebsd/Makefile \
29907 platforms/freebsd/bacula-fd \
29908 platforms/freebsd/bacula-sd \
29909 platforms/freebsd/bacula-dir"
29910 largefile_support="yes"
29913 PSCMD="UNIX95=1; ps -e -o pid,comm"
29914 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29916 TAPEDRIVE="/dev/rmt/0hnb"
29917 PTHREAD_LIB="-lpthread"
29918 cat >>confdefs.h <<\_ACEOF
29919 #define _INCLUDE_LONGLONG 1
29925 TAPEDRIVE="/dev/rmt/0cbn"
29926 PSCMD="ps -e -o pid,comm"
29927 PFILES="${PFILES} \
29928 platforms/irix/Makefile \
29929 platforms/irix/bacula-fd \
29930 platforms/irix/bacula-sd \
29931 platforms/irix/bacula-dir"
29934 DISTVER=`uname -a |awk '{print $3}'`
29937 TAPEDRIVE="/dev/nrst0"
29938 PSCMD="ps -ax -o pid,command"
29939 PTHREAD_LIB="-pthread"
29940 CFLAGS="${CFLAGS} -pthread"
29943 DISTVER=`uname -a |awk '{print $3}'`
29946 TAPEDRIVE="/dev/nrst0"
29947 PSCMD="ps -ax -o pid,command"
29948 PTHREAD_LIB="-pthread"
29949 CFLAGS="${CFLAGS} -pthread"
29950 PFILES="${PFILES} \
29951 platforms/openbsd/Makefile \
29952 platforms/openbsd/bacula-fd \
29953 platforms/openbsd/bacula-sd \
29954 platforms/openbsd/bacula-dir"
29957 if test -f /etc/whitebox-release ; then
29958 f=/etc/whitebox-release
29960 f=/etc/redhat-release
29962 if test `cat $f | grep release |\
29963 cut -f 3 -d ' '`x = "Enterprise"x ; then
29964 DISTVER="Enterprise "`cat $f | grep release |\
29967 DISTVER=`cat /etc/redhat-release | grep release |\
29970 TAPEDRIVE="/dev/nst0"
29971 PSCMD="ps -e -o pid,command"
29972 PFILES="${PFILES} \
29973 platforms/redhat/Makefile \
29974 platforms/redhat/bacula-fd \
29975 platforms/redhat/bacula-sd \
29976 platforms/redhat/bacula-dir \
29977 platforms/redhat/bacula.spec \
29981 DISTVER=`cat /etc/mandrake-release | grep release |\
29983 TAPEDRIVE="/dev/nst0"
29984 PSCMD="ps -e -o pid,command"
29985 PFILES="${PFILES} \
29986 platforms/mandrake/Makefile \
29987 platforms/mandrake/bacula-fd \
29988 platforms/mandrake/bacula-sd \
29989 platforms/mandrake/bacula-dir \
29990 platforms/mandrake/bacula.spec \
29994 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29995 TAPEDRIVE="/dev/nst0"
29996 PSCMD="ps -e -o pid,command"
29997 PFILES="${PFILES} \
29998 platforms/gentoo/Makefile \
29999 platforms/gentoo/bacula-init \
30000 platforms/gentoo/bacula-fd \
30001 platforms/gentoo/bacula-sd \
30002 platforms/gentoo/bacula-dir"
30005 DISTVER=`cat /etc/slackware-version`
30006 TAPEDRIVE="/dev/nst0"
30007 PSCMD="ps -e -o pid,command"
30008 PFILES="${PFILES} \
30009 platforms/slackware/Makefile \
30010 platforms/slackware/rc.bacula-fd \
30011 platforms/slackware/rc.bacula-sd \
30012 platforms/slackware/rc.bacula-dir\
30013 platforms/slackware/functions.bacula"
30017 TAPEDRIVE="/dev/rmt/0cbn"
30018 PSCMD="ps -e -o pid,comm"
30019 PFILES="${PFILES} \
30020 platforms/solaris/Makefile \
30021 platforms/solaris/bacula-fd \
30022 platforms/solaris/bacula-sd \
30023 platforms/solaris/bacula-dir"
30024 if test x$DISTVER = x5.6 ; then
30025 cat >>confdefs.h <<\_ACEOF
30026 #define HAVE_OLD_SOCKOPT 1
30030 LIBS="$LIBS -lresolv"
30033 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30035 TAPEDRIVE="/dev/nst0"
30036 PSCMD="ps -e -o pid,command"
30037 PFILES="${PFILES} \
30038 platforms/suse/Makefile \
30039 platforms/suse/bacula-fd \
30040 platforms/suse/bacula-sd \
30041 platforms/suse/bacula-dir \
30042 platforms/suse/bacula \
30043 platforms/suse/bacula.spec"
30048 TAPEDRIVE="/dev/nst0"
30049 PSCMD="ps -e -o pid,command"
30050 PFILES="${PFILES} \
30051 platforms/suse/Makefile \
30052 platforms/suse/bacula-fd \
30053 platforms/suse/bacula-sd \
30054 platforms/suse/bacula-dir"
30058 TAPEDRIVE="/dev/nst0"
30061 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30067 LIBS="$PTHREAD_LIB $LIBS"
30069 cat >>confdefs.h <<_ACEOF
30073 cat >>confdefs.h <<_ACEOF
30084 MCOMMON=./autoconf/Make.common
30087 if test "x${subsysdir}" = "x${sbindir}" ; then
30090 echo "You have set both --sbindir and --with-subsys-dir"
30091 echo " equal to: ${subsysdir} "
30092 echo "This is not permitted. Please reconfigure."
30094 echo "Aborting configuration ..."
30100 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 $PFILES"
30102 ac_config_commands="$ac_config_commands default"
30104 cat >confcache <<\_ACEOF
30105 # This file is a shell script that caches the results of configure
30106 # tests run on this system so they can be shared between configure
30107 # scripts and configure runs, see configure's option --config-cache.
30108 # It is not useful on other systems. If it contains results you don't
30109 # want to keep, you may remove or edit it.
30111 # config.status only pays attention to the cache file if you give it
30112 # the --recheck option to rerun configure.
30114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30116 # following values.
30120 # The following way of writing the cache mishandles newlines in values,
30121 # but we know of no workaround that is simple, portable, and efficient.
30122 # So, we kill variables containing newlines.
30123 # Ultrix sh set writes to stderr and can't be redirected directly,
30124 # and sets the high bit in the cache file unless we assign to the vars.
30126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30127 eval ac_val=\$$ac_var
30131 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30132 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30135 _ | IFS | as_nl) ;; #(
30136 *) $as_unset $ac_var ;;
30142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30143 *${as_nl}ac_space=\ *)
30144 # `set' does not quote correctly, so add quotes (double-quote
30145 # substitution turns \\\\ into \\, and sed turns \\ into \).
30148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30151 # `set' quotes correctly as required by POSIX, so do not add quotes.
30152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30166 if test -w "$cache_file"; then
30167 test "x$cache_file" != "x/dev/null" &&
30168 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30169 echo "$as_me: updating cache $cache_file" >&6;}
30170 cat confcache >$cache_file
30172 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30173 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30179 # Let make expand exec_prefix.
30180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30182 DEFS=-DHAVE_CONFIG_H
30186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30187 # 1. Remove the extension, and $U if already installed.
30188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30189 ac_i=`echo "$ac_i" | sed "$ac_script"`
30190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30191 # will be set to the directory where LIBOBJS objects are built.
30192 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30193 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30195 LIBOBJS=$ac_libobjs
30197 LTLIBOBJS=$ac_ltlibobjs
30201 : ${CONFIG_STATUS=./config.status}
30202 ac_clean_files_save=$ac_clean_files
30203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30206 cat >$CONFIG_STATUS <<_ACEOF
30208 # Generated by $as_me.
30209 # Run this file to recreate the current configuration.
30210 # Compiler output produced by configure, useful for debugging
30211 # configure, is in config.log if it exists.
30214 ac_cs_recheck=false
30216 SHELL=\${CONFIG_SHELL-$SHELL}
30219 cat >>$CONFIG_STATUS <<\_ACEOF
30220 ## --------------------- ##
30221 ## M4sh Initialization. ##
30222 ## --------------------- ##
30224 # Be more Bourne compatible
30225 DUALCASE=1; export DUALCASE # for MKS sh
30226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30229 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30230 # is contrary to our usage. Disable this feature.
30231 alias -g '${1+"$@"}'='"$@"'
30232 setopt NO_GLOB_SUBST
30234 case `(set -o) 2>/dev/null` in
30235 *posix*) set -o posix ;;
30244 # Avoid depending upon Character Ranges.
30245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30248 as_cr_digits='0123456789'
30249 as_cr_alnum=$as_cr_Letters$as_cr_digits
30251 # The user is always right.
30252 if test "${PATH_SEPARATOR+set}" != set; then
30253 echo "#! /bin/sh" >conf$$.sh
30254 echo "exit 0" >>conf$$.sh
30256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30264 # Support unset when possible.
30265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30273 # We need space, tab and new line, in precisely that order. Quoting is
30274 # there to prevent editors from complaining about space-tab.
30275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30276 # splitting by setting IFS to empty value.)
30281 # Find who we are. Look in the path if we contain no directory separator.
30283 *[\\/]* ) as_myself=$0 ;;
30284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30285 for as_dir in $PATH
30288 test -z "$as_dir" && as_dir=.
30289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30295 # We did not find ourselves, most probably we were run as `sh COMMAND'
30296 # in which case we are not to be found in the path.
30297 if test "x$as_myself" = x; then
30300 if test ! -f "$as_myself"; then
30301 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30302 { (exit 1); exit 1; }
30305 # Work around bugs in pre-3.0 UWIN ksh.
30306 for as_var in ENV MAIL MAILPATH
30307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30315 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30316 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30317 LC_TELEPHONE LC_TIME
30319 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30320 eval $as_var=C; export $as_var
30322 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30326 # Required to use basename.
30327 if expr a : '\(a\)' >/dev/null 2>&1 &&
30328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30335 as_basename=basename
30341 # Name of the executable.
30342 as_me=`$as_basename -- "$0" ||
30343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30344 X"$0" : 'X\(//\)$' \| \
30345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30347 sed '/^.*\/\([^/][^/]*\)\/*$/{
30366 as_lineno_1=$LINENO
30367 as_lineno_2=$LINENO
30368 test "x$as_lineno_1" != "x$as_lineno_2" &&
30369 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30371 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30372 # uniformly replaced by the line number. The first 'sed' inserts a
30373 # line-number line after each line using $LINENO; the second 'sed'
30374 # does the real work. The second script uses 'N' to pair each
30375 # line-number line with the line containing $LINENO, and appends
30376 # trailing '-' during substitution so that $LINENO is not a special
30377 # case at line end.
30378 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30379 # scripts with optimization help from Paolo Bonzini. Blame Lee
30380 # E. McMahon (1931-1989) for sed's syntax. :-)
30392 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30395 ' >$as_me.lineno &&
30396 chmod +x "$as_me.lineno" ||
30397 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30398 { (exit 1); exit 1; }; }
30400 # Don't try to exec as it changes $[0], causing all sort of problems
30401 # (the dirname of $[0] is not the place where we might find the
30402 # original and so on. Autoconf is especially sensitive to this).
30403 . "./$as_me.lineno"
30404 # Exit status is that of the last command.
30409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30415 ECHO_C= ECHO_N= ECHO_T=
30416 case `echo -n x` in
30418 case `echo 'x\c'` in
30419 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30426 if expr a : '\(a\)' >/dev/null 2>&1 &&
30427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30433 rm -f conf$$ conf$$.exe conf$$.file
30434 if test -d conf$$.dir; then
30435 rm -f conf$$.dir/conf$$.file
30441 if ln -s conf$$.file conf$$ 2>/dev/null; then
30443 # ... but there are two gotchas:
30444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30446 # In both cases, we have to default to `cp -p'.
30447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30449 elif ln conf$$.file conf$$ 2>/dev/null; then
30454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30455 rmdir conf$$.dir 2>/dev/null
30457 if mkdir -p . 2>/dev/null; then
30460 test -d ./-p && rmdir ./-p
30464 if test -x / >/dev/null 2>&1; then
30465 as_test_x='test -x'
30467 if ls -dL / >/dev/null 2>&1; then
30474 if test -d "$1"; then
30480 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30481 ???[sx]*):;;*)false;;esac;fi
30485 as_executable_p=$as_test_x
30487 # Sed expression to map a string onto a valid CPP name.
30488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30490 # Sed expression to map a string onto a valid variable name.
30491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30496 # Save the log message, to keep $[0] and so on meaningful, and to
30497 # report actual input values of CONFIG_FILES etc. instead of their
30498 # values after options handling.
30500 This file was extended by $as_me, which was
30501 generated by GNU Autoconf 2.61. Invocation command line was
30503 CONFIG_FILES = $CONFIG_FILES
30504 CONFIG_HEADERS = $CONFIG_HEADERS
30505 CONFIG_LINKS = $CONFIG_LINKS
30506 CONFIG_COMMANDS = $CONFIG_COMMANDS
30509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30514 cat >>$CONFIG_STATUS <<_ACEOF
30515 # Files that config.status was made for.
30516 config_files="$ac_config_files"
30517 config_headers="$ac_config_headers"
30518 config_commands="$ac_config_commands"
30522 cat >>$CONFIG_STATUS <<\_ACEOF
30524 \`$as_me' instantiates files from templates according to the
30525 current configuration.
30527 Usage: $0 [OPTIONS] [FILE]...
30529 -h, --help print this help, then exit
30530 -V, --version print version number and configuration settings, then exit
30531 -q, --quiet do not print progress messages
30532 -d, --debug don't remove temporary files
30533 --recheck update $as_me by reconfiguring in the same conditions
30534 --file=FILE[:TEMPLATE]
30535 instantiate the configuration file FILE
30536 --header=FILE[:TEMPLATE]
30537 instantiate the configuration header FILE
30539 Configuration files:
30542 Configuration headers:
30545 Configuration commands:
30548 Report bugs to <bug-autoconf@gnu.org>."
30551 cat >>$CONFIG_STATUS <<_ACEOF
30554 configured by $0, generated by GNU Autoconf 2.61,
30555 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30557 Copyright (C) 2006 Free Software Foundation, Inc.
30558 This config.status script is free software; the Free Software Foundation
30559 gives unlimited permission to copy, distribute and modify it."
30566 cat >>$CONFIG_STATUS <<\_ACEOF
30567 # If no file are specified by the user, then we need to provide default
30568 # value. By we need to know if files were specified by the user.
30574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30575 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30586 # Handling of the options.
30587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30589 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30590 echo "$ac_cs_version"; exit ;;
30591 --debug | --debu | --deb | --de | --d | -d )
30593 --file | --fil | --fi | --f )
30595 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30596 ac_need_defaults=false;;
30597 --header | --heade | --head | --hea )
30599 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30600 ac_need_defaults=false;;
30602 # Conflict between --help and --header
30603 { echo "$as_me: error: ambiguous option: $1
30604 Try \`$0 --help' for more information." >&2
30605 { (exit 1); exit 1; }; };;
30606 --help | --hel | -h )
30607 echo "$ac_cs_usage"; exit ;;
30608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30612 # This is an error.
30613 -*) { echo "$as_me: error: unrecognized option: $1
30614 Try \`$0 --help' for more information." >&2
30615 { (exit 1); exit 1; }; } ;;
30617 *) ac_config_targets="$ac_config_targets $1"
30618 ac_need_defaults=false ;;
30624 ac_configure_extra_args=
30626 if $ac_cs_silent; then
30628 ac_configure_extra_args="$ac_configure_extra_args --silent"
30632 cat >>$CONFIG_STATUS <<_ACEOF
30633 if \$ac_cs_recheck; then
30634 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30635 CONFIG_SHELL=$SHELL
30636 export CONFIG_SHELL
30637 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30641 cat >>$CONFIG_STATUS <<\_ACEOF
30645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30646 ## Running $as_me. ##
30652 cat >>$CONFIG_STATUS <<_ACEOF
30656 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30657 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30659 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30660 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30661 LINGUAS="${LINGUAS-%UNSET%}"
30666 cat >>$CONFIG_STATUS <<\_ACEOF
30668 # Handling of arguments.
30669 for ac_config_target in $ac_config_targets
30671 case $ac_config_target in
30672 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30673 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30674 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30676 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30677 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30678 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30679 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30680 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30681 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30682 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30683 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30684 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30685 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30686 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30687 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30688 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30689 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30690 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30691 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30692 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30693 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30694 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30695 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30696 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30697 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30698 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30699 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30700 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30701 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30702 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30703 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30704 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30705 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30706 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30707 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30708 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30709 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30710 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30711 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30712 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30713 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30714 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30715 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30716 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30717 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30718 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30719 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30720 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30721 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30722 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30723 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30724 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30725 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30726 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30727 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30728 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30729 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30730 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30731 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30732 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30733 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30734 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30735 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30736 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30737 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30738 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30739 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30740 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30741 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30742 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30743 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30744 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30745 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30746 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30747 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30748 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30749 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30750 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30751 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30752 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30753 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30754 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30755 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30756 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30757 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30758 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30759 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30760 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30761 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30762 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30763 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30764 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30765 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30766 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30767 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30768 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30769 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30770 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30771 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30772 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30773 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30774 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30775 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30776 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30777 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30781 { (exit 1); exit 1; }; };;
30786 # If the user did not use the arguments to specify the items to instantiate,
30787 # then the envvar interface is used. Set only those that are not.
30788 # We use the long form for the default assignment because of an extremely
30789 # bizarre bug on SunOS 4.1.3.
30790 if $ac_need_defaults; then
30791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30793 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30796 # Have a temporary directory for convenience. Make it in the build tree
30797 # simply because there is no reason against having it here, and in addition,
30798 # creating and moving files from /tmp can sometimes cause problems.
30799 # Hook for its removal unless debugging.
30800 # Note that there is a small window in which the directory will not be cleaned:
30801 # after its creation but before its name has been assigned to `$tmp'.
30805 trap 'exit_status=$?
30806 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30808 trap '{ (exit 1); exit 1; }' 1 2 13 15
30810 # Create a (secure) tmp directory for tmp files.
30813 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30814 test -n "$tmp" && test -d "$tmp"
30817 tmp=./conf$$-$RANDOM
30818 (umask 077 && mkdir "$tmp")
30821 echo "$me: cannot create a temporary directory in ." >&2
30822 { (exit 1); exit 1; }
30826 # Set up the sed scripts for CONFIG_FILES section.
30829 # No need to generate the scripts if there are no CONFIG_FILES.
30830 # This happens for instance when ./config.status config.h
30831 if test -n "$CONFIG_FILES"; then
30835 # Create sed commands to just substitute file output variables.
30837 # Remaining file output variables are in a fragment that also has non-file
30843 for ac_last_try in false false false false false :; do
30844 cat >conf$$subs.sed <<_ACEOF
30845 SHELL!$SHELL$ac_delim
30846 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30847 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30848 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30849 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30850 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30851 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30852 exec_prefix!$exec_prefix$ac_delim
30853 prefix!$prefix$ac_delim
30854 program_transform_name!$program_transform_name$ac_delim
30855 bindir!$bindir$ac_delim
30856 sbindir!$sbindir$ac_delim
30857 libexecdir!$libexecdir$ac_delim
30858 datarootdir!$datarootdir$ac_delim
30859 datadir!$datadir$ac_delim
30860 sysconfdir!$sysconfdir$ac_delim
30861 sharedstatedir!$sharedstatedir$ac_delim
30862 localstatedir!$localstatedir$ac_delim
30863 includedir!$includedir$ac_delim
30864 oldincludedir!$oldincludedir$ac_delim
30865 docdir!$docdir$ac_delim
30866 infodir!$infodir$ac_delim
30867 htmldir!$htmldir$ac_delim
30868 dvidir!$dvidir$ac_delim
30869 pdfdir!$pdfdir$ac_delim
30870 psdir!$psdir$ac_delim
30871 libdir!$libdir$ac_delim
30872 localedir!$localedir$ac_delim
30873 mandir!$mandir$ac_delim
30874 DEFS!$DEFS$ac_delim
30875 ECHO_C!$ECHO_C$ac_delim
30876 ECHO_N!$ECHO_N$ac_delim
30877 ECHO_T!$ECHO_T$ac_delim
30878 LIBS!$LIBS$ac_delim
30879 build_alias!$build_alias$ac_delim
30880 host_alias!$host_alias$ac_delim
30881 target_alias!$target_alias$ac_delim
30882 BUILD_DIR!$BUILD_DIR$ac_delim
30883 TOP_DIR!$TOP_DIR$ac_delim
30884 TRUEPRG!$TRUEPRG$ac_delim
30885 FALSEPRG!$FALSEPRG$ac_delim
30886 VERSION!$VERSION$ac_delim
30887 DATE!$DATE$ac_delim
30888 LSMDATE!$LSMDATE$ac_delim
30890 CFLAGS!$CFLAGS$ac_delim
30891 LDFLAGS!$LDFLAGS$ac_delim
30892 CPPFLAGS!$CPPFLAGS$ac_delim
30893 ac_ct_CC!$ac_ct_CC$ac_delim
30894 EXEEXT!$EXEEXT$ac_delim
30895 OBJEXT!$OBJEXT$ac_delim
30897 CXXFLAGS!$CXXFLAGS$ac_delim
30898 ac_ct_CXX!$ac_ct_CXX$ac_delim
30900 GREP!$GREP$ac_delim
30901 EGREP!$EGREP$ac_delim
30902 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30903 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30904 INSTALL_DATA!$INSTALL_DATA$ac_delim
30905 RANLIB!$RANLIB$ac_delim
30910 ECHO!$ECHO$ac_delim
30914 OPENSSL!$OPENSSL$ac_delim
30917 MKISOFS!$MKISOFS$ac_delim
30918 PYTHON!$PYTHON$ac_delim
30919 GROWISOFS!$GROWISOFS$ac_delim
30920 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30921 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30922 PKGCONFIG!$PKGCONFIG$ac_delim
30923 QMAKE!$QMAKE$ac_delim
30924 QMAKEQT4!$QMAKEQT4$ac_delim
30925 WXCONFIG!$WXCONFIG$ac_delim
30926 WXFLAGS!$WXFLAGS$ac_delim
30927 CDRECORD!$CDRECORD$ac_delim
30928 PIDOF!$PIDOF$ac_delim
30930 ARFLAGS!$ARFLAGS$ac_delim
30931 MAKE_SHELL!$MAKE_SHELL$ac_delim
30932 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30933 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30934 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30935 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30936 build!$build$ac_delim
30937 build_cpu!$build_cpu$ac_delim
30938 build_vendor!$build_vendor$ac_delim
30941 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30943 elif $ac_last_try; then
30944 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30945 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30946 { (exit 1); exit 1; }; }
30948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30952 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30953 if test -n "$ac_eof"; then
30954 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30955 ac_eof=`expr $ac_eof + 1`
30958 cat >>$CONFIG_STATUS <<_ACEOF
30959 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30961 /^[ ]*@MCOMMON@[ ]*$/{
30967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30968 s/^/s,@/; s/!/@,|#_!!_#|/
30971 s/'"$ac_delim"'$/,g/; t
30973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30974 ' >>$CONFIG_STATUS <conf$$subs.sed
30975 rm -f conf$$subs.sed
30976 cat >>$CONFIG_STATUS <<_ACEOF
30982 for ac_last_try in false false false false false :; do
30983 cat >conf$$subs.sed <<_ACEOF
30984 build_os!$build_os$ac_delim
30985 host!$host$ac_delim
30986 host_cpu!$host_cpu$ac_delim
30987 host_vendor!$host_vendor$ac_delim
30988 host_os!$host_os$ac_delim
30989 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30990 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30991 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30992 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30993 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30994 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30995 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30996 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30997 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30998 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30999 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31000 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31001 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31002 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31003 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31004 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31005 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31006 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31007 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31008 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31009 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31010 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31011 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31012 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31013 SET_MAKE!$SET_MAKE$ac_delim
31014 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31015 USE_NLS!$USE_NLS$ac_delim
31016 MSGFMT!$MSGFMT$ac_delim
31017 GMSGFMT!$GMSGFMT$ac_delim
31018 XGETTEXT!$XGETTEXT$ac_delim
31019 MSGMERGE!$MSGMERGE$ac_delim
31020 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31021 LIBICONV!$LIBICONV$ac_delim
31022 LTLIBICONV!$LTLIBICONV$ac_delim
31023 INTLLIBS!$INTLLIBS$ac_delim
31024 LIBINTL!$LIBINTL$ac_delim
31025 LTLIBINTL!$LTLIBINTL$ac_delim
31026 POSUB!$POSUB$ac_delim
31027 GLIBC2!$GLIBC2$ac_delim
31028 ALLOCA!$ALLOCA$ac_delim
31029 GLIBC21!$GLIBC21$ac_delim
31030 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31031 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31032 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31033 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31034 INTLBISON!$INTLBISON$ac_delim
31035 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31036 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31037 CATOBJEXT!$CATOBJEXT$ac_delim
31038 DATADIRNAME!$DATADIRNAME$ac_delim
31039 INSTOBJEXT!$INSTOBJEXT$ac_delim
31040 GENCAT!$GENCAT$ac_delim
31041 INTLOBJS!$INTLOBJS$ac_delim
31042 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31043 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31044 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31045 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31046 GNOME_LIBS!$GNOME_LIBS$ac_delim
31047 GNOME_DIR!$GNOME_DIR$ac_delim
31048 BAT_DIR!$BAT_DIR$ac_delim
31049 QWT_INC!$QWT_INC$ac_delim
31050 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31051 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31052 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31053 WX_DIR!$WX_DIR$ac_delim
31054 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31055 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31056 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31057 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31058 STATIC_FD!$STATIC_FD$ac_delim
31059 STATIC_SD!$STATIC_SD$ac_delim
31060 STATIC_DIR!$STATIC_DIR$ac_delim
31061 STATIC_CONS!$STATIC_CONS$ac_delim
31062 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31063 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31064 ALL_DIRS!$ALL_DIRS$ac_delim
31065 DIRD_DIR!$DIRD_DIR$ac_delim
31066 DIR_TOOLS!$DIR_TOOLS$ac_delim
31067 STORED_DIR!$STORED_DIR$ac_delim
31068 CONS_INC!$CONS_INC$ac_delim
31069 CONS_OBJ!$CONS_OBJ$ac_delim
31070 CONS_SRC!$CONS_SRC$ac_delim
31071 CONS_LIBS!$CONS_LIBS$ac_delim
31072 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31073 READLINE_SRC!$READLINE_SRC$ac_delim
31074 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31075 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31076 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31077 OPENSSL_INC!$OPENSSL_INC$ac_delim
31078 working_dir!$working_dir$ac_delim
31079 archivedir!$archivedir$ac_delim
31080 scriptdir!$scriptdir$ac_delim
31083 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31085 elif $ac_last_try; then
31086 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31088 { (exit 1); exit 1; }; }
31090 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31095 if test -n "$ac_eof"; then
31096 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31097 ac_eof=`expr $ac_eof + 1`
31100 cat >>$CONFIG_STATUS <<_ACEOF
31101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31106 s/^/s,@/; s/!/@,|#_!!_#|/
31109 s/'"$ac_delim"'$/,g/; t
31111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31112 ' >>$CONFIG_STATUS <conf$$subs.sed
31113 rm -f conf$$subs.sed
31114 cat >>$CONFIG_STATUS <<_ACEOF
31120 for ac_last_try in false false false false false :; do
31121 cat >conf$$subs.sed <<_ACEOF
31122 dump_email!$dump_email$ac_delim
31123 job_email!$job_email$ac_delim
31124 smtp_host!$smtp_host$ac_delim
31125 piddir!$piddir$ac_delim
31126 subsysdir!$subsysdir$ac_delim
31127 baseport!$baseport$ac_delim
31128 dir_port!$dir_port$ac_delim
31129 fd_port!$fd_port$ac_delim
31130 sd_port!$sd_port$ac_delim
31131 dir_password!$dir_password$ac_delim
31132 fd_password!$fd_password$ac_delim
31133 sd_password!$sd_password$ac_delim
31134 mon_dir_password!$mon_dir_password$ac_delim
31135 mon_fd_password!$mon_fd_password$ac_delim
31136 mon_sd_password!$mon_sd_password$ac_delim
31137 db_name!$db_name$ac_delim
31138 db_user!$db_user$ac_delim
31139 dir_user!$dir_user$ac_delim
31140 dir_group!$dir_group$ac_delim
31141 sd_user!$sd_user$ac_delim
31142 sd_group!$sd_group$ac_delim
31143 fd_user!$fd_user$ac_delim
31144 fd_group!$fd_group$ac_delim
31145 SBINPERM!$SBINPERM$ac_delim
31146 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31147 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31148 SQL_BINDIR!$SQL_BINDIR$ac_delim
31149 cats!$cats$ac_delim
31150 DB_TYPE!$DB_TYPE$ac_delim
31151 GETCONF!$GETCONF$ac_delim
31152 XMKMF!$XMKMF$ac_delim
31153 X_CFLAGS!$X_CFLAGS$ac_delim
31154 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31155 X_LIBS!$X_LIBS$ac_delim
31156 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31157 LIBOBJS!$LIBOBJS$ac_delim
31158 FDLIBS!$FDLIBS$ac_delim
31159 DEBUG!$DEBUG$ac_delim
31160 DINCLUDE!$DINCLUDE$ac_delim
31161 DLIB!$DLIB$ac_delim
31162 DB_LIBS!$DB_LIBS$ac_delim
31163 WCFLAGS!$WCFLAGS$ac_delim
31164 WLDFLAGS!$WLDFLAGS$ac_delim
31165 WRAPLIBS!$WRAPLIBS$ac_delim
31166 OBJLIST!$OBJLIST$ac_delim
31167 hostname!$hostname$ac_delim
31168 TAPEDRIVE!$TAPEDRIVE$ac_delim
31169 PSCMD!$PSCMD$ac_delim
31170 WIN32!$WIN32$ac_delim
31171 MACOSX!$MACOSX$ac_delim
31172 DISTNAME!$DISTNAME$ac_delim
31173 DISTVER!$DISTVER$ac_delim
31174 LTLIBOBJS!$LTLIBOBJS$ac_delim
31177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
31179 elif $ac_last_try; then
31180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31182 { (exit 1); exit 1; }; }
31184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31189 if test -n "$ac_eof"; then
31190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31191 ac_eof=`expr $ac_eof + 1`
31194 cat >>$CONFIG_STATUS <<_ACEOF
31195 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31200 s/^/s,@/; s/!/@,|#_!!_#|/
31203 s/'"$ac_delim"'$/,g/; t
31205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31206 ' >>$CONFIG_STATUS <conf$$subs.sed
31207 rm -f conf$$subs.sed
31208 cat >>$CONFIG_STATUS <<_ACEOF
31215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31217 # trailing colons and then remove the whole line if VPATH becomes empty
31218 # (actually we leave an empty line to preserve line numbers).
31219 if test "x$srcdir" = x.; then
31220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31221 s/:*\$(srcdir):*/:/
31222 s/:*\${srcdir}:*/:/
31224 s/^\([^=]*=[ ]*\):*/\1/
31230 cat >>$CONFIG_STATUS <<\_ACEOF
31231 fi # test -n "$CONFIG_FILES"
31234 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31237 :[FHLC]) ac_mode=$ac_tag; continue;;
31239 case $ac_mode$ac_tag in
31241 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31242 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31243 { (exit 1); exit 1; }; };;
31244 :[FH]-) ac_tag=-:-;;
31245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31262 -) ac_f="$tmp/stdin";;
31263 *) # Look for the file first in the build tree, then in the source tree
31264 # (if the path is not absolute). The absolute path cannot be DOS-style,
31265 # because $ac_f cannot contain `:'.
31269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31271 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31272 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31273 { (exit 1); exit 1; }; };;
31275 ac_file_inputs="$ac_file_inputs $ac_f"
31278 # Let's still pretend it is `configure' which instantiates (i.e., don't
31279 # use $as_me), people would be surprised to read:
31280 # /* config.h. Generated by config.status. */
31281 configure_input="Generated from "`IFS=:
31282 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31283 if test x"$ac_file" != x-; then
31284 configure_input="$ac_file. $configure_input"
31285 { echo "$as_me:$LINENO: creating $ac_file" >&5
31286 echo "$as_me: creating $ac_file" >&6;}
31290 *:-:* | *:-) cat >"$tmp/stdin";;
31295 ac_dir=`$as_dirname -- "$ac_file" ||
31296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31297 X"$ac_file" : 'X\(//\)[^/]' \| \
31298 X"$ac_file" : 'X\(//\)$' \| \
31299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31305 /^X\(\/\/\)[^/].*/{
31320 -*) as_dir=./$as_dir;;
31322 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31326 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31327 *) as_qdir=$as_dir;;
31329 as_dirs="'$as_qdir' $as_dirs"
31330 as_dir=`$as_dirname -- "$as_dir" ||
31331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31332 X"$as_dir" : 'X\(//\)[^/]' \| \
31333 X"$as_dir" : 'X\(//\)$' \| \
31334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31340 /^X\(\/\/\)[^/].*/{
31353 test -d "$as_dir" && break
31355 test -z "$as_dirs" || eval "mkdir $as_dirs"
31356 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31358 { (exit 1); exit 1; }; }; }
31362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31365 # A ".." for each directory in $ac_dir_suffix.
31366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31367 case $ac_top_builddir_sub in
31368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31372 ac_abs_top_builddir=$ac_pwd
31373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31374 # for backward compatibility:
31375 ac_top_builddir=$ac_top_build_prefix
31378 .) # We are building in place.
31380 ac_top_srcdir=$ac_top_builddir_sub
31381 ac_abs_top_srcdir=$ac_pwd ;;
31382 [\\/]* | ?:[\\/]* ) # Absolute name.
31383 ac_srcdir=$srcdir$ac_dir_suffix;
31384 ac_top_srcdir=$srcdir
31385 ac_abs_top_srcdir=$srcdir ;;
31386 *) # Relative name.
31387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31388 ac_top_srcdir=$ac_top_build_prefix$srcdir
31389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31406 cat >>$CONFIG_STATUS <<\_ACEOF
31407 # If the template does not know about datarootdir, expand it.
31408 # FIXME: This hack should be removed a few years after 2.60.
31409 ac_datarootdir_hack=; ac_datarootdir_seen=
31411 case `sed -n '/datarootdir/ {
31420 ' $ac_file_inputs` in
31421 *datarootdir*) ac_datarootdir_seen=yes;;
31422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31423 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31426 cat >>$CONFIG_STATUS <<_ACEOF
31427 ac_datarootdir_hack='
31428 s&@datadir@&$datadir&g
31429 s&@docdir@&$docdir&g
31430 s&@infodir@&$infodir&g
31431 s&@localedir@&$localedir&g
31432 s&@mandir@&$mandir&g
31433 s&\\\${datarootdir}&$datarootdir&g' ;;
31437 # Neutralize VPATH when `$srcdir' = `.'.
31438 # Shell code in configure.ac might set extrasub.
31439 # FIXME: do we really want to maintain this feature?
31440 cat >>$CONFIG_STATUS <<_ACEOF
31444 cat >>$CONFIG_STATUS <<\_ACEOF
31446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31447 s&@configure_input@&$configure_input&;t t
31448 s&@top_builddir@&$ac_top_builddir_sub&;t t
31449 s&@srcdir@&$ac_srcdir&;t t
31450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31451 s&@top_srcdir@&$ac_top_srcdir&;t t
31452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31453 s&@builddir@&$ac_builddir&;t t
31454 s&@abs_builddir@&$ac_abs_builddir&;t t
31455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31456 s&@INSTALL@&$ac_INSTALL&;t t
31457 $ac_datarootdir_hack
31458 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31461 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31462 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31463 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31464 which seems to be undefined. Please make sure it is defined." >&5
31465 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31466 which seems to be undefined. Please make sure it is defined." >&2;}
31470 -) cat "$tmp/out"; rm -f "$tmp/out";;
31471 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31480 # Transform confdefs.h into a sed script `conftest.defines', that
31481 # substitutes the proper values into config.h.in to produce config.h.
31482 rm -f conftest.defines conftest.tail
31483 # First, append a space to every undef/define line, to ease matching.
31484 echo 's/$/ /' >conftest.defines
31485 # Then, protect against being on the right side of a sed subst, or in
31486 # an unquoted here document, in config.status. If some macros were
31487 # called several times there might be several #defines for the same
31488 # symbol, which is useless. But do not sort them, since the last
31489 # AC_DEFINE must be honored.
31490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31491 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31492 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31493 # PARAMS is the parameter list in the macro definition--in most cases, it's
31494 # just an empty string.
31495 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31496 ac_dB='\\)[ (].*,\\1define\\2'
31504 s/^[ ]*#[ ]*define[ ][ ]*//
31509 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31510 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31511 ' >>conftest.defines
31513 # Remove the space that was appended to ease matching.
31514 # Then replace #undef with comments. This is necessary, for
31515 # example, in the case of _POSIX_SOURCE, which is predefined and required
31516 # on some systems where configure will not decide to define it.
31517 # (The regexp can be short, since the line contains either #define or #undef.)
31519 s,^[ #]*u.*,/* & */,' >>conftest.defines
31521 # Break up conftest.defines:
31522 ac_max_sed_lines=50
31524 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31525 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31526 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31528 ac_in='$ac_file_inputs'
31529 ac_out='"$tmp/out1"'
31530 ac_nxt='"$tmp/out2"'
31534 # Write a here document:
31535 cat >>$CONFIG_STATUS <<_ACEOF
31536 # First, check the format of the line:
31537 cat >"\$tmp/defines.sed" <<\\CEOF
31538 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31539 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31543 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31545 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31546 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31547 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31548 grep . conftest.tail >/dev/null || break
31549 rm -f conftest.defines
31550 mv conftest.tail conftest.defines
31552 rm -f conftest.defines conftest.tail
31554 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31555 cat >>$CONFIG_STATUS <<\_ACEOF
31556 if test x"$ac_file" != x-; then
31557 echo "/* $configure_input */" >"$tmp/config.h"
31558 cat "$ac_result" >>"$tmp/config.h"
31559 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31560 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31561 echo "$as_me: $ac_file is unchanged" >&6;}
31564 mv "$tmp/config.h" $ac_file
31567 echo "/* $configure_input */"
31573 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31574 echo "$as_me: executing $ac_file commands" >&6;}
31579 case $ac_file$ac_mode in
31581 for ac_file in $CONFIG_FILES; do
31582 # Support "outfile[:infile[:infile...]]"
31584 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31586 # PO directories have a Makefile.in generated from Makefile.in.in.
31587 case "$ac_file" in */Makefile.in)
31588 # Adjust a relative srcdir.
31589 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31590 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31591 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31592 # In autoconf-2.13 it is called $ac_given_srcdir.
31593 # In autoconf-2.50 it is called $srcdir.
31594 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31595 case "$ac_given_srcdir" in
31596 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31597 /*) top_srcdir="$ac_given_srcdir" ;;
31598 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31600 # Treat a directory as a PO directory if and only if it has a
31601 # POTFILES.in file. This allows packages to have multiple PO
31602 # directories under different names or in different locations.
31603 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31604 rm -f "$ac_dir/POTFILES"
31605 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31606 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31607 POMAKEFILEDEPS="POTFILES.in"
31608 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31609 # on $ac_dir but don't depend on user-specified configuration
31611 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31612 # The LINGUAS file contains the set of available languages.
31613 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31614 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31616 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31617 # Hide the ALL_LINGUAS assigment from automake.
31618 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31619 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31621 # The set of available languages was given in configure.in.
31622 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31625 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31626 # Compute UPDATEPOFILES
31627 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31628 # Compute DUMMYPOFILES
31629 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31631 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31632 case "$ac_given_srcdir" in
31634 *) srcdirpre='$(srcdir)/' ;;
31640 for lang in $ALL_LINGUAS; do
31641 POFILES="$POFILES $srcdirpre$lang.po"
31642 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31643 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31644 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31646 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31647 # environment variable.
31649 if test -n "$ALL_LINGUAS"; then
31650 for presentlang in $ALL_LINGUAS; do
31652 if test "%UNSET%" != "$LINGUAS"; then
31653 desiredlanguages="$LINGUAS"
31655 desiredlanguages="$ALL_LINGUAS"
31657 for desiredlang in $desiredlanguages; do
31658 # Use the presentlang catalog if desiredlang is
31659 # a. equal to presentlang, or
31660 # b. a variant of presentlang (because in this case,
31661 # presentlang can be used as a fallback for messages
31662 # which are not translated in the desiredlang catalog).
31663 case "$desiredlang" in
31664 "$presentlang"*) useit=yes;;
31667 if test $useit = yes; then
31668 INST_LINGUAS="$INST_LINGUAS $presentlang"
31673 if test -n "$INST_LINGUAS"; then
31674 for lang in $INST_LINGUAS; do
31675 CATALOGS="$CATALOGS $lang.gmo"
31678 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31679 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"
31680 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31681 if test -f "$f"; then
31683 *.orig | *.bak | *~) ;;
31684 *) cat "$f" >> "$ac_dir/Makefile" ;;
31699 { (exit 0); exit 0; }
31701 chmod +x $CONFIG_STATUS
31702 ac_clean_files=$ac_clean_files_save
31705 # configure is writing to config.log, and then calls config.status.
31706 # config.status does its own redirection, appending to config.log.
31707 # Unfortunately, on DOS this fails, as config.log is still kept open
31708 # by configure, so config.status won't be able to write to it; its
31709 # output is simply discarded. So we exec the FD to /dev/null,
31710 # effectively closing config.log, so it can be properly (re)opened and
31711 # appended to by config.status. When coming back to configure, we
31712 # need to make the FD available again.
31713 if test "$no_create" != yes; then
31715 ac_config_status_args=
31716 test "$silent" = yes &&
31717 ac_config_status_args="$ac_config_status_args --quiet"
31719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31722 # would make configure fail if this is the last instruction.
31723 $ac_cs_success || { (exit 1); exit 1; }
31727 if test "${support_bat}" = "yes" ; then
31728 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31729 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31735 if test "x$QMAKEQT4" != "xnone"; then
31742 chmod 755 install_conf_file build-depkgs-qt-console
31743 echo "Creating bat Makefile"
31748 echo "Doing make of dependencies"
31749 ${MAKE:-make} depend
31752 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31753 chmod 755 dvd-handler dvd-simulator
31754 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31759 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31760 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31762 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31763 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31765 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31766 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31768 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31769 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31771 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31772 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31774 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31775 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31777 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31778 chmod 755 $c/sqlite
31781 chmod 755 src/win32/build-depkgs-mingw32
31785 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31786 largefile_support="yes"
31790 # A whole lot of hand springs to get the compiler version.
31791 # This is because gcc changed the output in version 3.0
31793 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31794 if test "x${CCVERSION}" = "x" ; then
31795 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31797 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31798 if test x"${CXXVERSION}" = x ; then
31799 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31802 if test "x${subsysdir}" = "x${sbindir}" ; then
31805 echo "You have set --sbindir and --with-subsys-dir"
31806 echo " both equal to: ${subsysdir} "
31807 echo " This is not permitted. Please reconfigure."
31809 echo "Aborting configuration ..."
31815 if test "x${db_type}" = "xInternal" ; then
31818 echo "You have not specified either --enable-client-only or one of the"
31819 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31820 echo " This is not permitted. Please reconfigure."
31822 echo "Aborting the configuration ..."
31829 Configuration on `date`:
31831 Host: $host -- ${DISTNAME} ${DISTVER}
31832 Bacula version: ${VERSION} (${DATE})
31833 Source code location: ${srcdir}
31834 Install binaries: ${sbindir}
31835 Install config files: ${sysconfdir}
31836 Scripts directory: ${scriptdir}
31837 Archive directory: ${archivedir}
31838 Working directory: ${working_dir}
31839 PID directory: ${piddir}
31840 Subsys directory: ${subsysdir}
31841 Man directory: ${mandir}
31842 Data directory: ${datadir}
31843 C Compiler: ${CC} ${CCVERSION}
31844 C++ Compiler: ${CXX} ${CXXVERSION}
31845 Compiler flags: ${WCFLAGS} ${CFLAGS}
31846 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31848 Statically Linked Tools: ${support_static_tools}
31849 Statically Linked FD: ${support_static_fd}
31850 Statically Linked SD: ${support_static_sd}
31851 Statically Linked DIR: ${support_static_dir}
31852 Statically Linked CONS: ${support_static_cons}
31853 Database type: ${db_type}
31854 Database lib: ${DB_LIBS}
31855 Database name: ${db_name}
31856 Database user: ${db_user}
31858 Job Output Email: ${job_email}
31859 Traceback Email: ${dump_email}
31860 SMTP Host Address: ${smtp_host}
31862 Director Port: ${dir_port}
31863 File daemon Port: ${fd_port}
31864 Storage daemon Port: ${sd_port}
31866 Director User: ${dir_user}
31867 Director Group: ${dir_group}
31868 Storage Daemon User: ${sd_user}
31869 Storage DaemonGroup: ${sd_group}
31870 File Daemon User: ${fd_user}
31871 File Daemon Group: ${fd_group}
31873 SQL binaries Directory ${SQL_BINDIR}
31875 Large file support: $largefile_support
31876 Bacula conio support: ${got_conio} ${CONS_LIBS}
31877 readline support: ${got_readline} ${PRTREADLINE_SRC}
31878 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31879 TLS support: ${support_tls}
31880 Encryption support: ${support_crypto}
31881 ZLIB support: ${have_zlib}
31882 enable-smartalloc: ${support_smartalloc}
31883 bat support: ${support_bat} ${QWT_LDFLAGS}
31884 enable-gnome: ${support_gnome} ${gnome_version}
31885 enable-bwx-console: ${support_wx_console} ${wx_version}
31886 enable-tray-monitor: ${support_tray_monitor}
31887 client-only: ${build_client_only}
31888 build-dird: ${build_dird}
31889 build-stored: ${build_stored}
31890 ACL support: ${have_acl}
31891 Python support: ${support_python} ${PYTHON_LIBS}
31892 Batch insert enabled: ${support_batch_insert}