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 # dlopen is needed for plugins
16594 # -----------------------------------------------------------
16595 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16596 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16597 if test "${ac_cv_search_dlopen+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 ac_func_search_save_LIBS=$LIBS
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16623 for ac_lib in '' dl; do
16624 if test -z "$ac_lib"; then
16625 ac_res="none required"
16628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest$ac_exeext &&
16647 $as_test_x conftest$ac_exeext; then
16648 ac_cv_search_dlopen=$ac_res
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16658 if test "${ac_cv_search_dlopen+set}" = set; then
16662 if test "${ac_cv_search_dlopen+set}" = set; then
16665 ac_cv_search_dlopen=no
16667 rm conftest.$ac_ext
16668 LIBS=$ac_func_search_save_LIBS
16670 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16671 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16672 ac_res=$ac_cv_search_dlopen
16673 if test "$ac_res" != no; then
16674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16679 # ------------------------------------------
16680 # Where to place working dir
16681 # ------------------------------------------
16682 working_dir=`eval echo ${prefix}/var/bacula/working`
16684 # Check whether --with-working-dir was given.
16685 if test "${with_working_dir+set}" = set; then
16686 withval=$with_working_dir;
16687 if test "x$withval" != "xno" ; then
16688 working_dir=$withval
16697 # ------------------------------------------------------------------
16698 # If the user has not set archivedir, we set our default as /tmp
16699 # ------------------------------------------------------------------
16702 # Check whether --with-archivedir was given.
16703 if test "${with_archivedir+set}" = set; then
16704 withval=$with_archivedir;
16705 if test "x$withval" != "xno" ; then
16706 archivedir=$withval
16717 # ------------------------------------------
16718 # Where to place scriptdir (script files)
16719 # ------------------------------------------
16720 scriptdir=`eval echo ${sysconfdir}`
16722 # Check whether --with-scriptdir was given.
16723 if test "${with_scriptdir+set}" = set; then
16724 withval=$with_scriptdir;
16725 if test "x$withval" != "xno" ; then
16736 # ------------------------------------------
16737 # Where to send dump email
16738 # ------------------------------------------
16739 dump_email=root@localhost
16741 # Check whether --with-dump-email was given.
16742 if test "${with_dump_email+set}" = set; then
16743 withval=$with_dump_email;
16744 if test "x$withval" != "xno" ; then
16745 dump_email=$withval
16754 # ------------------------------------------
16755 # Where to send job email
16756 # ------------------------------------------
16757 job_email=root@localhost
16759 # Check whether --with-job-email was given.
16760 if test "${with_job_email+set}" = set; then
16761 withval=$with_job_email;
16762 if test "x$withval" != "xno" ; then
16772 # ------------------------------------------
16773 # Where to find smtp host
16774 # ------------------------------------------
16775 smtp_host=localhost
16777 # Check whether --with-smtp_host was given.
16778 if test "${with_smtp_host+set}" = set; then
16779 withval=$with_smtp_host;
16780 if test "x$withval" != "xno" ; then
16791 # ------------------------------------
16792 # Where to place pid files
16793 # ------------------------------------
16796 # Check whether --with-pid-dir was given.
16797 if test "${with_pid_dir+set}" = set; then
16798 withval=$with_pid_dir;
16799 if test "x$withval" != "xno" ; then
16807 cat >>confdefs.h <<_ACEOF
16808 #define _PATH_BACULA_PIDDIR "$piddir"
16814 # ------------------------------------
16815 # Where to place subsys "lock file"
16816 # ------------------------------------
16817 subsysdir=/var/run/subsys
16818 if test -d /var/run/subsys; then
16819 subsysdir=/var/run/subsys
16820 elif test -d /var/lock/subsys; then
16821 subsysdir=/var/lock/subsys
16823 subsysdir=/var/run/subsys
16826 # Check whether --with-subsys-dir was given.
16827 if test "${with_subsys_dir+set}" = set; then
16828 withval=$with_subsys_dir;
16829 if test "x$withval" != "xno" ; then
16841 # ------------------------------------
16842 # Where to start assigning ports
16843 # ------------------------------------
16846 # Check whether --with-baseport was given.
16847 if test "${with_baseport+set}" = set; then
16848 withval=$with_baseport;
16849 if test "x$withval" != "xno" ; then
16858 dir_port=`expr $baseport`
16859 fd_port=`expr $baseport + 1`
16860 sd_port=`expr $fd_port + 1`
16867 # ------------------------------------------
16868 # Generate passwords
16869 # ------------------------------------------
16872 # Check whether --with-dir-password was given.
16873 if test "${with_dir_password+set}" = set; then
16874 withval=$with_dir_password;
16875 if test "x$withval" != "xno" ; then
16876 dir_password=$withval
16883 if test "x$dir_password" = "x" ; then
16884 if test "x$OPENSSL" = "xnone" ; then
16885 key=`autoconf/randpass 33`
16887 key=`openssl rand -base64 33`
16894 # Check whether --with-fd-password was given.
16895 if test "${with_fd_password+set}" = set; then
16896 withval=$with_fd_password;
16897 if test "x$withval" != "xno" ; then
16898 fd_password=$withval
16905 if test "x$fd_password" = "x" ; then
16906 if test "x$OPENSSL" = "xnone" ; then
16907 key=`autoconf/randpass 37`
16909 key=`openssl rand -base64 33`
16916 # Check whether --with-sd-password was given.
16917 if test "${with_sd_password+set}" = set; then
16918 withval=$with_sd_password;
16919 if test "x$withval" != "xno" ; then
16920 sd_password=$withval
16927 if test "x$sd_password" = "x" ; then
16928 if test "x$OPENSSL" = "xnone" ; then
16929 key=`autoconf/randpass 41`
16931 key=`openssl rand -base64 33`
16938 # Check whether --with-mon-dir-password was given.
16939 if test "${with_mon_dir_password+set}" = set; then
16940 withval=$with_mon_dir_password;
16941 if test "x$withval" != "xno" ; then
16942 mon_dir_password=$withval
16949 if test "x$mon_dir_password" = "x" ; then
16950 if test "x$OPENSSL" = "xnone" ; then
16951 key=`autoconf/randpass 33`
16953 key=`openssl rand -base64 33`
16955 mon_dir_password=$key
16960 # Check whether --with-mon-fd-password was given.
16961 if test "${with_mon_fd_password+set}" = set; then
16962 withval=$with_mon_fd_password;
16963 if test "x$withval" != "xno" ; then
16964 mon_fd_password=$withval
16971 if test "x$mon_fd_password" = "x" ; then
16972 if test "x$OPENSSL" = "xnone" ; then
16973 key=`autoconf/randpass 37`
16975 key=`openssl rand -base64 33`
16977 mon_fd_password=$key
16982 # Check whether --with-mon-sd-password was given.
16983 if test "${with_mon_sd_password+set}" = set; then
16984 withval=$with_mon_sd_password;
16985 if test "x$withval" != "xno" ; then
16986 mon_sd_password=$withval
16993 if test "x$mon_sd_password" = "x" ; then
16994 if test "x$OPENSSL" = "xnone" ; then
16995 key=`autoconf/randpass 41`
16997 key=`openssl rand -base64 33`
16999 mon_sd_password=$key
17010 # Pickup any database name
17014 # Check whether --with-db_name was given.
17015 if test "${with_db_name+set}" = set; then
17016 withval=$with_db_name;
17017 if test "x$withval" != "x" ; then
17028 # Check whether --with-db_user was given.
17029 if test "${with_db_user+set}" = set; then
17030 withval=$with_db_user;
17031 if test "x$withval" != "x" ; then
17042 # Handle users and groups for each daemon
17046 # Check whether --with-dir_user was given.
17047 if test "${with_dir_user+set}" = set; then
17048 withval=$with_dir_user;
17049 if test "x$withval" != "x" ; then
17059 # Check whether --with-dir_group was given.
17060 if test "${with_dir_group+set}" = set; then
17061 withval=$with_dir_group;
17062 if test "x$withval" != "x" ; then
17072 # Check whether --with-sd_user was given.
17073 if test "${with_sd_user+set}" = set; then
17074 withval=$with_sd_user;
17075 if test "x$withval" != "x" ; then
17085 # Check whether --with-sd_group was given.
17086 if test "${with_sd_group+set}" = set; then
17087 withval=$with_sd_group;
17088 if test "x$withval" != "x" ; then
17098 # Check whether --with-fd_user was given.
17099 if test "${with_fd_user+set}" = set; then
17100 withval=$with_fd_user;
17101 if test "x$withval" != "x" ; then
17111 # Check whether --with-fd_group was given.
17112 if test "${with_fd_group+set}" = set; then
17113 withval=$with_fd_group;
17114 if test "x$withval" != "x" ; then
17130 # allow setting default executable permissions
17134 # Check whether --with-sbin-perm was given.
17135 if test "${with_sbin_perm+set}" = set; then
17136 withval=$with_sbin_perm;
17137 if test "x$withval" != "x" ; then
17147 # ------------------------------------------------
17148 # Bacula check for various SQL database engines
17149 # ------------------------------------------------
17153 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17154 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17156 # Check whether --with-postgresql was given.
17157 if test "${with_postgresql+set}" = set; then
17158 withval=$with_postgresql;
17159 if test "$withval" != "no"; then
17160 if test "$db_found" = "yes"; then
17161 { echo "$as_me:$LINENO: result: error" >&5
17162 echo "${ECHO_T}error" >&6; }
17163 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17164 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17165 { (exit 1); exit 1; }; };
17167 if test "$withval" = "yes"; then
17168 PG_CONFIG=`which pg_config`
17169 if test -n "$PG_CONFIG";then
17170 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17171 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17172 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17173 elif test -f /usr/local/include/libpq-fe.h; then
17174 POSTGRESQL_INCDIR=/usr/local/include
17175 if test -d /usr/local/lib64; then
17176 POSTGRESQL_LIBDIR=/usr/local/lib64
17178 POSTGRESQL_LIBDIR=/usr/local/lib
17180 POSTGRESQL_BINDIR=/usr/local/bin
17181 elif test -f /usr/include/libpq-fe.h; then
17182 POSTGRESQL_INCDIR=/usr/include
17183 if test -d /usr/lib64; then
17184 POSTGRESQL_LIBDIR=/usr/lib64
17186 POSTGRESQL_LIBDIR=/usr/lib
17188 POSTGRESQL_BINDIR=/usr/bin
17189 elif test -f /usr/include/pgsql/libpq-fe.h; then
17190 POSTGRESQL_INCDIR=/usr/include/pgsql
17191 if test -d /usr/lib64/pgsql; then
17192 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17194 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17196 POSTGRESQL_BINDIR=/usr/bin
17197 elif test -f /usr/include/postgresql/libpq-fe.h; then
17198 POSTGRESQL_INCDIR=/usr/include/postgresql
17199 if test -d /usr/lib64/postgresql; then
17200 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17202 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17204 POSTGRESQL_BINDIR=/usr/bin
17206 { echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6; }
17208 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17209 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17210 { (exit 1); exit 1; }; }
17212 elif test -f $withval/include/libpq-fe.h; then
17213 POSTGRESQL_INCDIR=$withval/include
17214 POSTGRESQL_LIBDIR=$withval/lib
17215 POSTGRESQL_BINDIR=$withval/bin
17216 elif test -f $withval/include/postgresql/libpq-fe.h; then
17217 POSTGRESQL_INCDIR=$withval/include/postgresql
17218 if test -d $withval/lib64; then
17219 POSTGRESQL_LIBDIR=$withval/lib64
17221 POSTGRESQL_LIBDIR=$withval/lib
17223 POSTGRESQL_BINDIR=$withval/bin
17225 { echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6; }
17227 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17228 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17229 { (exit 1); exit 1; }; }
17231 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17232 { echo "$as_me:$LINENO: checking for crypt" >&5
17233 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17234 if test "${ac_cv_func_crypt+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17245 #define crypt innocuous_crypt
17247 /* System header to define __stub macros and hopefully few prototypes,
17248 which can conflict with char crypt (); below.
17249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17250 <limits.h> exists even on freestanding compilers. */
17253 # include <limits.h>
17255 # include <assert.h>
17260 /* Override any GCC internal prototype to avoid an error.
17261 Use char because int might match the return type of a GCC
17262 builtin and then its argument prototype would still apply. */
17267 /* The GNU C library defines this for functions which it implements
17268 to always fail with ENOSYS. Some functions are actually named
17269 something starting with __ and the normal name is an alias. */
17270 #if defined __stub_crypt || defined __stub___crypt
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_link") 2>conftest.er1
17291 grep -v '^ *+' conftest.er1 >conftest.err
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && {
17296 test -z "$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 } && test -s conftest$ac_exeext &&
17299 $as_test_x conftest$ac_exeext; then
17300 ac_cv_func_crypt=yes
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 ac_cv_func_crypt=no
17308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17309 conftest$ac_exeext conftest.$ac_ext
17311 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17312 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17313 if test $ac_cv_func_crypt = yes; then
17316 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17317 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17318 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 ac_check_lib_save_LIBS=$LIBS
17322 LIBS="-lcrypt $LIBS"
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_link") 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext &&
17362 $as_test_x conftest$ac_exeext; then
17363 ac_cv_lib_crypt_crypt=yes
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_cv_lib_crypt_crypt=no
17371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17372 conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17375 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17376 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17377 if test $ac_cv_lib_crypt_crypt = yes; then
17378 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17383 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17384 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17385 SQL_BINDIR=$POSTGRESQL_BINDIR
17386 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17388 cat >>confdefs.h <<\_ACEOF
17389 #define HAVE_POSTGRESQL 1
17392 { echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6; }
17395 support_postgresql=yes
17399 { echo "$as_me:$LINENO: result: no" >&5
17400 echo "${ECHO_T}no" >&6; }
17405 { echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6; }
17418 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17419 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17421 # Check whether --with-mysql was given.
17422 if test "${with_mysql+set}" = set; then
17423 withval=$with_mysql;
17424 if test "$withval" != "no"; then
17425 if test "$withval" = "yes"; then
17426 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17427 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17428 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17429 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17430 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17432 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17434 MYSQL_BINDIR=/usr/local/mysql/bin
17435 elif test -f /usr/include/mysql/mysql.h; then
17436 MYSQL_INCDIR=/usr/include/mysql
17437 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17438 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17439 MYSQL_LIBDIR=/usr/lib64/mysql
17440 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17441 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17442 MYSQL_LIBDIR=/usr/lib/mysql
17444 MYSQL_LIBDIR=/usr/lib
17446 MYSQL_BINDIR=/usr/bin
17447 elif test -f /usr/include/mysql.h; then
17448 MYSQL_INCDIR=/usr/include
17449 if test -f /usr/lib64/libmysqlclient_r.a \
17450 -o -f /usr/lib64/libmysqlclient_r.so; then
17451 MYSQL_LIBDIR=/usr/lib64
17453 MYSQL_LIBDIR=/usr/lib
17455 MYSQL_BINDIR=/usr/bin
17456 elif test -f /usr/local/include/mysql/mysql.h; then
17457 MYSQL_INCDIR=/usr/local/include/mysql
17458 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17459 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17460 MYSQL_LIBDIR=/usr/local/lib64/mysql
17462 MYSQL_LIBDIR=/usr/local/lib/mysql
17464 MYSQL_BINDIR=/usr/local/bin
17465 elif test -f /usr/local/include/mysql.h; then
17466 MYSQL_INCDIR=/usr/local/include
17467 if test -f /usr/local/lib64/libmysqlclient_r.a \
17468 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17469 MYSQL_LIBDIR=/usr/local/lib64
17471 MYSQL_LIBDIR=/usr/local/lib
17473 MYSQL_BINDIR=/usr/local/bin
17475 { echo "$as_me:$LINENO: result: no" >&5
17476 echo "${ECHO_T}no" >&6; }
17477 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17478 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17479 { (exit 1); exit 1; }; }
17482 if test -f $withval/include/mysql/mysql.h; then
17483 MYSQL_INCDIR=$withval/include/mysql
17484 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17485 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17486 MYSQL_LIBDIR=$withval/lib64/mysql
17488 MYSQL_LIBDIR=$withval/lib/mysql
17490 if test -f $withval/lib/libmysqlclient_r.so; then
17491 MYSQL_LIBDIR=$withval/lib
17494 MYSQL_BINDIR=$withval/bin
17495 elif test -f $withval/include/mysql.h; then
17496 MYSQL_INCDIR=$withval/include
17497 if test -f $withval/lib64/libmysqlclient_r.a \
17498 -o -f $withval/lib64/libmysqlclient_r.so; then
17499 MYSQL_LIBDIR=$withval/lib64
17501 MYSQL_LIBDIR=$withval/lib
17503 MYSQL_BINDIR=$withval/bin
17505 { echo "$as_me:$LINENO: result: no" >&5
17506 echo "${ECHO_T}no" >&6; }
17507 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17508 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17509 { (exit 1); exit 1; }; }
17512 SQL_INCLUDE=-I$MYSQL_INCDIR
17513 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17514 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17515 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_THREAD_SAFE_MYSQL 1
17521 SQL_BINDIR=$MYSQL_BINDIR
17522 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_MYSQL 1
17528 { echo "$as_me:$LINENO: result: yes" >&5
17529 echo "${ECHO_T}yes" >&6; }
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17545 # Check whether --with-embedded-mysql was given.
17546 if test "${with_embedded_mysql+set}" = set; then
17547 withval=$with_embedded_mysql;
17548 if test "$withval" != "no"; then
17549 if test "$withval" = "yes"; then
17550 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17551 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17552 if test -d /usr/local/mysql/lib64/mysql; then
17553 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17555 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17557 MYSQL_BINDIR=/usr/local/mysql/bin
17558 elif test -f /usr/include/mysql/mysql.h; then
17559 MYSQL_INCDIR=/usr/include/mysql
17560 if test -d /usr/lib64/mysql; then
17561 MYSQL_LIBDIR=/usr/lib64/mysql
17563 MYSQL_LIBDIR=/usr/lib/mysql
17565 MYSQL_BINDIR=/usr/bin
17566 elif test -f /usr/include/mysql.h; then
17567 MYSQL_INCDIR=/usr/include
17568 if test -d /usr/lib64; then
17569 MYSQL_LIBDIR=/usr/lib64
17571 MYSQL_LIBDIR=/usr/lib
17573 MYSQL_BINDIR=/usr/bin
17574 elif test -f /usr/local/include/mysql/mysql.h; then
17575 MYSQL_INCDIR=/usr/local/include/mysql
17576 if test -d /usr/local/lib64/mysql; then
17577 MYSQL_LIBDIR=/usr/local/lib64/mysql
17579 MYSQL_LIBDIR=/usr/local/lib/mysql
17581 MYSQL_BINDIR=/usr/local/bin
17582 elif test -f /usr/local/include/mysql.h; then
17583 MYSQL_INCDIR=/usr/local/include
17584 if test -d /usr/local/lib64; then
17585 MYSQL_LIBDIR=/usr/local/lib64
17587 MYSQL_LIBDIR=/usr/local/lib
17589 MYSQL_BINDIR=/usr/local/bin
17591 { echo "$as_me:$LINENO: result: no" >&5
17592 echo "${ECHO_T}no" >&6; }
17593 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17594 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17595 { (exit 1); exit 1; }; }
17598 if test -f $withval/include/mysql/mysql.h; then
17599 MYSQL_INCDIR=$withval/include/mysql
17600 if test -d $withval/lib64/mysql; then
17601 MYSQL_LIBDIR=$withval/lib64/mysql
17603 MYSQL_LIBDIR=$withval/lib/mysql
17605 MYSQL_BINDIR=$withval/bin
17606 elif test -f $withval/include/mysql.h; then
17607 MYSQL_INCDIR=$withval/include
17608 if test -d $withval/lib64; then
17609 MYSQL_LIBDIR=$withval/lib64
17611 MYSQL_LIBDIR=$withval/lib
17613 MYSQL_BINDIR=$withval/bin
17615 { echo "$as_me:$LINENO: result: no" >&5
17616 echo "${ECHO_T}no" >&6; }
17617 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17618 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17619 { (exit 1); exit 1; }; }
17622 SQL_INCLUDE=-I$MYSQL_INCDIR
17623 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17624 SQL_BINDIR=$MYSQL_BINDIR
17625 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_MYSQL 1
17631 cat >>confdefs.h <<\_ACEOF
17632 #define HAVE_EMBEDDED_MYSQL 1
17635 { echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6; }
17643 { echo "$as_me:$LINENO: result: no" >&5
17644 echo "${ECHO_T}no" >&6; }
17660 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17661 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17663 # Check whether --with-sqlite3 was given.
17664 if test "${with_sqlite3+set}" = set; then
17665 withval=$with_sqlite3;
17666 if test "$withval" != "no"; then
17667 if test "$withval" = "yes"; then
17668 if test -f /usr/local/include/sqlite3.h; then
17669 SQLITE_INCDIR=/usr/local/include
17670 if test -d /usr/local/lib64; then
17671 SQLITE_LIBDIR=/usr/local/lib64
17673 SQLITE_LIBDIR=/usr/local/lib
17675 SQLITE_BINDIR=/usr/local/bin
17676 elif test -f /usr/include/sqlite3.h; then
17677 SQLITE_INCDIR=/usr/include
17678 if test -d /usr/lib64; then
17679 SQLITE_LIBDIR=/usr/lib64
17681 SQLITE_LIBDIR=/usr/lib
17683 SQLITE_BINDIR=/usr/bin
17684 elif test -f $prefix/include/sqlite3.h; then
17685 SQLITE_INCDIR=$prefix/include
17686 if test -d $prefix/lib64; then
17687 SQLITE_LIBDIR=$prefix/lib64
17689 SQLITE_LIBDIR=$prefix/lib
17691 SQLITE_BINDIR=$prefix/bin
17693 { echo "$as_me:$LINENO: result: no" >&5
17694 echo "${ECHO_T}no" >&6; }
17695 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17696 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17697 { (exit 1); exit 1; }; }
17700 if test -f $withval/sqlite3.h; then
17701 SQLITE_INCDIR=$withval
17702 SQLITE_LIBDIR=$withval
17703 SQLITE_BINDIR=$withval
17704 elif test -f $withval/include/sqlite3.h; then
17705 SQLITE_INCDIR=$withval/include
17706 if test -d $withval/lib64; then
17707 SQLITE_LIBDIR=$withval/lib64
17709 SQLITE_LIBDIR=$withval/lib
17711 SQLITE_BINDIR=$withval/bin
17713 { echo "$as_me:$LINENO: result: no" >&5
17714 echo "${ECHO_T}no" >&6; }
17715 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17716 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17717 { (exit 1); exit 1; }; }
17720 SQL_INCLUDE=-I$SQLITE_INCDIR
17721 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17722 SQL_BINDIR=$SQLITE_BINDIR
17723 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17725 cat >>confdefs.h <<\_ACEOF
17726 #define HAVE_SQLITE3 1
17729 { echo "$as_me:$LINENO: result: yes" >&5
17730 echo "${ECHO_T}yes" >&6; }
17732 support_sqlite3=yes
17737 { echo "$as_me:$LINENO: result: no" >&5
17738 echo "${ECHO_T}no" >&6; }
17743 { echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6; }
17756 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17757 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17759 # Check whether --with-sqlite was given.
17760 if test "${with_sqlite+set}" = set; then
17761 withval=$with_sqlite;
17762 if test "$withval" != "no"; then
17763 if test "$withval" = "yes"; then
17764 if test -f /usr/local/include/sqlite.h; then
17765 SQLITE_INCDIR=/usr/local/include
17766 if test -d /usr/local/lib64; then
17767 SQLITE_LIBDIR=/usr/local/lib64
17769 SQLITE_LIBDIR=/usr/local/lib
17771 SQLITE_BINDIR=/usr/local/bin
17772 elif test -f /usr/include/sqlite.h; then
17773 SQLITE_INCDIR=/usr/include
17774 if test -d /usr/lib64; then
17775 SQLITE_LIBDIR=/usr/lib64
17777 SQLITE_LIBDIR=/usr/lib
17779 SQLITE_BINDIR=/usr/bin
17780 elif test -f $prefix/include/sqlite.h; then
17781 SQLITE_INCDIR=$prefix/include
17782 if test -d $prefix/lib64; then
17783 SQLITE_LIBDIR=$prefix/lib64
17785 SQLITE_LIBDIR=$prefix/lib
17787 SQLITE_BINDIR=$prefix/bin
17789 { echo "$as_me:$LINENO: result: no" >&5
17790 echo "${ECHO_T}no" >&6; }
17791 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17792 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17793 { (exit 1); exit 1; }; }
17796 if test -f $withval/sqlite.h; then
17797 SQLITE_INCDIR=$withval
17798 SQLITE_LIBDIR=$withval
17799 SQLITE_BINDIR=$withval
17800 elif test -f $withval/include/sqlite.h; then
17801 SQLITE_INCDIR=$withval/include
17802 if test -d $withval/lib64; then
17803 SQLITE_LIBDIR=$withval/lib64
17805 SQLITE_LIBDIR=$withval/lib
17807 SQLITE_BINDIR=$withval/bin
17809 { echo "$as_me:$LINENO: result: no" >&5
17810 echo "${ECHO_T}no" >&6; }
17811 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17812 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17813 { (exit 1); exit 1; }; }
17816 SQL_INCLUDE=-I$SQLITE_INCDIR
17817 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17818 SQL_BINDIR=$SQLITE_BINDIR
17819 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_SQLITE 1
17825 { echo "$as_me:$LINENO: result: yes" >&5
17826 echo "${ECHO_T}yes" >&6; }
17833 { echo "$as_me:$LINENO: result: no" >&5
17834 echo "${ECHO_T}no" >&6; }
17839 { echo "$as_me:$LINENO: result: no" >&5
17840 echo "${ECHO_T}no" >&6; }
17853 # -------------------------------------------
17854 # enable batch attribute DB insert (default on)
17855 # -------------------------------------------
17856 support_batch_insert=no
17857 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17859 if test $pkg = 0; then
17860 support_batch_insert=yes
17861 # Check whether --enable-batch-insert was given.
17862 if test "${enable_batch_insert+set}" = set; then
17863 enableval=$enable_batch_insert; if test x$enableval = xno; then
17864 support_batch_insert=no
17866 support_batch_insert=yes
17872 # Check if postgresql support batch mode
17873 if test x$DB_TYPE = xpostgresql; then
17874 A=`nm $SQL_LIB | grep PQputCopyData`
17876 if test $pkg != 0; then
17877 support_batch_insert=no
17881 if test $support_batch_insert = yes ; then
17883 cat >>confdefs.h <<\_ACEOF
17884 #define HAVE_BATCH_FILE_INSERT 1
17890 cat >>confdefs.h <<\_ACEOF
17891 #define PROTOTYPES 1
17895 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17896 if test -z "$CCOPTS"; then
17897 CCOPTS='-g -O2 -Wall'
17905 largefile_support="no"
17907 # Check whether --enable-largefile was given.
17908 if test "${enable_largefile+set}" = set; then
17909 enableval=$enable_largefile;
17912 if test "$enable_largefile" != no; then
17913 if test -n "$ac_tool_prefix"; then
17914 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17915 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17918 if test "${ac_cv_prog_GETCONF+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 if test -n "$GETCONF"; then
17922 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17928 test -z "$as_dir" && as_dir=.
17929 for ac_exec_ext in '' $ac_executable_extensions; do
17930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17931 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17941 GETCONF=$ac_cv_prog_GETCONF
17942 if test -n "$GETCONF"; then
17943 { echo "$as_me:$LINENO: result: $GETCONF" >&5
17944 echo "${ECHO_T}$GETCONF" >&6; }
17946 { echo "$as_me:$LINENO: result: no" >&5
17947 echo "${ECHO_T}no" >&6; }
17952 if test -z "$ac_cv_prog_GETCONF"; then
17953 ac_ct_GETCONF=$GETCONF
17954 # Extract the first word of "getconf", so it can be a program name with args.
17955 set dummy getconf; ac_word=$2
17956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17958 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 if test -n "$ac_ct_GETCONF"; then
17962 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17965 for as_dir in $PATH
17968 test -z "$as_dir" && as_dir=.
17969 for ac_exec_ext in '' $ac_executable_extensions; do
17970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17971 ac_cv_prog_ac_ct_GETCONF="getconf"
17972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17981 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17982 if test -n "$ac_ct_GETCONF"; then
17983 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17984 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17986 { echo "$as_me:$LINENO: result: no" >&5
17987 echo "${ECHO_T}no" >&6; }
17990 if test "x$ac_ct_GETCONF" = x; then
17993 case $cross_compiling:$ac_tool_warned in
17995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17996 whose name does not start with the host triplet. If you think this
17997 configuration is useful to you, please write to autoconf@gnu.org." >&5
17998 echo "$as_me: 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." >&2;}
18001 ac_tool_warned=yes ;;
18003 GETCONF=$ac_ct_GETCONF
18006 GETCONF="$ac_cv_prog_GETCONF"
18009 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18010 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18011 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18015 ac_cv_sys_largefile_CFLAGS=no
18017 # IRIX 6.2 and later require cc -n32.
18018 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18019 if test "$GCC" != yes; then
18020 ac_cv_sys_largefile_CFLAGS=-n32
18023 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest$ac_exeext &&
18056 $as_test_x conftest$ac_exeext; then
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_sys_largefile_CFLAGS=no
18065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18066 conftest$ac_exeext conftest.$ac_ext
18071 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18072 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18073 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18074 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18075 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18079 ac_cv_sys_largefile_LDFLAGS=no
18083 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18084 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18085 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18086 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18087 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18091 ac_cv_sys_largefile_LIBS=no
18095 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18096 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18098 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18101 -D_FILE_OFFSET_BITS=*) ;;
18102 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18103 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18108 case "$CPPFLAGS" in
18109 '') CPPFLAGS="$ac_flag" ;;
18110 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18118 '') CFLAGS="$ac_flag" ;;
18119 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18124 case "$ac_cv_sys_largefile_LDFLAGS" in
18128 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18129 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18132 case "$ac_cv_sys_largefile_LIBS" in
18136 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18137 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18140 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18141 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18142 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 ac_cv_sys_file_offset_bits=no
18146 ac_cv_sys_file_offset_bits=64
18147 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18149 -D_FILE_OFFSET_BITS)
18150 ac_cv_sys_file_offset_bits=1 ;;
18151 -D_FILE_OFFSET_BITS=*)
18152 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18157 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18158 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18159 if test "$ac_cv_sys_file_offset_bits" != no; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18166 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18167 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18168 if test "${ac_cv_sys_largefile_source+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 ac_cv_sys_largefile_source=no
18172 ac_cv_sys_largefile_source=1
18173 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18175 -D_LARGEFILE_SOURCE)
18176 ac_cv_sys_largefile_source=1 ;;
18177 -D_LARGEFILE_SOURCE=*)
18178 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18183 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18184 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18185 if test "$ac_cv_sys_largefile_source" != no; then
18187 cat >>confdefs.h <<_ACEOF
18188 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18192 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18193 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18194 if test "${ac_cv_sys_large_files+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 ac_cv_sys_large_files=no
18198 ac_cv_sys_large_files=1
18199 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18202 ac_cv_sys_large_files=1 ;;
18204 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18209 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18210 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18211 if test "$ac_cv_sys_large_files" != no; then
18213 cat >>confdefs.h <<_ACEOF
18214 #define _LARGE_FILES $ac_cv_sys_large_files
18222 { echo "$as_me:$LINENO: checking for X" >&5
18223 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18226 # Check whether --with-x was given.
18227 if test "${with_x+set}" = set; then
18231 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18232 if test "x$with_x" = xno; then
18233 # The user explicitly disabled X.
18236 case $x_includes,$x_libraries in #(
18237 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18238 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18239 { (exit 1); exit 1; }; };; #(
18240 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 # One or both of the vars are not set, and there is no cached value.
18244 ac_x_includes=no ac_x_libraries=no
18245 rm -f -r conftest.dir
18246 if mkdir conftest.dir; then
18248 cat >Imakefile <<'_ACEOF'
18250 @echo incroot='${INCROOT}'
18252 @echo usrlibdir='${USRLIBDIR}'
18254 @echo libdir='${LIBDIR}'
18256 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18258 for ac_var in incroot usrlibdir libdir; do
18259 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18261 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18262 for ac_extension in a so sl; do
18263 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18264 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18265 ac_im_usrlibdir=$ac_im_libdir; break
18268 # Screen out bogus values from the imake configuration. They are
18269 # bogus both because they are the default anyway, and because
18270 # using them would break gcc on systems where it needs fixed includes.
18271 case $ac_im_incroot in
18272 /usr/include) ac_x_includes= ;;
18273 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18275 case $ac_im_usrlibdir in
18276 /usr/lib | /lib) ;;
18277 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18281 rm -f -r conftest.dir
18284 # Standard set of common directories for X headers.
18285 # Check X11 before X11Rn because it is often a symlink to the current release.
18297 /usr/local/X11/include
18298 /usr/local/X11R6/include
18299 /usr/local/X11R5/include
18300 /usr/local/X11R4/include
18302 /usr/local/include/X11
18303 /usr/local/include/X11R6
18304 /usr/local/include/X11R5
18305 /usr/local/include/X11R4
18309 /usr/XFree86/include/X11
18313 /usr/unsupported/include
18314 /usr/athena/include
18315 /usr/local/x11r5/include
18316 /usr/lpp/Xamples/include
18318 /usr/openwin/include
18319 /usr/openwin/share/include'
18321 if test "$ac_x_includes" = no; then
18322 # Guess where to find include files, by looking for Xlib.h.
18323 # First, try using that file with no special directory specified.
18324 cat >conftest.$ac_ext <<_ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 #include <X11/Xlib.h>
18332 if { (ac_try="$ac_cpp conftest.$ac_ext"
18333 case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } >/dev/null && {
18345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18348 # We can compile using X headers with no special include directory.
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 for ac_dir in $ac_x_header_dirs; do
18355 if test -r "$ac_dir/X11/Xlib.h"; then
18356 ac_x_includes=$ac_dir
18362 rm -f conftest.err conftest.$ac_ext
18363 fi # $ac_x_includes = no
18365 if test "$ac_x_libraries" = no; then
18366 # Check for the libraries.
18367 # See if we find them without any special options.
18368 # Don't add to $LIBS permanently.
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <X11/Xlib.h>
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_link") 2>conftest.er1
18395 grep -v '^ *+' conftest.er1 >conftest.err
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest$ac_exeext &&
18403 $as_test_x conftest$ac_exeext; then
18405 # We can link X programs with no special library path.
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18412 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18414 # Don't even attempt the hair of trying to link an X program!
18415 for ac_extension in a so sl; do
18416 if test -r "$ac_dir/libX11.$ac_extension"; then
18417 ac_x_libraries=$ac_dir
18424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18425 conftest$ac_exeext conftest.$ac_ext
18426 fi # $ac_x_libraries = no
18428 case $ac_x_includes,$ac_x_libraries in #(
18429 no,* | *,no | *\'*)
18430 # Didn't find X, or a directory has "'" in its name.
18431 ac_cv_have_x="have_x=no";; #(
18433 # Record where we found X for the cache.
18434 ac_cv_have_x="have_x=yes\
18435 ac_x_includes='$ac_x_includes'\
18436 ac_x_libraries='$ac_x_libraries'"
18442 eval "$ac_cv_have_x"
18445 if test "$have_x" != yes; then
18446 { echo "$as_me:$LINENO: result: $have_x" >&5
18447 echo "${ECHO_T}$have_x" >&6; }
18450 # If each of the values was on the command line, it overrides each guess.
18451 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18452 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18453 # Update the cache value to reflect the command line values.
18454 ac_cv_have_x="have_x=yes\
18455 ac_x_includes='$x_includes'\
18456 ac_x_libraries='$x_libraries'"
18457 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18458 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18461 if test "$no_x" = yes; then
18462 # Not all programs may use this symbol, but it does not hurt to define it.
18464 cat >>confdefs.h <<\_ACEOF
18465 #define X_DISPLAY_MISSING 1
18468 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18470 if test -n "$x_includes"; then
18471 X_CFLAGS="$X_CFLAGS -I$x_includes"
18474 # It would also be nice to do this for all -L options, not just this one.
18475 if test -n "$x_libraries"; then
18476 X_LIBS="$X_LIBS -L$x_libraries"
18477 # For Solaris; some versions of Sun CC require a space after -R and
18478 # others require no space. Words are not sufficient . . . .
18479 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18480 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18481 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18482 ac_xsave_c_werror_flag=$ac_c_werror_flag
18483 ac_c_werror_flag=yes
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18508 grep -v '^ *+' conftest.er1 >conftest.err
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } && {
18513 test -z "$ac_c_werror_flag" ||
18514 test ! -s conftest.err
18515 } && test -s conftest$ac_exeext &&
18516 $as_test_x conftest$ac_exeext; then
18517 { echo "$as_me:$LINENO: result: no" >&5
18518 echo "${ECHO_T}no" >&6; }
18519 X_LIBS="$X_LIBS -R$x_libraries"
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 LIBS="$ac_xsave_LIBS -R $x_libraries"
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext &&
18557 $as_test_x conftest$ac_exeext; then
18558 { echo "$as_me:$LINENO: result: yes" >&5
18559 echo "${ECHO_T}yes" >&6; }
18560 X_LIBS="$X_LIBS -R $x_libraries"
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 { echo "$as_me:$LINENO: result: neither works" >&5
18566 echo "${ECHO_T}neither works" >&6; }
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574 conftest$ac_exeext conftest.$ac_ext
18575 ac_c_werror_flag=$ac_xsave_c_werror_flag
18576 LIBS=$ac_xsave_LIBS
18579 # Check for system-dependent libraries X programs must link with.
18580 # Do this before checking for the system-independent R6 libraries
18581 # (-lICE), since we may need -lsocket or whatever for X linking.
18583 if test "$ISC" = yes; then
18584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18586 # Martyn Johnson says this is needed for Ultrix, if the X
18587 # libraries were built with DECnet support. And Karl Berry says
18588 # the Alpha needs dnet_stub (dnet does not exist).
18589 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18603 char XOpenDisplay ();
18607 return XOpenDisplay ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18636 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-ldnet $LIBS"
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18659 return dnet_ntoa ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext &&
18681 $as_test_x conftest$ac_exeext; then
18682 ac_cv_lib_dnet_dnet_ntoa=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_cv_lib_dnet_dnet_ntoa=no
18690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18694 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18695 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18696 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18697 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18700 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18701 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18702 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18703 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-ldnet_stub $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18725 return dnet_ntoa ();
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_link") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest$ac_exeext &&
18747 $as_test_x conftest$ac_exeext; then
18748 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_cv_lib_dnet_stub_dnet_ntoa=no
18756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18757 conftest$ac_exeext conftest.$ac_ext
18758 LIBS=$ac_check_lib_save_LIBS
18760 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18761 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18762 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18763 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18770 conftest$ac_exeext conftest.$ac_ext
18771 LIBS="$ac_xsave_LIBS"
18773 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18774 # to get the SysV transport functions.
18775 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18777 # The nsl library prevents programs from opening the X display
18778 # on Irix 5.2, according to T.E. Dickey.
18779 # The functions gethostbyname, getservbyname, and inet_addr are
18780 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18781 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18782 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18783 if test "${ac_cv_func_gethostbyname+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18792 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18794 #define gethostbyname innocuous_gethostbyname
18796 /* System header to define __stub macros and hopefully few prototypes,
18797 which can conflict with char gethostbyname (); below.
18798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18799 <limits.h> exists even on freestanding compilers. */
18802 # include <limits.h>
18804 # include <assert.h>
18807 #undef gethostbyname
18809 /* Override any GCC internal prototype to avoid an error.
18810 Use char because int might match the return type of a GCC
18811 builtin and then its argument prototype would still apply. */
18815 char gethostbyname ();
18816 /* The GNU C library defines this for functions which it implements
18817 to always fail with ENOSYS. Some functions are actually named
18818 something starting with __ and the normal name is an alias. */
18819 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18826 return gethostbyname ();
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext &&
18848 $as_test_x conftest$ac_exeext; then
18849 ac_cv_func_gethostbyname=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_func_gethostbyname=no
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18860 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18861 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18863 if test $ac_cv_func_gethostbyname = no; then
18864 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18865 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18866 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18884 char gethostbyname ();
18888 return gethostbyname ();
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_nsl_gethostbyname=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_nsl_gethostbyname=no
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18924 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18925 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18929 if test $ac_cv_lib_nsl_gethostbyname = no; then
18930 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18931 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18932 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18950 char gethostbyname ();
18954 return gethostbyname ();
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && {
18973 test -z "$ac_c_werror_flag" ||
18974 test ! -s conftest.err
18975 } && test -s conftest$ac_exeext &&
18976 $as_test_x conftest$ac_exeext; then
18977 ac_cv_lib_bsd_gethostbyname=yes
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_lib_bsd_gethostbyname=no
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986 conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18989 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18990 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18991 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18998 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18999 # socket/setsockopt and other routines are undefined under SCO ODT
19000 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19001 # on later versions), says Simon Leinen: it contains gethostby*
19002 # variants that don't use the name server (or something). -lsocket
19003 # must be given before -lnsl if both are needed. We assume that
19004 # if connect needs -lnsl, so does gethostbyname.
19005 { echo "$as_me:$LINENO: checking for connect" >&5
19006 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19007 if test "${ac_cv_func_connect+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19018 #define connect innocuous_connect
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char connect (); below.
19022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023 <limits.h> exists even on freestanding compilers. */
19026 # include <limits.h>
19028 # include <assert.h>
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined __stub_connect || defined __stub___connect
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 ac_cv_func_connect=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_func_connect=no
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19085 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19087 if test $ac_cv_func_connect = no; then
19088 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19089 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19090 if test "${ac_cv_lib_socket_connect+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 ac_check_lib_save_LIBS=$LIBS
19094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } && {
19131 test -z "$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 } && test -s conftest$ac_exeext &&
19134 $as_test_x conftest$ac_exeext; then
19135 ac_cv_lib_socket_connect=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_lib_socket_connect=no
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144 conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19148 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19149 if test $ac_cv_lib_socket_connect = yes; then
19150 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19155 # Guillermo Gomez says -lposix is necessary on A/UX.
19156 { echo "$as_me:$LINENO: checking for remove" >&5
19157 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19158 if test "${ac_cv_func_remove+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19169 #define remove innocuous_remove
19171 /* System header to define __stub macros and hopefully few prototypes,
19172 which can conflict with char remove (); below.
19173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19174 <limits.h> exists even on freestanding compilers. */
19177 # include <limits.h>
19179 # include <assert.h>
19184 /* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19191 /* The GNU C library defines this for functions which it implements
19192 to always fail with ENOSYS. Some functions are actually named
19193 something starting with __ and the normal name is an alias. */
19194 #if defined __stub_remove || defined __stub___remove
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_link") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest$ac_exeext &&
19223 $as_test_x conftest$ac_exeext; then
19224 ac_cv_func_remove=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_cv_func_remove=no
19232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19233 conftest$ac_exeext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19236 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19238 if test $ac_cv_func_remove = no; then
19239 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19240 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19241 if test "${ac_cv_lib_posix_remove+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 ac_check_lib_save_LIBS=$LIBS
19245 LIBS="-lposix $LIBS"
19246 cat >conftest.$ac_ext <<_ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19253 /* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (ac_try="$ac_link"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_link") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } && {
19282 test -z "$ac_c_werror_flag" ||
19283 test ! -s conftest.err
19284 } && test -s conftest$ac_exeext &&
19285 $as_test_x conftest$ac_exeext; then
19286 ac_cv_lib_posix_remove=yes
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_lib_posix_remove=no
19294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295 conftest$ac_exeext conftest.$ac_ext
19296 LIBS=$ac_check_lib_save_LIBS
19298 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19299 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19300 if test $ac_cv_lib_posix_remove = yes; then
19301 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19306 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19307 { echo "$as_me:$LINENO: checking for shmat" >&5
19308 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19309 if test "${ac_cv_func_shmat+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19320 #define shmat innocuous_shmat
19322 /* System header to define __stub macros and hopefully few prototypes,
19323 which can conflict with char shmat (); below.
19324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19325 <limits.h> exists even on freestanding compilers. */
19328 # include <limits.h>
19330 # include <assert.h>
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19342 /* The GNU C library defines this for functions which it implements
19343 to always fail with ENOSYS. Some functions are actually named
19344 something starting with __ and the normal name is an alias. */
19345 #if defined __stub_shmat || defined __stub___shmat
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } && {
19371 test -z "$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19373 } && test -s conftest$ac_exeext &&
19374 $as_test_x conftest$ac_exeext; then
19375 ac_cv_func_shmat=yes
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_func_shmat=no
19383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19384 conftest$ac_exeext conftest.$ac_ext
19386 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19387 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19389 if test $ac_cv_func_shmat = no; then
19390 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19391 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19392 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 ac_check_lib_save_LIBS=$LIBS
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19404 /* Override any GCC internal prototype to avoid an error.
19405 Use char because int might match the return type of a GCC
19406 builtin and then its argument prototype would still apply. */
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest$ac_exeext &&
19436 $as_test_x conftest$ac_exeext; then
19437 ac_cv_lib_ipc_shmat=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_lib_ipc_shmat=no
19445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19449 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19450 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19451 if test $ac_cv_lib_ipc_shmat = yes; then
19452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19458 # Check for libraries that X11R6 Xt/Xaw programs need.
19459 ac_save_LDFLAGS=$LDFLAGS
19460 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19461 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19462 # check for ICE first), but we must link in the order -lSM -lICE or
19463 # we get undefined symbols. So assume we have SM if we have ICE.
19464 # These have to be linked with before -lX11, unlike the other
19465 # libraries we check for below, so use a different variable.
19466 # John Interrante, Karl Berry
19467 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19468 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19469 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19487 char IceConnectionNumber ();
19491 return IceConnectionNumber ();
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_link") 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest$ac_exeext &&
19513 $as_test_x conftest$ac_exeext; then
19514 ac_cv_lib_ICE_IceConnectionNumber=yes
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_ICE_IceConnectionNumber=no
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19527 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19528 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19529 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19532 LDFLAGS=$ac_save_LDFLAGS
19600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 ac_res=`eval echo '${'$as_ac_Header'}'`
19608 { echo "$as_me:$LINENO: result: $ac_res" >&5
19609 echo "${ECHO_T}$ac_res" >&6; }
19611 # Is the header compilable?
19612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 $ac_includes_default
19621 #include <$ac_header>
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.$ac_objext; then
19640 ac_header_compiler=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_header_compiler=no
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19650 echo "${ECHO_T}$ac_header_compiler" >&6; }
19652 # Is the header present?
19653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 #include <$ac_header>
19663 if { (ac_try="$ac_cpp conftest.$ac_ext"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } >/dev/null && {
19676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19679 ac_header_preproc=yes
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ac_header_preproc=no
19687 rm -f conftest.err conftest.$ac_ext
19688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6; }
19691 # So? What about this header?
19692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19698 ac_header_preproc=yes
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 eval "$as_ac_Header=\$ac_header_preproc"
19723 ac_res=`eval echo '${'$as_ac_Header'}'`
19724 { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19739 if test "${ac_cv_header_stdc+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <stdlib.h>
19749 #include <stdarg.h>
19750 #include <string.h>
19761 rm -f conftest.$ac_objext
19762 if { (ac_try="$ac_compile"
19763 case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_compile") 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest.$ac_objext; then
19778 ac_cv_header_stdc=yes
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_cv_header_stdc=no
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788 if test $ac_cv_header_stdc = yes; then
19789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19790 cat >conftest.$ac_ext <<_ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <string.h>
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800 $EGREP "memchr" >/dev/null 2>&1; then
19803 ac_cv_header_stdc=no
19809 if test $ac_cv_header_stdc = yes; then
19810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <stdlib.h>
19820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821 $EGREP "free" >/dev/null 2>&1; then
19824 ac_cv_header_stdc=no
19830 if test $ac_cv_header_stdc = yes; then
19831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19832 if test "$cross_compiling" = yes; then
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 #include <stdlib.h>
19843 #if ((' ' & 0x0FF) == 0x020)
19844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19847 # define ISLOWER(c) \
19848 (('a' <= (c) && (c) <= 'i') \
19849 || ('j' <= (c) && (c) <= 'r') \
19850 || ('s' <= (c) && (c) <= 'z'))
19851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19859 for (i = 0; i < 256; i++)
19860 if (XOR (islower (i), ISLOWER (i))
19861 || toupper (i) != TOUPPER (i))
19866 rm -f conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_link") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19888 echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ( exit $ac_status )
19893 ac_cv_header_stdc=no
19895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19903 if test $ac_cv_header_stdc = yes; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define STDC_HEADERS 1
19911 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19912 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19913 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <sys/types.h>
19926 return makedev(0, 0);
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_link") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest$ac_exeext &&
19948 $as_test_x conftest$ac_exeext; then
19949 ac_cv_header_sys_types_h_makedev=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ac_cv_header_sys_types_h_makedev=no
19957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19958 conftest$ac_exeext conftest.$ac_ext
19961 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19962 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19964 if test $ac_cv_header_sys_types_h_makedev = no; then
19965 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19966 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19967 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19972 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19974 # Is the header compilable?
19975 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19976 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19984 #include <sys/mkdev.h>
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 ac_header_compiler=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_header_compiler=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013 echo "${ECHO_T}$ac_header_compiler" >&6; }
20015 # Is the header present?
20016 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20017 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <sys/mkdev.h>
20026 if { (ac_try="$ac_cpp conftest.$ac_ext"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } >/dev/null && {
20039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20042 ac_header_preproc=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_preproc=no
20050 rm -f conftest.err conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6; }
20054 # So? What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20057 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20061 ac_header_preproc=yes
20064 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20079 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20080 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20081 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20087 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20090 if test $ac_cv_header_sys_mkdev_h = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define MAJOR_IN_MKDEV 1
20100 if test $ac_cv_header_sys_mkdev_h = no; then
20101 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20102 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20103 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20104 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20110 # Is the header compilable?
20111 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20112 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 $ac_includes_default
20120 #include <sys/sysmacros.h>
20122 rm -f conftest.$ac_objext
20123 if { (ac_try="$ac_compile"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 ac_header_compiler=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_header_compiler=no
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20149 echo "${ECHO_T}$ac_header_compiler" >&6; }
20151 # Is the header present?
20152 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20153 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #include <sys/sysmacros.h>
20162 if { (ac_try="$ac_cpp conftest.$ac_ext"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } >/dev/null && {
20175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20176 test ! -s conftest.err
20178 ac_header_preproc=yes
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20183 ac_header_preproc=no
20186 rm -f conftest.err conftest.$ac_ext
20187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20188 echo "${ECHO_T}$ac_header_preproc" >&6; }
20190 # So? What about this header?
20191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20193 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20194 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20196 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20197 ac_header_preproc=yes
20200 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20201 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20203 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20205 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20207 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20208 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20209 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20210 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20211 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20215 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20216 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20217 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20223 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20226 if test $ac_cv_header_sys_sysmacros_h = yes; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define MAJOR_IN_SYSMACROS 1
20243 ac_header_dirent=no
20244 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20245 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20246 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20247 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <sys/types.h>
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 eval "$as_ac_Header=yes"
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 eval "$as_ac_Header=no"
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 ac_res=`eval echo '${'$as_ac_Header'}'`
20297 { echo "$as_me:$LINENO: result: $ac_res" >&5
20298 echo "${ECHO_T}$ac_res" >&6; }
20299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20300 cat >>confdefs.h <<_ACEOF
20301 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20304 ac_header_dirent=$ac_hdr; break
20308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20309 if test $ac_header_dirent = dirent.h; then
20310 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20312 if test "${ac_cv_search_opendir+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 ac_func_search_save_LIBS=$LIBS
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20323 /* Override any GCC internal prototype to avoid an error.
20324 Use char because int might match the return type of a GCC
20325 builtin and then its argument prototype would still apply. */
20338 for ac_lib in '' dir; do
20339 if test -z "$ac_lib"; then
20340 ac_res="none required"
20343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest$ac_exeext &&
20362 $as_test_x conftest$ac_exeext; then
20363 ac_cv_search_opendir=$ac_res
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20373 if test "${ac_cv_search_opendir+set}" = set; then
20377 if test "${ac_cv_search_opendir+set}" = set; then
20380 ac_cv_search_opendir=no
20382 rm conftest.$ac_ext
20383 LIBS=$ac_func_search_save_LIBS
20385 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20386 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20387 ac_res=$ac_cv_search_opendir
20388 if test "$ac_res" != no; then
20389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20394 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20396 if test "${ac_cv_search_opendir+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 ac_func_search_save_LIBS=$LIBS
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20407 /* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20422 for ac_lib in '' x; do
20423 if test -z "$ac_lib"; then
20424 ac_res="none required"
20427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_link") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest$ac_exeext &&
20446 $as_test_x conftest$ac_exeext; then
20447 ac_cv_search_opendir=$ac_res
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20457 if test "${ac_cv_search_opendir+set}" = set; then
20461 if test "${ac_cv_search_opendir+set}" = set; then
20464 ac_cv_search_opendir=no
20466 rm conftest.$ac_ext
20467 LIBS=$ac_func_search_save_LIBS
20469 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20470 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20471 ac_res=$ac_cv_search_opendir
20472 if test "$ac_res" != no; then
20473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20479 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20480 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20481 if test "${ac_cv_header_stat_broken+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 #include <sys/types.h>
20491 #include <sys/stat.h>
20493 #if defined S_ISBLK && defined S_IFDIR
20494 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20497 #if defined S_ISBLK && defined S_IFCHR
20498 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20501 #if defined S_ISLNK && defined S_IFREG
20502 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20505 #if defined S_ISSOCK && defined S_IFREG
20506 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest.$ac_objext; then
20527 ac_cv_header_stat_broken=no
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ac_cv_header_stat_broken=yes
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20538 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20539 if test $ac_cv_header_stat_broken = yes; then
20541 cat >>confdefs.h <<\_ACEOF
20542 #define STAT_MACROS_BROKEN 1
20547 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20548 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20549 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <sys/types.h>
20559 #include <sys/wait.h>
20560 #ifndef WEXITSTATUS
20561 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20564 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20572 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_compile") 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest.$ac_objext; then
20594 ac_cv_header_sys_wait_h=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_header_sys_wait_h=no
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20605 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20606 if test $ac_cv_header_sys_wait_h = yes; then
20608 cat >>confdefs.h <<\_ACEOF
20609 #define HAVE_SYS_WAIT_H 1
20614 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20615 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20616 if test "${ac_cv_header_time+set}" = set; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 #include <sys/types.h>
20626 #include <sys/time.h>
20632 if ((struct tm *) 0)
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_header_time=yes
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_header_time=no
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20667 if test $ac_cv_header_time = yes; then
20669 cat >>confdefs.h <<\_ACEOF
20670 #define TIME_WITH_SYS_TIME 1
20675 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20676 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20677 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686 $ac_includes_default
20690 static struct stat ac_aggr;
20691 if (ac_aggr.st_blksize)
20697 rm -f conftest.$ac_objext
20698 if { (ac_try="$ac_compile"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_compile") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && {
20711 test -z "$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 } && test -s conftest.$ac_objext; then
20714 ac_cv_member_struct_stat_st_blksize=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 $ac_includes_default
20729 static struct stat ac_aggr;
20730 if (sizeof ac_aggr.st_blksize)
20736 rm -f conftest.$ac_objext
20737 if { (ac_try="$ac_compile"
20738 case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_compile") 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } && {
20750 test -z "$ac_c_werror_flag" ||
20751 test ! -s conftest.err
20752 } && test -s conftest.$ac_objext; then
20753 ac_cv_member_struct_stat_st_blksize=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_cv_member_struct_stat_st_blksize=no
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20767 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20768 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_ST_BLKSIZE 1
20782 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20783 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20784 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 $ac_includes_default
20797 static struct stat ac_aggr;
20798 if (ac_aggr.st_blocks)
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest.$ac_objext; then
20821 ac_cv_member_struct_stat_st_blocks=yes
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20836 static struct stat ac_aggr;
20837 if (sizeof ac_aggr.st_blocks)
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_compile") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest.$ac_objext; then
20860 ac_cv_member_struct_stat_st_blocks=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_member_struct_stat_st_blocks=no
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20874 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20875 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_ST_BLOCKS 1
20887 case " $LIBOBJS " in
20888 *" fileblocks.$ac_objext "* ) ;;
20889 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20896 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20897 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20898 if test "${ac_cv_struct_tm+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20907 #include <sys/types.h>
20914 int *p = &tm.tm_sec;
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_compile") 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest.$ac_objext; then
20937 ac_cv_struct_tm=time.h
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_cv_struct_tm=sys/time.h
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20948 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20949 if test $ac_cv_struct_tm = sys/time.h; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define TM_IN_SYS_TIME 1
20957 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20958 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20959 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 #include <sys/types.h>
20969 #include <$ac_cv_struct_tm>
20975 static struct tm ac_aggr;
20976 if (ac_aggr.tm_zone)
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_compile") 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest.$ac_objext; then
20999 ac_cv_member_struct_tm_tm_zone=yes
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <sys/types.h>
21011 #include <$ac_cv_struct_tm>
21017 static struct tm ac_aggr;
21018 if (sizeof ac_aggr.tm_zone)
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21041 ac_cv_member_struct_tm_tm_zone=yes
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_cv_member_struct_tm_tm_zone=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21055 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21056 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21058 cat >>confdefs.h <<_ACEOF
21059 #define HAVE_STRUCT_TM_TM_ZONE 1
21065 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_TM_ZONE 1
21072 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21073 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21074 if test "${ac_cv_have_decl_tzname+set}" = set; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 ac_cv_have_decl_tzname=yes
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_cv_have_decl_tzname=no
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21124 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21125 if test $ac_cv_have_decl_tzname = yes; then
21127 cat >>confdefs.h <<_ACEOF
21128 #define HAVE_DECL_TZNAME 1
21133 cat >>confdefs.h <<_ACEOF
21134 #define HAVE_DECL_TZNAME 0
21141 { echo "$as_me:$LINENO: checking for tzname" >&5
21142 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21143 if test "${ac_cv_var_tzname+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 #if !HAVE_DECL_TZNAME
21154 extern char *tzname[];
21160 return tzname[0][0];
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (ac_try="$ac_link"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_link") 2>conftest.er1
21174 grep -v '^ *+' conftest.er1 >conftest.err
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest$ac_exeext &&
21182 $as_test_x conftest$ac_exeext; then
21183 ac_cv_var_tzname=yes
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 ac_cv_var_tzname=no
21191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21192 conftest$ac_exeext conftest.$ac_ext
21194 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21195 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21196 if test $ac_cv_var_tzname = yes; then
21198 cat >>confdefs.h <<\_ACEOF
21199 #define HAVE_TZNAME 1
21206 { echo "$as_me:$LINENO: checking for utime.h" >&5
21207 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21208 if test "${ba_cv_header_utime_h+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21218 #include <sys/types.h>
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
21245 ba_cv_header_utime_h=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ba_cv_header_utime_h=no
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21256 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21257 test $ba_cv_header_utime_h = yes &&
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_UTIME_H 1
21263 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21264 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21265 if test "${ba_cv_header_socklen_t+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21275 #include <sys/types.h>
21276 #include <sys/socket.h>
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ba_cv_header_socklen_t=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ba_cv_header_socklen_t=no
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21313 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21314 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_SOCKLEN_T 1
21319 { echo "$as_me:$LINENO: checking for bigendian" >&5
21320 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21321 if test "${ba_cv_bigendian+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 if test "$cross_compiling" = yes; then
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21335 rm -f conftest$ac_exeext
21336 if { (ac_try="$ac_link"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_link") 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346 { (case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_try") 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ba_cv_bigendian=yes
21357 echo "$as_me: program exited with status $ac_status" >&5
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ( exit $ac_status )
21364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21369 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21370 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21371 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_BIGENDIAN 1
21377 ac_cpp='$CXXCPP $CPPFLAGS'
21378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21383 { echo "$as_me:$LINENO: checking for typeof" >&5
21384 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21385 if test "${ba_cv_have_typeof+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 if test "$cross_compiling" = yes; then
21389 ba_cv_have_typeof=no
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 main(){char *a = 0; a = (typeof a)a;}
21399 rm -f conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_link") 2>&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21410 { (case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_try") 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 ba_cv_have_typeof=yes
21421 echo "$as_me: program exited with status $ac_status" >&5
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ( exit $ac_status )
21426 ba_cv_have_typeof=no
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21434 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21435 test $ba_cv_have_typeof = yes &&
21436 cat >>confdefs.h <<\_ACEOF
21437 #define HAVE_TYPEOF 1
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21448 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21449 if test "${ac_cv_c_const+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21462 /* FIXME: Include the comments suggested by Paul. */
21463 #ifndef __cplusplus
21464 /* Ultrix mips cc rejects this. */
21465 typedef int charset[2];
21467 /* SunOS 4.1.1 cc rejects this. */
21468 char const *const *pcpcc;
21470 /* NEC SVR4.0.2 mips cc rejects this. */
21471 struct point {int x, y;};
21472 static struct point const zero = {0,0};
21473 /* AIX XL C 1.02.0.0 rejects this.
21474 It does not let you subtract one const X* pointer from another in
21475 an arm of an if-expression whose if-part is not a constant
21477 const char *g = "string";
21478 pcpcc = &g + (g ? g-g : 0);
21479 /* HPUX 7.0 cc rejects these. */
21481 ppc = (char**) pcpcc;
21482 pcpcc = (char const *const *) ppc;
21483 { /* SCO 3.2v4 cc rejects this. */
21485 char const *s = 0 ? (char *) 0 : (char const *) 0;
21490 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21491 int x[] = {25, 17};
21492 const int *foo = &x[0];
21495 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21496 typedef const int *iptr;
21500 { /* AIX XL C 1.02.0.0 rejects this saying
21501 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21502 struct s { int j; const int *ap[3]; };
21503 struct s *b; b->j = 5;
21505 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21506 const int foo = 10;
21507 if (!foo) return 0;
21509 return !cs[0] && !zero.x;
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_compile") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21544 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21545 if test $ac_cv_c_const = no; then
21547 cat >>confdefs.h <<\_ACEOF
21555 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21556 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21558 # The order of these tests is important.
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <sys/statvfs.h>
21566 #include <sys/fstyp.h>
21568 if { (ac_try="$ac_cpp conftest.$ac_ext"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } >/dev/null && {
21581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21584 cat >>confdefs.h <<\_ACEOF
21585 #define FSTYPE_STATVFS 1
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21595 rm -f conftest.err conftest.$ac_ext
21596 if test $fstype = no; then
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 #include <sys/statfs.h>
21604 #include <sys/fstyp.h>
21606 if { (ac_try="$ac_cpp conftest.$ac_ext"
21607 case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21614 grep -v '^ *+' conftest.er1 >conftest.err
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } >/dev/null && {
21619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21622 cat >>confdefs.h <<\_ACEOF
21623 #define FSTYPE_USG_STATFS 1
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21633 rm -f conftest.err conftest.$ac_ext
21635 if test $fstype = no; then
21636 cat >conftest.$ac_ext <<_ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 #include <sys/statfs.h>
21643 #include <sys/vmount.h>
21645 if { (ac_try="$ac_cpp conftest.$ac_ext"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1 >conftest.err
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } >/dev/null && {
21658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21661 cat >>confdefs.h <<\_ACEOF
21662 #define FSTYPE_AIX_STATFS 1
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21672 rm -f conftest.err conftest.$ac_ext
21674 if test $fstype = no; then
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 #include <mntent.h>
21683 if { (ac_try="$ac_cpp conftest.$ac_ext"
21684 case "(($ac_try" in
21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 *) ac_try_echo=$ac_try;;
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null && {
21696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21697 test ! -s conftest.err
21699 cat >>confdefs.h <<\_ACEOF
21700 #define FSTYPE_MNTENT 1
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21710 rm -f conftest.err conftest.$ac_ext
21712 if test $fstype = no; then
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 #include <sys/mount.h>
21722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21723 $EGREP "f_type;" >/dev/null 2>&1; then
21724 cat >>confdefs.h <<\_ACEOF
21725 #define FSTYPE_STATFS 1
21732 if test $fstype = no; then
21733 cat >conftest.$ac_ext <<_ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21739 #include <sys/mount.h>
21740 #include <sys/fs_types.h>
21742 if { (ac_try="$ac_cpp conftest.$ac_ext"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21750 grep -v '^ *+' conftest.er1 >conftest.err
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } >/dev/null && {
21755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21758 cat >>confdefs.h <<\_ACEOF
21759 #define FSTYPE_GETMNT 1
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21769 rm -f conftest.err conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $fstype" >&5
21772 echo "${ECHO_T}$fstype" >&6; }
21774 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21775 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21776 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21781 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21783 # Is the header compilable?
21784 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21785 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 $ac_includes_default
21793 #include <sys/statvfs.h>
21795 rm -f conftest.$ac_objext
21796 if { (ac_try="$ac_compile"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_compile") 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest.$ac_objext; then
21812 ac_header_compiler=yes
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_header_compiler=no
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21822 echo "${ECHO_T}$ac_header_compiler" >&6; }
21824 # Is the header present?
21825 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21826 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 #include <sys/statvfs.h>
21835 if { (ac_try="$ac_cpp conftest.$ac_ext"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } >/dev/null && {
21848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21851 ac_header_preproc=yes
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_header_preproc=no
21859 rm -f conftest.err conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6; }
21863 # So? What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21866 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21867 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21869 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21870 ac_header_preproc=yes
21873 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21874 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21876 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21878 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21880 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21882 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21884 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21888 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21889 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21890 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21895 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21896 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21899 if test $ac_cv_header_sys_statvfs_h = yes; then
21901 cat >>confdefs.h <<\_ACEOF
21902 #define HAVE_SYS_STATVFS_H 1
21909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21911 if test "${ac_cv_type_signal+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <sys/types.h>
21921 #include <signal.h>
21926 return *(signal (0, 0)) (0) == 1;
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_cv_type_signal=int
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_type_signal=void
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21961 cat >>confdefs.h <<_ACEOF
21962 #define RETSIGTYPE $ac_cv_type_signal
21967 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21968 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21969 if test "${bash_cv_signal_vintage+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 #include <signal.h>
21985 struct sigaction sa;
21986 sigemptyset(&ss); sigsuspend(&ss);
21987 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21988 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21994 rm -f conftest.$ac_objext conftest$ac_exeext
21995 if { (ac_try="$ac_link"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_link") 2>conftest.er1
22003 grep -v '^ *+' conftest.er1 >conftest.err
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest$ac_exeext &&
22011 $as_test_x conftest$ac_exeext; then
22012 bash_cv_signal_vintage="posix"
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 #include <signal.h>
22029 int mask = sigmask(SIGINT);
22030 sigsetmask(mask); sigblock(mask); sigpause(mask);
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (ac_try="$ac_link"
22038 case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_link") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest$ac_exeext &&
22053 $as_test_x conftest$ac_exeext; then
22054 bash_cv_signal_vintage="4.2bsd"
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22067 #include <signal.h>
22068 RETSIGTYPE foo() { }
22073 int mask = sigmask(SIGINT);
22074 sigset(SIGINT, foo); sigrelse(SIGINT);
22075 sighold(SIGINT); sigpause(SIGINT);
22081 rm -f conftest.$ac_objext conftest$ac_exeext
22082 if { (ac_try="$ac_link"
22083 case "(($ac_try" in
22084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085 *) ac_try_echo=$ac_try;;
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088 (eval "$ac_link") 2>conftest.er1
22090 grep -v '^ *+' conftest.er1 >conftest.err
22092 cat conftest.err >&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && {
22095 test -z "$ac_c_werror_flag" ||
22096 test ! -s conftest.err
22097 } && test -s conftest$ac_exeext &&
22098 $as_test_x conftest$ac_exeext; then
22099 bash_cv_signal_vintage="svr3"
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 bash_cv_signal_vintage="v7"
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109 conftest$ac_exeext conftest.$ac_ext
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114 conftest$ac_exeext conftest.$ac_ext
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22124 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22125 if test "$bash_cv_signal_vintage" = "posix"; then
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_POSIX_SIGNALS 1
22130 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_BSD_SIGNALS 1
22135 elif test "$bash_cv_signal_vintage" = "svr3"; then
22136 cat >>confdefs.h <<\_ACEOF
22137 #define HAVE_USG_SIGHOLD 1
22142 { echo "$as_me:$LINENO: checking for mode_t" >&5
22143 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22144 if test "${ac_cv_type_mode_t+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22154 typedef mode_t ac__type_new_;
22158 if ((ac__type_new_ *) 0)
22160 if (sizeof (ac__type_new_))
22166 rm -f conftest.$ac_objext
22167 if { (ac_try="$ac_compile"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_compile") 2>conftest.er1
22175 grep -v '^ *+' conftest.er1 >conftest.err
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest.$ac_objext; then
22183 ac_cv_type_mode_t=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_cv_type_mode_t=no
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22194 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22195 if test $ac_cv_type_mode_t = yes; then
22199 cat >>confdefs.h <<_ACEOF
22205 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22207 if test "${ac_cv_type_uid_t+set}" = set; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 #include <sys/types.h>
22219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220 $EGREP "uid_t" >/dev/null 2>&1; then
22221 ac_cv_type_uid_t=yes
22223 ac_cv_type_uid_t=no
22228 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22230 if test $ac_cv_type_uid_t = no; then
22232 cat >>confdefs.h <<\_ACEOF
22237 cat >>confdefs.h <<\_ACEOF
22243 { echo "$as_me:$LINENO: checking for size_t" >&5
22244 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22245 if test "${ac_cv_type_size_t+set}" = set; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 $ac_includes_default
22255 typedef size_t ac__type_new_;
22259 if ((ac__type_new_ *) 0)
22261 if (sizeof (ac__type_new_))
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_compile") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest.$ac_objext; then
22284 ac_cv_type_size_t=yes
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 ac_cv_type_size_t=no
22292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22295 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22296 if test $ac_cv_type_size_t = yes; then
22300 cat >>confdefs.h <<_ACEOF
22301 #define size_t unsigned int
22306 { echo "$as_me:$LINENO: checking for pid_t" >&5
22307 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22308 if test "${ac_cv_type_pid_t+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 $ac_includes_default
22318 typedef pid_t ac__type_new_;
22322 if ((ac__type_new_ *) 0)
22324 if (sizeof (ac__type_new_))
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.$ac_objext; then
22347 ac_cv_type_pid_t=yes
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22352 ac_cv_type_pid_t=no
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22359 if test $ac_cv_type_pid_t = yes; then
22363 cat >>confdefs.h <<_ACEOF
22369 { echo "$as_me:$LINENO: checking for off_t" >&5
22370 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22371 if test "${ac_cv_type_off_t+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 cat >conftest.$ac_ext <<_ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 $ac_includes_default
22381 typedef off_t ac__type_new_;
22385 if ((ac__type_new_ *) 0)
22387 if (sizeof (ac__type_new_))
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_compile") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } && {
22407 test -z "$ac_c_werror_flag" ||
22408 test ! -s conftest.err
22409 } && test -s conftest.$ac_objext; then
22410 ac_cv_type_off_t=yes
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_type_off_t=no
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22421 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22422 if test $ac_cv_type_off_t = yes; then
22426 cat >>confdefs.h <<_ACEOF
22427 #define off_t long int
22432 { echo "$as_me:$LINENO: checking for ino_t" >&5
22433 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22434 if test "${ac_cv_type_ino_t+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 $ac_includes_default
22444 typedef ino_t ac__type_new_;
22448 if ((ac__type_new_ *) 0)
22450 if (sizeof (ac__type_new_))
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_compile") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } && {
22470 test -z "$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22472 } && test -s conftest.$ac_objext; then
22473 ac_cv_type_ino_t=yes
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_cv_type_ino_t=no
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22484 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22485 if test $ac_cv_type_ino_t = yes; then
22489 cat >>confdefs.h <<_ACEOF
22490 #define ino_t unsigned long
22495 { echo "$as_me:$LINENO: checking for dev_t" >&5
22496 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22497 if test "${ac_cv_type_dev_t+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22506 $ac_includes_default
22507 typedef dev_t ac__type_new_;
22511 if ((ac__type_new_ *) 0)
22513 if (sizeof (ac__type_new_))
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_compile") 2>conftest.er1
22528 grep -v '^ *+' conftest.er1 >conftest.err
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest.$ac_objext; then
22536 ac_cv_type_dev_t=yes
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ac_cv_type_dev_t=no
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22547 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22548 if test $ac_cv_type_dev_t = yes; then
22552 cat >>confdefs.h <<_ACEOF
22553 #define dev_t unsigned long
22558 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22559 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22560 if test "${ac_cv_type_daddr_t+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 $ac_includes_default
22570 typedef daddr_t ac__type_new_;
22574 if ((ac__type_new_ *) 0)
22576 if (sizeof (ac__type_new_))
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22591 grep -v '^ *+' conftest.er1 >conftest.err
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.$ac_objext; then
22599 ac_cv_type_daddr_t=yes
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_cv_type_daddr_t=no
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22610 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22611 if test $ac_cv_type_daddr_t = yes; then
22615 cat >>confdefs.h <<_ACEOF
22616 #define daddr_t long
22621 { echo "$as_me:$LINENO: checking for major_t" >&5
22622 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22623 if test "${ac_cv_type_major_t+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 $ac_includes_default
22633 typedef major_t ac__type_new_;
22637 if ((ac__type_new_ *) 0)
22639 if (sizeof (ac__type_new_))
22645 rm -f conftest.$ac_objext
22646 if { (ac_try="$ac_compile"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_compile") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest.$ac_objext; then
22662 ac_cv_type_major_t=yes
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_cv_type_major_t=no
22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22673 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22674 if test $ac_cv_type_major_t = yes; then
22678 cat >>confdefs.h <<_ACEOF
22679 #define major_t int
22684 { echo "$as_me:$LINENO: checking for minor_t" >&5
22685 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22686 if test "${ac_cv_type_minor_t+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22696 typedef minor_t ac__type_new_;
22700 if ((ac__type_new_ *) 0)
22702 if (sizeof (ac__type_new_))
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest.$ac_objext; then
22725 ac_cv_type_minor_t=yes
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_cv_type_minor_t=no
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22737 if test $ac_cv_type_minor_t = yes; then
22741 cat >>confdefs.h <<_ACEOF
22742 #define minor_t int
22747 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22749 if test "${ac_cv_type_ssize_t+set}" = set; then
22750 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 cat >conftest.$ac_ext <<_ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22758 $ac_includes_default
22759 typedef ssize_t ac__type_new_;
22763 if ((ac__type_new_ *) 0)
22765 if (sizeof (ac__type_new_))
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_compile") 2>conftest.er1
22780 grep -v '^ *+' conftest.er1 >conftest.err
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest.$ac_objext; then
22788 ac_cv_type_ssize_t=yes
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ac_cv_type_ssize_t=no
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22799 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22800 if test $ac_cv_type_ssize_t = yes; then
22804 cat >>confdefs.h <<_ACEOF
22805 #define ssize_t int
22810 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22811 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22812 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 $ac_includes_default
22825 static struct stat ac_aggr;
22826 if (ac_aggr.st_blocks)
22832 rm -f conftest.$ac_objext
22833 if { (ac_try="$ac_compile"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839 (eval "$ac_compile") 2>conftest.er1
22841 grep -v '^ *+' conftest.er1 >conftest.err
22843 cat conftest.err >&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest.$ac_objext; then
22849 ac_cv_member_struct_stat_st_blocks=yes
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 $ac_includes_default
22864 static struct stat ac_aggr;
22865 if (sizeof ac_aggr.st_blocks)
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_cv_member_struct_stat_st_blocks=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_cv_member_struct_stat_st_blocks=no
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22903 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22905 cat >>confdefs.h <<_ACEOF
22906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_ST_BLOCKS 1
22915 case " $LIBOBJS " in
22916 *" fileblocks.$ac_objext "* ) ;;
22917 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22924 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22925 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22926 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 $ac_includes_default
22939 static struct stat ac_aggr;
22940 if (ac_aggr.st_rdev)
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950 *) ac_try_echo=$ac_try;;
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953 (eval "$ac_compile") 2>conftest.er1
22955 grep -v '^ *+' conftest.er1 >conftest.err
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } && {
22960 test -z "$ac_c_werror_flag" ||
22961 test ! -s conftest.err
22962 } && test -s conftest.$ac_objext; then
22963 ac_cv_member_struct_stat_st_rdev=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22974 $ac_includes_default
22978 static struct stat ac_aggr;
22979 if (sizeof ac_aggr.st_rdev)
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest.$ac_objext; then
23002 ac_cv_member_struct_stat_st_rdev=yes
23004 echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23007 ac_cv_member_struct_stat_st_rdev=no
23010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23019 cat >>confdefs.h <<_ACEOF
23020 #define HAVE_STRUCT_STAT_ST_RDEV 1
23024 cat >>confdefs.h <<\_ACEOF
23025 #define HAVE_ST_RDEV 1
23031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23033 if test "${ac_cv_struct_tm+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 #include <sys/types.h>
23049 int *p = &tm.tm_sec;
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_struct_tm=time.h
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_cv_struct_tm=sys/time.h
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23084 if test $ac_cv_struct_tm = sys/time.h; then
23086 cat >>confdefs.h <<\_ACEOF
23087 #define TM_IN_SYS_TIME 1
23092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23094 if test "${ac_cv_c_const+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23107 /* FIXME: Include the comments suggested by Paul. */
23108 #ifndef __cplusplus
23109 /* Ultrix mips cc rejects this. */
23110 typedef int charset[2];
23112 /* SunOS 4.1.1 cc rejects this. */
23113 char const *const *pcpcc;
23115 /* NEC SVR4.0.2 mips cc rejects this. */
23116 struct point {int x, y;};
23117 static struct point const zero = {0,0};
23118 /* AIX XL C 1.02.0.0 rejects this.
23119 It does not let you subtract one const X* pointer from another in
23120 an arm of an if-expression whose if-part is not a constant
23122 const char *g = "string";
23123 pcpcc = &g + (g ? g-g : 0);
23124 /* HPUX 7.0 cc rejects these. */
23126 ppc = (char**) pcpcc;
23127 pcpcc = (char const *const *) ppc;
23128 { /* SCO 3.2v4 cc rejects this. */
23130 char const *s = 0 ? (char *) 0 : (char const *) 0;
23135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23136 int x[] = {25, 17};
23137 const int *foo = &x[0];
23140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23141 typedef const int *iptr;
23145 { /* AIX XL C 1.02.0.0 rejects this saying
23146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23147 struct s { int j; const int *ap[3]; };
23148 struct s *b; b->j = 5;
23150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23151 const int foo = 10;
23152 if (!foo) return 0;
23154 return !cs[0] && !zero.x;
23161 rm -f conftest.$ac_objext
23162 if { (ac_try="$ac_compile"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_compile") 2>conftest.er1
23170 grep -v '^ *+' conftest.er1 >conftest.err
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } && {
23175 test -z "$ac_c_werror_flag" ||
23176 test ! -s conftest.err
23177 } && test -s conftest.$ac_objext; then
23180 echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23188 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23189 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23190 if test $ac_cv_c_const = no; then
23192 cat >>confdefs.h <<\_ACEOF
23200 { echo "$as_me:$LINENO: checking for char" >&5
23201 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23202 if test "${ac_cv_type_char+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23212 typedef char ac__type_new_;
23216 if ((ac__type_new_ *) 0)
23218 if (sizeof (ac__type_new_))
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228 *) ac_try_echo=$ac_try;;
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231 (eval "$ac_compile") 2>conftest.er1
23233 grep -v '^ *+' conftest.er1 >conftest.err
23235 cat conftest.err >&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } && {
23238 test -z "$ac_c_werror_flag" ||
23239 test ! -s conftest.err
23240 } && test -s conftest.$ac_objext; then
23241 ac_cv_type_char=yes
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23252 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23254 # The cast to long int works around a bug in the HP C Compiler
23255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23257 # This bug is HP SR number 8606223364.
23258 { echo "$as_me:$LINENO: checking size of char" >&5
23259 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23260 if test "${ac_cv_sizeof_char+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 if test "$cross_compiling" = yes; then
23264 # Depending upon the size, compute the lo and hi bounds.
23265 cat >conftest.$ac_ext <<_ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 typedef char ac__type_sizeof_;
23276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 $ac_includes_default
23309 typedef char ac__type_sizeof_;
23313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_hi=$ac_mid; break
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_lo=`expr $ac_mid + 1`
23343 if test $ac_lo -le $ac_mid; then
23347 ac_mid=`expr 2 '*' $ac_mid + 1`
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 $ac_includes_default
23363 typedef char ac__type_sizeof_;
23367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_compile") 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest.$ac_objext; then
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23399 $ac_includes_default
23400 typedef char ac__type_sizeof_;
23404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23411 rm -f conftest.$ac_objext
23412 if { (ac_try="$ac_compile"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_compile") 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest.$ac_objext; then
23428 ac_lo=$ac_mid; break
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ac_hi=`expr '(' $ac_mid ')' - 1`
23434 if test $ac_mid -le $ac_hi; then
23438 ac_mid=`expr 2 '*' $ac_mid`
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 # Binary search between lo and hi bounds.
23455 while test "x$ac_lo" != "x$ac_hi"; do
23456 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 $ac_includes_default
23464 typedef char ac__type_sizeof_;
23468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482 (eval "$ac_compile") 2>conftest.er1
23484 grep -v '^ *+' conftest.er1 >conftest.err
23486 cat conftest.err >&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); } && {
23489 test -z "$ac_c_werror_flag" ||
23490 test ! -s conftest.err
23491 } && test -s conftest.$ac_objext; then
23494 echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23497 ac_lo=`expr '(' $ac_mid ')' + 1`
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 ?*) ac_cv_sizeof_char=$ac_lo;;
23504 '') if test "$ac_cv_type_char" = yes; then
23505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23506 See \`config.log' for more details." >&5
23507 echo "$as_me: error: cannot compute sizeof (char)
23508 See \`config.log' for more details." >&2;}
23509 { (exit 77); exit 77; }; }
23511 ac_cv_sizeof_char=0
23515 cat >conftest.$ac_ext <<_ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 $ac_includes_default
23522 typedef char ac__type_sizeof_;
23523 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23524 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23526 #include <stdlib.h>
23531 FILE *f = fopen ("conftest.val", "w");
23534 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23536 long int i = longval ();
23537 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23539 fprintf (f, "%ld\n", i);
23543 unsigned long int i = ulongval ();
23544 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23546 fprintf (f, "%lu\n", i);
23548 return ferror (f) || fclose (f) != 0;
23554 rm -f conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_link") 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23565 { (case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570 (eval "$ac_try") 2>&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
23574 ac_cv_sizeof_char=`cat conftest.val`
23576 echo "$as_me: program exited with status $ac_status" >&5
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23580 ( exit $ac_status )
23581 if test "$ac_cv_type_char" = yes; then
23582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23583 See \`config.log' for more details." >&5
23584 echo "$as_me: error: cannot compute sizeof (char)
23585 See \`config.log' for more details." >&2;}
23586 { (exit 77); exit 77; }; }
23588 ac_cv_sizeof_char=0
23591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23595 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23596 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23600 cat >>confdefs.h <<_ACEOF
23601 #define SIZEOF_CHAR $ac_cv_sizeof_char
23605 { echo "$as_me:$LINENO: checking for short int" >&5
23606 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_short_int+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 $ac_includes_default
23617 typedef short int ac__type_new_;
23621 if ((ac__type_new_ *) 0)
23623 if (sizeof (ac__type_new_))
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^ *+' conftest.er1 >conftest.err
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 ac_cv_type_short_int=yes
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_cv_type_short_int=no
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23657 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23659 # The cast to long int works around a bug in the HP C Compiler
23660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23662 # This bug is HP SR number 8606223364.
23663 { echo "$as_me:$LINENO: checking size of short int" >&5
23664 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23665 if test "${ac_cv_sizeof_short_int+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 if test "$cross_compiling" = yes; then
23669 # Depending upon the size, compute the lo and hi bounds.
23670 cat >conftest.$ac_ext <<_ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 $ac_includes_default
23677 typedef short int ac__type_sizeof_;
23681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 $ac_includes_default
23714 typedef short int ac__type_sizeof_;
23718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23725 rm -f conftest.$ac_objext
23726 if { (ac_try="$ac_compile"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_compile") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } && {
23739 test -z "$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 } && test -s conftest.$ac_objext; then
23742 ac_hi=$ac_mid; break
23744 echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23747 ac_lo=`expr $ac_mid + 1`
23748 if test $ac_lo -le $ac_mid; then
23752 ac_mid=`expr 2 '*' $ac_mid + 1`
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 cat >conftest.$ac_ext <<_ACEOF
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h. */
23767 $ac_includes_default
23768 typedef short int ac__type_sizeof_;
23772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23779 rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23788 grep -v '^ *+' conftest.er1 >conftest.err
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23798 cat >conftest.$ac_ext <<_ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 $ac_includes_default
23805 typedef short int ac__type_sizeof_;
23809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23816 rm -f conftest.$ac_objext
23817 if { (ac_try="$ac_compile"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_compile") 2>conftest.er1
23825 grep -v '^ *+' conftest.er1 >conftest.err
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } && {
23830 test -z "$ac_c_werror_flag" ||
23831 test ! -s conftest.err
23832 } && test -s conftest.$ac_objext; then
23833 ac_lo=$ac_mid; break
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23838 ac_hi=`expr '(' $ac_mid ')' - 1`
23839 if test $ac_mid -le $ac_hi; then
23843 ac_mid=`expr 2 '*' $ac_mid`
23846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 # Binary search between lo and hi bounds.
23860 while test "x$ac_lo" != "x$ac_hi"; do
23861 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 $ac_includes_default
23869 typedef short int ac__type_sizeof_;
23873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23880 rm -f conftest.$ac_objext
23881 if { (ac_try="$ac_compile"
23882 case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_compile") 2>conftest.er1
23889 grep -v '^ *+' conftest.er1 >conftest.err
23891 cat conftest.err >&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest.$ac_objext; then
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ac_lo=`expr '(' $ac_mid ')' + 1`
23905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23908 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23909 '') if test "$ac_cv_type_short_int" = yes; then
23910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23911 See \`config.log' for more details." >&5
23912 echo "$as_me: error: cannot compute sizeof (short int)
23913 See \`config.log' for more details." >&2;}
23914 { (exit 77); exit 77; }; }
23916 ac_cv_sizeof_short_int=0
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 typedef short int ac__type_sizeof_;
23928 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23929 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23931 #include <stdlib.h>
23936 FILE *f = fopen ("conftest.val", "w");
23939 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23941 long int i = longval ();
23942 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23944 fprintf (f, "%ld\n", i);
23948 unsigned long int i = ulongval ();
23949 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23951 fprintf (f, "%lu\n", i);
23953 return ferror (f) || fclose (f) != 0;
23959 rm -f conftest$ac_exeext
23960 if { (ac_try="$ac_link"
23961 case "(($ac_try" in
23962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963 *) ac_try_echo=$ac_try;;
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966 (eval "$ac_link") 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23970 { (case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23975 (eval "$ac_try") 2>&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; }; then
23979 ac_cv_sizeof_short_int=`cat conftest.val`
23981 echo "$as_me: program exited with status $ac_status" >&5
23982 echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23985 ( exit $ac_status )
23986 if test "$ac_cv_type_short_int" = yes; then
23987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23988 See \`config.log' for more details." >&5
23989 echo "$as_me: error: cannot compute sizeof (short int)
23990 See \`config.log' for more details." >&2;}
23991 { (exit 77); exit 77; }; }
23993 ac_cv_sizeof_short_int=0
23996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24001 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24005 cat >>confdefs.h <<_ACEOF
24006 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24010 { echo "$as_me:$LINENO: checking for int" >&5
24011 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24012 if test "${ac_cv_type_int+set}" = set; then
24013 echo $ECHO_N "(cached) $ECHO_C" >&6
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 $ac_includes_default
24022 typedef int ac__type_new_;
24026 if ((ac__type_new_ *) 0)
24028 if (sizeof (ac__type_new_))
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24043 grep -v '^ *+' conftest.er1 >conftest.err
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest.$ac_objext; then
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24061 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24062 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24064 # The cast to long int works around a bug in the HP C Compiler
24065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24067 # This bug is HP SR number 8606223364.
24068 { echo "$as_me:$LINENO: checking size of int" >&5
24069 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24070 if test "${ac_cv_sizeof_int+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 if test "$cross_compiling" = yes; then
24074 # Depending upon the size, compute the lo and hi bounds.
24075 cat >conftest.$ac_ext <<_ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 $ac_includes_default
24082 typedef int ac__type_sizeof_;
24086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_compile") 2>conftest.er1
24102 grep -v '^ *+' conftest.er1 >conftest.err
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } && {
24107 test -z "$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 } && test -s conftest.$ac_objext; then
24112 cat >conftest.$ac_ext <<_ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 $ac_includes_default
24119 typedef int ac__type_sizeof_;
24123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24130 rm -f conftest.$ac_objext
24131 if { (ac_try="$ac_compile"
24132 case "(($ac_try" in
24133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134 *) ac_try_echo=$ac_try;;
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137 (eval "$ac_compile") 2>conftest.er1
24139 grep -v '^ *+' conftest.er1 >conftest.err
24141 cat conftest.err >&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } && {
24144 test -z "$ac_c_werror_flag" ||
24145 test ! -s conftest.err
24146 } && test -s conftest.$ac_objext; then
24147 ac_hi=$ac_mid; break
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24152 ac_lo=`expr $ac_mid + 1`
24153 if test $ac_lo -le $ac_mid; then
24157 ac_mid=`expr 2 '*' $ac_mid + 1`
24160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 cat >conftest.$ac_ext <<_ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 $ac_includes_default
24173 typedef int ac__type_sizeof_;
24177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_compile") 2>conftest.er1
24193 grep -v '^ *+' conftest.er1 >conftest.err
24195 cat conftest.err >&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } && {
24198 test -z "$ac_c_werror_flag" ||
24199 test ! -s conftest.err
24200 } && test -s conftest.$ac_objext; then
24203 cat >conftest.$ac_ext <<_ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h. */
24209 $ac_includes_default
24210 typedef int ac__type_sizeof_;
24214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24221 rm -f conftest.$ac_objext
24222 if { (ac_try="$ac_compile"
24223 case "(($ac_try" in
24224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225 *) ac_try_echo=$ac_try;;
24227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228 (eval "$ac_compile") 2>conftest.er1
24230 grep -v '^ *+' conftest.er1 >conftest.err
24232 cat conftest.err >&5
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); } && {
24235 test -z "$ac_c_werror_flag" ||
24236 test ! -s conftest.err
24237 } && test -s conftest.$ac_objext; then
24238 ac_lo=$ac_mid; break
24240 echo "$as_me: failed program was:" >&5
24241 sed 's/^/| /' conftest.$ac_ext >&5
24243 ac_hi=`expr '(' $ac_mid ')' - 1`
24244 if test $ac_mid -le $ac_hi; then
24248 ac_mid=`expr 2 '*' $ac_mid`
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24264 # Binary search between lo and hi bounds.
24265 while test "x$ac_lo" != "x$ac_hi"; do
24266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24267 cat >conftest.$ac_ext <<_ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24273 $ac_includes_default
24274 typedef int ac__type_sizeof_;
24278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24285 rm -f conftest.$ac_objext
24286 if { (ac_try="$ac_compile"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 ac_lo=`expr '(' $ac_mid ')' + 1`
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 ?*) ac_cv_sizeof_int=$ac_lo;;
24314 '') if test "$ac_cv_type_int" = yes; then
24315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24316 See \`config.log' for more details." >&5
24317 echo "$as_me: error: cannot compute sizeof (int)
24318 See \`config.log' for more details." >&2;}
24319 { (exit 77); exit 77; }; }
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 $ac_includes_default
24332 typedef int ac__type_sizeof_;
24333 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24334 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24336 #include <stdlib.h>
24341 FILE *f = fopen ("conftest.val", "w");
24344 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24346 long int i = longval ();
24347 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24349 fprintf (f, "%ld\n", i);
24353 unsigned long int i = ulongval ();
24354 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24356 fprintf (f, "%lu\n", i);
24358 return ferror (f) || fclose (f) != 0;
24364 rm -f conftest$ac_exeext
24365 if { (ac_try="$ac_link"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_link") 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24375 { (case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380 (eval "$ac_try") 2>&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24384 ac_cv_sizeof_int=`cat conftest.val`
24386 echo "$as_me: program exited with status $ac_status" >&5
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 ( exit $ac_status )
24391 if test "$ac_cv_type_int" = yes; then
24392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24393 See \`config.log' for more details." >&5
24394 echo "$as_me: error: cannot compute sizeof (int)
24395 See \`config.log' for more details." >&2;}
24396 { (exit 77); exit 77; }; }
24401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24405 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24406 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24410 cat >>confdefs.h <<_ACEOF
24411 #define SIZEOF_INT $ac_cv_sizeof_int
24415 { echo "$as_me:$LINENO: checking for long int" >&5
24416 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24417 if test "${ac_cv_type_long_int+set}" = set; then
24418 echo $ECHO_N "(cached) $ECHO_C" >&6
24420 cat >conftest.$ac_ext <<_ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h. */
24426 $ac_includes_default
24427 typedef long int ac__type_new_;
24431 if ((ac__type_new_ *) 0)
24433 if (sizeof (ac__type_new_))
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24456 ac_cv_type_long_int=yes
24458 echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ac_cv_type_long_int=no
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24466 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24467 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24469 # The cast to long int works around a bug in the HP C Compiler
24470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24472 # This bug is HP SR number 8606223364.
24473 { echo "$as_me:$LINENO: checking size of long int" >&5
24474 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24475 if test "${ac_cv_sizeof_long_int+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 if test "$cross_compiling" = yes; then
24479 # Depending upon the size, compute the lo and hi bounds.
24480 cat >conftest.$ac_ext <<_ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24486 $ac_includes_default
24487 typedef long int ac__type_sizeof_;
24491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_compile") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && {
24512 test -z "$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24514 } && test -s conftest.$ac_objext; then
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 $ac_includes_default
24524 typedef long int ac__type_sizeof_;
24528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24535 rm -f conftest.$ac_objext
24536 if { (ac_try="$ac_compile"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_compile") 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } && {
24549 test -z "$ac_c_werror_flag" ||
24550 test ! -s conftest.err
24551 } && test -s conftest.$ac_objext; then
24552 ac_hi=$ac_mid; break
24554 echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24557 ac_lo=`expr $ac_mid + 1`
24558 if test $ac_lo -le $ac_mid; then
24562 ac_mid=`expr 2 '*' $ac_mid + 1`
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24571 cat >conftest.$ac_ext <<_ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24577 $ac_includes_default
24578 typedef long int ac__type_sizeof_;
24582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24589 rm -f conftest.$ac_objext
24590 if { (ac_try="$ac_compile"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_compile") 2>conftest.er1
24598 grep -v '^ *+' conftest.er1 >conftest.err
24600 cat conftest.err >&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } && {
24603 test -z "$ac_c_werror_flag" ||
24604 test ! -s conftest.err
24605 } && test -s conftest.$ac_objext; then
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 $ac_includes_default
24615 typedef long int ac__type_sizeof_;
24619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_compile") 2>conftest.er1
24635 grep -v '^ *+' conftest.er1 >conftest.err
24637 cat conftest.err >&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && {
24640 test -z "$ac_c_werror_flag" ||
24641 test ! -s conftest.err
24642 } && test -s conftest.$ac_objext; then
24643 ac_lo=$ac_mid; break
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 ac_hi=`expr '(' $ac_mid ')' - 1`
24649 if test $ac_mid -le $ac_hi; then
24653 ac_mid=`expr 2 '*' $ac_mid`
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 # Binary search between lo and hi bounds.
24670 while test "x$ac_lo" != "x$ac_hi"; do
24671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24672 cat >conftest.$ac_ext <<_ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24678 $ac_includes_default
24679 typedef long int ac__type_sizeof_;
24683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_compile") 2>conftest.er1
24699 grep -v '^ *+' conftest.er1 >conftest.err
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest.$ac_objext; then
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 ac_lo=`expr '(' $ac_mid ')' + 1`
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24719 '') if test "$ac_cv_type_long_int" = yes; then
24720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24721 See \`config.log' for more details." >&5
24722 echo "$as_me: error: cannot compute sizeof (long int)
24723 See \`config.log' for more details." >&2;}
24724 { (exit 77); exit 77; }; }
24726 ac_cv_sizeof_long_int=0
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 $ac_includes_default
24737 typedef long int ac__type_sizeof_;
24738 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24739 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24741 #include <stdlib.h>
24746 FILE *f = fopen ("conftest.val", "w");
24749 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24751 long int i = longval ();
24752 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24754 fprintf (f, "%ld\n", i);
24758 unsigned long int i = ulongval ();
24759 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24761 fprintf (f, "%lu\n", i);
24763 return ferror (f) || fclose (f) != 0;
24769 rm -f conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_link") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24780 { (case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_try") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_sizeof_long_int=`cat conftest.val`
24791 echo "$as_me: program exited with status $ac_status" >&5
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ( exit $ac_status )
24796 if test "$ac_cv_type_long_int" = yes; then
24797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24798 See \`config.log' for more details." >&5
24799 echo "$as_me: error: cannot compute sizeof (long int)
24800 See \`config.log' for more details." >&2;}
24801 { (exit 77); exit 77; }; }
24803 ac_cv_sizeof_long_int=0
24806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24810 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24811 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24815 cat >>confdefs.h <<_ACEOF
24816 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24820 { echo "$as_me:$LINENO: checking for long long int" >&5
24821 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24822 if test "${ac_cv_type_long_long_int+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 cat >conftest.$ac_ext <<_ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 $ac_includes_default
24832 typedef long long int ac__type_new_;
24836 if ((ac__type_new_ *) 0)
24838 if (sizeof (ac__type_new_))
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.$ac_objext; then
24861 ac_cv_type_long_long_int=yes
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 ac_cv_type_long_long_int=no
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24872 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24874 # The cast to long int works around a bug in the HP C Compiler
24875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24877 # This bug is HP SR number 8606223364.
24878 { echo "$as_me:$LINENO: checking size of long long int" >&5
24879 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24880 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 if test "$cross_compiling" = yes; then
24884 # Depending upon the size, compute the lo and hi bounds.
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 typedef long long int ac__type_sizeof_;
24896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_compile") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest.$ac_objext; then
24922 cat >conftest.$ac_ext <<_ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 $ac_includes_default
24929 typedef long long int ac__type_sizeof_;
24933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24940 rm -f conftest.$ac_objext
24941 if { (ac_try="$ac_compile"
24942 case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_compile") 2>conftest.er1
24949 grep -v '^ *+' conftest.er1 >conftest.err
24951 cat conftest.err >&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } && {
24954 test -z "$ac_c_werror_flag" ||
24955 test ! -s conftest.err
24956 } && test -s conftest.$ac_objext; then
24957 ac_hi=$ac_mid; break
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24962 ac_lo=`expr $ac_mid + 1`
24963 if test $ac_lo -le $ac_mid; then
24967 ac_mid=`expr 2 '*' $ac_mid + 1`
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24982 $ac_includes_default
24983 typedef long long int ac__type_sizeof_;
24987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24994 rm -f conftest.$ac_objext
24995 if { (ac_try="$ac_compile"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019 $ac_includes_default
25020 typedef long long int ac__type_sizeof_;
25024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25040 grep -v '^ *+' conftest.er1 >conftest.err
25042 cat conftest.err >&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.$ac_objext; then
25048 ac_lo=$ac_mid; break
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 ac_hi=`expr '(' $ac_mid ')' - 1`
25054 if test $ac_mid -le $ac_hi; then
25058 ac_mid=`expr 2 '*' $ac_mid`
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 # Binary search between lo and hi bounds.
25075 while test "x$ac_lo" != "x$ac_hi"; do
25076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25083 $ac_includes_default
25084 typedef long long int ac__type_sizeof_;
25088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_compile") 2>conftest.er1
25104 grep -v '^ *+' conftest.er1 >conftest.err
25106 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } && {
25109 test -z "$ac_c_werror_flag" ||
25110 test ! -s conftest.err
25111 } && test -s conftest.$ac_objext; then
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_lo=`expr '(' $ac_mid ')' + 1`
25120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25124 '') if test "$ac_cv_type_long_long_int" = yes; then
25125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25126 See \`config.log' for more details." >&5
25127 echo "$as_me: error: cannot compute sizeof (long long int)
25128 See \`config.log' for more details." >&2;}
25129 { (exit 77); exit 77; }; }
25131 ac_cv_sizeof_long_long_int=0
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 $ac_includes_default
25142 typedef long long int ac__type_sizeof_;
25143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25146 #include <stdlib.h>
25151 FILE *f = fopen ("conftest.val", "w");
25154 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25156 long int i = longval ();
25157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25159 fprintf (f, "%ld\n", i);
25163 unsigned long int i = ulongval ();
25164 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25166 fprintf (f, "%lu\n", i);
25168 return ferror (f) || fclose (f) != 0;
25174 rm -f conftest$ac_exeext
25175 if { (ac_try="$ac_link"
25176 case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_link") 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25185 { (case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190 (eval "$ac_try") 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; }; then
25194 ac_cv_sizeof_long_long_int=`cat conftest.val`
25196 echo "$as_me: program exited with status $ac_status" >&5
25197 echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25200 ( exit $ac_status )
25201 if test "$ac_cv_type_long_long_int" = yes; then
25202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25203 See \`config.log' for more details." >&5
25204 echo "$as_me: error: cannot compute sizeof (long long int)
25205 See \`config.log' for more details." >&2;}
25206 { (exit 77); exit 77; }; }
25208 ac_cv_sizeof_long_long_int=0
25211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25216 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25220 cat >>confdefs.h <<_ACEOF
25221 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25225 { echo "$as_me:$LINENO: checking for int *" >&5
25226 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25227 if test "${ac_cv_type_int_p+set}" = set; then
25228 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 cat >conftest.$ac_ext <<_ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 $ac_includes_default
25237 typedef int * ac__type_new_;
25241 if ((ac__type_new_ *) 0)
25243 if (sizeof (ac__type_new_))
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253 *) ac_try_echo=$ac_try;;
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_compile") 2>conftest.er1
25258 grep -v '^ *+' conftest.er1 >conftest.err
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && {
25263 test -z "$ac_c_werror_flag" ||
25264 test ! -s conftest.err
25265 } && test -s conftest.$ac_objext; then
25266 ac_cv_type_int_p=yes
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25271 ac_cv_type_int_p=no
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25276 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25277 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25279 # The cast to long int works around a bug in the HP C Compiler
25280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25282 # This bug is HP SR number 8606223364.
25283 { echo "$as_me:$LINENO: checking size of int *" >&5
25284 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25285 if test "${ac_cv_sizeof_int_p+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 if test "$cross_compiling" = yes; then
25289 # Depending upon the size, compute the lo and hi bounds.
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25297 typedef int * ac__type_sizeof_;
25301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25308 rm -f conftest.$ac_objext
25309 if { (ac_try="$ac_compile"
25310 case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315 (eval "$ac_compile") 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } && {
25322 test -z "$ac_c_werror_flag" ||
25323 test ! -s conftest.err
25324 } && test -s conftest.$ac_objext; then
25327 cat >conftest.$ac_ext <<_ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 $ac_includes_default
25334 typedef int * ac__type_sizeof_;
25338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25345 rm -f conftest.$ac_objext
25346 if { (ac_try="$ac_compile"
25347 case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_compile") 2>conftest.er1
25354 grep -v '^ *+' conftest.er1 >conftest.err
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } && {
25359 test -z "$ac_c_werror_flag" ||
25360 test ! -s conftest.err
25361 } && test -s conftest.$ac_objext; then
25362 ac_hi=$ac_mid; break
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_lo=`expr $ac_mid + 1`
25368 if test $ac_lo -le $ac_mid; then
25372 ac_mid=`expr 2 '*' $ac_mid + 1`
25375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25378 echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25388 typedef int * ac__type_sizeof_;
25392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25399 rm -f conftest.$ac_objext
25400 if { (ac_try="$ac_compile"
25401 case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406 (eval "$ac_compile") 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } && {
25413 test -z "$ac_c_werror_flag" ||
25414 test ! -s conftest.err
25415 } && test -s conftest.$ac_objext; then
25418 cat >conftest.$ac_ext <<_ACEOF
25421 cat confdefs.h >>conftest.$ac_ext
25422 cat >>conftest.$ac_ext <<_ACEOF
25423 /* end confdefs.h. */
25424 $ac_includes_default
25425 typedef int * ac__type_sizeof_;
25429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25436 rm -f conftest.$ac_objext
25437 if { (ac_try="$ac_compile"
25438 case "(($ac_try" in
25439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25440 *) ac_try_echo=$ac_try;;
25442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25443 (eval "$ac_compile") 2>conftest.er1
25445 grep -v '^ *+' conftest.er1 >conftest.err
25447 cat conftest.err >&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); } && {
25450 test -z "$ac_c_werror_flag" ||
25451 test ! -s conftest.err
25452 } && test -s conftest.$ac_objext; then
25453 ac_lo=$ac_mid; break
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ac_hi=`expr '(' $ac_mid ')' - 1`
25459 if test $ac_mid -le $ac_hi; then
25463 ac_mid=`expr 2 '*' $ac_mid`
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 # Binary search between lo and hi bounds.
25480 while test "x$ac_lo" != "x$ac_hi"; do
25481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25482 cat >conftest.$ac_ext <<_ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 $ac_includes_default
25489 typedef int * ac__type_sizeof_;
25493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_compile") 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_c_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest.$ac_objext; then
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 ac_lo=`expr '(' $ac_mid ')' + 1`
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25529 '') if test "$ac_cv_type_int_p" = yes; then
25530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25531 See \`config.log' for more details." >&5
25532 echo "$as_me: error: cannot compute sizeof (int *)
25533 See \`config.log' for more details." >&2;}
25534 { (exit 77); exit 77; }; }
25536 ac_cv_sizeof_int_p=0
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 $ac_includes_default
25547 typedef int * ac__type_sizeof_;
25548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25551 #include <stdlib.h>
25556 FILE *f = fopen ("conftest.val", "w");
25559 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25561 long int i = longval ();
25562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25564 fprintf (f, "%ld\n", i);
25568 unsigned long int i = ulongval ();
25569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25571 fprintf (f, "%lu\n", i);
25573 return ferror (f) || fclose (f) != 0;
25579 rm -f conftest$ac_exeext
25580 if { (ac_try="$ac_link"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_link") 2>&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25590 { (case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595 (eval "$ac_try") 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_sizeof_int_p=`cat conftest.val`
25601 echo "$as_me: program exited with status $ac_status" >&5
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ( exit $ac_status )
25606 if test "$ac_cv_type_int_p" = yes; then
25607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25608 See \`config.log' for more details." >&5
25609 echo "$as_me: error: cannot compute sizeof (int *)
25610 See \`config.log' for more details." >&2;}
25611 { (exit 77); exit 77; }; }
25613 ac_cv_sizeof_int_p=0
25616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25621 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25625 cat >>confdefs.h <<_ACEOF
25626 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25631 # Check for sys/types.h types
25632 { echo "$as_me:$LINENO: checking for u_int type" >&5
25633 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25634 if test "${ac_cv_have_u_int+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25638 cat >conftest.$ac_ext <<_ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h. */
25644 #include <sys/types.h>
25653 rm -f conftest.$ac_objext
25654 if { (ac_try="$ac_compile"
25655 case "(($ac_try" in
25656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_compile") 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } && {
25667 test -z "$ac_c_werror_flag" ||
25668 test ! -s conftest.err
25669 } && test -s conftest.$ac_objext; then
25670 ac_cv_have_u_int="yes"
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25675 ac_cv_have_u_int="no"
25679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25683 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25684 if test "x$ac_cv_have_u_int" = "xyes" ; then
25685 cat >>confdefs.h <<\_ACEOF
25686 #define HAVE_U_INT 1
25692 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25693 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25694 if test "${ac_cv_have_intmax_t+set}" = set; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h. */
25704 #include <sys/types.h>
25713 rm -f conftest.$ac_objext
25714 if { (ac_try="$ac_compile"
25715 case "(($ac_try" in
25716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717 *) ac_try_echo=$ac_try;;
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720 (eval "$ac_compile") 2>conftest.er1
25722 grep -v '^ *+' conftest.er1 >conftest.err
25724 cat conftest.err >&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } && {
25727 test -z "$ac_c_werror_flag" ||
25728 test ! -s conftest.err
25729 } && test -s conftest.$ac_objext; then
25730 ac_cv_have_intmax_t="yes"
25732 echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25736 cat >conftest.$ac_ext <<_ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 #include <stdint.h>
25751 rm -f conftest.$ac_objext
25752 if { (ac_try="$ac_compile"
25753 case "(($ac_try" in
25754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755 *) ac_try_echo=$ac_try;;
25757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25758 (eval "$ac_compile") 2>conftest.er1
25760 grep -v '^ *+' conftest.er1 >conftest.err
25762 cat conftest.err >&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); } && {
25765 test -z "$ac_c_werror_flag" ||
25766 test ! -s conftest.err
25767 } && test -s conftest.$ac_objext; then
25768 ac_cv_have_intmax_t="yes"
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25773 ac_cv_have_intmax_t="no"
25777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25787 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25788 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25789 cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_INTMAX_T 1
25797 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25798 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25799 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 #include <sys/types.h>
25813 u_intmax_t a; a = 1;
25818 rm -f conftest.$ac_objext
25819 if { (ac_try="$ac_compile"
25820 case "(($ac_try" in
25821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822 *) ac_try_echo=$ac_try;;
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825 (eval "$ac_compile") 2>conftest.er1
25827 grep -v '^ *+' conftest.er1 >conftest.err
25829 cat conftest.err >&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); } && {
25832 test -z "$ac_c_werror_flag" ||
25833 test ! -s conftest.err
25834 } && test -s conftest.$ac_objext; then
25835 ac_cv_have_u_intmax_t="yes"
25837 echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25841 cat >conftest.$ac_ext <<_ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include <stdint.h>
25851 u_intmax_t a; a = 1;
25856 rm -f conftest.$ac_objext
25857 if { (ac_try="$ac_compile"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_compile") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest.$ac_objext; then
25873 ac_cv_have_u_intmax_t="yes"
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_cv_have_u_intmax_t="no"
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25891 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25892 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25893 cat >>confdefs.h <<\_ACEOF
25894 #define HAVE_U_INTMAX_T 1
25901 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25902 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25903 if test "${ac_cv_have_intxx_t+set}" = set; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 #include <sys/types.h>
25917 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25922 rm -f conftest.$ac_objext
25923 if { (ac_try="$ac_compile"
25924 case "(($ac_try" in
25925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926 *) ac_try_echo=$ac_try;;
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929 (eval "$ac_compile") 2>conftest.er1
25931 grep -v '^ *+' conftest.er1 >conftest.err
25933 cat conftest.err >&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } && {
25936 test -z "$ac_c_werror_flag" ||
25937 test ! -s conftest.err
25938 } && test -s conftest.$ac_objext; then
25939 ac_cv_have_intxx_t="yes"
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 ac_cv_have_intxx_t="no"
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25951 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25952 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25953 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25954 cat >>confdefs.h <<\_ACEOF
25955 #define HAVE_INTXX_T 1
25961 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25962 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25963 if test "${ac_cv_have_int64_t+set}" = set; then
25964 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25973 #include <sys/types.h>
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_compile") 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest.$ac_objext; then
25999 ac_cv_have_int64_t="yes"
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 ac_cv_have_int64_t="no"
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26012 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26013 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26014 cat >>confdefs.h <<\_ACEOF
26015 #define HAVE_INT64_T 1
26021 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26022 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26023 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26027 cat >conftest.$ac_ext <<_ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 #include <sys/types.h>
26037 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26042 rm -f conftest.$ac_objext
26043 if { (ac_try="$ac_compile"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049 (eval "$ac_compile") 2>conftest.er1
26051 grep -v '^ *+' conftest.er1 >conftest.err
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } && {
26056 test -z "$ac_c_werror_flag" ||
26057 test ! -s conftest.err
26058 } && test -s conftest.$ac_objext; then
26059 ac_cv_have_u_intxx_t="yes"
26061 echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26064 ac_cv_have_u_intxx_t="no"
26068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26072 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26073 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26074 cat >>confdefs.h <<\_ACEOF
26075 #define HAVE_U_INTXX_T 1
26081 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26082 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26083 if test "${ac_cv_have_u_int64_t+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26093 #include <sys/types.h>
26097 u_int64_t a; a = 1;
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109 (eval "$ac_compile") 2>conftest.er1
26111 grep -v '^ *+' conftest.er1 >conftest.err
26113 cat conftest.err >&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } && {
26116 test -z "$ac_c_werror_flag" ||
26117 test ! -s conftest.err
26118 } && test -s conftest.$ac_objext; then
26119 ac_cv_have_u_int64_t="yes"
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 ac_cv_have_u_int64_t="no"
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26132 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26133 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26134 cat >>confdefs.h <<\_ACEOF
26135 #define HAVE_U_INT64_T 1
26141 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26142 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26144 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26145 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26146 cat >conftest.$ac_ext <<_ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h. */
26152 #include <sys/bitypes.h>
26156 int8_t a; int16_t b; int32_t c;
26157 u_int8_t e; u_int16_t f; u_int32_t g;
26158 a = b = c = e = f = g = 1;
26163 rm -f conftest.$ac_objext
26164 if { (ac_try="$ac_compile"
26165 case "(($ac_try" in
26166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167 *) ac_try_echo=$ac_try;;
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170 (eval "$ac_compile") 2>conftest.er1
26172 grep -v '^ *+' conftest.er1 >conftest.err
26174 cat conftest.err >&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } && {
26177 test -z "$ac_c_werror_flag" ||
26178 test ! -s conftest.err
26179 } && test -s conftest.$ac_objext; then
26180 cat >>confdefs.h <<\_ACEOF
26181 #define HAVE_U_INTXX_T 1
26184 cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_INTXX_T 1
26188 cat >>confdefs.h <<\_ACEOF
26189 #define HAVE_SYS_BITYPES_H 1
26192 { echo "$as_me:$LINENO: result: yes" >&5
26193 echo "${ECHO_T}yes" >&6; }
26195 echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26198 { echo "$as_me:$LINENO: result: no" >&5
26199 echo "${ECHO_T}no" >&6; }
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26206 if test -z "$have_u_intxx_t" ; then
26207 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26208 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26209 if test "${ac_cv_have_uintxx_t+set}" = set; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26213 cat >conftest.$ac_ext <<_ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h. */
26219 #include <sys/types.h>
26223 uint8_t a; uint16_t b;
26224 uint32_t c; a = b = c = 1;
26229 rm -f conftest.$ac_objext
26230 if { (ac_try="$ac_compile"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_compile") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest.$ac_objext; then
26246 ac_cv_have_uintxx_t="yes"
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 ac_cv_have_uintxx_t="no"
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26259 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26260 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26261 cat >>confdefs.h <<\_ACEOF
26262 #define HAVE_UINTXX_T 1
26268 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26269 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26271 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26272 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26273 cat >conftest.$ac_ext <<_ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h. */
26279 #include <sys/bitypes.h>
26283 int64_t a; u_int64_t b;
26289 rm -f conftest.$ac_objext
26290 if { (ac_try="$ac_compile"
26291 case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26296 (eval "$ac_compile") 2>conftest.er1
26298 grep -v '^ *+' conftest.er1 >conftest.err
26300 cat conftest.err >&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } && {
26303 test -z "$ac_c_werror_flag" ||
26304 test ! -s conftest.err
26305 } && test -s conftest.$ac_objext; then
26306 cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_U_INT64_T 1
26310 cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_INT64_T 1
26314 { echo "$as_me:$LINENO: result: yes" >&5
26315 echo "${ECHO_T}yes" >&6; }
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 { echo "$as_me:$LINENO: result: no" >&5
26321 echo "${ECHO_T}no" >&6; }
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 if (test -z "$have_uintxx_t" && \
26329 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26331 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26332 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26333 cat >conftest.$ac_ext <<_ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 #include <sys/bitypes.h>
26343 uint8_t a; uint16_t b;
26344 uint32_t c; a = b = c = 1;
26349 rm -f conftest.$ac_objext
26350 if { (ac_try="$ac_compile"
26351 case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356 (eval "$ac_compile") 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } && {
26363 test -z "$ac_c_werror_flag" ||
26364 test ! -s conftest.err
26365 } && test -s conftest.$ac_objext; then
26366 cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_UINTXX_T 1
26370 { echo "$as_me:$LINENO: result: yes" >&5
26371 echo "${ECHO_T}yes" >&6; }
26373 echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26376 { echo "$as_me:$LINENO: result: no" >&5
26377 echo "${ECHO_T}no" >&6; }
26381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26431 #define $ac_func innocuous_$ac_func
26433 /* System header to define __stub macros and hopefully few prototypes,
26434 which can conflict with char $ac_func (); below.
26435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26436 <limits.h> exists even on freestanding compilers. */
26439 # include <limits.h>
26441 # include <assert.h>
26446 /* Override any GCC internal prototype to avoid an error.
26447 Use char because int might match the return type of a GCC
26448 builtin and then its argument prototype would still apply. */
26453 /* The GNU C library defines this for functions which it implements
26454 to always fail with ENOSYS. Some functions are actually named
26455 something starting with __ and the normal name is an alias. */
26456 #if defined __stub_$ac_func || defined __stub___$ac_func
26463 return $ac_func ();
26468 rm -f conftest.$ac_objext conftest$ac_exeext
26469 if { (ac_try="$ac_link"
26470 case "(($ac_try" in
26471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26472 *) ac_try_echo=$ac_try;;
26474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26475 (eval "$ac_link") 2>conftest.er1
26477 grep -v '^ *+' conftest.er1 >conftest.err
26479 cat conftest.err >&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); } && {
26482 test -z "$ac_c_werror_flag" ||
26483 test ! -s conftest.err
26484 } && test -s conftest$ac_exeext &&
26485 $as_test_x conftest$ac_exeext; then
26486 eval "$as_ac_var=yes"
26488 echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26491 eval "$as_ac_var=no"
26494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26495 conftest$ac_exeext conftest.$ac_ext
26497 ac_res=`eval echo '${'$as_ac_var'}'`
26498 { echo "$as_me:$LINENO: result: $ac_res" >&5
26499 echo "${ECHO_T}$ac_res" >&6; }
26500 if test `eval echo '${'$as_ac_var'}'` = yes; then
26501 cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26506 echo 'configure: cannot find needed function.'; exit 1
26513 for ac_func in fchdir
26515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26529 #define $ac_func innocuous_$ac_func
26531 /* System header to define __stub macros and hopefully few prototypes,
26532 which can conflict with char $ac_func (); below.
26533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26534 <limits.h> exists even on freestanding compilers. */
26537 # include <limits.h>
26539 # include <assert.h>
26544 /* Override any GCC internal prototype to avoid an error.
26545 Use char because int might match the return type of a GCC
26546 builtin and then its argument prototype would still apply. */
26551 /* The GNU C library defines this for functions which it implements
26552 to always fail with ENOSYS. Some functions are actually named
26553 something starting with __ and the normal name is an alias. */
26554 #if defined __stub_$ac_func || defined __stub___$ac_func
26561 return $ac_func ();
26566 rm -f conftest.$ac_objext conftest$ac_exeext
26567 if { (ac_try="$ac_link"
26568 case "(($ac_try" in
26569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26570 *) ac_try_echo=$ac_try;;
26572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26573 (eval "$ac_link") 2>conftest.er1
26575 grep -v '^ *+' conftest.er1 >conftest.err
26577 cat conftest.err >&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); } && {
26580 test -z "$ac_c_werror_flag" ||
26581 test ! -s conftest.err
26582 } && test -s conftest$ac_exeext &&
26583 $as_test_x conftest$ac_exeext; then
26584 eval "$as_ac_var=yes"
26586 echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26589 eval "$as_ac_var=no"
26592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26593 conftest$ac_exeext conftest.$ac_ext
26595 ac_res=`eval echo '${'$as_ac_var'}'`
26596 { echo "$as_me:$LINENO: result: $ac_res" >&5
26597 echo "${ECHO_T}$ac_res" >&6; }
26598 if test `eval echo '${'$as_ac_var'}'` = yes; then
26599 cat >>confdefs.h <<_ACEOF
26600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26602 cat >>confdefs.h <<\_ACEOF
26603 #define HAVE_FCHDIR 1
26610 for ac_func in strtoll
26612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 cat >conftest.$ac_ext <<_ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h. */
26624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26626 #define $ac_func innocuous_$ac_func
26628 /* System header to define __stub macros and hopefully few prototypes,
26629 which can conflict with char $ac_func (); below.
26630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26631 <limits.h> exists even on freestanding compilers. */
26634 # include <limits.h>
26636 # include <assert.h>
26641 /* Override any GCC internal prototype to avoid an error.
26642 Use char because int might match the return type of a GCC
26643 builtin and then its argument prototype would still apply. */
26648 /* The GNU C library defines this for functions which it implements
26649 to always fail with ENOSYS. Some functions are actually named
26650 something starting with __ and the normal name is an alias. */
26651 #if defined __stub_$ac_func || defined __stub___$ac_func
26658 return $ac_func ();
26663 rm -f conftest.$ac_objext conftest$ac_exeext
26664 if { (ac_try="$ac_link"
26665 case "(($ac_try" in
26666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667 *) ac_try_echo=$ac_try;;
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670 (eval "$ac_link") 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } && {
26677 test -z "$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26679 } && test -s conftest$ac_exeext &&
26680 $as_test_x conftest$ac_exeext; then
26681 eval "$as_ac_var=yes"
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26686 eval "$as_ac_var=no"
26689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26690 conftest$ac_exeext conftest.$ac_ext
26692 ac_res=`eval echo '${'$as_ac_var'}'`
26693 { echo "$as_me:$LINENO: result: $ac_res" >&5
26694 echo "${ECHO_T}$ac_res" >&6; }
26695 if test `eval echo '${'$as_ac_var'}'` = yes; then
26696 cat >>confdefs.h <<_ACEOF
26697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26699 cat >>confdefs.h <<\_ACEOF
26700 #define HAVE_STRTOLL 1
26707 for ac_func in posix_fadvise
26709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26723 #define $ac_func innocuous_$ac_func
26725 /* System header to define __stub macros and hopefully few prototypes,
26726 which can conflict with char $ac_func (); below.
26727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26728 <limits.h> exists even on freestanding compilers. */
26731 # include <limits.h>
26733 # include <assert.h>
26738 /* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26745 /* The GNU C library defines this for functions which it implements
26746 to always fail with ENOSYS. Some functions are actually named
26747 something starting with __ and the normal name is an alias. */
26748 #if defined __stub_$ac_func || defined __stub___$ac_func
26755 return $ac_func ();
26760 rm -f conftest.$ac_objext conftest$ac_exeext
26761 if { (ac_try="$ac_link"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_link") 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } && {
26774 test -z "$ac_c_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest$ac_exeext &&
26777 $as_test_x conftest$ac_exeext; then
26778 eval "$as_ac_var=yes"
26780 echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 eval "$as_ac_var=no"
26786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26787 conftest$ac_exeext conftest.$ac_ext
26789 ac_res=`eval echo '${'$as_ac_var'}'`
26790 { echo "$as_me:$LINENO: result: $ac_res" >&5
26791 echo "${ECHO_T}$ac_res" >&6; }
26792 if test `eval echo '${'$as_ac_var'}'` = yes; then
26793 cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26801 for ac_func in fdatasync
26803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26817 #define $ac_func innocuous_$ac_func
26819 /* System header to define __stub macros and hopefully few prototypes,
26820 which can conflict with char $ac_func (); below.
26821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26822 <limits.h> exists even on freestanding compilers. */
26825 # include <limits.h>
26827 # include <assert.h>
26832 /* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26839 /* The GNU C library defines this for functions which it implements
26840 to always fail with ENOSYS. Some functions are actually named
26841 something starting with __ and the normal name is an alias. */
26842 #if defined __stub_$ac_func || defined __stub___$ac_func
26849 return $ac_func ();
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (ac_try="$ac_link"
26856 case "(($ac_try" in
26857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858 *) ac_try_echo=$ac_try;;
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861 (eval "$ac_link") 2>conftest.er1
26863 grep -v '^ *+' conftest.er1 >conftest.err
26865 cat conftest.err >&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } && {
26868 test -z "$ac_c_werror_flag" ||
26869 test ! -s conftest.err
26870 } && test -s conftest$ac_exeext &&
26871 $as_test_x conftest$ac_exeext; then
26872 eval "$as_ac_var=yes"
26874 echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26877 eval "$as_ac_var=no"
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881 conftest$ac_exeext conftest.$ac_ext
26883 ac_res=`eval echo '${'$as_ac_var'}'`
26884 { echo "$as_me:$LINENO: result: $ac_res" >&5
26885 echo "${ECHO_T}$ac_res" >&6; }
26886 if test `eval echo '${'$as_ac_var'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26896 for ac_func in chflags
26898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26902 echo $ECHO_N "(cached) $ECHO_C" >&6
26904 cat >conftest.$ac_ext <<_ACEOF
26907 cat confdefs.h >>conftest.$ac_ext
26908 cat >>conftest.$ac_ext <<_ACEOF
26909 /* end confdefs.h. */
26910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26912 #define $ac_func innocuous_$ac_func
26914 /* System header to define __stub macros and hopefully few prototypes,
26915 which can conflict with char $ac_func (); below.
26916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26917 <limits.h> exists even on freestanding compilers. */
26920 # include <limits.h>
26922 # include <assert.h>
26927 /* Override any GCC internal prototype to avoid an error.
26928 Use char because int might match the return type of a GCC
26929 builtin and then its argument prototype would still apply. */
26934 /* The GNU C library defines this for functions which it implements
26935 to always fail with ENOSYS. Some functions are actually named
26936 something starting with __ and the normal name is an alias. */
26937 #if defined __stub_$ac_func || defined __stub___$ac_func
26944 return $ac_func ();
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (ac_try="$ac_link"
26951 case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_link") 2>conftest.er1
26958 grep -v '^ *+' conftest.er1 >conftest.err
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } && {
26963 test -z "$ac_c_werror_flag" ||
26964 test ! -s conftest.err
26965 } && test -s conftest$ac_exeext &&
26966 $as_test_x conftest$ac_exeext; then
26967 eval "$as_ac_var=yes"
26969 echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 eval "$as_ac_var=no"
26975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26976 conftest$ac_exeext conftest.$ac_ext
26978 ac_res=`eval echo '${'$as_ac_var'}'`
26979 { echo "$as_me:$LINENO: result: $ac_res" >&5
26980 echo "${ECHO_T}$ac_res" >&6; }
26981 if test `eval echo '${'$as_ac_var'}'` = yes; then
26982 cat >>confdefs.h <<_ACEOF
26983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26994 for ac_func in snprintf vsnprintf gethostid fseeko
26996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27000 echo $ECHO_N "(cached) $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27010 #define $ac_func innocuous_$ac_func
27012 /* System header to define __stub macros and hopefully few prototypes,
27013 which can conflict with char $ac_func (); below.
27014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27015 <limits.h> exists even on freestanding compilers. */
27018 # include <limits.h>
27020 # include <assert.h>
27025 /* Override any GCC internal prototype to avoid an error.
27026 Use char because int might match the return type of a GCC
27027 builtin and then its argument prototype would still apply. */
27032 /* The GNU C library defines this for functions which it implements
27033 to always fail with ENOSYS. Some functions are actually named
27034 something starting with __ and the normal name is an alias. */
27035 #if defined __stub_$ac_func || defined __stub___$ac_func
27042 return $ac_func ();
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_link") 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest$ac_exeext &&
27064 $as_test_x conftest$ac_exeext; then
27065 eval "$as_ac_var=yes"
27067 echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27070 eval "$as_ac_var=no"
27073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27074 conftest$ac_exeext conftest.$ac_ext
27076 ac_res=`eval echo '${'$as_ac_var'}'`
27077 { echo "$as_me:$LINENO: result: $ac_res" >&5
27078 echo "${ECHO_T}$ac_res" >&6; }
27079 if test `eval echo '${'$as_ac_var'}'` = yes; then
27080 cat >>confdefs.h <<_ACEOF
27081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27088 { echo "$as_me:$LINENO: checking for va_copy" >&5
27089 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27090 if test "${ba_cv_va_copy+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27100 #include <stdarg.h>
27101 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27102 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27107 call_use_va_copy(1,2,3)
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_link") 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } && {
27126 test -z "$ac_c_werror_flag" ||
27127 test ! -s conftest.err
27128 } && test -s conftest$ac_exeext &&
27129 $as_test_x conftest$ac_exeext; then
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139 conftest$ac_exeext conftest.$ac_ext
27141 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27142 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27143 test $ba_cv_va_copy = yes &&
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_VA_COPY 1
27154 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27170 #define $ac_func innocuous_$ac_func
27172 /* System header to define __stub macros and hopefully few prototypes,
27173 which can conflict with char $ac_func (); below.
27174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27175 <limits.h> exists even on freestanding compilers. */
27178 # include <limits.h>
27180 # include <assert.h>
27185 /* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
27192 /* The GNU C library defines this for functions which it implements
27193 to always fail with ENOSYS. Some functions are actually named
27194 something starting with __ and the normal name is an alias. */
27195 #if defined __stub_$ac_func || defined __stub___$ac_func
27202 return $ac_func ();
27207 rm -f conftest.$ac_objext conftest$ac_exeext
27208 if { (ac_try="$ac_link"
27209 case "(($ac_try" in
27210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214 (eval "$ac_link") 2>conftest.er1
27216 grep -v '^ *+' conftest.er1 >conftest.err
27218 cat conftest.err >&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } && {
27221 test -z "$ac_c_werror_flag" ||
27222 test ! -s conftest.err
27223 } && test -s conftest$ac_exeext &&
27224 $as_test_x conftest$ac_exeext; then
27225 eval "$as_ac_var=yes"
27227 echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27230 eval "$as_ac_var=no"
27233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27234 conftest$ac_exeext conftest.$ac_ext
27236 ac_res=`eval echo '${'$as_ac_var'}'`
27237 { echo "$as_me:$LINENO: result: $ac_res" >&5
27238 echo "${ECHO_T}$ac_res" >&6; }
27239 if test `eval echo '${'$as_ac_var'}'` = yes; then
27240 cat >>confdefs.h <<_ACEOF
27241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248 # If resolver functions are not in libc check for -lnsl or -lresolv.
27249 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27250 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27251 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 cat >conftest.$ac_ext <<_ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27260 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27262 #define gethostbyname_r innocuous_gethostbyname_r
27264 /* System header to define __stub macros and hopefully few prototypes,
27265 which can conflict with char gethostbyname_r (); below.
27266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27267 <limits.h> exists even on freestanding compilers. */
27270 # include <limits.h>
27272 # include <assert.h>
27275 #undef gethostbyname_r
27277 /* Override any GCC internal prototype to avoid an error.
27278 Use char because int might match the return type of a GCC
27279 builtin and then its argument prototype would still apply. */
27283 char gethostbyname_r ();
27284 /* The GNU C library defines this for functions which it implements
27285 to always fail with ENOSYS. Some functions are actually named
27286 something starting with __ and the normal name is an alias. */
27287 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27294 return gethostbyname_r ();
27299 rm -f conftest.$ac_objext conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_link") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_c_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest$ac_exeext &&
27316 $as_test_x conftest$ac_exeext; then
27317 ac_cv_func_gethostbyname_r=yes
27319 echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ac_cv_func_gethostbyname_r=no
27325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27326 conftest$ac_exeext conftest.$ac_ext
27328 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27329 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27330 if test $ac_cv_func_gethostbyname_r = yes; then
27331 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27332 echo "${ECHO_T}using libc's resolver" >&6; }
27335 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27336 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27337 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27338 echo $ECHO_N "(cached) $ECHO_C" >&6
27340 ac_check_lib_save_LIBS=$LIBS
27342 cat >conftest.$ac_ext <<_ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h. */
27349 /* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27355 char gethostbyname_r ();
27359 return gethostbyname_r ();
27364 rm -f conftest.$ac_objext conftest$ac_exeext
27365 if { (ac_try="$ac_link"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_link") 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } && {
27378 test -z "$ac_c_werror_flag" ||
27379 test ! -s conftest.err
27380 } && test -s conftest$ac_exeext &&
27381 $as_test_x conftest$ac_exeext; then
27382 ac_cv_lib_nsl_gethostbyname_r=yes
27384 echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27387 ac_cv_lib_nsl_gethostbyname_r=no
27390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27391 conftest$ac_exeext conftest.$ac_ext
27392 LIBS=$ac_check_lib_save_LIBS
27394 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27395 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27396 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27397 cat >>confdefs.h <<_ACEOF
27398 #define HAVE_LIBNSL 1
27406 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27407 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27408 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27411 ac_check_lib_save_LIBS=$LIBS
27412 LIBS="-lresolv $LIBS"
27413 cat >conftest.$ac_ext <<_ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h. */
27420 /* Override any GCC internal prototype to avoid an error.
27421 Use char because int might match the return type of a GCC
27422 builtin and then its argument prototype would still apply. */
27426 char gethostbyname_r ();
27430 return gethostbyname_r ();
27435 rm -f conftest.$ac_objext conftest$ac_exeext
27436 if { (ac_try="$ac_link"
27437 case "(($ac_try" in
27438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439 *) ac_try_echo=$ac_try;;
27441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442 (eval "$ac_link") 2>conftest.er1
27444 grep -v '^ *+' conftest.er1 >conftest.err
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } && {
27449 test -z "$ac_c_werror_flag" ||
27450 test ! -s conftest.err
27451 } && test -s conftest$ac_exeext &&
27452 $as_test_x conftest$ac_exeext; then
27453 ac_cv_lib_resolv_gethostbyname_r=yes
27455 echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27458 ac_cv_lib_resolv_gethostbyname_r=no
27461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27462 conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27465 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27466 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27467 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27468 cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBRESOLV 1
27472 LIBS="-lresolv $LIBS"
27482 for ac_func in inet_pton
27484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 cat >conftest.$ac_ext <<_ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27498 #define $ac_func innocuous_$ac_func
27500 /* System header to define __stub macros and hopefully few prototypes,
27501 which can conflict with char $ac_func (); below.
27502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27503 <limits.h> exists even on freestanding compilers. */
27506 # include <limits.h>
27508 # include <assert.h>
27513 /* Override any GCC internal prototype to avoid an error.
27514 Use char because int might match the return type of a GCC
27515 builtin and then its argument prototype would still apply. */
27520 /* The GNU C library defines this for functions which it implements
27521 to always fail with ENOSYS. Some functions are actually named
27522 something starting with __ and the normal name is an alias. */
27523 #if defined __stub_$ac_func || defined __stub___$ac_func
27530 return $ac_func ();
27535 rm -f conftest.$ac_objext conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_link") 2>conftest.er1
27544 grep -v '^ *+' conftest.er1 >conftest.err
27546 cat conftest.err >&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); } && {
27549 test -z "$ac_c_werror_flag" ||
27550 test ! -s conftest.err
27551 } && test -s conftest$ac_exeext &&
27552 $as_test_x conftest$ac_exeext; then
27553 eval "$as_ac_var=yes"
27555 echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27558 eval "$as_ac_var=no"
27561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27562 conftest$ac_exeext conftest.$ac_ext
27564 ac_res=`eval echo '${'$as_ac_var'}'`
27565 { echo "$as_me:$LINENO: result: $ac_res" >&5
27566 echo "${ECHO_T}$ac_res" >&6; }
27567 if test `eval echo '${'$as_ac_var'}'` = yes; then
27568 cat >>confdefs.h <<_ACEOF
27569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27571 cat >>confdefs.h <<\_ACEOF
27572 #define HAVE_INET_PTON 1
27579 for ac_func in inet_ntop
27581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27587 cat >conftest.$ac_ext <<_ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27595 #define $ac_func innocuous_$ac_func
27597 /* System header to define __stub macros and hopefully few prototypes,
27598 which can conflict with char $ac_func (); below.
27599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27600 <limits.h> exists even on freestanding compilers. */
27603 # include <limits.h>
27605 # include <assert.h>
27610 /* Override any GCC internal prototype to avoid an error.
27611 Use char because int might match the return type of a GCC
27612 builtin and then its argument prototype would still apply. */
27617 /* The GNU C library defines this for functions which it implements
27618 to always fail with ENOSYS. Some functions are actually named
27619 something starting with __ and the normal name is an alias. */
27620 #if defined __stub_$ac_func || defined __stub___$ac_func
27627 return $ac_func ();
27632 rm -f conftest.$ac_objext conftest$ac_exeext
27633 if { (ac_try="$ac_link"
27634 case "(($ac_try" in
27635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636 *) ac_try_echo=$ac_try;;
27638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639 (eval "$ac_link") 2>conftest.er1
27641 grep -v '^ *+' conftest.er1 >conftest.err
27643 cat conftest.err >&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } && {
27646 test -z "$ac_c_werror_flag" ||
27647 test ! -s conftest.err
27648 } && test -s conftest$ac_exeext &&
27649 $as_test_x conftest$ac_exeext; then
27650 eval "$as_ac_var=yes"
27652 echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27655 eval "$as_ac_var=no"
27658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27659 conftest$ac_exeext conftest.$ac_ext
27661 ac_res=`eval echo '${'$as_ac_var'}'`
27662 { echo "$as_me:$LINENO: result: $ac_res" >&5
27663 echo "${ECHO_T}$ac_res" >&6; }
27664 if test `eval echo '${'$as_ac_var'}'` = yes; then
27665 cat >>confdefs.h <<_ACEOF
27666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27668 cat >>confdefs.h <<\_ACEOF
27669 #define HAVE_INET_NTOP 1
27676 for ac_func in gethostbyname2
27678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27684 cat >conftest.$ac_ext <<_ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27692 #define $ac_func innocuous_$ac_func
27694 /* System header to define __stub macros and hopefully few prototypes,
27695 which can conflict with char $ac_func (); below.
27696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27697 <limits.h> exists even on freestanding compilers. */
27700 # include <limits.h>
27702 # include <assert.h>
27707 /* Override any GCC internal prototype to avoid an error.
27708 Use char because int might match the return type of a GCC
27709 builtin and then its argument prototype would still apply. */
27714 /* The GNU C library defines this for functions which it implements
27715 to always fail with ENOSYS. Some functions are actually named
27716 something starting with __ and the normal name is an alias. */
27717 #if defined __stub_$ac_func || defined __stub___$ac_func
27724 return $ac_func ();
27729 rm -f conftest.$ac_objext conftest$ac_exeext
27730 if { (ac_try="$ac_link"
27731 case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_link") 2>conftest.er1
27738 grep -v '^ *+' conftest.er1 >conftest.err
27740 cat conftest.err >&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } && {
27743 test -z "$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27745 } && test -s conftest$ac_exeext &&
27746 $as_test_x conftest$ac_exeext; then
27747 eval "$as_ac_var=yes"
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 eval "$as_ac_var=no"
27755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27756 conftest$ac_exeext conftest.$ac_ext
27758 ac_res=`eval echo '${'$as_ac_var'}'`
27759 { echo "$as_me:$LINENO: result: $ac_res" >&5
27760 echo "${ECHO_T}$ac_res" >&6; }
27761 if test `eval echo '${'$as_ac_var'}'` = yes; then
27762 cat >>confdefs.h <<_ACEOF
27763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27765 cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GETHOSTBYNAME2 1
27773 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27774 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27775 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 cat >conftest.$ac_ext <<_ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h. */
27784 #include <sys/socket.h>
27788 struct sockaddr s; s.sa_len;
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_compile") 2>conftest.er1
27802 grep -v '^ *+' conftest.er1 >conftest.err
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } && {
27807 test -z "$ac_c_werror_flag" ||
27808 test ! -s conftest.err
27809 } && test -s conftest.$ac_objext; then
27810 ac_cv_struct_sockaddr_sa_len=yes
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27815 ac_cv_struct_sockaddr_sa_len=no
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27821 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27823 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27825 cat >>confdefs.h <<\_ACEOF
27826 #define HAVE_SA_LEN 1
27835 for ac_func in strftime
27837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27841 echo $ECHO_N "(cached) $ECHO_C" >&6
27843 cat >conftest.$ac_ext <<_ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h. */
27849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27851 #define $ac_func innocuous_$ac_func
27853 /* System header to define __stub macros and hopefully few prototypes,
27854 which can conflict with char $ac_func (); below.
27855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27856 <limits.h> exists even on freestanding compilers. */
27859 # include <limits.h>
27861 # include <assert.h>
27866 /* Override any GCC internal prototype to avoid an error.
27867 Use char because int might match the return type of a GCC
27868 builtin and then its argument prototype would still apply. */
27873 /* The GNU C library defines this for functions which it implements
27874 to always fail with ENOSYS. Some functions are actually named
27875 something starting with __ and the normal name is an alias. */
27876 #if defined __stub_$ac_func || defined __stub___$ac_func
27883 return $ac_func ();
27888 rm -f conftest.$ac_objext conftest$ac_exeext
27889 if { (ac_try="$ac_link"
27890 case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_link") 2>conftest.er1
27897 grep -v '^ *+' conftest.er1 >conftest.err
27899 cat conftest.err >&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest$ac_exeext &&
27905 $as_test_x conftest$ac_exeext; then
27906 eval "$as_ac_var=yes"
27908 echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27911 eval "$as_ac_var=no"
27914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27915 conftest$ac_exeext conftest.$ac_ext
27917 ac_res=`eval echo '${'$as_ac_var'}'`
27918 { echo "$as_me:$LINENO: result: $ac_res" >&5
27919 echo "${ECHO_T}$ac_res" >&6; }
27920 if test `eval echo '${'$as_ac_var'}'` = yes; then
27921 cat >>confdefs.h <<_ACEOF
27922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27926 # strftime is in -lintl on SCO UNIX.
27927 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27928 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27929 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27932 ac_check_lib_save_LIBS=$LIBS
27933 LIBS="-lintl $LIBS"
27934 cat >conftest.$ac_ext <<_ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27941 /* Override any GCC internal prototype to avoid an error.
27942 Use char because int might match the return type of a GCC
27943 builtin and then its argument prototype would still apply. */
27951 return strftime ();
27956 rm -f conftest.$ac_objext conftest$ac_exeext
27957 if { (ac_try="$ac_link"
27958 case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_link") 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } && {
27970 test -z "$ac_c_werror_flag" ||
27971 test ! -s conftest.err
27972 } && test -s conftest$ac_exeext &&
27973 $as_test_x conftest$ac_exeext; then
27974 ac_cv_lib_intl_strftime=yes
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 ac_cv_lib_intl_strftime=no
27982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27983 conftest$ac_exeext conftest.$ac_ext
27984 LIBS=$ac_check_lib_save_LIBS
27986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27988 if test $ac_cv_lib_intl_strftime = yes; then
27989 cat >>confdefs.h <<\_ACEOF
27990 #define HAVE_STRFTIME 1
27993 LIBS="-lintl $LIBS"
28000 for ac_func in vprintf
28002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 cat >conftest.$ac_ext <<_ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28016 #define $ac_func innocuous_$ac_func
28018 /* System header to define __stub macros and hopefully few prototypes,
28019 which can conflict with char $ac_func (); below.
28020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28021 <limits.h> exists even on freestanding compilers. */
28024 # include <limits.h>
28026 # include <assert.h>
28031 /* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28038 /* The GNU C library defines this for functions which it implements
28039 to always fail with ENOSYS. Some functions are actually named
28040 something starting with __ and the normal name is an alias. */
28041 #if defined __stub_$ac_func || defined __stub___$ac_func
28048 return $ac_func ();
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_link") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest$ac_exeext &&
28070 $as_test_x conftest$ac_exeext; then
28071 eval "$as_ac_var=yes"
28073 echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 eval "$as_ac_var=no"
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080 conftest$ac_exeext conftest.$ac_ext
28082 ac_res=`eval echo '${'$as_ac_var'}'`
28083 { echo "$as_me:$LINENO: result: $ac_res" >&5
28084 echo "${ECHO_T}$ac_res" >&6; }
28085 if test `eval echo '${'$as_ac_var'}'` = yes; then
28086 cat >>confdefs.h <<_ACEOF
28087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28090 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28091 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28092 if test "${ac_cv_func__doprnt+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28095 cat >conftest.$ac_ext <<_ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28101 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28103 #define _doprnt innocuous__doprnt
28105 /* System header to define __stub macros and hopefully few prototypes,
28106 which can conflict with char _doprnt (); below.
28107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108 <limits.h> exists even on freestanding compilers. */
28111 # include <limits.h>
28113 # include <assert.h>
28118 /* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28125 /* The GNU C library defines this for functions which it implements
28126 to always fail with ENOSYS. Some functions are actually named
28127 something starting with __ and the normal name is an alias. */
28128 #if defined __stub__doprnt || defined __stub____doprnt
28140 rm -f conftest.$ac_objext conftest$ac_exeext
28141 if { (ac_try="$ac_link"
28142 case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_link") 2>conftest.er1
28149 grep -v '^ *+' conftest.er1 >conftest.err
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); } && {
28154 test -z "$ac_c_werror_flag" ||
28155 test ! -s conftest.err
28156 } && test -s conftest$ac_exeext &&
28157 $as_test_x conftest$ac_exeext; then
28158 ac_cv_func__doprnt=yes
28160 echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28163 ac_cv_func__doprnt=no
28166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28167 conftest$ac_exeext conftest.$ac_ext
28169 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28170 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28171 if test $ac_cv_func__doprnt = yes; then
28173 cat >>confdefs.h <<\_ACEOF
28174 #define HAVE_DOPRNT 1
28183 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28184 # for constant arguments. Useless!
28185 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28186 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28187 if test "${ac_cv_working_alloca_h+set}" = set; then
28188 echo $ECHO_N "(cached) $ECHO_C" >&6
28190 cat >conftest.$ac_ext <<_ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <alloca.h>
28200 char *p = (char *) alloca (2 * sizeof (int));
28206 rm -f conftest.$ac_objext conftest$ac_exeext
28207 if { (ac_try="$ac_link"
28208 case "(($ac_try" in
28209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210 *) ac_try_echo=$ac_try;;
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_link") 2>conftest.er1
28215 grep -v '^ *+' conftest.er1 >conftest.err
28217 cat conftest.err >&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } && {
28220 test -z "$ac_c_werror_flag" ||
28221 test ! -s conftest.err
28222 } && test -s conftest$ac_exeext &&
28223 $as_test_x conftest$ac_exeext; then
28224 ac_cv_working_alloca_h=yes
28226 echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28229 ac_cv_working_alloca_h=no
28232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28233 conftest$ac_exeext conftest.$ac_ext
28235 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28237 if test $ac_cv_working_alloca_h = yes; then
28239 cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_ALLOCA_H 1
28245 { echo "$as_me:$LINENO: checking for alloca" >&5
28246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28247 if test "${ac_cv_func_alloca_works+set}" = set; then
28248 echo $ECHO_N "(cached) $ECHO_C" >&6
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28257 # define alloca __builtin_alloca
28260 # include <malloc.h>
28261 # define alloca _alloca
28263 # ifdef HAVE_ALLOCA_H
28264 # include <alloca.h>
28269 # ifndef alloca /* predefined by HP cc +Olibcalls */
28280 char *p = (char *) alloca (1);
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (ac_try="$ac_link"
28288 case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_link") 2>conftest.er1
28295 grep -v '^ *+' conftest.er1 >conftest.err
28297 cat conftest.err >&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } && {
28300 test -z "$ac_c_werror_flag" ||
28301 test ! -s conftest.err
28302 } && test -s conftest$ac_exeext &&
28303 $as_test_x conftest$ac_exeext; then
28304 ac_cv_func_alloca_works=yes
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28309 ac_cv_func_alloca_works=no
28312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28313 conftest$ac_exeext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28316 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28318 if test $ac_cv_func_alloca_works = yes; then
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ALLOCA 1
28325 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28326 # that cause trouble. Some versions do not even contain alloca or
28327 # contain a buggy version. If you still want to use their alloca,
28328 # use ar to extract alloca.o from them instead of compiling alloca.c.
28330 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28332 cat >>confdefs.h <<\_ACEOF
28337 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28338 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28339 if test "${ac_cv_os_cray+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 cat >conftest.$ac_ext <<_ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h. */
28348 #if defined CRAY && ! defined CRAY2
28355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28356 $EGREP "webecray" >/dev/null 2>&1; then
28364 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28365 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28366 if test $ac_cv_os_cray = yes; then
28367 for ac_func in _getb67 GETB67 getb67; do
28368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28382 #define $ac_func innocuous_$ac_func
28384 /* System header to define __stub macros and hopefully few prototypes,
28385 which can conflict with char $ac_func (); below.
28386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28387 <limits.h> exists even on freestanding compilers. */
28390 # include <limits.h>
28392 # include <assert.h>
28397 /* Override any GCC internal prototype to avoid an error.
28398 Use char because int might match the return type of a GCC
28399 builtin and then its argument prototype would still apply. */
28404 /* The GNU C library defines this for functions which it implements
28405 to always fail with ENOSYS. Some functions are actually named
28406 something starting with __ and the normal name is an alias. */
28407 #if defined __stub_$ac_func || defined __stub___$ac_func
28414 return $ac_func ();
28419 rm -f conftest.$ac_objext conftest$ac_exeext
28420 if { (ac_try="$ac_link"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_link") 2>conftest.er1
28428 grep -v '^ *+' conftest.er1 >conftest.err
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest$ac_exeext &&
28436 $as_test_x conftest$ac_exeext; then
28437 eval "$as_ac_var=yes"
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 eval "$as_ac_var=no"
28445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28446 conftest$ac_exeext conftest.$ac_ext
28448 ac_res=`eval echo '${'$as_ac_var'}'`
28449 { echo "$as_me:$LINENO: result: $ac_res" >&5
28450 echo "${ECHO_T}$ac_res" >&6; }
28451 if test `eval echo '${'$as_ac_var'}'` = yes; then
28453 cat >>confdefs.h <<_ACEOF
28454 #define CRAY_STACKSEG_END $ac_func
28463 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28464 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28465 if test "${ac_cv_c_stack_direction+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 if test "$cross_compiling" = yes; then
28469 ac_cv_c_stack_direction=0
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28477 $ac_includes_default
28479 find_stack_direction ()
28481 static char *addr = 0;
28486 return find_stack_direction ();
28489 return (&dummy > addr) ? 1 : -1;
28495 return find_stack_direction () < 0;
28498 rm -f conftest$ac_exeext
28499 if { (ac_try="$ac_link"
28500 case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_link") 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28509 { (case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514 (eval "$ac_try") 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_c_stack_direction=1
28520 echo "$as_me: program exited with status $ac_status" >&5
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28524 ( exit $ac_status )
28525 ac_cv_c_stack_direction=-1
28527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28532 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28533 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28535 cat >>confdefs.h <<_ACEOF
28536 #define STACK_DIRECTION $ac_cv_c_stack_direction
28542 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28543 # -lseq on Dynix/PTX, -lgen on Unixware.
28544 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28545 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28546 if test "${ac_cv_search_getmntent+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 ac_func_search_save_LIBS=$LIBS
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28557 /* Override any GCC internal prototype to avoid an error.
28558 Use char because int might match the return type of a GCC
28559 builtin and then its argument prototype would still apply. */
28567 return getmntent ();
28572 for ac_lib in '' sun seq gen; do
28573 if test -z "$ac_lib"; then
28574 ac_res="none required"
28577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28579 rm -f conftest.$ac_objext conftest$ac_exeext
28580 if { (ac_try="$ac_link"
28581 case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_link") 2>conftest.er1
28588 grep -v '^ *+' conftest.er1 >conftest.err
28590 cat conftest.err >&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest$ac_exeext &&
28596 $as_test_x conftest$ac_exeext; then
28597 ac_cv_search_getmntent=$ac_res
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28607 if test "${ac_cv_search_getmntent+set}" = set; then
28611 if test "${ac_cv_search_getmntent+set}" = set; then
28614 ac_cv_search_getmntent=no
28616 rm conftest.$ac_ext
28617 LIBS=$ac_func_search_save_LIBS
28619 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28620 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28621 ac_res=$ac_cv_search_getmntent
28622 if test "$ac_res" != no; then
28623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28624 ac_cv_func_getmntent=yes
28626 cat >>confdefs.h <<\_ACEOF
28627 #define HAVE_GETMNTENT 1
28631 ac_cv_func_getmntent=no
28635 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28636 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28637 if test "${ac_cv_func_closedir_void+set}" = set; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28640 if test "$cross_compiling" = yes; then
28641 ac_cv_func_closedir_void=yes
28643 cat >conftest.$ac_ext <<_ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h. */
28649 $ac_includes_default
28650 #include <$ac_header_dirent>
28651 #ifndef __cplusplus
28658 return closedir (opendir (".")) != 0;
28663 rm -f conftest$ac_exeext
28664 if { (ac_try="$ac_link"
28665 case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_link") 2>&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; }; then
28683 ac_cv_func_closedir_void=no
28685 echo "$as_me: program exited with status $ac_status" >&5
28686 echo "$as_me: failed program was:" >&5
28687 sed 's/^/| /' conftest.$ac_ext >&5
28689 ( exit $ac_status )
28690 ac_cv_func_closedir_void=yes
28692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28698 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28699 if test $ac_cv_func_closedir_void = yes; then
28701 cat >>confdefs.h <<\_ACEOF
28702 #define CLOSEDIR_VOID 1
28707 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28708 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28709 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 if test "$cross_compiling" = yes; then
28713 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28714 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28715 { (exit 1); exit 1; }; }
28717 cat >conftest.$ac_ext <<_ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 $ac_includes_default
28727 /* If this system has a BSD-style setpgrp which takes arguments,
28728 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28729 exit successfully. */
28730 return setpgrp (1,1) != -1;
28735 rm -f conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_link") 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28746 { (case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_try") 2>&5
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_cv_func_setpgrp_void=no
28757 echo "$as_me: program exited with status $ac_status" >&5
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28761 ( exit $ac_status )
28762 ac_cv_func_setpgrp_void=yes
28764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28769 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28770 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28771 if test $ac_cv_func_setpgrp_void = yes; then
28773 cat >>confdefs.h <<\_ACEOF
28774 #define SETPGRP_VOID 1
28778 # AC_FUNC_FNMATCH dnl use local version
28781 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28782 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28783 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28786 ac_check_lib_save_LIBS=$LIBS
28787 LIBS="-lintl $LIBS"
28788 cat >conftest.$ac_ext <<_ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28795 /* Override any GCC internal prototype to avoid an error.
28796 Use char because int might match the return type of a GCC
28797 builtin and then its argument prototype would still apply. */
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_link") 2>conftest.er1
28819 grep -v '^ *+' conftest.er1 >conftest.err
28821 cat conftest.err >&5
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); } && {
28824 test -z "$ac_c_werror_flag" ||
28825 test ! -s conftest.err
28826 } && test -s conftest$ac_exeext &&
28827 $as_test_x conftest$ac_exeext; then
28828 ac_cv_lib_intl_gettext=yes
28830 echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28833 ac_cv_lib_intl_gettext=no
28836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28837 conftest$ac_exeext conftest.$ac_ext
28838 LIBS=$ac_check_lib_save_LIBS
28840 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28841 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28842 if test $ac_cv_lib_intl_gettext = yes; then
28843 LIBS="$LIBS -lintl"
28849 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28850 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28851 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28852 echo $ECHO_N "(cached) $ECHO_C" >&6
28854 ac_check_lib_save_LIBS=$LIBS
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28863 /* Override any GCC internal prototype to avoid an error.
28864 Use char because int might match the return type of a GCC
28865 builtin and then its argument prototype would still apply. */
28873 return getpwnam ();
28878 rm -f conftest.$ac_objext conftest$ac_exeext
28879 if { (ac_try="$ac_link"
28880 case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_link") 2>conftest.er1
28887 grep -v '^ *+' conftest.er1 >conftest.err
28889 cat conftest.err >&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } && {
28892 test -z "$ac_c_werror_flag" ||
28893 test ! -s conftest.err
28894 } && test -s conftest$ac_exeext &&
28895 $as_test_x conftest$ac_exeext; then
28896 ac_cv_lib_sun_getpwnam=yes
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28901 ac_cv_lib_sun_getpwnam=no
28904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28905 conftest$ac_exeext conftest.$ac_ext
28906 LIBS=$ac_check_lib_save_LIBS
28908 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28909 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28910 if test $ac_cv_lib_sun_getpwnam = yes; then
28911 cat >>confdefs.h <<_ACEOF
28912 #define HAVE_LIBSUN 1
28921 for ac_header in zlib.h
28923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28930 ac_res=`eval echo '${'$as_ac_Header'}'`
28931 { echo "$as_me:$LINENO: result: $ac_res" >&5
28932 echo "${ECHO_T}$ac_res" >&6; }
28934 # Is the header compilable?
28935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28937 cat >conftest.$ac_ext <<_ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h. */
28943 $ac_includes_default
28944 #include <$ac_header>
28946 rm -f conftest.$ac_objext
28947 if { (ac_try="$ac_compile"
28948 case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_compile") 2>conftest.er1
28955 grep -v '^ *+' conftest.er1 >conftest.err
28957 cat conftest.err >&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } && {
28960 test -z "$ac_c_werror_flag" ||
28961 test ! -s conftest.err
28962 } && test -s conftest.$ac_objext; then
28963 ac_header_compiler=yes
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 ac_header_compiler=no
28971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28973 echo "${ECHO_T}$ac_header_compiler" >&6; }
28975 # Is the header present?
28976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28978 cat >conftest.$ac_ext <<_ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h. */
28984 #include <$ac_header>
28986 if { (ac_try="$ac_cpp conftest.$ac_ext"
28987 case "(($ac_try" in
28988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28989 *) ac_try_echo=$ac_try;;
28991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } >/dev/null && {
28999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29000 test ! -s conftest.err
29002 ac_header_preproc=yes
29004 echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29007 ac_header_preproc=no
29010 rm -f conftest.err conftest.$ac_ext
29011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6; }
29014 # So? What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29042 echo $ECHO_N "(cached) $ECHO_C" >&6
29044 eval "$as_ac_Header=\$ac_header_preproc"
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047 { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29052 cat >>confdefs.h <<_ACEOF
29053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29060 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29061 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29062 if test "${ac_cv_lib_z_deflate+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 ac_check_lib_save_LIBS=$LIBS
29067 cat >conftest.$ac_ext <<_ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29074 /* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29089 rm -f conftest.$ac_objext conftest$ac_exeext
29090 if { (ac_try="$ac_link"
29091 case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_link") 2>conftest.er1
29098 grep -v '^ *+' conftest.er1 >conftest.err
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } && {
29103 test -z "$ac_c_werror_flag" ||
29104 test ! -s conftest.err
29105 } && test -s conftest$ac_exeext &&
29106 $as_test_x conftest$ac_exeext; then
29107 ac_cv_lib_z_deflate=yes
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29112 ac_cv_lib_z_deflate=no
29115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29116 conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29119 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29120 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29121 if test $ac_cv_lib_z_deflate = yes; then
29126 if test x$FDLIBS = x-lz; then
29127 cat >>confdefs.h <<\_ACEOF
29128 #define HAVE_LIBZ 1
29135 # Check for ACL libraries
29138 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29139 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29140 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29141 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29142 echo $ECHO_N "(cached) $ECHO_C" >&6
29144 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29145 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29147 # Is the header compilable?
29148 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29149 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 $ac_includes_default
29157 #include <sys/acl.h>
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_compile") 2>conftest.er1
29168 grep -v '^ *+' conftest.er1 >conftest.err
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } && {
29173 test -z "$ac_c_werror_flag" ||
29174 test ! -s conftest.err
29175 } && test -s conftest.$ac_objext; then
29176 ac_header_compiler=yes
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29181 ac_header_compiler=no
29184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29186 echo "${ECHO_T}$ac_header_compiler" >&6; }
29188 # Is the header present?
29189 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29190 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29191 cat >conftest.$ac_ext <<_ACEOF
29194 cat confdefs.h >>conftest.$ac_ext
29195 cat >>conftest.$ac_ext <<_ACEOF
29196 /* end confdefs.h. */
29197 #include <sys/acl.h>
29199 if { (ac_try="$ac_cpp conftest.$ac_ext"
29200 case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29207 grep -v '^ *+' conftest.er1 >conftest.err
29209 cat conftest.err >&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); } >/dev/null && {
29212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29213 test ! -s conftest.err
29215 ac_header_preproc=yes
29217 echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29220 ac_header_preproc=no
29223 rm -f conftest.err conftest.$ac_ext
29224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29225 echo "${ECHO_T}$ac_header_preproc" >&6; }
29227 # So? What about this header?
29228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29230 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29231 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29233 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29234 ac_header_preproc=yes
29237 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29238 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29239 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29240 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29241 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29242 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29243 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29244 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29245 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29246 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29248 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29252 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29253 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29254 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 ac_cv_header_sys_acl_h=$ac_header_preproc
29259 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29260 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29265 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29266 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29267 if test "${ac_cv_func_acl_get_file+set}" = set; then
29268 echo $ECHO_N "(cached) $ECHO_C" >&6
29270 cat >conftest.$ac_ext <<_ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h. */
29276 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29278 #define acl_get_file innocuous_acl_get_file
29280 /* System header to define __stub macros and hopefully few prototypes,
29281 which can conflict with char acl_get_file (); below.
29282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29283 <limits.h> exists even on freestanding compilers. */
29286 # include <limits.h>
29288 # include <assert.h>
29291 #undef acl_get_file
29293 /* Override any GCC internal prototype to avoid an error.
29294 Use char because int might match the return type of a GCC
29295 builtin and then its argument prototype would still apply. */
29299 char acl_get_file ();
29300 /* The GNU C library defines this for functions which it implements
29301 to always fail with ENOSYS. Some functions are actually named
29302 something starting with __ and the normal name is an alias. */
29303 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29310 return acl_get_file ();
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (ac_try="$ac_link"
29317 case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_link") 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } && {
29329 test -z "$ac_c_werror_flag" ||
29330 test ! -s conftest.err
29331 } && test -s conftest$ac_exeext &&
29332 $as_test_x conftest$ac_exeext; then
29333 ac_cv_func_acl_get_file=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_func_acl_get_file=no
29341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29342 conftest$ac_exeext conftest.$ac_ext
29344 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29345 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29346 if test $ac_cv_func_acl_get_file = yes; then
29349 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29350 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29351 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29352 echo $ECHO_N "(cached) $ECHO_C" >&6
29354 ac_check_lib_save_LIBS=$LIBS
29356 cat >conftest.$ac_ext <<_ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h. */
29363 /* Override any GCC internal prototype to avoid an error.
29364 Use char because int might match the return type of a GCC
29365 builtin and then its argument prototype would still apply. */
29369 char acl_get_file ();
29373 return acl_get_file ();
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379 if { (ac_try="$ac_link"
29380 case "(($ac_try" in
29381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382 *) ac_try_echo=$ac_try;;
29384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29385 (eval "$ac_link") 2>conftest.er1
29387 grep -v '^ *+' conftest.er1 >conftest.err
29389 cat conftest.err >&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } && {
29392 test -z "$ac_c_werror_flag" ||
29393 test ! -s conftest.err
29394 } && test -s conftest$ac_exeext &&
29395 $as_test_x conftest$ac_exeext; then
29396 ac_cv_lib_acl_acl_get_file=yes
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29401 ac_cv_lib_acl_acl_get_file=no
29404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29405 conftest$ac_exeext conftest.$ac_ext
29406 LIBS=$ac_check_lib_save_LIBS
29408 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29409 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29410 if test $ac_cv_lib_acl_acl_get_file = yes; then
29411 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29413 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29414 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29415 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29416 echo $ECHO_N "(cached) $ECHO_C" >&6
29418 ac_check_lib_save_LIBS=$LIBS
29420 cat >conftest.$ac_ext <<_ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h. */
29427 /* Override any GCC internal prototype to avoid an error.
29428 Use char because int might match the return type of a GCC
29429 builtin and then its argument prototype would still apply. */
29437 return acltotext ();
29442 rm -f conftest.$ac_objext conftest$ac_exeext
29443 if { (ac_try="$ac_link"
29444 case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_link") 2>conftest.er1
29451 grep -v '^ *+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } && {
29456 test -z "$ac_c_werror_flag" ||
29457 test ! -s conftest.err
29458 } && test -s conftest$ac_exeext &&
29459 $as_test_x conftest$ac_exeext; then
29460 ac_cv_lib_sec_acltotext=yes
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 ac_cv_lib_sec_acltotext=no
29468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29469 conftest$ac_exeext conftest.$ac_ext
29470 LIBS=$ac_check_lib_save_LIBS
29472 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29473 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29474 if test $ac_cv_lib_sec_acltotext = yes; then
29475 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29484 if test $have_acl = yes; then
29485 cat >>confdefs.h <<\_ACEOF
29492 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29493 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29494 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 ac_check_lib_save_LIBS=$LIBS
29498 LIBS="-lpthread $LIBS"
29499 cat >conftest.$ac_ext <<_ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h. */
29506 /* Override any GCC internal prototype to avoid an error.
29507 Use char because int might match the return type of a GCC
29508 builtin and then its argument prototype would still apply. */
29512 char pthread_create ();
29516 return pthread_create ();
29521 rm -f conftest.$ac_objext conftest$ac_exeext
29522 if { (ac_try="$ac_link"
29523 case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_link") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } && {
29535 test -z "$ac_c_werror_flag" ||
29536 test ! -s conftest.err
29537 } && test -s conftest$ac_exeext &&
29538 $as_test_x conftest$ac_exeext; then
29539 ac_cv_lib_pthread_pthread_create=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_lib_pthread_pthread_create=no
29547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29548 conftest$ac_exeext conftest.$ac_ext
29549 LIBS=$ac_check_lib_save_LIBS
29551 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29552 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29553 if test $ac_cv_lib_pthread_pthread_create = yes; then
29554 PTHREAD_LIB="-lpthread"
29556 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29557 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29558 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29559 echo $ECHO_N "(cached) $ECHO_C" >&6
29561 ac_check_lib_save_LIBS=$LIBS
29562 LIBS="-lpthreads $LIBS"
29563 cat >conftest.$ac_ext <<_ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29570 /* Override any GCC internal prototype to avoid an error.
29571 Use char because int might match the return type of a GCC
29572 builtin and then its argument prototype would still apply. */
29576 char pthread_create ();
29580 return pthread_create ();
29585 rm -f conftest.$ac_objext conftest$ac_exeext
29586 if { (ac_try="$ac_link"
29587 case "(($ac_try" in
29588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589 *) ac_try_echo=$ac_try;;
29591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29592 (eval "$ac_link") 2>conftest.er1
29594 grep -v '^ *+' conftest.er1 >conftest.err
29596 cat conftest.err >&5
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } && {
29599 test -z "$ac_c_werror_flag" ||
29600 test ! -s conftest.err
29601 } && test -s conftest$ac_exeext &&
29602 $as_test_x conftest$ac_exeext; then
29603 ac_cv_lib_pthreads_pthread_create=yes
29605 echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29608 ac_cv_lib_pthreads_pthread_create=no
29611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29612 conftest$ac_exeext conftest.$ac_ext
29613 LIBS=$ac_check_lib_save_LIBS
29615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29616 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29617 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29618 PTHREAD_LIB="-lpthreads"
29620 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29621 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29622 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29623 echo $ECHO_N "(cached) $ECHO_C" >&6
29625 ac_check_lib_save_LIBS=$LIBS
29627 cat >conftest.$ac_ext <<_ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29634 /* Override any GCC internal prototype to avoid an error.
29635 Use char because int might match the return type of a GCC
29636 builtin and then its argument prototype would still apply. */
29640 char pthread_create ();
29644 return pthread_create ();
29649 rm -f conftest.$ac_objext conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_link") 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest$ac_exeext &&
29666 $as_test_x conftest$ac_exeext; then
29667 ac_cv_lib_c_r_pthread_create=yes
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_cv_lib_c_r_pthread_create=no
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676 conftest$ac_exeext conftest.$ac_ext
29677 LIBS=$ac_check_lib_save_LIBS
29679 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29680 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29681 if test $ac_cv_lib_c_r_pthread_create = yes; then
29682 PTHREAD_LIB="-lc_r"
29684 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29685 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29686 if test "${ac_cv_func_pthread_create+set}" = set; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 cat >conftest.$ac_ext <<_ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h. */
29695 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29697 #define pthread_create innocuous_pthread_create
29699 /* System header to define __stub macros and hopefully few prototypes,
29700 which can conflict with char pthread_create (); below.
29701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29702 <limits.h> exists even on freestanding compilers. */
29705 # include <limits.h>
29707 # include <assert.h>
29710 #undef pthread_create
29712 /* Override any GCC internal prototype to avoid an error.
29713 Use char because int might match the return type of a GCC
29714 builtin and then its argument prototype would still apply. */
29718 char pthread_create ();
29719 /* The GNU C library defines this for functions which it implements
29720 to always fail with ENOSYS. Some functions are actually named
29721 something starting with __ and the normal name is an alias. */
29722 #if defined __stub_pthread_create || defined __stub___pthread_create
29729 return pthread_create ();
29734 rm -f conftest.$ac_objext conftest$ac_exeext
29735 if { (ac_try="$ac_link"
29736 case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_link") 2>conftest.er1
29743 grep -v '^ *+' conftest.er1 >conftest.err
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } && {
29748 test -z "$ac_c_werror_flag" ||
29749 test ! -s conftest.err
29750 } && test -s conftest$ac_exeext &&
29751 $as_test_x conftest$ac_exeext; then
29752 ac_cv_func_pthread_create=yes
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ac_cv_func_pthread_create=no
29760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29761 conftest$ac_exeext conftest.$ac_ext
29763 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29764 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29777 cat >>confdefs.h <<\_ACEOF
29783 CFLAGS=${CFLAGS--O}
29785 if test x$have_gcc = xyes ; then
29786 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29787 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29789 LDFLAGS=${LDFLAGS--O}
29790 DB_LIBS="${SQL_LFLAGS}"
29791 CPPFLAGS="$CPPFLAGS"
29819 # Finally we set appropriate distribution specific
29820 # variables and defaults
29822 # PFILES are platform specific files
29823 PFILES="platforms/Makefile"
29827 hostname=`uname -n | cut -d '.' -f 1`
29828 if test x${hostname} = x ; then
29829 hostname="localhost"
29831 case "$DISTNAME" in
29834 PSCMD="ps -e -o pid,comm"
29835 PFILES="${PFILES} \
29836 platforms/aix/Makefile"
29837 TAPEDRIVE="/dev/rmt0.1"
29841 PTHREAD_LIB="-lpthread -lexc"
29842 if test "${CC}" = "gcc" ; then
29849 TAPEDRIVE="/dev/nrmt0"
29852 DISTVER=`uname -a |awk '{print $3}'`
29853 TAPEDRIVE="/dev/nrmt0"
29854 PTHREAD_LIB="-pthread"
29855 CFLAGS="${CFLAGS} -pthread"
29856 PSCMD="ps -ax -o pid,command"
29859 PFILES="${PFILES} \
29860 platforms/bsdi/Makefile \
29861 platforms/bsdi/bacula-fd \
29862 platforms/bsdi/bacula-sd \
29863 platforms/bsdi/bacula-dir"
29864 largefile_support="yes"
29867 DISTVER=`uname -a |awk '{print $3}'`
29868 TAPEDRIVE="/dev/nrst0"
29870 WCFLAGS="-mwindows"
29871 WLDFLAGS="-mwindows"
29875 TAPEDRIVE="/dev/nst0"
29876 PSCMD="ps -e -o pid,command"
29878 PFILES="${PFILES} \
29879 platforms/darwin/Makefile"
29882 DISTVER=`cat /etc/debian_version`
29883 TAPEDRIVE="/dev/nrst0"
29884 PSCMD="ps -e -o pid,command"
29887 DISTVER=`uname -a |awk '{print $3}'`
29888 VER=`echo $DISTVER | cut -c 1`
29889 if test x$VER = x4 ; then
29890 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29891 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29895 TAPEDRIVE="/dev/nrsa0"
29896 PSCMD="ps -ax -o pid,command"
29897 PFILES="${PFILES} \
29898 platforms/freebsd/Makefile \
29899 platforms/freebsd/bacula-fd \
29900 platforms/freebsd/bacula-sd \
29901 platforms/freebsd/bacula-dir"
29902 largefile_support="yes"
29905 PSCMD="UNIX95=1; ps -e -o pid,comm"
29906 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29908 TAPEDRIVE="/dev/rmt/0hnb"
29909 PTHREAD_LIB="-lpthread"
29910 cat >>confdefs.h <<\_ACEOF
29911 #define _INCLUDE_LONGLONG 1
29917 TAPEDRIVE="/dev/rmt/0cbn"
29918 PSCMD="ps -e -o pid,comm"
29919 PFILES="${PFILES} \
29920 platforms/irix/Makefile \
29921 platforms/irix/bacula-fd \
29922 platforms/irix/bacula-sd \
29923 platforms/irix/bacula-dir"
29926 DISTVER=`uname -a |awk '{print $3}'`
29929 TAPEDRIVE="/dev/nrst0"
29930 PSCMD="ps -ax -o pid,command"
29931 PTHREAD_LIB="-pthread"
29932 CFLAGS="${CFLAGS} -pthread"
29935 DISTVER=`uname -a |awk '{print $3}'`
29938 TAPEDRIVE="/dev/nrst0"
29939 PSCMD="ps -ax -o pid,command"
29940 PTHREAD_LIB="-pthread"
29941 CFLAGS="${CFLAGS} -pthread"
29942 PFILES="${PFILES} \
29943 platforms/openbsd/Makefile \
29944 platforms/openbsd/bacula-fd \
29945 platforms/openbsd/bacula-sd \
29946 platforms/openbsd/bacula-dir"
29949 if test -f /etc/whitebox-release ; then
29950 f=/etc/whitebox-release
29952 f=/etc/redhat-release
29954 if test `cat $f | grep release |\
29955 cut -f 3 -d ' '`x = "Enterprise"x ; then
29956 DISTVER="Enterprise "`cat $f | grep release |\
29959 DISTVER=`cat /etc/redhat-release | grep release |\
29962 TAPEDRIVE="/dev/nst0"
29963 PSCMD="ps -e -o pid,command"
29964 PFILES="${PFILES} \
29965 platforms/redhat/Makefile \
29966 platforms/redhat/bacula-fd \
29967 platforms/redhat/bacula-sd \
29968 platforms/redhat/bacula-dir \
29969 platforms/redhat/bacula.spec \
29973 DISTVER=`cat /etc/mandrake-release | grep release |\
29975 TAPEDRIVE="/dev/nst0"
29976 PSCMD="ps -e -o pid,command"
29977 PFILES="${PFILES} \
29978 platforms/mandrake/Makefile \
29979 platforms/mandrake/bacula-fd \
29980 platforms/mandrake/bacula-sd \
29981 platforms/mandrake/bacula-dir \
29982 platforms/mandrake/bacula.spec \
29986 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29987 TAPEDRIVE="/dev/nst0"
29988 PSCMD="ps -e -o pid,command"
29989 PFILES="${PFILES} \
29990 platforms/gentoo/Makefile \
29991 platforms/gentoo/bacula-init \
29992 platforms/gentoo/bacula-fd \
29993 platforms/gentoo/bacula-sd \
29994 platforms/gentoo/bacula-dir"
29997 DISTVER=`cat /etc/slackware-version`
29998 TAPEDRIVE="/dev/nst0"
29999 PSCMD="ps -e -o pid,command"
30000 PFILES="${PFILES} \
30001 platforms/slackware/Makefile \
30002 platforms/slackware/rc.bacula-fd \
30003 platforms/slackware/rc.bacula-sd \
30004 platforms/slackware/rc.bacula-dir\
30005 platforms/slackware/functions.bacula"
30009 TAPEDRIVE="/dev/rmt/0cbn"
30010 PSCMD="ps -e -o pid,comm"
30011 PFILES="${PFILES} \
30012 platforms/solaris/Makefile \
30013 platforms/solaris/bacula-fd \
30014 platforms/solaris/bacula-sd \
30015 platforms/solaris/bacula-dir"
30016 if test x$DISTVER = x5.6 ; then
30017 cat >>confdefs.h <<\_ACEOF
30018 #define HAVE_OLD_SOCKOPT 1
30022 LIBS="$LIBS -lresolv"
30025 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30027 TAPEDRIVE="/dev/nst0"
30028 PSCMD="ps -e -o pid,command"
30029 PFILES="${PFILES} \
30030 platforms/suse/Makefile \
30031 platforms/suse/bacula-fd \
30032 platforms/suse/bacula-sd \
30033 platforms/suse/bacula-dir \
30034 platforms/suse/bacula \
30035 platforms/suse/bacula.spec"
30040 TAPEDRIVE="/dev/nst0"
30041 PSCMD="ps -e -o pid,command"
30042 PFILES="${PFILES} \
30043 platforms/suse/Makefile \
30044 platforms/suse/bacula-fd \
30045 platforms/suse/bacula-sd \
30046 platforms/suse/bacula-dir"
30050 TAPEDRIVE="/dev/nst0"
30053 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30059 LIBS="$PTHREAD_LIB $LIBS"
30061 cat >>confdefs.h <<_ACEOF
30065 cat >>confdefs.h <<_ACEOF
30076 MCOMMON=./autoconf/Make.common
30079 if test "x${subsysdir}" = "x${sbindir}" ; then
30082 echo "You have set both --sbindir and --with-subsys-dir"
30083 echo " equal to: ${subsysdir} "
30084 echo "This is not permitted. Please reconfigure."
30086 echo "Aborting configuration ..."
30092 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"
30094 ac_config_commands="$ac_config_commands default"
30096 cat >confcache <<\_ACEOF
30097 # This file is a shell script that caches the results of configure
30098 # tests run on this system so they can be shared between configure
30099 # scripts and configure runs, see configure's option --config-cache.
30100 # It is not useful on other systems. If it contains results you don't
30101 # want to keep, you may remove or edit it.
30103 # config.status only pays attention to the cache file if you give it
30104 # the --recheck option to rerun configure.
30106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30108 # following values.
30112 # The following way of writing the cache mishandles newlines in values,
30113 # but we know of no workaround that is simple, portable, and efficient.
30114 # So, we kill variables containing newlines.
30115 # Ultrix sh set writes to stderr and can't be redirected directly,
30116 # and sets the high bit in the cache file unless we assign to the vars.
30118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30119 eval ac_val=\$$ac_var
30123 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30124 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30127 _ | IFS | as_nl) ;; #(
30128 *) $as_unset $ac_var ;;
30134 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30135 *${as_nl}ac_space=\ *)
30136 # `set' does not quote correctly, so add quotes (double-quote
30137 # substitution turns \\\\ into \\, and sed turns \\ into \).
30140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30143 # `set' quotes correctly as required by POSIX, so do not add quotes.
30144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30157 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30158 if test -w "$cache_file"; then
30159 test "x$cache_file" != "x/dev/null" &&
30160 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30161 echo "$as_me: updating cache $cache_file" >&6;}
30162 cat confcache >$cache_file
30164 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30165 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30171 # Let make expand exec_prefix.
30172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30174 DEFS=-DHAVE_CONFIG_H
30178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30179 # 1. Remove the extension, and $U if already installed.
30180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30181 ac_i=`echo "$ac_i" | sed "$ac_script"`
30182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30183 # will be set to the directory where LIBOBJS objects are built.
30184 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30185 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30187 LIBOBJS=$ac_libobjs
30189 LTLIBOBJS=$ac_ltlibobjs
30193 : ${CONFIG_STATUS=./config.status}
30194 ac_clean_files_save=$ac_clean_files
30195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30196 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30197 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30198 cat >$CONFIG_STATUS <<_ACEOF
30200 # Generated by $as_me.
30201 # Run this file to recreate the current configuration.
30202 # Compiler output produced by configure, useful for debugging
30203 # configure, is in config.log if it exists.
30206 ac_cs_recheck=false
30208 SHELL=\${CONFIG_SHELL-$SHELL}
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30212 ## --------------------- ##
30213 ## M4sh Initialization. ##
30214 ## --------------------- ##
30216 # Be more Bourne compatible
30217 DUALCASE=1; export DUALCASE # for MKS sh
30218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30221 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30222 # is contrary to our usage. Disable this feature.
30223 alias -g '${1+"$@"}'='"$@"'
30224 setopt NO_GLOB_SUBST
30226 case `(set -o) 2>/dev/null` in
30227 *posix*) set -o posix ;;
30236 # Avoid depending upon Character Ranges.
30237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30240 as_cr_digits='0123456789'
30241 as_cr_alnum=$as_cr_Letters$as_cr_digits
30243 # The user is always right.
30244 if test "${PATH_SEPARATOR+set}" != set; then
30245 echo "#! /bin/sh" >conf$$.sh
30246 echo "exit 0" >>conf$$.sh
30248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30256 # Support unset when possible.
30257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30265 # We need space, tab and new line, in precisely that order. Quoting is
30266 # there to prevent editors from complaining about space-tab.
30267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30268 # splitting by setting IFS to empty value.)
30273 # Find who we are. Look in the path if we contain no directory separator.
30275 *[\\/]* ) as_myself=$0 ;;
30276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30277 for as_dir in $PATH
30280 test -z "$as_dir" && as_dir=.
30281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30287 # We did not find ourselves, most probably we were run as `sh COMMAND'
30288 # in which case we are not to be found in the path.
30289 if test "x$as_myself" = x; then
30292 if test ! -f "$as_myself"; then
30293 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30294 { (exit 1); exit 1; }
30297 # Work around bugs in pre-3.0 UWIN ksh.
30298 for as_var in ENV MAIL MAILPATH
30299 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30307 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30308 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30309 LC_TELEPHONE LC_TIME
30311 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30312 eval $as_var=C; export $as_var
30314 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30318 # Required to use basename.
30319 if expr a : '\(a\)' >/dev/null 2>&1 &&
30320 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30326 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30327 as_basename=basename
30333 # Name of the executable.
30334 as_me=`$as_basename -- "$0" ||
30335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30336 X"$0" : 'X\(//\)$' \| \
30337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30339 sed '/^.*\/\([^/][^/]*\)\/*$/{
30358 as_lineno_1=$LINENO
30359 as_lineno_2=$LINENO
30360 test "x$as_lineno_1" != "x$as_lineno_2" &&
30361 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30363 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30364 # uniformly replaced by the line number. The first 'sed' inserts a
30365 # line-number line after each line using $LINENO; the second 'sed'
30366 # does the real work. The second script uses 'N' to pair each
30367 # line-number line with the line containing $LINENO, and appends
30368 # trailing '-' during substitution so that $LINENO is not a special
30369 # case at line end.
30370 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30371 # scripts with optimization help from Paolo Bonzini. Blame Lee
30372 # E. McMahon (1931-1989) for sed's syntax. :-)
30384 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30387 ' >$as_me.lineno &&
30388 chmod +x "$as_me.lineno" ||
30389 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30390 { (exit 1); exit 1; }; }
30392 # Don't try to exec as it changes $[0], causing all sort of problems
30393 # (the dirname of $[0] is not the place where we might find the
30394 # original and so on. Autoconf is especially sensitive to this).
30395 . "./$as_me.lineno"
30396 # Exit status is that of the last command.
30401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30407 ECHO_C= ECHO_N= ECHO_T=
30408 case `echo -n x` in
30410 case `echo 'x\c'` in
30411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30418 if expr a : '\(a\)' >/dev/null 2>&1 &&
30419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30425 rm -f conf$$ conf$$.exe conf$$.file
30426 if test -d conf$$.dir; then
30427 rm -f conf$$.dir/conf$$.file
30433 if ln -s conf$$.file conf$$ 2>/dev/null; then
30435 # ... but there are two gotchas:
30436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30438 # In both cases, we have to default to `cp -p'.
30439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30441 elif ln conf$$.file conf$$ 2>/dev/null; then
30446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30447 rmdir conf$$.dir 2>/dev/null
30449 if mkdir -p . 2>/dev/null; then
30452 test -d ./-p && rmdir ./-p
30456 if test -x / >/dev/null 2>&1; then
30457 as_test_x='test -x'
30459 if ls -dL / >/dev/null 2>&1; then
30466 if test -d "$1"; then
30472 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30473 ???[sx]*):;;*)false;;esac;fi
30477 as_executable_p=$as_test_x
30479 # Sed expression to map a string onto a valid CPP name.
30480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30482 # Sed expression to map a string onto a valid variable name.
30483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30488 # Save the log message, to keep $[0] and so on meaningful, and to
30489 # report actual input values of CONFIG_FILES etc. instead of their
30490 # values after options handling.
30492 This file was extended by $as_me, which was
30493 generated by GNU Autoconf 2.61. Invocation command line was
30495 CONFIG_FILES = $CONFIG_FILES
30496 CONFIG_HEADERS = $CONFIG_HEADERS
30497 CONFIG_LINKS = $CONFIG_LINKS
30498 CONFIG_COMMANDS = $CONFIG_COMMANDS
30501 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30506 cat >>$CONFIG_STATUS <<_ACEOF
30507 # Files that config.status was made for.
30508 config_files="$ac_config_files"
30509 config_headers="$ac_config_headers"
30510 config_commands="$ac_config_commands"
30514 cat >>$CONFIG_STATUS <<\_ACEOF
30516 \`$as_me' instantiates files from templates according to the
30517 current configuration.
30519 Usage: $0 [OPTIONS] [FILE]...
30521 -h, --help print this help, then exit
30522 -V, --version print version number and configuration settings, then exit
30523 -q, --quiet do not print progress messages
30524 -d, --debug don't remove temporary files
30525 --recheck update $as_me by reconfiguring in the same conditions
30526 --file=FILE[:TEMPLATE]
30527 instantiate the configuration file FILE
30528 --header=FILE[:TEMPLATE]
30529 instantiate the configuration header FILE
30531 Configuration files:
30534 Configuration headers:
30537 Configuration commands:
30540 Report bugs to <bug-autoconf@gnu.org>."
30543 cat >>$CONFIG_STATUS <<_ACEOF
30546 configured by $0, generated by GNU Autoconf 2.61,
30547 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30549 Copyright (C) 2006 Free Software Foundation, Inc.
30550 This config.status script is free software; the Free Software Foundation
30551 gives unlimited permission to copy, distribute and modify it."
30558 cat >>$CONFIG_STATUS <<\_ACEOF
30559 # If no file are specified by the user, then we need to provide default
30560 # value. By we need to know if files were specified by the user.
30566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30578 # Handling of the options.
30579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30582 echo "$ac_cs_version"; exit ;;
30583 --debug | --debu | --deb | --de | --d | -d )
30585 --file | --fil | --fi | --f )
30587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30588 ac_need_defaults=false;;
30589 --header | --heade | --head | --hea )
30591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30592 ac_need_defaults=false;;
30594 # Conflict between --help and --header
30595 { echo "$as_me: error: ambiguous option: $1
30596 Try \`$0 --help' for more information." >&2
30597 { (exit 1); exit 1; }; };;
30598 --help | --hel | -h )
30599 echo "$ac_cs_usage"; exit ;;
30600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30604 # This is an error.
30605 -*) { echo "$as_me: error: unrecognized option: $1
30606 Try \`$0 --help' for more information." >&2
30607 { (exit 1); exit 1; }; } ;;
30609 *) ac_config_targets="$ac_config_targets $1"
30610 ac_need_defaults=false ;;
30616 ac_configure_extra_args=
30618 if $ac_cs_silent; then
30620 ac_configure_extra_args="$ac_configure_extra_args --silent"
30624 cat >>$CONFIG_STATUS <<_ACEOF
30625 if \$ac_cs_recheck; then
30626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30627 CONFIG_SHELL=$SHELL
30628 export CONFIG_SHELL
30629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30633 cat >>$CONFIG_STATUS <<\_ACEOF
30637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30638 ## Running $as_me. ##
30644 cat >>$CONFIG_STATUS <<_ACEOF
30648 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30649 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30651 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30652 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30653 LINGUAS="${LINGUAS-%UNSET%}"
30658 cat >>$CONFIG_STATUS <<\_ACEOF
30660 # Handling of arguments.
30661 for ac_config_target in $ac_config_targets
30663 case $ac_config_target in
30664 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30665 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30666 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30668 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30669 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30670 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30671 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30672 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30673 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30674 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30675 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30676 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30677 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30678 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30679 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30680 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30681 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30682 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30683 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30684 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30685 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30686 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30687 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30688 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30689 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30690 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30691 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30692 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30693 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30694 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30695 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30696 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30697 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30698 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30699 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30700 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30701 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30702 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30703 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30704 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30705 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30706 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30707 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30708 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30709 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30710 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30711 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30712 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30713 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30714 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30715 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30716 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30717 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30718 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30719 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30720 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30721 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30722 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30723 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30724 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30725 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30726 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30727 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30728 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30729 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30730 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30731 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30732 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30733 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30734 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30735 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30736 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30737 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30738 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30739 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30740 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30741 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30742 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30743 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30744 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30745 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30746 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30747 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30748 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30749 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30750 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30751 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30752 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30753 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30754 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30755 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30756 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30757 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30758 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30759 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30760 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30761 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30762 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30763 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30764 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30765 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30766 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30767 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30768 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30769 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30771 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30772 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30773 { (exit 1); exit 1; }; };;
30778 # If the user did not use the arguments to specify the items to instantiate,
30779 # then the envvar interface is used. Set only those that are not.
30780 # We use the long form for the default assignment because of an extremely
30781 # bizarre bug on SunOS 4.1.3.
30782 if $ac_need_defaults; then
30783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30788 # Have a temporary directory for convenience. Make it in the build tree
30789 # simply because there is no reason against having it here, and in addition,
30790 # creating and moving files from /tmp can sometimes cause problems.
30791 # Hook for its removal unless debugging.
30792 # Note that there is a small window in which the directory will not be cleaned:
30793 # after its creation but before its name has been assigned to `$tmp'.
30797 trap 'exit_status=$?
30798 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30800 trap '{ (exit 1); exit 1; }' 1 2 13 15
30802 # Create a (secure) tmp directory for tmp files.
30805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30806 test -n "$tmp" && test -d "$tmp"
30809 tmp=./conf$$-$RANDOM
30810 (umask 077 && mkdir "$tmp")
30813 echo "$me: cannot create a temporary directory in ." >&2
30814 { (exit 1); exit 1; }
30818 # Set up the sed scripts for CONFIG_FILES section.
30821 # No need to generate the scripts if there are no CONFIG_FILES.
30822 # This happens for instance when ./config.status config.h
30823 if test -n "$CONFIG_FILES"; then
30827 # Create sed commands to just substitute file output variables.
30829 # Remaining file output variables are in a fragment that also has non-file
30835 for ac_last_try in false false false false false :; do
30836 cat >conf$$subs.sed <<_ACEOF
30837 SHELL!$SHELL$ac_delim
30838 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30839 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30840 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30841 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30842 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30843 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30844 exec_prefix!$exec_prefix$ac_delim
30845 prefix!$prefix$ac_delim
30846 program_transform_name!$program_transform_name$ac_delim
30847 bindir!$bindir$ac_delim
30848 sbindir!$sbindir$ac_delim
30849 libexecdir!$libexecdir$ac_delim
30850 datarootdir!$datarootdir$ac_delim
30851 datadir!$datadir$ac_delim
30852 sysconfdir!$sysconfdir$ac_delim
30853 sharedstatedir!$sharedstatedir$ac_delim
30854 localstatedir!$localstatedir$ac_delim
30855 includedir!$includedir$ac_delim
30856 oldincludedir!$oldincludedir$ac_delim
30857 docdir!$docdir$ac_delim
30858 infodir!$infodir$ac_delim
30859 htmldir!$htmldir$ac_delim
30860 dvidir!$dvidir$ac_delim
30861 pdfdir!$pdfdir$ac_delim
30862 psdir!$psdir$ac_delim
30863 libdir!$libdir$ac_delim
30864 localedir!$localedir$ac_delim
30865 mandir!$mandir$ac_delim
30866 DEFS!$DEFS$ac_delim
30867 ECHO_C!$ECHO_C$ac_delim
30868 ECHO_N!$ECHO_N$ac_delim
30869 ECHO_T!$ECHO_T$ac_delim
30870 LIBS!$LIBS$ac_delim
30871 build_alias!$build_alias$ac_delim
30872 host_alias!$host_alias$ac_delim
30873 target_alias!$target_alias$ac_delim
30874 BUILD_DIR!$BUILD_DIR$ac_delim
30875 TOP_DIR!$TOP_DIR$ac_delim
30876 TRUEPRG!$TRUEPRG$ac_delim
30877 FALSEPRG!$FALSEPRG$ac_delim
30878 VERSION!$VERSION$ac_delim
30879 DATE!$DATE$ac_delim
30880 LSMDATE!$LSMDATE$ac_delim
30882 CFLAGS!$CFLAGS$ac_delim
30883 LDFLAGS!$LDFLAGS$ac_delim
30884 CPPFLAGS!$CPPFLAGS$ac_delim
30885 ac_ct_CC!$ac_ct_CC$ac_delim
30886 EXEEXT!$EXEEXT$ac_delim
30887 OBJEXT!$OBJEXT$ac_delim
30889 CXXFLAGS!$CXXFLAGS$ac_delim
30890 ac_ct_CXX!$ac_ct_CXX$ac_delim
30892 GREP!$GREP$ac_delim
30893 EGREP!$EGREP$ac_delim
30894 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30895 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30896 INSTALL_DATA!$INSTALL_DATA$ac_delim
30897 RANLIB!$RANLIB$ac_delim
30902 ECHO!$ECHO$ac_delim
30906 OPENSSL!$OPENSSL$ac_delim
30909 MKISOFS!$MKISOFS$ac_delim
30910 PYTHON!$PYTHON$ac_delim
30911 GROWISOFS!$GROWISOFS$ac_delim
30912 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30913 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30914 PKGCONFIG!$PKGCONFIG$ac_delim
30915 QMAKE!$QMAKE$ac_delim
30916 QMAKEQT4!$QMAKEQT4$ac_delim
30917 WXCONFIG!$WXCONFIG$ac_delim
30918 WXFLAGS!$WXFLAGS$ac_delim
30919 CDRECORD!$CDRECORD$ac_delim
30920 PIDOF!$PIDOF$ac_delim
30922 ARFLAGS!$ARFLAGS$ac_delim
30923 MAKE_SHELL!$MAKE_SHELL$ac_delim
30924 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30925 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30926 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30927 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30928 build!$build$ac_delim
30929 build_cpu!$build_cpu$ac_delim
30930 build_vendor!$build_vendor$ac_delim
30933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30935 elif $ac_last_try; then
30936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30938 { (exit 1); exit 1; }; }
30940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30945 if test -n "$ac_eof"; then
30946 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30947 ac_eof=`expr $ac_eof + 1`
30950 cat >>$CONFIG_STATUS <<_ACEOF
30951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30953 /^[ ]*@MCOMMON@[ ]*$/{
30959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30960 s/^/s,@/; s/!/@,|#_!!_#|/
30963 s/'"$ac_delim"'$/,g/; t
30965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30966 ' >>$CONFIG_STATUS <conf$$subs.sed
30967 rm -f conf$$subs.sed
30968 cat >>$CONFIG_STATUS <<_ACEOF
30974 for ac_last_try in false false false false false :; do
30975 cat >conf$$subs.sed <<_ACEOF
30976 build_os!$build_os$ac_delim
30977 host!$host$ac_delim
30978 host_cpu!$host_cpu$ac_delim
30979 host_vendor!$host_vendor$ac_delim
30980 host_os!$host_os$ac_delim
30981 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30982 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30983 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30984 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30985 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30986 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30987 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30988 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30989 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30990 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30991 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
30992 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
30993 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
30994 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
30995 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
30996 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
30997 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
30998 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
30999 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31000 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31001 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31002 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31003 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31004 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31005 SET_MAKE!$SET_MAKE$ac_delim
31006 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31007 USE_NLS!$USE_NLS$ac_delim
31008 MSGFMT!$MSGFMT$ac_delim
31009 GMSGFMT!$GMSGFMT$ac_delim
31010 XGETTEXT!$XGETTEXT$ac_delim
31011 MSGMERGE!$MSGMERGE$ac_delim
31012 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31013 LIBICONV!$LIBICONV$ac_delim
31014 LTLIBICONV!$LTLIBICONV$ac_delim
31015 INTLLIBS!$INTLLIBS$ac_delim
31016 LIBINTL!$LIBINTL$ac_delim
31017 LTLIBINTL!$LTLIBINTL$ac_delim
31018 POSUB!$POSUB$ac_delim
31019 GLIBC2!$GLIBC2$ac_delim
31020 ALLOCA!$ALLOCA$ac_delim
31021 GLIBC21!$GLIBC21$ac_delim
31022 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31023 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31024 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31025 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31026 INTLBISON!$INTLBISON$ac_delim
31027 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31028 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31029 CATOBJEXT!$CATOBJEXT$ac_delim
31030 DATADIRNAME!$DATADIRNAME$ac_delim
31031 INSTOBJEXT!$INSTOBJEXT$ac_delim
31032 GENCAT!$GENCAT$ac_delim
31033 INTLOBJS!$INTLOBJS$ac_delim
31034 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31035 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31036 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31037 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31038 GNOME_LIBS!$GNOME_LIBS$ac_delim
31039 GNOME_DIR!$GNOME_DIR$ac_delim
31040 BAT_DIR!$BAT_DIR$ac_delim
31041 QWT_INC!$QWT_INC$ac_delim
31042 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31043 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31044 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31045 WX_DIR!$WX_DIR$ac_delim
31046 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31047 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31048 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31049 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31050 STATIC_FD!$STATIC_FD$ac_delim
31051 STATIC_SD!$STATIC_SD$ac_delim
31052 STATIC_DIR!$STATIC_DIR$ac_delim
31053 STATIC_CONS!$STATIC_CONS$ac_delim
31054 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31055 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31056 ALL_DIRS!$ALL_DIRS$ac_delim
31057 DIRD_DIR!$DIRD_DIR$ac_delim
31058 DIR_TOOLS!$DIR_TOOLS$ac_delim
31059 STORED_DIR!$STORED_DIR$ac_delim
31060 CONS_INC!$CONS_INC$ac_delim
31061 CONS_OBJ!$CONS_OBJ$ac_delim
31062 CONS_SRC!$CONS_SRC$ac_delim
31063 CONS_LIBS!$CONS_LIBS$ac_delim
31064 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31065 READLINE_SRC!$READLINE_SRC$ac_delim
31066 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31067 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31068 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31069 OPENSSL_INC!$OPENSSL_INC$ac_delim
31070 working_dir!$working_dir$ac_delim
31071 archivedir!$archivedir$ac_delim
31072 scriptdir!$scriptdir$ac_delim
31075 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31077 elif $ac_last_try; then
31078 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31079 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31080 { (exit 1); exit 1; }; }
31082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31086 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31087 if test -n "$ac_eof"; then
31088 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31089 ac_eof=`expr $ac_eof + 1`
31092 cat >>$CONFIG_STATUS <<_ACEOF
31093 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31097 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31098 s/^/s,@/; s/!/@,|#_!!_#|/
31101 s/'"$ac_delim"'$/,g/; t
31103 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31104 ' >>$CONFIG_STATUS <conf$$subs.sed
31105 rm -f conf$$subs.sed
31106 cat >>$CONFIG_STATUS <<_ACEOF
31112 for ac_last_try in false false false false false :; do
31113 cat >conf$$subs.sed <<_ACEOF
31114 dump_email!$dump_email$ac_delim
31115 job_email!$job_email$ac_delim
31116 smtp_host!$smtp_host$ac_delim
31117 piddir!$piddir$ac_delim
31118 subsysdir!$subsysdir$ac_delim
31119 baseport!$baseport$ac_delim
31120 dir_port!$dir_port$ac_delim
31121 fd_port!$fd_port$ac_delim
31122 sd_port!$sd_port$ac_delim
31123 dir_password!$dir_password$ac_delim
31124 fd_password!$fd_password$ac_delim
31125 sd_password!$sd_password$ac_delim
31126 mon_dir_password!$mon_dir_password$ac_delim
31127 mon_fd_password!$mon_fd_password$ac_delim
31128 mon_sd_password!$mon_sd_password$ac_delim
31129 db_name!$db_name$ac_delim
31130 db_user!$db_user$ac_delim
31131 dir_user!$dir_user$ac_delim
31132 dir_group!$dir_group$ac_delim
31133 sd_user!$sd_user$ac_delim
31134 sd_group!$sd_group$ac_delim
31135 fd_user!$fd_user$ac_delim
31136 fd_group!$fd_group$ac_delim
31137 SBINPERM!$SBINPERM$ac_delim
31138 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31139 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31140 SQL_BINDIR!$SQL_BINDIR$ac_delim
31141 cats!$cats$ac_delim
31142 DB_TYPE!$DB_TYPE$ac_delim
31143 GETCONF!$GETCONF$ac_delim
31144 XMKMF!$XMKMF$ac_delim
31145 X_CFLAGS!$X_CFLAGS$ac_delim
31146 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31147 X_LIBS!$X_LIBS$ac_delim
31148 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31149 LIBOBJS!$LIBOBJS$ac_delim
31150 FDLIBS!$FDLIBS$ac_delim
31151 DEBUG!$DEBUG$ac_delim
31152 DINCLUDE!$DINCLUDE$ac_delim
31153 DLIB!$DLIB$ac_delim
31154 DB_LIBS!$DB_LIBS$ac_delim
31155 WCFLAGS!$WCFLAGS$ac_delim
31156 WLDFLAGS!$WLDFLAGS$ac_delim
31157 WRAPLIBS!$WRAPLIBS$ac_delim
31158 OBJLIST!$OBJLIST$ac_delim
31159 hostname!$hostname$ac_delim
31160 TAPEDRIVE!$TAPEDRIVE$ac_delim
31161 PSCMD!$PSCMD$ac_delim
31162 WIN32!$WIN32$ac_delim
31163 MACOSX!$MACOSX$ac_delim
31164 DISTNAME!$DISTNAME$ac_delim
31165 DISTVER!$DISTVER$ac_delim
31166 LTLIBOBJS!$LTLIBOBJS$ac_delim
31169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
31171 elif $ac_last_try; then
31172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31174 { (exit 1); exit 1; }; }
31176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31181 if test -n "$ac_eof"; then
31182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31183 ac_eof=`expr $ac_eof + 1`
31186 cat >>$CONFIG_STATUS <<_ACEOF
31187 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31192 s/^/s,@/; s/!/@,|#_!!_#|/
31195 s/'"$ac_delim"'$/,g/; t
31197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31198 ' >>$CONFIG_STATUS <conf$$subs.sed
31199 rm -f conf$$subs.sed
31200 cat >>$CONFIG_STATUS <<_ACEOF
31207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31209 # trailing colons and then remove the whole line if VPATH becomes empty
31210 # (actually we leave an empty line to preserve line numbers).
31211 if test "x$srcdir" = x.; then
31212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31213 s/:*\$(srcdir):*/:/
31214 s/:*\${srcdir}:*/:/
31216 s/^\([^=]*=[ ]*\):*/\1/
31222 cat >>$CONFIG_STATUS <<\_ACEOF
31223 fi # test -n "$CONFIG_FILES"
31226 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31229 :[FHLC]) ac_mode=$ac_tag; continue;;
31231 case $ac_mode$ac_tag in
31233 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31234 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31235 { (exit 1); exit 1; }; };;
31236 :[FH]-) ac_tag=-:-;;
31237 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31254 -) ac_f="$tmp/stdin";;
31255 *) # Look for the file first in the build tree, then in the source tree
31256 # (if the path is not absolute). The absolute path cannot be DOS-style,
31257 # because $ac_f cannot contain `:'.
31261 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31263 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31264 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31265 { (exit 1); exit 1; }; };;
31267 ac_file_inputs="$ac_file_inputs $ac_f"
31270 # Let's still pretend it is `configure' which instantiates (i.e., don't
31271 # use $as_me), people would be surprised to read:
31272 # /* config.h. Generated by config.status. */
31273 configure_input="Generated from "`IFS=:
31274 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31275 if test x"$ac_file" != x-; then
31276 configure_input="$ac_file. $configure_input"
31277 { echo "$as_me:$LINENO: creating $ac_file" >&5
31278 echo "$as_me: creating $ac_file" >&6;}
31282 *:-:* | *:-) cat >"$tmp/stdin";;
31287 ac_dir=`$as_dirname -- "$ac_file" ||
31288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31289 X"$ac_file" : 'X\(//\)[^/]' \| \
31290 X"$ac_file" : 'X\(//\)$' \| \
31291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31297 /^X\(\/\/\)[^/].*/{
31312 -*) as_dir=./$as_dir;;
31314 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31318 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31319 *) as_qdir=$as_dir;;
31321 as_dirs="'$as_qdir' $as_dirs"
31322 as_dir=`$as_dirname -- "$as_dir" ||
31323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31324 X"$as_dir" : 'X\(//\)[^/]' \| \
31325 X"$as_dir" : 'X\(//\)$' \| \
31326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31332 /^X\(\/\/\)[^/].*/{
31345 test -d "$as_dir" && break
31347 test -z "$as_dirs" || eval "mkdir $as_dirs"
31348 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31349 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31350 { (exit 1); exit 1; }; }; }
31354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31357 # A ".." for each directory in $ac_dir_suffix.
31358 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31359 case $ac_top_builddir_sub in
31360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31364 ac_abs_top_builddir=$ac_pwd
31365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31366 # for backward compatibility:
31367 ac_top_builddir=$ac_top_build_prefix
31370 .) # We are building in place.
31372 ac_top_srcdir=$ac_top_builddir_sub
31373 ac_abs_top_srcdir=$ac_pwd ;;
31374 [\\/]* | ?:[\\/]* ) # Absolute name.
31375 ac_srcdir=$srcdir$ac_dir_suffix;
31376 ac_top_srcdir=$srcdir
31377 ac_abs_top_srcdir=$srcdir ;;
31378 *) # Relative name.
31379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31380 ac_top_srcdir=$ac_top_build_prefix$srcdir
31381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31394 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31398 cat >>$CONFIG_STATUS <<\_ACEOF
31399 # If the template does not know about datarootdir, expand it.
31400 # FIXME: This hack should be removed a few years after 2.60.
31401 ac_datarootdir_hack=; ac_datarootdir_seen=
31403 case `sed -n '/datarootdir/ {
31412 ' $ac_file_inputs` in
31413 *datarootdir*) ac_datarootdir_seen=yes;;
31414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31415 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31416 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31418 cat >>$CONFIG_STATUS <<_ACEOF
31419 ac_datarootdir_hack='
31420 s&@datadir@&$datadir&g
31421 s&@docdir@&$docdir&g
31422 s&@infodir@&$infodir&g
31423 s&@localedir@&$localedir&g
31424 s&@mandir@&$mandir&g
31425 s&\\\${datarootdir}&$datarootdir&g' ;;
31429 # Neutralize VPATH when `$srcdir' = `.'.
31430 # Shell code in configure.ac might set extrasub.
31431 # FIXME: do we really want to maintain this feature?
31432 cat >>$CONFIG_STATUS <<_ACEOF
31436 cat >>$CONFIG_STATUS <<\_ACEOF
31438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31439 s&@configure_input@&$configure_input&;t t
31440 s&@top_builddir@&$ac_top_builddir_sub&;t t
31441 s&@srcdir@&$ac_srcdir&;t t
31442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31443 s&@top_srcdir@&$ac_top_srcdir&;t t
31444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31445 s&@builddir@&$ac_builddir&;t t
31446 s&@abs_builddir@&$ac_abs_builddir&;t t
31447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31448 s&@INSTALL@&$ac_INSTALL&;t t
31449 $ac_datarootdir_hack
31450 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31453 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31455 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31456 which seems to be undefined. Please make sure it is defined." >&5
31457 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31458 which seems to be undefined. Please make sure it is defined." >&2;}
31462 -) cat "$tmp/out"; rm -f "$tmp/out";;
31463 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31472 # Transform confdefs.h into a sed script `conftest.defines', that
31473 # substitutes the proper values into config.h.in to produce config.h.
31474 rm -f conftest.defines conftest.tail
31475 # First, append a space to every undef/define line, to ease matching.
31476 echo 's/$/ /' >conftest.defines
31477 # Then, protect against being on the right side of a sed subst, or in
31478 # an unquoted here document, in config.status. If some macros were
31479 # called several times there might be several #defines for the same
31480 # symbol, which is useless. But do not sort them, since the last
31481 # AC_DEFINE must be honored.
31482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31483 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31484 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31485 # PARAMS is the parameter list in the macro definition--in most cases, it's
31486 # just an empty string.
31487 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31488 ac_dB='\\)[ (].*,\\1define\\2'
31496 s/^[ ]*#[ ]*define[ ][ ]*//
31501 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31502 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31503 ' >>conftest.defines
31505 # Remove the space that was appended to ease matching.
31506 # Then replace #undef with comments. This is necessary, for
31507 # example, in the case of _POSIX_SOURCE, which is predefined and required
31508 # on some systems where configure will not decide to define it.
31509 # (The regexp can be short, since the line contains either #define or #undef.)
31511 s,^[ #]*u.*,/* & */,' >>conftest.defines
31513 # Break up conftest.defines:
31514 ac_max_sed_lines=50
31516 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31517 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31518 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31520 ac_in='$ac_file_inputs'
31521 ac_out='"$tmp/out1"'
31522 ac_nxt='"$tmp/out2"'
31526 # Write a here document:
31527 cat >>$CONFIG_STATUS <<_ACEOF
31528 # First, check the format of the line:
31529 cat >"\$tmp/defines.sed" <<\\CEOF
31530 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31531 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31535 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31537 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31538 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31539 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31540 grep . conftest.tail >/dev/null || break
31541 rm -f conftest.defines
31542 mv conftest.tail conftest.defines
31544 rm -f conftest.defines conftest.tail
31546 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31548 if test x"$ac_file" != x-; then
31549 echo "/* $configure_input */" >"$tmp/config.h"
31550 cat "$ac_result" >>"$tmp/config.h"
31551 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31552 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31553 echo "$as_me: $ac_file is unchanged" >&6;}
31556 mv "$tmp/config.h" $ac_file
31559 echo "/* $configure_input */"
31565 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31566 echo "$as_me: executing $ac_file commands" >&6;}
31571 case $ac_file$ac_mode in
31573 for ac_file in $CONFIG_FILES; do
31574 # Support "outfile[:infile[:infile...]]"
31576 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31578 # PO directories have a Makefile.in generated from Makefile.in.in.
31579 case "$ac_file" in */Makefile.in)
31580 # Adjust a relative srcdir.
31581 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31582 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31583 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31584 # In autoconf-2.13 it is called $ac_given_srcdir.
31585 # In autoconf-2.50 it is called $srcdir.
31586 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31587 case "$ac_given_srcdir" in
31588 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31589 /*) top_srcdir="$ac_given_srcdir" ;;
31590 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31592 # Treat a directory as a PO directory if and only if it has a
31593 # POTFILES.in file. This allows packages to have multiple PO
31594 # directories under different names or in different locations.
31595 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31596 rm -f "$ac_dir/POTFILES"
31597 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31598 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31599 POMAKEFILEDEPS="POTFILES.in"
31600 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31601 # on $ac_dir but don't depend on user-specified configuration
31603 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31604 # The LINGUAS file contains the set of available languages.
31605 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31606 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31608 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31609 # Hide the ALL_LINGUAS assigment from automake.
31610 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31611 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31613 # The set of available languages was given in configure.in.
31614 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31617 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31618 # Compute UPDATEPOFILES
31619 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31620 # Compute DUMMYPOFILES
31621 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31623 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31624 case "$ac_given_srcdir" in
31626 *) srcdirpre='$(srcdir)/' ;;
31632 for lang in $ALL_LINGUAS; do
31633 POFILES="$POFILES $srcdirpre$lang.po"
31634 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31635 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31636 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31638 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31639 # environment variable.
31641 if test -n "$ALL_LINGUAS"; then
31642 for presentlang in $ALL_LINGUAS; do
31644 if test "%UNSET%" != "$LINGUAS"; then
31645 desiredlanguages="$LINGUAS"
31647 desiredlanguages="$ALL_LINGUAS"
31649 for desiredlang in $desiredlanguages; do
31650 # Use the presentlang catalog if desiredlang is
31651 # a. equal to presentlang, or
31652 # b. a variant of presentlang (because in this case,
31653 # presentlang can be used as a fallback for messages
31654 # which are not translated in the desiredlang catalog).
31655 case "$desiredlang" in
31656 "$presentlang"*) useit=yes;;
31659 if test $useit = yes; then
31660 INST_LINGUAS="$INST_LINGUAS $presentlang"
31665 if test -n "$INST_LINGUAS"; then
31666 for lang in $INST_LINGUAS; do
31667 CATALOGS="$CATALOGS $lang.gmo"
31670 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31671 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"
31672 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31673 if test -f "$f"; then
31675 *.orig | *.bak | *~) ;;
31676 *) cat "$f" >> "$ac_dir/Makefile" ;;
31691 { (exit 0); exit 0; }
31693 chmod +x $CONFIG_STATUS
31694 ac_clean_files=$ac_clean_files_save
31697 # configure is writing to config.log, and then calls config.status.
31698 # config.status does its own redirection, appending to config.log.
31699 # Unfortunately, on DOS this fails, as config.log is still kept open
31700 # by configure, so config.status won't be able to write to it; its
31701 # output is simply discarded. So we exec the FD to /dev/null,
31702 # effectively closing config.log, so it can be properly (re)opened and
31703 # appended to by config.status. When coming back to configure, we
31704 # need to make the FD available again.
31705 if test "$no_create" != yes; then
31707 ac_config_status_args=
31708 test "$silent" = yes &&
31709 ac_config_status_args="$ac_config_status_args --quiet"
31711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31714 # would make configure fail if this is the last instruction.
31715 $ac_cs_success || { (exit 1); exit 1; }
31719 if test "${support_bat}" = "yes" ; then
31720 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31721 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31727 if test "x$QMAKEQT4" != "xnone"; then
31734 chmod 755 install_conf_file build-depkgs-qt-console
31735 echo "Creating bat Makefile"
31740 echo "Doing make of dependencies"
31741 ${MAKE:-make} depend
31744 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31745 chmod 755 dvd-handler dvd-simulator
31746 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31751 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31752 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31754 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31755 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31757 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31758 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31760 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31761 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31763 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31764 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31766 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31767 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31769 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31770 chmod 755 $c/sqlite
31773 chmod 755 src/win32/build-depkgs-mingw32
31777 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31778 largefile_support="yes"
31782 # A whole lot of hand springs to get the compiler version.
31783 # This is because gcc changed the output in version 3.0
31785 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31786 if test "x${CCVERSION}" = "x" ; then
31787 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31789 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31790 if test x"${CXXVERSION}" = x ; then
31791 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31794 if test "x${subsysdir}" = "x${sbindir}" ; then
31797 echo "You have set --sbindir and --with-subsys-dir"
31798 echo " both equal to: ${subsysdir} "
31799 echo " This is not permitted. Please reconfigure."
31801 echo "Aborting configuration ..."
31807 if test "x${db_type}" = "xInternal" ; then
31810 echo "You have not specified either --enable-client-only or one of the"
31811 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31812 echo " This is not permitted. Please reconfigure."
31814 echo "Aborting the configuration ..."
31821 Configuration on `date`:
31823 Host: $host -- ${DISTNAME} ${DISTVER}
31824 Bacula version: ${VERSION} (${DATE})
31825 Source code location: ${srcdir}
31826 Install binaries: ${sbindir}
31827 Install config files: ${sysconfdir}
31828 Scripts directory: ${scriptdir}
31829 Archive directory: ${archivedir}
31830 Working directory: ${working_dir}
31831 PID directory: ${piddir}
31832 Subsys directory: ${subsysdir}
31833 Man directory: ${mandir}
31834 Data directory: ${datadir}
31835 C Compiler: ${CC} ${CCVERSION}
31836 C++ Compiler: ${CXX} ${CXXVERSION}
31837 Compiler flags: ${WCFLAGS} ${CFLAGS}
31838 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31840 Statically Linked Tools: ${support_static_tools}
31841 Statically Linked FD: ${support_static_fd}
31842 Statically Linked SD: ${support_static_sd}
31843 Statically Linked DIR: ${support_static_dir}
31844 Statically Linked CONS: ${support_static_cons}
31845 Database type: ${db_type}
31846 Database lib: ${DB_LIBS}
31847 Database name: ${db_name}
31848 Database user: ${db_user}
31850 Job Output Email: ${job_email}
31851 Traceback Email: ${dump_email}
31852 SMTP Host Address: ${smtp_host}
31854 Director Port: ${dir_port}
31855 File daemon Port: ${fd_port}
31856 Storage daemon Port: ${sd_port}
31858 Director User: ${dir_user}
31859 Director Group: ${dir_group}
31860 Storage Daemon User: ${sd_user}
31861 Storage DaemonGroup: ${sd_group}
31862 File Daemon User: ${fd_user}
31863 File Daemon Group: ${fd_group}
31865 SQL binaries Directory ${SQL_BINDIR}
31867 Large file support: $largefile_support
31868 Bacula conio support: ${got_conio} ${CONS_LIBS}
31869 readline support: ${got_readline} ${PRTREADLINE_SRC}
31870 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31871 TLS support: ${support_tls}
31872 Encryption support: ${support_crypto}
31873 ZLIB support: ${have_zlib}
31874 enable-smartalloc: ${support_smartalloc}
31875 bat support: ${support_bat} ${QWT_LDFLAGS}
31876 enable-gnome: ${support_gnome} ${gnome_version}
31877 enable-bwx-console: ${support_wx_console} ${wx_version}
31878 enable-tray-monitor: ${support_tray_monitor}
31879 client-only: ${build_client_only}
31880 build-dird: ${build_dird}
31881 build-stored: ${build_stored}
31882 ACL support: ${have_acl}
31883 Python support: ${support_python} ${PYTHON_LIBS}
31884 Batch insert enabled: ${support_batch_insert}