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'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
818 LIBBACCFG_LT_REVISION
824 LIBBACSQL_LT_REVISION
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
921 HAVE_FREEBSD_OS_FALSE
925 HAVE_OPENBSD_OS_FALSE
956 BUILD_INCLUDED_LIBINTL
963 INTL_LIBTOOL_SUFFIX_PREFIX
972 TRAY_MONITOR_CPPFLAGS
1066 ac_subst_files='MCOMMON'
1067 ac_precious_vars='build_alias
1085 # Initialize some variables set by options.
1087 ac_init_version=false
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1097 program_transform_name=s,x,x,
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE}'
1122 infodir='${datarootdir}/info'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1143 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1147 # Accept the important Cygnus configure options, so we can diagnose typos.
1149 case $ac_dashdash$ac_option in
1153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156 bindir=$ac_optarg ;;
1158 -build | --build | --buil | --bui | --bu)
1159 ac_prev=build_alias ;;
1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161 build_alias=$ac_optarg ;;
1163 -cache-file | --cache-file | --cache-fil | --cache-fi \
1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165 ac_prev=cache_file ;;
1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168 cache_file=$ac_optarg ;;
1170 --config-cache | -C)
1171 cache_file=config.cache ;;
1173 -datadir | --datadir | --datadi | --datad)
1175 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176 datadir=$ac_optarg ;;
1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179 | --dataroo | --dataro | --datar)
1180 ac_prev=datarootdir ;;
1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183 datarootdir=$ac_optarg ;;
1185 -disable-* | --disable-*)
1186 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1190 { (exit 1); exit 1; }; }
1191 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1192 eval enable_$ac_feature=no ;;
1194 -docdir | --docdir | --docdi | --doc | --do)
1196 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197 docdir=$ac_optarg ;;
1199 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1201 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202 dvidir=$ac_optarg ;;
1204 -enable-* | --enable-*)
1205 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1211 eval enable_$ac_feature=\$ac_optarg ;;
1213 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215 | --exec | --exe | --ex)
1216 ac_prev=exec_prefix ;;
1217 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1218 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1219 | --exec=* | --exe=* | --ex=*)
1220 exec_prefix=$ac_optarg ;;
1222 -gas | --gas | --ga | --g)
1223 # Obsolete; use --with-gas.
1226 -help | --help | --hel | --he | -h)
1227 ac_init_help=long ;;
1228 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1229 ac_init_help=recursive ;;
1230 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1231 ac_init_help=short ;;
1233 -host | --host | --hos | --ho)
1234 ac_prev=host_alias ;;
1235 -host=* | --host=* | --hos=* | --ho=*)
1236 host_alias=$ac_optarg ;;
1238 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1240 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1242 htmldir=$ac_optarg ;;
1244 -includedir | --includedir | --includedi | --included | --include \
1245 | --includ | --inclu | --incl | --inc)
1246 ac_prev=includedir ;;
1247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1248 | --includ=* | --inclu=* | --incl=* | --inc=*)
1249 includedir=$ac_optarg ;;
1251 -infodir | --infodir | --infodi | --infod | --info | --inf)
1253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1254 infodir=$ac_optarg ;;
1256 -libdir | --libdir | --libdi | --libd)
1258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1259 libdir=$ac_optarg ;;
1261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1262 | --libexe | --libex | --libe)
1263 ac_prev=libexecdir ;;
1264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1265 | --libexe=* | --libex=* | --libe=*)
1266 libexecdir=$ac_optarg ;;
1268 -localedir | --localedir | --localedi | --localed | --locale)
1269 ac_prev=localedir ;;
1270 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1271 localedir=$ac_optarg ;;
1273 -localstatedir | --localstatedir | --localstatedi | --localstated \
1274 | --localstate | --localstat | --localsta | --localst | --locals)
1275 ac_prev=localstatedir ;;
1276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1277 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1278 localstatedir=$ac_optarg ;;
1280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1283 mandir=$ac_optarg ;;
1285 -nfp | --nfp | --nf)
1286 # Obsolete; use --without-fp.
1289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1290 | --no-cr | --no-c | -n)
1293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1299 | --oldin | --oldi | --old | --ol | --o)
1300 ac_prev=oldincludedir ;;
1301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1304 oldincludedir=$ac_optarg ;;
1306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1309 prefix=$ac_optarg ;;
1311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1312 | --program-pre | --program-pr | --program-p)
1313 ac_prev=program_prefix ;;
1314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1316 program_prefix=$ac_optarg ;;
1318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1319 | --program-suf | --program-su | --program-s)
1320 ac_prev=program_suffix ;;
1321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1323 program_suffix=$ac_optarg ;;
1325 -program-transform-name | --program-transform-name \
1326 | --program-transform-nam | --program-transform-na \
1327 | --program-transform-n | --program-transform- \
1328 | --program-transform | --program-transfor \
1329 | --program-transfo | --program-transf \
1330 | --program-trans | --program-tran \
1331 | --progr-tra | --program-tr | --program-t)
1332 ac_prev=program_transform_name ;;
1333 -program-transform-name=* | --program-transform-name=* \
1334 | --program-transform-nam=* | --program-transform-na=* \
1335 | --program-transform-n=* | --program-transform-=* \
1336 | --program-transform=* | --program-transfor=* \
1337 | --program-transfo=* | --program-transf=* \
1338 | --program-trans=* | --program-tran=* \
1339 | --progr-tra=* | --program-tr=* | --program-t=*)
1340 program_transform_name=$ac_optarg ;;
1342 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1344 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1345 pdfdir=$ac_optarg ;;
1347 -psdir | --psdir | --psdi | --psd | --ps)
1349 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1353 | -silent | --silent | --silen | --sile | --sil)
1356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1360 sbindir=$ac_optarg ;;
1362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1364 | --sharedst | --shareds | --shared | --share | --shar \
1366 ac_prev=sharedstatedir ;;
1367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1371 sharedstatedir=$ac_optarg ;;
1373 -site | --site | --sit)
1375 -site=* | --site=* | --sit=*)
1378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1381 srcdir=$ac_optarg ;;
1383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1384 | --syscon | --sysco | --sysc | --sys | --sy)
1385 ac_prev=sysconfdir ;;
1386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1388 sysconfdir=$ac_optarg ;;
1390 -target | --target | --targe | --targ | --tar | --ta | --t)
1391 ac_prev=target_alias ;;
1392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1393 target_alias=$ac_optarg ;;
1395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1398 -version | --version | --versio | --versi | --vers | -V)
1399 ac_init_version=: ;;
1402 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405 { echo "$as_me: error: invalid package name: $ac_package" >&2
1406 { (exit 1); exit 1; }; }
1407 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1408 eval with_$ac_package=\$ac_optarg ;;
1410 -without-* | --without-*)
1411 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 { echo "$as_me: error: invalid package name: $ac_package" >&2
1415 { (exit 1); exit 1; }; }
1416 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1417 eval with_$ac_package=no ;;
1420 # Obsolete; use --with-x.
1423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1424 | --x-incl | --x-inc | --x-in | --x-i)
1425 ac_prev=x_includes ;;
1426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1428 x_includes=$ac_optarg ;;
1430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1432 ac_prev=x_libraries ;;
1433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1435 x_libraries=$ac_optarg ;;
1437 -*) { echo "$as_me: error: unrecognized option: $ac_option
1438 Try \`$0 --help' for more information." >&2
1439 { (exit 1); exit 1; }; }
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1446 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1447 { (exit 1); exit 1; }; }
1448 eval $ac_envvar=\$ac_optarg
1449 export $ac_envvar ;;
1452 # FIXME: should be removed in autoconf 3.0.
1453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1462 if test -n "$ac_prev"; then
1463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1464 { echo "$as_me: error: missing argument to $ac_option" >&2
1465 { (exit 1); exit 1; }; }
1468 # Be sure to have absolute directory names.
1469 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1470 datadir sysconfdir sharedstatedir localstatedir includedir \
1471 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1472 libdir localedir mandir
1474 eval ac_val=\$$ac_var
1476 [\\/$]* | ?:[\\/]* ) continue;;
1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1479 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1480 { (exit 1); exit 1; }; }
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1488 target=$target_alias
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492 if test "x$build_alias" = x; then
1493 cross_compiling=maybe
1494 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1495 If a cross compiler is detected then cross compile mode will be used." >&2
1496 elif test "x$build_alias" != "x$host_alias"; then
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1504 test "$silent" = yes && exec 6>/dev/null
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510 { echo "$as_me: error: Working directory cannot be determined" >&2
1511 { (exit 1); exit 1; }; }
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 { echo "$as_me: error: pwd does not report name of working directory" >&2
1514 { (exit 1); exit 1; }; }
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$0" ||
1522 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$0" : 'X\(//\)[^/]' \| \
1524 X"$0" : 'X\(//\)$' \| \
1525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1549 ac_srcdir_defaulted=no
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1554 { (exit 1); exit 1; }; }
1556 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1558 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1559 { (exit 1); exit 1; }; }
1561 # When building in place, set srcdir=.
1562 if test "$ac_abs_confdir" = "$ac_pwd"; then
1565 # Remove unnecessary trailing slashes from srcdir.
1566 # Double slashes in file names in object file debugging info
1567 # mess up M-x gdb in Emacs.
1569 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1571 for ac_var in $ac_precious_vars; do
1572 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_env_${ac_var}_value=\$${ac_var}
1574 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1575 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1579 # Report the --help message.
1581 if test "$ac_init_help" = "long"; then
1582 # Omit some internal or obsolete options to make the list less imposing.
1583 # This message is too long to be a string in the A/UX 3.1 sh.
1585 \`configure' configures this package to adapt to many kinds of systems.
1587 Usage: $0 [OPTION]... [VAR=VALUE]...
1589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1590 VAR=VALUE. See below for descriptions of some of the useful variables.
1592 Defaults for the options are specified in brackets.
1595 -h, --help display this help and exit
1596 --help=short display options specific to this package
1597 --help=recursive display the short help of all the included packages
1598 -V, --version display version information and exit
1599 -q, --quiet, --silent do not print \`checking...' messages
1600 --cache-file=FILE cache test results in FILE [disabled]
1601 -C, --config-cache alias for \`--cache-file=config.cache'
1602 -n, --no-create do not create output files
1603 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1605 Installation directories:
1606 --prefix=PREFIX install architecture-independent files in PREFIX
1607 [$ac_default_prefix]
1608 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1611 By default, \`make install' will install all the files in
1612 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1613 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1614 for instance \`--prefix=\$HOME'.
1616 For better control, use the options below.
1618 Fine tuning of the installation directories:
1619 --bindir=DIR user executables [EPREFIX/bin]
1620 --sbindir=DIR system admin executables [EPREFIX/sbin]
1621 --libexecdir=DIR program executables [EPREFIX/libexec]
1622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1625 --libdir=DIR object code libraries [EPREFIX/lib]
1626 --includedir=DIR C header files [PREFIX/include]
1627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1628 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1629 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1630 --infodir=DIR info documentation [DATAROOTDIR/info]
1631 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1632 --mandir=DIR man documentation [DATAROOTDIR/man]
1633 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1634 --htmldir=DIR html documentation [DOCDIR]
1635 --dvidir=DIR dvi documentation [DOCDIR]
1636 --pdfdir=DIR pdf documentation [DOCDIR]
1637 --psdir=DIR ps documentation [DOCDIR]
1643 --x-includes=DIR X include files are in DIR
1644 --x-libraries=DIR X library files are in DIR
1647 --build=BUILD configure for building on BUILD [guessed]
1648 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1652 if test -n "$ac_init_help"; then
1657 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1658 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1659 --enable-libtool enable building using GNU libtool [default=yes]
1660 --enable-shared[=PKGS] build shared libraries [default=yes]
1661 --enable-static[=PKGS] build static libraries [default=no]
1662 --enable-fast-install[=PKGS]
1663 optimize for fast installation [default=yes]
1664 --disable-libtool-lock avoid locking (might break parallel builds)
1665 --enable-includes enable installing of include files [default=no]
1666 --disable-nls do not use Native Language Support
1667 --disable-rpath do not hardcode runtime library paths
1668 --enable-gnome enable build of bgnome-console GUI [default=no]
1669 --enable-bat enable build of bat Qt4 GUI [default=no]
1670 --enable-bwx-console enable build of wxWidgets console [default=no]
1671 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1673 --enable-smartalloc enable smartalloc debugging support [default=no]
1674 --enable-lockmgr enable lock manager support [default=no]
1675 --enable-static-tools enable static tape tools [default=no]
1676 --enable-static-fd enable static File daemon [default=no]
1677 --enable-static-sd enable static Storage daemon [default=no]
1678 --enable-static-dir enable static Director [default=no]
1679 --enable-static-cons enable static Console [default=no]
1680 --enable-client-only build client (File daemon) only [default=no]
1681 --enable-build-dird enable building of dird (Director) [default=yes]
1682 --enable-build-stored enable building of stored (Storage daemon)
1684 --disable-conio disable conio support [default=no]
1685 --enable-ipv6 enable ipv6 support [default=yes]
1686 --disable-readline disable readline support [default=yes]
1687 --enable-batch-insert enable the DB batch insert code [default=no]
1688 --disable-largefile omit support for large files
1689 --disable-afs disable afs support [default=auto]
1690 --disable-acl disable acl support [default=auto]
1691 --disable-xattr disable xattr support [default=auto]
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-pic try to use only PIC/non-PIC objects [default=use
1698 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1699 --with-gnu-ld assume the C compiler uses GNU ld default=no
1700 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1701 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1702 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1703 --without-libintl-prefix don't search for libintl in includedir and libdir
1704 --with-included-gettext use the GNU gettext library included here
1705 --with-readline[=DIR] specify readline library directory
1706 --with-python[=DIR] Include Python support. DIR is the Python base
1707 install directory, default is to search through a
1708 number of common places for the Python files.
1709 --with-tcp-wrappers[=DIR]
1710 enable tcpwrappers support
1711 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1712 --with-working-dir=PATH specify path of Bacula working directory
1713 --with-archivedir=PATH specify path of SD archive directory
1714 --with-basename=RESNAME specify base resource name for daemons
1715 --with-hostname=RESNAME specify host name for daemons
1716 --with-scriptdir=PATH specify path of Bacula scripts directory
1717 --with-bsrdir=PATH specify path of Bacula bsrs directory
1718 --with-logdir=PATH specify path of Bacula logs directory
1719 --with-plugindir=PATH specify path of Bacula plugins directory
1720 --with-dump-email=EMAIL dump email address
1721 --with-job-email=EMAIL job output email address
1722 --with-smtp-host=HOST SMTP mail host address
1723 --with-pid-dir=PATH specify location of Bacula pid files
1724 --with-subsys-dir=PATH specify location of Bacula subsys file
1725 --with-baseport=PORT specify base port address for daemons
1726 --with-dir-password=PASSWORD
1727 specify Director's password
1728 --with-fd-password=PASSWORD
1729 specify Client's password
1730 --with-sd-password=PASSWORD
1731 specify Storage daemon's password
1732 --with-mon-dir-password=PASSWORD
1733 specify Director's password used by the monitor
1734 --with-mon-fd-password=PASSWORD
1735 specify Client's password used by the monitor
1736 --with-mon-sd-password=PASSWORD
1737 specify Storage daemon's password used by the
1739 --with-db-name=DBNAME specify database name [default=bacula]
1740 --with-db-user=UNAME specify database user [default=bacula]
1741 --with-db-password=PWD specify database password [default=*none*]
1742 --with-db-port=DBPORT specify a database port [default=null]
1743 --with-dir-user=USER specify user for Director daemon
1744 --with-dir-group=GROUP specify group for Director daemon
1745 --with-sd-user=USER specify user for Storage daemon
1746 --with-sd-group=GROUP specify group for Storage daemon
1747 --with-fd-user=USER specify user for File daemon
1748 --with-fd-group=GROUP specify group for File daemon
1749 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1750 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1751 base install directory, [default=/usr/local/pgsql]
1752 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1753 directory, default is to search through a number of
1754 common places for the MySQL files.
1755 --with-embedded-mysql[=DIR]
1756 Include MySQL support. DIR is the MySQL base install
1757 directory, default is to search through a number of
1758 common places for the MySQL files.
1759 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1760 install directory, default is to search through a
1761 number of common places for the Ingres files.
1762 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1763 install directory, default is to search through a
1764 number of common places for the SQLite3 files.
1765 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1766 directory, default is to search through a number of
1767 common places for the DBI files.
1768 --with-dbi-driver[=DRIVER]
1769 Suport for DBI driver. DRIVER is the one DBI driver
1770 like Mysql, Postgresql, others. Default is to not
1771 configure any driver.
1772 --with-x use the X Window System
1773 --with-afsdir[=DIR] Directory holding AFS includes/libs
1775 Some influential environment variables:
1776 CC C compiler command
1777 CFLAGS C compiler flags
1778 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1779 nonstandard directory <lib dir>
1780 LIBS libraries to pass to the linker, e.g. -l<library>
1781 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1782 you have headers in a nonstandard directory <include dir>
1783 CXX C++ compiler command
1784 CXXFLAGS C++ compiler flags
1786 WXCONFIG wx-config command. On some systems, you must set it to
1787 wx-config-2.6 to use wxWidgets 2.6.
1788 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1789 CXXCPP C++ preprocessor
1790 XMKMF Path to xmkmf, Makefile generator for X Window System
1792 Use these variables to override the choices made by `configure' or to help
1793 it to find libraries and programs with nonstandard names/locations.
1799 if test "$ac_init_help" = "recursive"; then
1800 # If there are subdirs, report their specific --help.
1801 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1802 test -d "$ac_dir" || continue
1806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1809 # A ".." for each directory in $ac_dir_suffix.
1810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1811 case $ac_top_builddir_sub in
1812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1816 ac_abs_top_builddir=$ac_pwd
1817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir=$ac_top_build_prefix
1822 .) # We are building in place.
1824 ac_top_srcdir=$ac_top_builddir_sub
1825 ac_abs_top_srcdir=$ac_pwd ;;
1826 [\\/]* | ?:[\\/]* ) # Absolute name.
1827 ac_srcdir=$srcdir$ac_dir_suffix;
1828 ac_top_srcdir=$srcdir
1829 ac_abs_top_srcdir=$srcdir ;;
1831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832 ac_top_srcdir=$ac_top_build_prefix$srcdir
1833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1837 cd "$ac_dir" || { ac_status=$?; continue; }
1838 # Check for guested configure.
1839 if test -f "$ac_srcdir/configure.gnu"; then
1841 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842 elif test -f "$ac_srcdir/configure"; then
1844 $SHELL "$ac_srcdir/configure" --help=recursive
1846 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848 cd "$ac_pwd" || { ac_status=$?; break; }
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1856 generated by GNU Autoconf 2.61
1858 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1859 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1869 It was created by $as_me, which was
1870 generated by GNU Autoconf 2.61. Invocation command line was
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 echo "PATH: $as_dir"
1922 # Keep a trace of the command line.
1923 # Strip out --no-create and --no-recursion so they do not pile up.
1924 # Strip out --silent because we don't want to record it for future runs.
1925 # Also quote any args containing shell meta-characters.
1926 # Make two passes to allow for proper duplicate-argument suppression.
1930 ac_must_keep_next=false
1936 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938 | -silent | --silent | --silen | --sile | --sil)
1941 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1946 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1947 if test $ac_must_keep_next = true; then
1948 ac_must_keep_next=false # Got value, back to normal.
1951 *=* | --config-cache | -C | -disable-* | --disable-* \
1952 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954 | -with-* | --with-* | -without-* | --without-* | --x)
1955 case "$ac_configure_args0 " in
1956 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 -* ) ac_must_keep_next=true ;;
1962 ac_configure_args="$ac_configure_args '$ac_arg'"
1967 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1968 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1970 # When interrupted or exit'd, cleanup temporary files, and complete
1971 # config.log. We remove comments because anyway the quotes in there
1972 # would cause problems or look ugly.
1973 # WARNING: Use '\'' to represent an apostrophe within the trap.
1974 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975 trap 'exit_status=$?
1976 # Save into config.log some information that might help in debugging.
1981 ## ---------------- ##
1982 ## Cache variables. ##
1983 ## ---------------- ##
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1993 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1994 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1997 _ | IFS | as_nl) ;; #(
1998 *) $as_unset $ac_var ;;
2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004 *${as_nl}ac_space=\ *)
2006 "s/'\''/'\''\\\\'\'''\''/g;
2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 ## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##
2023 for ac_var in $ac_subst_vars
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 echo "$ac_var='\''$ac_val'\''"
2033 if test -n "$ac_subst_files"; then
2035 ## ------------------- ##
2036 ## File substitutions. ##
2037 ## ------------------- ##
2040 for ac_var in $ac_subst_files
2042 eval ac_val=\$$ac_var
2044 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 echo "$ac_var='\''$ac_val'\''"
2051 if test -s confdefs.h; then
2061 test "$ac_signal" != 0 &&
2062 echo "$as_me: caught signal $ac_signal"
2063 echo "$as_me: exit $exit_status"
2065 rm -f core *.core core.conftest.* &&
2066 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 for ac_signal in 1 2 13 15; do
2070 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2074 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2075 rm -f -r conftest* confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer explicitly selected file to automatically selected ones.
2106 if test -n "$CONFIG_SITE"; then
2107 set x "$CONFIG_SITE"
2108 elif test "x$prefix" != xNONE; then
2109 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2111 set x "$ac_default_prefix/share/config.site" \
2112 "$ac_default_prefix/etc/config.site"
2117 if test -r "$ac_site_file"; then
2118 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2119 echo "$as_me: loading site script $ac_site_file" >&6;}
2120 sed 's/^/| /' "$ac_site_file" >&5
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special
2127 # files actually), so we avoid doing that.
2128 if test -f "$cache_file"; then
2129 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2130 echo "$as_me: loading cache $cache_file" >&6;}
2132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133 *) . "./$cache_file";;
2137 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2138 echo "$as_me: creating cache $cache_file" >&6;}
2142 # Check that the precious variables saved in the cache have kept the same
2144 ac_cache_corrupted=false
2145 for ac_var in $ac_precious_vars; do
2146 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2147 eval ac_new_set=\$ac_env_${ac_var}_set
2148 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2149 eval ac_new_val=\$ac_env_${ac_var}_value
2150 case $ac_old_set,$ac_new_set in
2152 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154 ac_cache_corrupted=: ;;
2156 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2157 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158 ac_cache_corrupted=: ;;
2161 if test "x$ac_old_val" != "x$ac_new_val"; then
2162 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2163 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2165 echo "$as_me: former value: $ac_old_val" >&2;}
2166 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2167 echo "$as_me: current value: $ac_new_val" >&2;}
2168 ac_cache_corrupted=:
2171 # Pass precious variables to config.status.
2172 if test "$ac_new_set" = set; then
2174 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 *) ac_arg=$ac_var=$ac_new_val ;;
2177 case " $ac_configure_args " in
2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2179 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2183 if $ac_cache_corrupted; then
2184 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2185 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2187 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2188 { (exit 1); exit 1; }; }
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2222 if test -f "$ac_dir/install-sh"; then
2224 ac_install_sh="$ac_aux_dir/install-sh -c"
2226 elif test -f "$ac_dir/install.sh"; then
2228 ac_install_sh="$ac_aux_dir/install.sh -c"
2230 elif test -f "$ac_dir/shtool"; then
2232 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 if test -z "$ac_aux_dir"; then
2237 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2238 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2239 { (exit 1); exit 1; }; }
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2254 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2255 WIN32MAINDIR=${BUILD_DIR}
2256 WIN32TOPDIR=${TOP_DIR}
2263 # Extract the first word of "$ac_prog", so it can be a program name with args.
2264 set dummy $ac_prog; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 TRUEPRG=$ac_cv_path_TRUEPRG
2294 if test -n "$TRUEPRG"; then
2295 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2296 echo "${ECHO_T}$TRUEPRG" >&6; }
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2303 test -n "$TRUEPRG" && break
2305 test -n "$TRUEPRG" || TRUEPRG=":"
2307 for ac_prog in false
2309 # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 FALSEPRG=$ac_cv_path_FALSEPRG
2340 if test -n "$FALSEPRG"; then
2341 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2342 echo "${ECHO_T}$FALSEPRG" >&6; }
2344 { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2349 test -n "$FALSEPRG" && break
2351 test -n "$FALSEPRG" || FALSEPRG=":"
2356 if test "x$BACULA" != x; then
2357 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2359 BACULA=${BACULA:-Bacula}
2360 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2361 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2362 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2364 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2369 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2370 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2371 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2376 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2379 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2380 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2381 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2383 echo "configuring for ${BACULA} $VERSION ($DATE)"
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2629 if test -z "$CC"; then
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2673 if test "x$ac_ct_CC" = x; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { (ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2790 for ac_file in $ac_files ''
2792 test -f "$ac_file" || continue
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2797 # We found the default executable, but exeext='' is most
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2821 { echo "$as_me:$LINENO: result: $ac_file" >&5
2822 echo "${ECHO_T}$ac_file" >&6; }
2823 if test -z "$ac_file"; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: C compiler cannot create executables
2830 See \`config.log' for more details." >&2;}
2831 { (exit 77); exit 77; }; }
2834 ac_exeext=$ac_cv_exeext
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 if test "$cross_compiling" = maybe; then
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_cc_g+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_c_werror_flag=$ac_save_c_werror_flag
3168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3170 if test "$ac_test_CFLAGS" = set; then
3171 CFLAGS=$ac_save_CFLAGS
3172 elif test $ac_cv_prog_cc_g = yes; then
3173 if test "$GCC" = yes; then
3179 if test "$GCC" = yes; then
3185 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3186 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3187 if test "${ac_cv_prog_cc_c89+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 ac_cv_prog_cc_c89=no
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3216 s = g (p, va_arg (v,int));
3221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3222 function prototypes and stuff, but not '\xHH' hex character constants.
3223 These don't provoke an error unfortunately, instead are silently treated
3224 as 'x'. The following induces an error, until -std is added to get
3225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3226 array size at least. It's necessary to write '\x00'==0 to get something
3227 that's true only with -std. */
3228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3231 inside strings and character constants. */
3233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3235 int test (int i, double x);
3236 struct s1 {int (*f) (int a);};
3237 struct s2 {int (*f) (double a);};
3238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3252 CC="$ac_save_CC $ac_arg"
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3270 ac_cv_prog_cc_c89=$ac_arg
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3278 rm -f core conftest.err conftest.$ac_objext
3279 test "x$ac_cv_prog_cc_c89" != "xno" && break
3281 rm -f conftest.$ac_ext
3286 case "x$ac_cv_prog_cc_c89" in
3288 { echo "$as_me:$LINENO: result: none needed" >&5
3289 echo "${ECHO_T}none needed" >&6; } ;;
3291 { echo "$as_me:$LINENO: result: unsupported" >&5
3292 echo "${ECHO_T}unsupported" >&6; } ;;
3294 CC="$CC $ac_cv_prog_cc_c89"
3295 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 ac_cpp='$CXXCPP $CPPFLAGS'
3308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3311 if test -z "$CXX"; then
3312 if test -n "$CCC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_CXX+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 if test -n "$CXX"; then
3326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test -n "$CXX"; then
3347 { echo "$as_me:$LINENO: result: $CXX" >&5
3348 echo "${ECHO_T}$CXX" >&6; }
3350 { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3355 test -n "$CXX" && break
3358 if test -z "$CXX"; then
3360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if test -n "$ac_ct_CXX"; then
3370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_ac_ct_CXX="$ac_prog"
3380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3390 if test -n "$ac_ct_CXX"; then
3391 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3392 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3394 { echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6; }
3399 test -n "$ac_ct_CXX" && break
3402 if test "x$ac_ct_CXX" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3408 whose name does not start with the host triplet. If you think this
3409 configuration is useful to you, please write to autoconf@gnu.org." >&5
3410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3411 whose name does not start with the host triplet. If you think this
3412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3413 ac_tool_warned=yes ;;
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3423 ac_compiler=`set X $ac_compile; echo $2`
3424 { (ac_try="$ac_compiler --version >&5"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compiler --version >&5") 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3434 { (ac_try="$ac_compiler -v >&5"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compiler -v >&5") 2>&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3444 { (ac_try="$ac_compiler -V >&5"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compiler -V >&5") 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }
3455 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_cxx_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3509 GXX=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CXXFLAGS=${CXXFLAGS+set}
3511 ac_save_CXXFLAGS=$CXXFLAGS
3512 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cxx_g+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3518 ac_cxx_werror_flag=yes
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_cxx_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3553 ac_cv_prog_cxx_g=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_cxx_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_cxx_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 ac_cv_prog_cxx_g=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3649 if test "$ac_test_CXXFLAGS" = set; then
3650 CXXFLAGS=$ac_save_CXXFLAGS
3651 elif test $ac_cv_prog_cxx_g = yes; then
3652 if test "$GXX" = yes; then
3658 if test "$GXX" = yes; then
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 if test "x$CC" != xcc; then
3671 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3674 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3677 set dummy $CC; ac_cc=`echo $2 |
3678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3679 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 # Make sure it works both with $CC and with simple cc.
3698 # We do the test twice because some compilers refuse to overwrite an
3699 # existing .o file with -o, though they will create one.
3700 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3702 if { (case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_try") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_try") 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); };
3721 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3722 if test "x$CC" != xcc; then
3723 # Test first that cc exists at all.
3724 if { ac_try='cc -c conftest.$ac_ext >&5'
3725 { (case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_try") 2>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3736 if { (case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_try") 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_try") 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); };
3758 # cc exists but doesn't like -o.
3759 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3764 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3766 rm -f core conftest*
3769 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3770 { echo "$as_me:$LINENO: result: yes" >&5
3771 echo "${ECHO_T}yes" >&6; }
3773 { echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6; }
3776 cat >>confdefs.h <<\_ACEOF
3777 #define NO_MINUS_C_MINUS_O 1
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3789 # On Suns, sometimes $CPP names a directory.
3790 if test -n "$CPP" && test -d "$CPP"; then
3793 if test -z "$CPP"; then
3794 if test "${ac_cv_prog_CPP+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 # Double quotes because CPP needs to be expanded
3798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3801 for ac_c_preproc_warn_flag in '' yes
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3816 # include <limits.h>
3818 # include <assert.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 # Broken: fails on valid input.
3847 rm -f conftest.err conftest.$ac_ext
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3859 if { (ac_try="$ac_cpp conftest.$ac_ext"
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } >/dev/null && {
3872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3875 # Broken: success on invalid input.
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 # Passes both tests.
3886 rm -f conftest.err conftest.$ac_ext
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.err conftest.$ac_ext
3891 if $ac_preproc_ok; then
3903 { echo "$as_me:$LINENO: result: $CPP" >&5
3904 echo "${ECHO_T}$CPP" >&6; }
3906 for ac_c_preproc_warn_flag in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3921 # include <limits.h>
3923 # include <assert.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 # Broken: fails on valid input.
3952 rm -f conftest.err conftest.$ac_ext
3954 # OK, works on sane cases. Now check whether nonexistent headers
3955 # can be detected and how.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3964 if { (ac_try="$ac_cpp conftest.$ac_ext"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3972 grep -v '^ *+' conftest.er1 >conftest.err
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null && {
3977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3980 # Broken: success on invalid input.
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 # Passes both tests.
3991 rm -f conftest.err conftest.$ac_ext
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4000 See \`config.log' for more details." >&5
4001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4002 See \`config.log' for more details." >&2;}
4003 { (exit 1); exit 1; }; }
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 # Extract the first word of "grep ggrep" to use in msg output
4019 if test -z "$GREP"; then
4020 set dummy grep ggrep; ac_prog_name=$2
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in grep ggrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036 # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 echo 'GREP' >> "conftest.nl"
4049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 ac_count=`expr $ac_count + 1`
4052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_GREP="$ac_path_GREP"
4055 ac_path_GREP_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 $ac_path_GREP_found && break 3
4074 GREP="$ac_cv_path_GREP"
4075 if test -z "$GREP"; then
4076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078 { (exit 1); exit 1; }; }
4082 ac_cv_path_GREP=$GREP
4087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4089 GREP="$ac_cv_path_GREP"
4092 { echo "$as_me:$LINENO: checking for egrep" >&5
4093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4094 if test "${ac_cv_path_EGREP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098 then ac_cv_path_EGREP="$GREP -E"
4100 # Extract the first word of "egrep" to use in msg output
4101 if test -z "$EGREP"; then
4102 set dummy egrep; ac_prog_name=$2
4103 if test "${ac_cv_path_EGREP+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_path_EGREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in egrep; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4116 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4117 # Check for GNU ac_path_EGREP and select it if it is found.
4118 # Check for GNU $ac_path_EGREP
4119 case `"$ac_path_EGREP" --version 2>&1` in
4121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4127 cat "conftest.in" "conftest.in" >"conftest.tmp"
4128 mv "conftest.tmp" "conftest.in"
4129 cp "conftest.in" "conftest.nl"
4130 echo 'EGREP' >> "conftest.nl"
4131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133 ac_count=`expr $ac_count + 1`
4134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4135 # Best one so far, save it but keep looking for a better one
4136 ac_cv_path_EGREP="$ac_path_EGREP"
4137 ac_path_EGREP_max=$ac_count
4139 # 10*(2^10) chars as input seems more than enough
4140 test $ac_count -gt 10 && break
4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 $ac_path_EGREP_found && break 3
4156 EGREP="$ac_cv_path_EGREP"
4157 if test -z "$EGREP"; then
4158 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4160 { (exit 1); exit 1; }; }
4164 ac_cv_path_EGREP=$EGREP
4170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4172 EGREP="$ac_cv_path_EGREP"
4175 if test $ac_cv_c_compiler_gnu = yes; then
4176 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4177 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 ac_pattern="Autoconf.*'x'"
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4193 ac_cv_prog_gcc_traditional=yes
4195 ac_cv_prog_gcc_traditional=no
4200 if test $ac_cv_prog_gcc_traditional = no; then
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4212 ac_cv_prog_gcc_traditional=yes
4218 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4219 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4220 if test $ac_cv_prog_gcc_traditional = yes; then
4221 CC="$CC -traditional"
4225 BASECC=`basename $CC`
4227 if test "x$BASECC" = xgcc; then
4228 cat >>confdefs.h <<\_ACEOF
4234 # Extract the first word of "$CXX", so it can be a program name with args.
4235 set dummy $CXX; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_path_CXX+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4266 if test -n "$CXX"; then
4267 { echo "$as_me:$LINENO: result: $CXX" >&5
4268 echo "${ECHO_T}$CXX" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4275 if test ! -e $CXX; then
4276 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4277 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4278 { (exit 1); exit 1; }; }
4281 # Find a good install program. We prefer a C program (faster),
4282 # so one script is as good as another. But avoid the broken or
4283 # incompatible versions:
4284 # SysV /etc/install, /usr/sbin/install
4285 # SunOS /usr/etc/install
4286 # IRIX /sbin/install
4288 # AmigaOS /C/install, which installs bootblocks on floppy discs
4289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4292 # OS/2's system install, which has a completely different semantic
4293 # ./install, which can be erroneously created by make from ./install.sh.
4294 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4295 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4296 if test -z "$INSTALL"; then
4297 if test "${ac_cv_path_install+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 # Account for people who put trailing slashes in PATH elements.
4307 ./ | .// | /cC/* | \
4308 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4309 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4312 # OSF1 and SCO ODT 3.0 have their own names for install.
4313 # Don't use installbsd from OSF since it installs stuff as root
4315 for ac_prog in ginstall scoinst install; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4318 if test $ac_prog = install &&
4319 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4320 # AIX install. It has an incompatible calling convention.
4322 elif test $ac_prog = install &&
4323 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4324 # program-specific install script used by HP pwplus--don't use.
4327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4340 if test "${ac_cv_path_install+set}" = set; then
4341 INSTALL=$ac_cv_path_install
4343 # As a last resort, use the slow shell script. Don't cache a
4344 # value for INSTALL within a source directory, because that will
4345 # break other packages using the cache if that directory is
4346 # removed, or if the value is a relative name.
4347 INSTALL=$ac_install_sh
4350 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4351 echo "${ECHO_T}$INSTALL" >&6; }
4353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4354 # It thinks the first close brace ends the variable substitution.
4355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4361 # Extract the first word of "mv", so it can be a program name with args.
4362 set dummy mv; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_MV+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4393 if test -n "$MV"; then
4394 { echo "$as_me:$LINENO: result: $MV" >&5
4395 echo "${ECHO_T}$MV" >&6; }
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4402 # Extract the first word of "rm", so it can be a program name with args.
4403 set dummy rm; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_REMOVE+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4433 REMOVE=$ac_cv_path_REMOVE
4434 if test -n "$REMOVE"; then
4435 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4436 echo "${ECHO_T}$REMOVE" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 # Extract the first word of "cp", so it can be a program name with args.
4444 set dummy cp; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_CP+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4475 if test -n "$CP"; then
4476 { echo "$as_me:$LINENO: result: $CP" >&5
4477 echo "${ECHO_T}$CP" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4484 # Extract the first word of "sed", so it can be a program name with args.
4485 set dummy sed; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_SED+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4516 if test -n "$SED"; then
4517 { echo "$as_me:$LINENO: result: $SED" >&5
4518 echo "${ECHO_T}$SED" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4525 # Extract the first word of "echo", so it can be a program name with args.
4526 set dummy echo; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_ECHO+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4556 ECHO=$ac_cv_path_ECHO
4557 if test -n "$ECHO"; then
4558 { echo "$as_me:$LINENO: result: $ECHO" >&5
4559 echo "${ECHO_T}$ECHO" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4566 # Extract the first word of "cmp", so it can be a program name with args.
4567 set dummy cmp; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_CMP+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4598 if test -n "$CMP"; then
4599 { echo "$as_me:$LINENO: result: $CMP" >&5
4600 echo "${ECHO_T}$CMP" >&6; }
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4607 # Extract the first word of "tbl", so it can be a program name with args.
4608 set dummy tbl; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_TBL+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4639 if test -n "$TBL"; then
4640 { echo "$as_me:$LINENO: result: $TBL" >&5
4641 echo "${ECHO_T}$TBL" >&6; }
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4648 # Extract the first word of "ar", so it can be a program name with args.
4649 set dummy ar; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_AR+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4680 if test -n "$AR"; then
4681 { echo "$as_me:$LINENO: result: $AR" >&5
4682 echo "${ECHO_T}$AR" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 # Extract the first word of "openssl", so it can be a program name with args.
4690 set dummy openssl; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_OPENSSL+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4720 OPENSSL=$ac_cv_path_OPENSSL
4721 if test -n "$OPENSSL"; then
4722 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4723 echo "${ECHO_T}$OPENSSL" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 # Extract the first word of "mtx", so it can be a program name with args.
4731 set dummy mtx; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_MTX+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4762 if test -n "$MTX"; then
4763 { echo "$as_me:$LINENO: result: $MTX" >&5
4764 echo "${ECHO_T}$MTX" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 # Extract the first word of "dd", so it can be a program name with args.
4772 set dummy dd; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_DD+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4803 if test -n "$DD"; then
4804 { echo "$as_me:$LINENO: result: $DD" >&5
4805 echo "${ECHO_T}$DD" >&6; }
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4812 # Extract the first word of "mkisofs", so it can be a program name with args.
4813 set dummy mkisofs; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_MKISOFS+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4843 MKISOFS=$ac_cv_path_MKISOFS
4844 if test -n "$MKISOFS"; then
4845 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4846 echo "${ECHO_T}$MKISOFS" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 # Extract the first word of "python", so it can be a program name with args.
4854 set dummy python; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_path_PYTHON+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4884 PYTHON=$ac_cv_path_PYTHON
4885 if test -n "$PYTHON"; then
4886 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4887 echo "${ECHO_T}$PYTHON" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 # Extract the first word of "growisofs", so it can be a program name with args.
4895 set dummy growisofs; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4925 GROWISOFS=$ac_cv_path_GROWISOFS
4926 if test -n "$GROWISOFS"; then
4927 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4928 echo "${ECHO_T}$GROWISOFS" >&6; }
4930 { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4935 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4936 set dummy dvd+rw-mediainfo; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 case $DVDRWMEDIAINFO in
4944 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4966 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4967 if test -n "$DVDRWMEDIAINFO"; then
4968 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4969 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4977 set dummy dvd+rw-format; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 case $DVDRWFORMAT in
4985 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5007 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5008 if test -n "$DVDRWFORMAT"; then
5009 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5010 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5017 # Extract the first word of "pkg-config", so it can be a program name with args.
5018 set dummy pkg-config; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5048 PKGCONFIG=$ac_cv_path_PKGCONFIG
5049 if test -n "$PKGCONFIG"; then
5050 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5051 echo "${ECHO_T}$PKGCONFIG" >&6; }
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5058 # Extract the first word of "qmake", so it can be a program name with args.
5059 set dummy qmake; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_QMAKE+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5089 QMAKE=$ac_cv_path_QMAKE
5090 if test -n "$QMAKE"; then
5091 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5092 echo "${ECHO_T}$QMAKE" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5099 # Extract the first word of "gmake", so it can be a program name with args.
5100 set dummy gmake; ac_word=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_path_GMAKE+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5130 GMAKE=$ac_cv_path_GMAKE
5131 if test -n "$GMAKE"; then
5132 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5133 echo "${ECHO_T}$GMAKE" >&6; }
5135 { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5141 if test "x$WXCONFIG" = x; then
5144 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5145 set dummy ${WXCONFIG}; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5175 WXCONFIG=$ac_cv_path_WXCONFIG
5176 if test -n "$WXCONFIG"; then
5177 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5178 echo "${ECHO_T}$WXCONFIG" >&6; }
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5186 # Extract the first word of "cdrecord", so it can be a program name with args.
5187 set dummy cdrecord; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_CDRECORD+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5217 CDRECORD=$ac_cv_path_CDRECORD
5218 if test -n "$CDRECORD"; then
5219 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5220 echo "${ECHO_T}$CDRECORD" >&6; }
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 # Extract the first word of "pidof", so it can be a program name with args.
5228 set dummy pidof; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_PIDOF+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5258 PIDOF=$ac_cv_path_PIDOF
5259 if test -n "$PIDOF"; then
5260 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5261 echo "${ECHO_T}$PIDOF" >&6; }
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5268 for ac_prog in gawk mawk nawk awk
5270 # Extract the first word of "$ac_prog", so it can be a program name with args.
5271 set dummy $ac_prog; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_AWK+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test -n "$AWK"; then
5278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_AWK="$ac_prog"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 if test -n "$AWK"; then
5299 { echo "$as_me:$LINENO: result: $AWK" >&5
5300 echo "${ECHO_T}$AWK" >&6; }
5302 { echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6; }
5307 test -n "$AWK" && break
5310 # Some AWK programs fail, so test it and warn the user
5311 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5312 { if ((prog == $2) || (("(" prog ")") == $2) ||
5313 (("" prog "") == $2) ||
5314 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5316 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5317 The regex engine of $AWK is too broken to be used you
5318 might want to install GNU AWK.
5319 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5320 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321 The regex engine of $AWK is too broken to be used you
5322 might want to install GNU AWK.
5323 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5324 { (exit 1); exit 1; }; }
5327 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5328 set dummy $THE_AWK; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_path_AWK+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5359 if test -n "$AWK"; then
5360 { echo "$as_me:$LINENO: result: $AWK" >&5
5361 echo "${ECHO_T}$AWK" >&6; }
5363 { echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6; }
5370 test -n "$ARFLAG" || ARFLAGS="cr"
5382 # Check whether --enable-libtool was given.
5383 if test "${enable_libtool+set}" = set; then
5384 enableval=$enable_libtool;
5385 if test x$enableval = xno; then
5394 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5400 macro_version='2.2.6'
5401 macro_revision='1.3012'
5415 ltmain="$ac_aux_dir/ltmain.sh"
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5420 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5421 { (exit 1); exit 1; }; }
5423 { echo "$as_me:$LINENO: checking build system type" >&5
5424 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5425 if test "${ac_cv_build+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_build_alias=$build_alias
5429 test "x$ac_build_alias" = x &&
5430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5431 test "x$ac_build_alias" = x &&
5432 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5434 { (exit 1); exit 1; }; }
5435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5436 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5437 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5438 { (exit 1); exit 1; }; }
5441 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5442 echo "${ECHO_T}$ac_cv_build" >&6; }
5443 case $ac_cv_build in
5445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5446 echo "$as_me: error: invalid value of canonical build" >&2;}
5447 { (exit 1); exit 1; }; };;
5450 ac_save_IFS=$IFS; IFS='-'
5456 # Remember, the first character of IFS is used to create $*,
5457 # except with old shells:
5460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5463 { echo "$as_me:$LINENO: checking host system type" >&5
5464 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5465 if test "${ac_cv_host+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 if test "x$host_alias" = x; then
5469 ac_cv_host=$ac_cv_build
5471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5473 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5474 { (exit 1); exit 1; }; }
5478 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479 echo "${ECHO_T}$ac_cv_host" >&6; }
5482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5483 echo "$as_me: error: invalid value of canonical host" >&2;}
5484 { (exit 1); exit 1; }; };;
5487 ac_save_IFS=$IFS; IFS='-'
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5502 if test "${ac_cv_path_SED+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5506 for ac_i in 1 2 3 4 5 6 7; do
5507 ac_script="$ac_script$as_nl$ac_script"
5509 echo "$ac_script" | sed 99q >conftest.sed
5510 $as_unset ac_script || ac_script=
5511 # Extract the first word of "sed gsed" to use in msg output
5512 if test -z "$SED"; then
5513 set dummy sed gsed; ac_prog_name=$2
5514 if test "${ac_cv_path_SED+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_path_SED_found=false
5518 # Loop through the user's path and test for each of PROGNAME-LIST
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_prog in sed gsed; do
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5527 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5528 # Check for GNU ac_path_SED and select it if it is found.
5529 # Check for GNU $ac_path_SED
5530 case `"$ac_path_SED" --version 2>&1` in
5532 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5535 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5538 cat "conftest.in" "conftest.in" >"conftest.tmp"
5539 mv "conftest.tmp" "conftest.in"
5540 cp "conftest.in" "conftest.nl"
5541 echo '' >> "conftest.nl"
5542 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5544 ac_count=`expr $ac_count + 1`
5545 if test $ac_count -gt ${ac_path_SED_max-0}; then
5546 # Best one so far, save it but keep looking for a better one
5547 ac_cv_path_SED="$ac_path_SED"
5548 ac_path_SED_max=$ac_count
5550 # 10*(2^10) chars as input seems more than enough
5551 test $ac_count -gt 10 && break
5553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5557 $ac_path_SED_found && break 3
5567 SED="$ac_cv_path_SED"
5568 if test -z "$SED"; then
5569 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5571 { (exit 1); exit 1; }; }
5579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5581 SED="$ac_cv_path_SED"
5584 test -z "$SED" && SED=sed
5585 Xsed="$SED -e 1s/^X//"
5597 { echo "$as_me:$LINENO: checking for fgrep" >&5
5598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_FGREP+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603 then ac_cv_path_FGREP="$GREP -F"
5605 # Extract the first word of "fgrep" to use in msg output
5606 if test -z "$FGREP"; then
5607 set dummy fgrep; ac_prog_name=$2
5608 if test "${ac_cv_path_FGREP+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 ac_path_FGREP_found=false
5612 # Loop through the user's path and test for each of PROGNAME-LIST
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5617 test -z "$as_dir" && as_dir=.
5618 for ac_prog in fgrep; do
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5621 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5622 # Check for GNU ac_path_FGREP and select it if it is found.
5623 # Check for GNU $ac_path_FGREP
5624 case `"$ac_path_FGREP" --version 2>&1` in
5626 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5632 cat "conftest.in" "conftest.in" >"conftest.tmp"
5633 mv "conftest.tmp" "conftest.in"
5634 cp "conftest.in" "conftest.nl"
5635 echo 'FGREP' >> "conftest.nl"
5636 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638 ac_count=`expr $ac_count + 1`
5639 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5640 # Best one so far, save it but keep looking for a better one
5641 ac_cv_path_FGREP="$ac_path_FGREP"
5642 ac_path_FGREP_max=$ac_count
5644 # 10*(2^10) chars as input seems more than enough
5645 test $ac_count -gt 10 && break
5647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 $ac_path_FGREP_found && break 3
5661 FGREP="$ac_cv_path_FGREP"
5662 if test -z "$FGREP"; then
5663 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5665 { (exit 1); exit 1; }; }
5669 ac_cv_path_FGREP=$FGREP
5675 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5676 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5677 FGREP="$ac_cv_path_FGREP"
5680 test -z "$GREP" && GREP=grep
5700 # Check whether --with-gnu-ld was given.
5701 if test "${with_gnu_ld+set}" = set; then
5702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5708 if test "$GCC" = yes; then
5709 # Check if gcc -print-prog-name=ld gives a path.
5710 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5714 # gcc leaves a trailing carriage return which upsets mingw
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5720 # Accept absolute paths.
5722 re_direlt='/[^/][^/]*/\.\./'
5723 # Canonicalize the pathname of ld
5724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5728 test -z "$LD" && LD="$ac_prog"
5731 # If it fails, then pretend we aren't using GCC.
5735 # If it is relative, then search for the first ld in PATH.
5739 elif test "$with_gnu_ld" = yes; then
5740 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5743 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_path_LD+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 if test -z "$LD"; then
5750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751 for ac_dir in $PATH; do
5753 test -z "$ac_dir" && ac_dir=.
5754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755 lt_cv_path_LD="$ac_dir/$ac_prog"
5756 # Check to see if the program is GNU ld. I'd rather use --version,
5757 # but apparently some variants of GNU ld only accept -v.
5758 # Break only if it was the GNU/non-GNU ld that we prefer.
5759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760 *GNU* | *'with BFD'*)
5761 test "$with_gnu_ld" != no && break
5764 test "$with_gnu_ld" != yes && break
5771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776 if test -n "$LD"; then
5777 { echo "$as_me:$LINENO: result: $LD" >&5
5778 echo "${ECHO_T}$LD" >&6; }
5780 { echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6; }
5783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5785 { (exit 1); exit 1; }; }
5786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794 lt_cv_prog_gnu_ld=yes
5797 lt_cv_prog_gnu_ld=no
5801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5813 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$NM"; then
5819 # Let the user override the test.
5822 lt_nm_to_check="${ac_tool_prefix}nm"
5823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824 lt_nm_to_check="$lt_nm_to_check nm"
5826 for lt_tmp_nm in $lt_nm_to_check; do
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5830 test -z "$ac_dir" && ac_dir=.
5831 tmp_nm="$ac_dir/$lt_tmp_nm"
5832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833 # Check to see if the nm accepts a BSD-compat flag.
5834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835 # nm: unknown option "B" ignored
5836 # Tru64's nm complains that /dev/null is an invalid object file
5837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838 */dev/null* | *'Invalid file or object type'*)
5839 lt_cv_path_NM="$tmp_nm -B"
5843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5845 lt_cv_path_NM="$tmp_nm -p"
5849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850 continue # so that we can try to find one that supports BSD flags
5859 : ${lt_cv_path_NM=no}
5862 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5863 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5867 # Didn't find any BSD compatible name lister, look for dumpbin.
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$DUMPBIN"; then
5879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5901 echo "${ECHO_T}$DUMPBIN" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 test -n "$DUMPBIN" && break
5911 if test -z "$DUMPBIN"; then
5912 ac_ct_DUMPBIN=$DUMPBIN
5913 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 if test -n "$ac_ct_DUMPBIN"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5945 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5952 test -n "$ac_ct_DUMPBIN" && break
5955 if test "x$ac_ct_DUMPBIN" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet. If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet. If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5968 DUMPBIN=$ac_ct_DUMPBIN
5973 if test "$DUMPBIN" != ":"; then
5977 test -z "$NM" && NM=nm
5984 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5985 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5986 if test "${lt_cv_nm_interface+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 lt_cv_nm_interface="BSD nm"
5990 echo "int some_variable = 0;" > conftest.$ac_ext
5991 (eval echo "\"\$as_me:5991: $ac_compile\"" >&5)
5992 (eval "$ac_compile" 2>conftest.err)
5993 cat conftest.err >&5
5994 (eval echo "\"\$as_me:5994: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5995 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5996 cat conftest.err >&5
5997 (eval echo "\"\$as_me:5997: output\"" >&5)
5998 cat conftest.out >&5
5999 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6000 lt_cv_nm_interface="MS dumpbin"
6004 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6005 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6007 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6010 if test "$LN_S" = "ln -s"; then
6011 { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6014 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015 echo "${ECHO_T}no, using $LN_S" >&6; }
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 # On DJGPP, this test can blow up pretty badly due to problems in libc
6030 # (any single argument exceeding 2000 bytes causes a buffer overrun
6031 # during glob expansion). Even if it were fixed, the result of this
6032 # check would be larger than it should be.
6033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6037 # Under GNU Hurd, this test is not required because there is
6038 # no limit to the length of command line arguments.
6039 # Libtool will interpret -1 as no limit whatsoever
6040 lt_cv_sys_max_cmd_len=-1;
6043 cygwin* | mingw* | cegcc*)
6044 # On Win9x/ME, this test blows up -- it succeeds, but takes
6045 # about 5 minutes as the teststring grows exponentially.
6046 # Worse, since 9x/ME are not pre-emptively multitasking,
6047 # you end up with a "frozen" computer, even though with patience
6048 # the test eventually succeeds (with a max line length of 256k).
6049 # Instead, let's just punt: use the minimum linelength reported by
6050 # all of the supported platforms: 8192 (on NT/2K/XP).
6051 lt_cv_sys_max_cmd_len=8192;
6055 # On AmigaOS with pdksh, this test takes hours, literally.
6056 # So we just punt and use a minimum line length of 8192.
6057 lt_cv_sys_max_cmd_len=8192;
6060 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061 # This has been around since 386BSD, at least. Likely further.
6062 if test -x /sbin/sysctl; then
6063 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064 elif test -x /usr/sbin/sysctl; then
6065 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6069 # And add a safety zone
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076 lt_cv_sys_max_cmd_len=196608
6080 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082 # nice to cause kernel panics so lets avoid the loop below.
6083 # First set a reasonable default.
6084 lt_cv_sys_max_cmd_len=16384
6086 if test -x /sbin/sysconfig; then
6087 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093 lt_cv_sys_max_cmd_len=102400
6095 sysv5* | sco5v6* | sysv4.2uw2*)
6096 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097 if test -n "$kargmax"; then
6098 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6100 lt_cv_sys_max_cmd_len=32768
6104 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6105 if test -n "$lt_cv_sys_max_cmd_len"; then
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109 # Make teststring a little bigger before we do anything with it.
6110 # a 1K string should be a reasonable start.
6111 for i in 1 2 3 4 5 6 7 8 ; do
6112 teststring=$teststring$teststring
6114 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115 # If test is not a shell built-in, we'll probably end up computing a
6116 # maximum length that is only half of the actual maximum length, but
6118 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6119 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6120 test $i != 17 # 1/2 MB should be enough
6123 teststring=$teststring$teststring
6125 # Only check the string length outside the loop.
6126 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6128 # Add a significant safety factor because C++ compilers can tack on
6129 # massive amounts of additional arguments before passing them to the
6130 # linker. It appears as though 1/2 is a usable value.
6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6138 if test -n $lt_cv_sys_max_cmd_len ; then
6139 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6142 { echo "$as_me:$LINENO: result: none" >&5
6143 echo "${ECHO_T}none" >&6; }
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6156 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6157 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6158 # Try some XSI features
6161 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6163 && eval 'test $(( 1 + 1 )) -eq 2 \
6164 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6166 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6167 echo "${ECHO_T}$xsi_shell" >&6; }
6170 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6171 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6173 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6175 && lt_shell_append=yes
6176 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6177 echo "${ECHO_T}$lt_shell_append" >&6; }
6180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6190 # test EBCDIC or ASCII
6191 case `echo X|tr X '\101'` in
6192 A) # ASCII based system
6193 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6194 lt_SP2NL='tr \040 \012'
6195 lt_NL2SP='tr \015\012 \040\040'
6197 *) # EBCDIC based system
6198 lt_SP2NL='tr \100 \n'
6199 lt_NL2SP='tr \r\n \100\100'
6211 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6213 if test "${lt_cv_ld_reload_flag+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 lt_cv_ld_reload_flag='-r'
6218 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6223 *) reload_flag=" $reload_flag" ;;
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6228 if test "$GCC" = yes; then
6229 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 if test -n "$OBJDUMP"; then
6253 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 OBJDUMP=$ac_cv_prog_OBJDUMP
6273 if test -n "$OBJDUMP"; then
6274 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6275 echo "${ECHO_T}$OBJDUMP" >&6; }
6277 { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6283 if test -z "$ac_cv_prog_OBJDUMP"; then
6284 ac_ct_OBJDUMP=$OBJDUMP
6285 # Extract the first word of "objdump", so it can be a program name with args.
6286 set dummy objdump; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 if test -n "$ac_ct_OBJDUMP"; then
6293 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6313 if test -n "$ac_ct_OBJDUMP"; then
6314 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6315 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6321 if test "x$ac_ct_OBJDUMP" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet. If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6334 OBJDUMP=$ac_ct_OBJDUMP
6337 OBJDUMP="$ac_cv_prog_OBJDUMP"
6340 test -z "$OBJDUMP" && OBJDUMP=objdump
6350 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6351 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6352 if test "${lt_cv_deplibs_check_method+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 lt_cv_file_magic_cmd='$MAGIC_CMD'
6356 lt_cv_file_magic_test_file=
6357 lt_cv_deplibs_check_method='unknown'
6358 # Need to set the preceding variable on all platforms that support
6359 # interlibrary dependencies.
6360 # 'none' -- dependencies not supported.
6361 # `unknown' -- same as none, but documents that we really don't know.
6362 # 'pass_all' -- all dependencies passed with no checks.
6363 # 'test_compile' -- check by making test program.
6364 # 'file_magic [[regex]]' -- check by looking for files in library path
6365 # which responds to the $file_magic_cmd with a given extended regex.
6366 # If you have `file' or equivalent on your system and you're not sure
6367 # whether `pass_all' will *always* work, you probably want this one.
6371 lt_cv_deplibs_check_method=pass_all
6375 lt_cv_deplibs_check_method=pass_all
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380 lt_cv_file_magic_cmd='/usr/bin/file -L'
6381 lt_cv_file_magic_test_file=/shlib/libc.so
6385 # func_win32_libid is a shell function defined in ltmain.sh
6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387 lt_cv_file_magic_cmd='func_win32_libid'
6391 # Base MSYS/MinGW do not provide the 'file' command needed by
6392 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393 # unless we find 'file', for example because we are cross-compiling.
6394 if ( file / ) >/dev/null 2>&1; then
6395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396 lt_cv_file_magic_cmd='func_win32_libid'
6398 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399 lt_cv_file_magic_cmd='$OBJDUMP -f'
6404 # use the weaker test based on 'objdump'. See mingw*.
6405 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406 lt_cv_file_magic_cmd='$OBJDUMP -f'
6409 darwin* | rhapsody*)
6410 lt_cv_deplibs_check_method=pass_all
6413 freebsd* | dragonfly*)
6414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6417 # Not sure whether the presence of OpenBSD here was a mistake.
6418 # Let's accept both of them until this is cleared up.
6419 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6425 lt_cv_deplibs_check_method=pass_all
6430 lt_cv_deplibs_check_method=pass_all
6433 hpux10.20* | hpux11*)
6434 lt_cv_file_magic_cmd=/usr/bin/file
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6456 irix5* | irix6* | nonstopux*)
6458 *-32|*"-32 ") libmagic=32-bit;;
6459 *-n32|*"-n32 ") libmagic=N32;;
6460 *-64|*"-64 ") libmagic=64-bit;;
6461 *) libmagic=never-match;;
6463 lt_cv_deplibs_check_method=pass_all
6466 # This must be Linux ELF.
6467 linux* | k*bsd*-gnu)
6468 lt_cv_deplibs_check_method=pass_all
6472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481 lt_cv_file_magic_cmd=/usr/bin/file
6482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6486 lt_cv_deplibs_check_method=pass_all
6490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497 osf3* | osf4* | osf5*)
6498 lt_cv_deplibs_check_method=pass_all
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510 lt_cv_deplibs_check_method=pass_all
6514 case $host_vendor in
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6520 lt_cv_deplibs_check_method=pass_all
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529 lt_cv_file_magic_test_file=/lib/libc.so
6532 lt_cv_deplibs_check_method=pass_all
6535 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method=pass_all
6546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_AR+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_AR="${ac_tool_prefix}ar"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 if test -n "$AR"; then
6593 { echo "$as_me:$LINENO: result: $AR" >&5
6594 echo "${ECHO_T}$AR" >&6; }
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6602 if test -z "$ac_cv_prog_AR"; then
6604 # Extract the first word of "ar", so it can be a program name with args.
6605 set dummy ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 if test -n "$ac_ct_AR"; then
6612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_AR="ar"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632 if test -n "$ac_ct_AR"; then
6633 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6634 echo "${ECHO_T}$ac_ct_AR" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6640 if test "x$ac_ct_AR" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet. If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet. If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_STRIP+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$STRIP"; then
6681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702 { echo "$as_me:$LINENO: result: $STRIP" >&5
6703 echo "${ECHO_T}$STRIP" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6711 if test -z "$ac_cv_prog_STRIP"; then
6713 # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 if test -n "$ac_ct_STRIP"; then
6721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_STRIP="strip"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749 if test "x$ac_ct_STRIP" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6765 STRIP="$ac_cv_prog_STRIP"
6768 test -z "$STRIP" && STRIP=:
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_RANLIB+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 if test -n "$RANLIB"; then
6784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 RANLIB=$ac_cv_prog_RANLIB
6804 if test -n "$RANLIB"; then
6805 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6806 echo "${ECHO_T}$RANLIB" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6814 if test -z "$ac_cv_prog_RANLIB"; then
6815 ac_ct_RANLIB=$RANLIB
6816 # Extract the first word of "ranlib", so it can be a program name with args.
6817 set dummy ranlib; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 if test -n "$ac_ct_RANLIB"; then
6824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_ac_ct_RANLIB="ranlib"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6846 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6852 if test "x$ac_ct_RANLIB" = x; then
6855 case $cross_compiling:$ac_tool_warned in
6857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet. If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&5
6860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet. If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6863 ac_tool_warned=yes ;;
6865 RANLIB=$ac_ct_RANLIB
6868 RANLIB="$ac_cv_prog_RANLIB"
6871 test -z "$RANLIB" && RANLIB=:
6878 # Determine commands to create old-style static archives.
6879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880 old_postinstall_cmds='chmod 644 $oldlib'
6881 old_postuninstall_cmds=
6883 if test -n "$RANLIB"; then
6886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6928 # If no C compiler was specified, use CC.
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6934 # Allow CC to be a program name with arguments.
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954 # Define system-specific variables.
6959 cygwin* | mingw* | pw32* | cegcc*)
6960 symcode='[ABCDGISTW]'
6963 if test "$host_cpu" = ia64; then
6964 symcode='[ABCDEGRST]'
6968 symcode='[BCDEGRST]'
6971 symcode='[BCDEGQRST]'
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993 symcode='[ABCDGIRSTW]' ;;
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7005 # Handle CRLF in mingw tool chain
7009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7013 # Try without a prefix underscore, then with it.
7014 for ac_symprfx in "" "_"; do
7016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7017 symxfrm="\\1 $ac_symprfx\\2 \\2"
7019 # Write the raw and C identifiers.
7020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021 # Fake it for dumpbin and say T for any non-static function
7022 # and D for any global variable.
7023 # Also find C++ and __fastcall symbols from MSVC++,
7024 # which start with @ or ?.
7025 lt_cv_sys_global_symbol_pipe="$AWK '"\
7026 " {last_section=section; section=\$ 3};"\
7027 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7028 " \$ 0!~/External *\|/{next};"\
7029 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7030 " {if(hide[section]) next};"\
7031 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7032 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7033 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7034 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7035 " ' prfx=^$ac_symprfx"
7037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7040 # Check to see that the pipe works correctly.
7044 cat > conftest.$ac_ext <<_LT_EOF
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; then
7062 # Now try to grab the symbols.
7064 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7065 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && test -s "$nlist"; then
7069 # Try sorting and uniquifying the output.
7070 if sort "$nlist" | uniq > "$nlist"T; then
7071 mv -f "$nlist"T "$nlist"
7076 # Make sure that we snagged all the symbols we need.
7077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079 cat <<_LT_EOF > conftest.$ac_ext
7085 # Now generate the symbol file.
7086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7088 cat <<_LT_EOF >> conftest.$ac_ext
7090 /* The mapping between symbol names and symbols. */
7095 lt__PROGRAM__LTX_preloaded_symbols[] =
7097 { "@PROGRAM@", (void *) 0 },
7099 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7100 cat <<\_LT_EOF >> conftest.$ac_ext
7104 /* This works around a problem in FreeBSD linker */
7105 #ifdef FREEBSD_WORKAROUND
7106 static const void *lt_preloaded_setup() {
7107 return lt__PROGRAM__LTX_preloaded_symbols;
7115 # Now try linking the two files.
7116 mv conftest.$ac_objext conftstm.$ac_objext
7117 lt_save_LIBS="$LIBS"
7118 lt_save_CFLAGS="$CFLAGS"
7119 LIBS="conftstm.$ac_objext"
7120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7128 LIBS="$lt_save_LIBS"
7129 CFLAGS="$lt_save_CFLAGS"
7131 echo "cannot find nm_test_func in $nlist" >&5
7134 echo "cannot find nm_test_var in $nlist" >&5
7137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7140 echo "$progname: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 rm -rf conftest* conftst*
7145 # Do not use the global_symbol_pipe unless it works.
7146 if test "$pipe_works" = yes; then
7149 lt_cv_sys_global_symbol_pipe=
7155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7156 lt_cv_sys_global_symbol_to_cdecl=
7158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7159 { echo "$as_me:$LINENO: result: failed" >&5
7160 echo "${ECHO_T}failed" >&6; }
7162 { echo "$as_me:$LINENO: result: ok" >&5
7163 echo "${ECHO_T}ok" >&6; }
7187 # Check whether --enable-libtool-lock was given.
7188 if test "${enable_libtool_lock+set}" = set; then
7189 enableval=$enable_libtool_lock;
7192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194 # Some flags need to be propagated to the compiler or linker for good
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 case `/usr/bin/file conftest.$ac_objext` in
7217 # Find out which ABI we are using.
7218 echo '#line 7218 "configure"' > conftest.$ac_ext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; then
7224 if test "$lt_cv_prog_gnu_ld" = yes; then
7225 case `/usr/bin/file conftest.$ac_objext` in
7227 LD="${LD-ld} -melf32bsmip"
7230 LD="${LD-ld} -melf32bmipn32"
7233 LD="${LD-ld} -melf64bmip"
7237 case `/usr/bin/file conftest.$ac_objext` in
7253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; then
7262 case `/usr/bin/file conftest.o` in
7265 x86_64-*kfreebsd*-gnu)
7266 LD="${LD-ld} -m elf_i386_fbsd"
7269 LD="${LD-ld} -m elf_i386"
7271 ppc64-*linux*|powerpc64-*linux*)
7272 LD="${LD-ld} -m elf32ppclinux"
7275 LD="${LD-ld} -m elf_s390"
7278 LD="${LD-ld} -m elf32_sparc"
7284 x86_64-*kfreebsd*-gnu)
7285 LD="${LD-ld} -m elf_x86_64_fbsd"
7288 LD="${LD-ld} -m elf_x86_64"
7290 ppc*-*linux*|powerpc*-*linux*)
7291 LD="${LD-ld} -m elf64ppc"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390"
7297 LD="${LD-ld} -m elf64_sparc"
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7312 if test "${lt_cv_cc_needs_belf+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_link") 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest$ac_exeext &&
7353 $as_test_x conftest$ac_exeext; then
7354 lt_cv_cc_needs_belf=yes
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 lt_cv_cc_needs_belf=no
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363 conftest$ac_exeext conftest.$ac_ext
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375 CFLAGS="$SAVE_CFLAGS"
7379 # Find out which ABI we are using.
7380 echo 'int i;' > conftest.$ac_ext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; then
7386 case `/usr/bin/file conftest.o` in
7388 case $lt_cv_prog_gnu_ld in
7389 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7403 need_locks="$enable_libtool_lock"
7407 rhapsody* | darwin*)
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 if test -n "$DSYMUTIL"; then
7417 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7439 echo "${ECHO_T}$DSYMUTIL" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448 ac_ct_DSYMUTIL=$DSYMUTIL
7449 # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 if test -n "$ac_ct_DSYMUTIL"; then
7457 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7479 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7485 if test "x$ac_ct_DSYMUTIL" = x; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7491 whose name does not start with the host triplet. If you think this
7492 configuration is useful to you, please write to autoconf@gnu.org." >&5
7493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet. If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7496 ac_tool_warned=yes ;;
7498 DSYMUTIL=$ac_ct_DSYMUTIL
7501 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7504 if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 if test -n "$NMEDIT"; then
7513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7535 echo "${ECHO_T}$NMEDIT" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544 ac_ct_NMEDIT=$NMEDIT
7545 # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 if test -n "$ac_ct_NMEDIT"; then
7553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7575 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7581 if test "x$ac_ct_NMEDIT" = x; then
7584 case $cross_compiling:$ac_tool_warned in
7586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7587 whose name does not start with the host triplet. If you think this
7588 configuration is useful to you, please write to autoconf@gnu.org." >&5
7589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet. If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7592 ac_tool_warned=yes ;;
7594 NMEDIT=$ac_ct_NMEDIT
7597 NMEDIT="$ac_cv_prog_NMEDIT"
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_prog_LIPO+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 if test -n "$LIPO"; then
7609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 LIPO=$ac_cv_prog_LIPO
7629 if test -n "$LIPO"; then
7630 { echo "$as_me:$LINENO: result: $LIPO" >&5
7631 echo "${ECHO_T}$LIPO" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7639 if test -z "$ac_cv_prog_LIPO"; then
7641 # Extract the first word of "lipo", so it can be a program name with args.
7642 set dummy lipo; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 if test -n "$ac_ct_LIPO"; then
7649 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_ac_ct_LIPO="lipo"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669 if test -n "$ac_ct_LIPO"; then
7670 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7671 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7677 if test "x$ac_ct_LIPO" = x; then
7680 case $cross_compiling:$ac_tool_warned in
7682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683 whose name does not start with the host triplet. If you think this
7684 configuration is useful to you, please write to autoconf@gnu.org." >&5
7685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet. If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7688 ac_tool_warned=yes ;;
7693 LIPO="$ac_cv_prog_LIPO"
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}otool; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_prog_OTOOL+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 if test -n "$OTOOL"; then
7705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 OTOOL=$ac_cv_prog_OTOOL
7725 if test -n "$OTOOL"; then
7726 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7727 echo "${ECHO_T}$OTOOL" >&6; }
7729 { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7735 if test -z "$ac_cv_prog_OTOOL"; then
7737 # Extract the first word of "otool", so it can be a program name with args.
7738 set dummy otool; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 if test -n "$ac_ct_OTOOL"; then
7745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_ac_ct_OTOOL="otool"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7765 if test -n "$ac_ct_OTOOL"; then
7766 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7767 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7769 { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7773 if test "x$ac_ct_OTOOL" = x; then
7776 case $cross_compiling:$ac_tool_warned in
7778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7779 whose name does not start with the host triplet. If you think this
7780 configuration is useful to you, please write to autoconf@gnu.org." >&5
7781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet. If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7784 ac_tool_warned=yes ;;
7789 OTOOL="$ac_cv_prog_OTOOL"
7792 if test -n "$ac_tool_prefix"; then
7793 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test -n "$OTOOL64"; then
7801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 OTOOL64=$ac_cv_prog_OTOOL64
7821 if test -n "$OTOOL64"; then
7822 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7823 echo "${ECHO_T}$OTOOL64" >&6; }
7825 { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7831 if test -z "$ac_cv_prog_OTOOL64"; then
7832 ac_ct_OTOOL64=$OTOOL64
7833 # Extract the first word of "otool64", so it can be a program name with args.
7834 set dummy otool64; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 if test -n "$ac_ct_OTOOL64"; then
7841 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_prog_ac_ct_OTOOL64="otool64"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7861 if test -n "$ac_ct_OTOOL64"; then
7862 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7863 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7869 if test "x$ac_ct_OTOOL64" = x; then
7872 case $cross_compiling:$ac_tool_warned in
7874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7875 whose name does not start with the host triplet. If you think this
7876 configuration is useful to you, please write to autoconf@gnu.org." >&5
7877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7880 ac_tool_warned=yes ;;
7882 OTOOL64=$ac_ct_OTOOL64
7885 OTOOL64="$ac_cv_prog_OTOOL64"
7914 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7915 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 lt_cv_apple_cc_single_mod=no
7920 if test -z "${LT_MULTI_MODULE}"; then
7921 # By default we will add the -single_module flag. You can override
7922 # by either setting the environment variable LT_MULTI_MODULE
7923 # non-empty at configure time, or by adding -multi_module to the
7925 rm -rf libconftest.dylib*
7926 echo "int foo(void){return 1;}" > conftest.c
7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7932 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933 lt_cv_apple_cc_single_mod=yes
7935 cat conftest.err >&5
7937 rm -rf libconftest.dylib*
7941 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7942 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7943 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7944 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 lt_cv_ld_exported_symbols_list=no
7949 save_LDFLAGS=$LDFLAGS
7950 echo "_main" > conftest.sym
7951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_link") 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest$ac_exeext &&
7984 $as_test_x conftest$ac_exeext; then
7985 lt_cv_ld_exported_symbols_list=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 lt_cv_ld_exported_symbols_list=no
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LDFLAGS="$save_LDFLAGS"
7998 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7999 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8001 rhapsody* | darwin1.[012])
8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005 darwin*) # darwin 5.x on
8006 # if running on 10.5 or later, the deployment target defaults
8007 # to the OS version, if on x86, and 10.4, the deployment
8008 # target defaults to 10.4. Don't you love it?
8009 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020 _lt_dar_single_mod='$single_module'
8022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8025 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027 if test "$DSYMUTIL" != ":"; then
8028 _lt_dsymutil='~$DSYMUTIL $lib || :'
8035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8037 if test "${ac_cv_header_stdc+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest.$ac_objext; then
8076 ac_cv_header_stdc=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_header_stdc=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 if test $ac_cv_header_stdc = yes; then
8087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then
8101 ac_cv_header_stdc=no
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then
8122 ac_cv_header_stdc=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 # define ISLOWER(c) \
8146 (('a' <= (c) && (c) <= 'i') \
8147 || ('j' <= (c) && (c) <= 'r') \
8148 || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 for (i = 0; i < 256; i++)
8158 if (XOR (islower (i), ISLOWER (i))
8159 || toupper (i) != TOUPPER (i))
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8186 echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_header_stdc=no
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220 inttypes.h stdint.h unistd.h
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8236 #include <$ac_header>
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_compile") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest.$ac_objext; then
8255 eval "$as_ac_Header=yes"
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 eval "$as_ac_Header=no"
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8279 for ac_header in dlfcn.h
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 $ac_includes_default
8295 #include <$ac_header>
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
8314 eval "$as_ac_Header=yes"
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 eval "$as_ac_Header=no"
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325 { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8339 ac_cpp='$CXXCPP $CPPFLAGS'
8340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8343 if test -z "$CXX"; then
8344 if test -n "$CCC"; then
8347 if test -n "$ac_tool_prefix"; then
8348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CXX+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 if test -n "$CXX"; then
8358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 if test -n "$CXX"; then
8379 { echo "$as_me:$LINENO: result: $CXX" >&5
8380 echo "${ECHO_T}$CXX" >&6; }
8382 { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8387 test -n "$CXX" && break
8390 if test -z "$CXX"; then
8392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 if test -n "$ac_ct_CXX"; then
8402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_ac_ct_CXX="$ac_prog"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8422 if test -n "$ac_ct_CXX"; then
8423 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8431 test -n "$ac_ct_CXX" && break
8434 if test "x$ac_ct_CXX" = x; then
8437 case $cross_compiling:$ac_tool_warned in
8439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet. If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&5
8442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet. If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8445 ac_tool_warned=yes ;;
8453 # Provide some information about the compiler.
8454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8455 ac_compiler=`set X $ac_compile; echo $2`
8456 { (ac_try="$ac_compiler --version >&5"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compiler --version >&5") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }
8466 { (ac_try="$ac_compiler -v >&5"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compiler -v >&5") 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }
8476 { (ac_try="$ac_compiler -V >&5"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compiler -V >&5") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }
8487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_cxx_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8541 GXX=`test $ac_compiler_gnu = yes && echo yes`
8542 ac_test_CXXFLAGS=${CXXFLAGS+set}
8543 ac_save_CXXFLAGS=$CXXFLAGS
8544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8546 if test "${ac_cv_prog_cxx_g+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8550 ac_cxx_werror_flag=yes
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_cxx_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_prog_cxx_g=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_cxx_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.$ac_objext; then
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_cxx_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8662 ac_cv_prog_cxx_g=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8681 if test "$ac_test_CXXFLAGS" = set; then
8682 CXXFLAGS=$ac_save_CXXFLAGS
8683 elif test $ac_cv_prog_cxx_g = yes; then
8684 if test "$GXX" = yes; then
8690 if test "$GXX" = yes; then
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8703 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8704 (test "X$CXX" != "Xg++"))) ; then
8706 ac_cpp='$CXXCPP $CPPFLAGS'
8707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8710 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8711 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8712 if test -z "$CXXCPP"; then
8713 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 # Double quotes because CXXCPP needs to be expanded
8717 for CXXCPP in "$CXX -E" "/lib/cpp"
8720 for ac_cxx_preproc_warn_flag in '' yes
8722 # Use a header file that comes with gcc, so configuring glibc
8723 # with a fresh cross-compiler works.
8724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 # <limits.h> exists even on freestanding compilers.
8726 # On the NeXT, cc -E runs the code through the compiler's parser,
8727 # not just through cpp. "Syntax error" is here to catch this case.
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8735 # include <limits.h>
8737 # include <assert.h>
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
8754 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755 test ! -s conftest.err
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 # Broken: fails on valid input.
8766 rm -f conftest.err conftest.$ac_ext
8768 # OK, works on sane cases. Now check whether nonexistent headers
8769 # can be detected and how.
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 #include <ac_nonexistent.h>
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null && {
8791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792 test ! -s conftest.err
8794 # Broken: success on invalid input.
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 # Passes both tests.
8805 rm -f conftest.err conftest.$ac_ext
8808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8809 rm -f conftest.err conftest.$ac_ext
8810 if $ac_preproc_ok; then
8815 ac_cv_prog_CXXCPP=$CXXCPP
8818 CXXCPP=$ac_cv_prog_CXXCPP
8820 ac_cv_prog_CXXCPP=$CXXCPP
8822 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8823 echo "${ECHO_T}$CXXCPP" >&6; }
8825 for ac_cxx_preproc_warn_flag in '' yes
8827 # Use a header file that comes with gcc, so configuring glibc
8828 # with a fresh cross-compiler works.
8829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8830 # <limits.h> exists even on freestanding compilers.
8831 # On the NeXT, cc -E runs the code through the compiler's parser,
8832 # not just through cpp. "Syntax error" is here to catch this case.
8833 cat >conftest.$ac_ext <<_ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8840 # include <limits.h>
8842 # include <assert.h>
8846 if { (ac_try="$ac_cpp conftest.$ac_ext"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } >/dev/null && {
8859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8860 test ! -s conftest.err
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 # Broken: fails on valid input.
8871 rm -f conftest.err conftest.$ac_ext
8873 # OK, works on sane cases. Now check whether nonexistent headers
8874 # can be detected and how.
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 #include <ac_nonexistent.h>
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } >/dev/null && {
8896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8897 test ! -s conftest.err
8899 # Broken: success on invalid input.
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 # Passes both tests.
8910 rm -f conftest.err conftest.$ac_ext
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8918 _lt_caught_CXX_error=yes
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928 _lt_caught_CXX_error=yes
8936 # Check whether --enable-shared was given.
8937 if test "${enable_shared+set}" = set; then
8938 enableval=$enable_shared; p=${PACKAGE-default}
8940 yes) enable_shared=yes ;;
8941 no) enable_shared=no ;;
8944 # Look at the argument we got. We use all the common list separators.
8945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946 for pkg in $enableval; do
8948 if test "X$pkg" = "X$p"; then
8965 # Check whether --enable-static was given.
8966 if test "${enable_static+set}" = set; then
8967 enableval=$enable_static; p=${PACKAGE-default}
8969 yes) enable_static=yes ;;
8970 no) enable_static=no ;;
8973 # Look at the argument we got. We use all the common list separators.
8974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975 for pkg in $enableval; do
8977 if test "X$pkg" = "X$p"; then
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then
9008 withval=$with_pic; pic_mode="$withval"
9014 test -z "$pic_mode" && pic_mode=default
9022 # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then
9024 enableval=$enable_fast_install; p=${PACKAGE-default}
9026 yes) enable_fast_install=yes ;;
9027 no) enable_fast_install=no ;;
9029 enable_fast_install=no
9030 # Look at the argument we got. We use all the common list separators.
9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032 for pkg in $enableval; do
9034 if test "X$pkg" = "X$p"; then
9035 enable_fast_install=yes
9042 enable_fast_install=yes
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9085 test -z "$LN_S" && LN_S="ln -s"
9100 if test -n "${ZSH_VERSION+set}" ; then
9101 setopt NO_GLOB_SUBST
9104 { echo "$as_me:$LINENO: checking for objdir" >&5
9105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9106 if test "${lt_cv_objdir+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 rm -f .libs 2>/dev/null
9110 mkdir .libs 2>/dev/null
9111 if test -d .libs; then
9114 # MS-DOS does not allow filenames that begin with a dot.
9117 rmdir .libs 2>/dev/null
9119 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9120 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9121 objdir=$lt_cv_objdir
9127 cat >>confdefs.h <<_ACEOF
9128 #define LT_OBJDIR "$lt_cv_objdir/"
9149 # AIX sometimes has problems with the GCC collect2 program. For some
9150 # reason, if we set the COLLECT_NAMES environment variable, the problems
9151 # vanish in a puff of smoke.
9152 if test "X${COLLECT_NAMES+set}" != Xset; then
9154 export COLLECT_NAMES
9159 # Sed substitution that helps us do robust quoting. It backslashifies
9160 # metacharacters that are still active within double-quoted strings.
9161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9163 # Same as above, but do not quote variable references.
9164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9166 # Sed substitution to delay expansion of an escaped shell variable in a
9167 # double_quote_subst'ed string.
9168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9170 # Sed substitution to delay expansion of an escaped single quote.
9171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9173 # Sed substitution to avoid accidental globbing in evaled expressions
9174 no_glob_subst='s/\*/\\\*/g'
9178 can_build_shared=yes
9180 # All known linkers require a `.a' archive for static linking (except MSVC,
9181 # which needs '.lib').
9184 with_gnu_ld="$lt_cv_prog_gnu_ld"
9187 old_CFLAGS="$CFLAGS"
9189 # Set sane defaults for various variables
9190 test -z "$CC" && CC=cc
9191 test -z "$LTCC" && LTCC=$CC
9192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9193 test -z "$LD" && LD=ld
9194 test -z "$ac_objext" && ac_objext=o
9196 for cc_temp in $compiler""; do
9198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9207 # Only perform the check for file, if the check method requires it
9208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9209 case $deplibs_check_method in
9211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9212 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9222 lt_save_MAGIC_CMD="$MAGIC_CMD"
9223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225 for ac_dir in $ac_dummy; do
9227 test -z "$ac_dir" && ac_dir=.
9228 if test -f $ac_dir/${ac_tool_prefix}file; then
9229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9230 if test -n "$file_magic_test_file"; then
9231 case $deplibs_check_method in
9233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236 $EGREP "$file_magic_regex" > /dev/null; then
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such. This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem. Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9258 MAGIC_CMD="$lt_save_MAGIC_CMD"
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9268 { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9276 if test -z "$lt_cv_path_MAGIC_CMD"; then
9277 if test -n "$ac_tool_prefix"; then
9278 { echo "$as_me:$LINENO: checking for file" >&5
9279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9288 lt_save_MAGIC_CMD="$MAGIC_CMD"
9289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291 for ac_dir in $ac_dummy; do
9293 test -z "$ac_dir" && ac_dir=.
9294 if test -f $ac_dir/file; then
9295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9296 if test -n "$file_magic_test_file"; then
9297 case $deplibs_check_method in
9299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302 $EGREP "$file_magic_regex" > /dev/null; then
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such. This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem. Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9324 MAGIC_CMD="$lt_save_MAGIC_CMD"
9329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330 if test -n "$MAGIC_CMD"; then
9331 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9334 { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9348 # Use C for the default configuration in the libtool script
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9358 # Source file extension for C test sources.
9361 # Object file extension for compiled C test sources.
9365 # Code to be used in simple compile tests
9366 lt_simple_compile_test_code="int some_variable = 0;"
9368 # Code to be used in simple link tests
9369 lt_simple_link_test_code='int main(){return(0);}'
9377 # If no C compiler was specified, use CC.
9380 # If no C compiler flags were specified, use CFLAGS.
9381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9383 # Allow CC to be a program name with arguments.
9386 # Save the default compiler, since it gets overwritten when the other
9387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9388 compiler_DEFAULT=$CC
9390 # save warnings/boilerplate of simple test code
9391 ac_outfile=conftest.$ac_objext
9392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9394 _lt_compiler_boilerplate=`cat conftest.err`
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_linker_boilerplate=`cat conftest.err`
9405 ## There is no encapsulation within the following macros, do not change
9406 ## the running order or otherwise move them around unless you know exactly
9407 ## what you are doing...
9408 if test -n "$compiler"; then
9410 lt_prog_compiler_no_builtin_flag=
9412 if test "$GCC" = yes; then
9413 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9415 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 lt_cv_prog_compiler_rtti_exceptions=no
9421 ac_outfile=conftest.$ac_objext
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423 lt_compiler_flag="-fno-rtti -fno-exceptions"
9424 # Insert the option either (1) after the last *FLAGS variable, or
9425 # (2) before a word containing "conftest.", or (3) at the end.
9426 # Note that $ac_compile itself does not contain backslashes and begins
9427 # with a dollar sign (not a hyphen), so the echo should work correctly.
9428 # The option is referenced via a variable to avoid confusing sed.
9429 lt_compile=`echo "$ac_compile" | $SED \
9430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432 -e 's:$: $lt_compiler_flag:'`
9433 (eval echo "\"\$as_me:9433: $lt_compile\"" >&5)
9434 (eval "$lt_compile" 2>conftest.err)
9436 cat conftest.err >&5
9437 echo "$as_me:9437: \$? = $ac_status" >&5
9438 if (exit $ac_status) && test -s "$ac_outfile"; then
9439 # The compiler can only warn and ignore the option if not recognized
9440 # So say no if there are warnings other than the usual output.
9441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444 lt_cv_prog_compiler_rtti_exceptions=yes
9450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9454 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9466 lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9473 if test "$GCC" = yes; then
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_static='-static'
9479 # All AIX code is PIC.
9480 if test "$host_cpu" = ia64; then
9481 # AIX 5 now supports IA64 processor
9482 lt_prog_compiler_static='-Bstatic'
9489 # see comment about AmigaOS4 .so support
9490 lt_prog_compiler_pic='-fPIC'
9493 # FIXME: we need at least 68020 code to build shared libraries, but
9494 # adding the `-m68020' flag to GCC prevents building anything better,
9496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502 # PIC is the default for these OSes.
9505 mingw* | cygwin* | pw32* | os2* | cegcc*)
9506 # This hack is so that the source file can tell whether it is being
9507 # built for inclusion in a dll (and should export symbols for example).
9508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9509 # (--disable-auto-import) libraries
9510 lt_prog_compiler_pic='-DDLL_EXPORT'
9513 darwin* | rhapsody*)
9514 # PIC is the default on this platform
9515 # Common symbols not allowed in MH_DYLIB files
9516 lt_prog_compiler_pic='-fno-common'
9520 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9521 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9522 # sets the default TLS model and affects inlining.
9528 lt_prog_compiler_pic='-fPIC'
9534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9535 # Instead, we relocate shared libraries at runtime.
9539 # Just because we use GCC doesn't mean we suddenly get shared libraries
9540 # on systems that don't support them.
9541 lt_prog_compiler_can_build_shared=no
9546 # QNX uses GNU C++, but need to define -shared option too, otherwise
9548 lt_prog_compiler_pic='-fPIC -shared'
9552 if test -d /usr/nec; then
9553 lt_prog_compiler_pic=-Kconform_pic
9558 lt_prog_compiler_pic='-fPIC'
9562 # PORTME Check for flag to pass linker flags through the system compiler.
9565 lt_prog_compiler_wl='-Wl,'
9566 if test "$host_cpu" = ia64; then
9567 # AIX 5 now supports IA64 processor
9568 lt_prog_compiler_static='-Bstatic'
9570 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574 mingw* | cygwin* | pw32* | os2* | cegcc*)
9575 # This hack is so that the source file can tell whether it is being
9576 # built for inclusion in a dll (and should export symbols for example).
9577 lt_prog_compiler_pic='-DDLL_EXPORT'
9580 hpux9* | hpux10* | hpux11*)
9581 lt_prog_compiler_wl='-Wl,'
9582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9589 lt_prog_compiler_pic='+Z'
9592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9593 lt_prog_compiler_static='${wl}-a ${wl}archive'
9596 irix5* | irix6* | nonstopux*)
9597 lt_prog_compiler_wl='-Wl,'
9598 # PIC (with -KPIC) is the default.
9599 lt_prog_compiler_static='-non_shared'
9602 linux* | k*bsd*-gnu)
9603 case $cc_basename in
9604 # old Intel for x86_64 which still supported -KPIC.
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-KPIC'
9608 lt_prog_compiler_static='-static'
9610 # icc used to be incompatible with GCC.
9611 # ICC 10 doesn't accept -KPIC any more.
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-fPIC'
9615 lt_prog_compiler_static='-static'
9617 # Lahey Fortran 8.1.
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='--shared'
9621 lt_prog_compiler_static='--static'
9623 pgcc* | pgf77* | pgf90* | pgf95*)
9624 # Portland Group compilers (*not* the Pentium gcc compiler,
9625 # which looks to be a dead project)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-fpic'
9628 lt_prog_compiler_static='-Bstatic'
9631 lt_prog_compiler_wl='-Wl,'
9632 # All Alpha code is PIC.
9633 lt_prog_compiler_static='-non_shared'
9636 # IBM XL C 8.0/Fortran 10.1 on PPC
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_pic='-qpic'
9639 lt_prog_compiler_static='-qstaticlink'
9642 case `$CC -V 2>&1 | sed 5q` in
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-Bstatic'
9647 lt_prog_compiler_wl='-Wl,'
9650 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 lt_prog_compiler_wl=''
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9666 # QNX uses GNU C++, but need to define -shared option too, otherwise
9668 lt_prog_compiler_pic='-fPIC -shared'
9671 osf3* | osf4* | osf5*)
9672 lt_prog_compiler_wl='-Wl,'
9673 # All OSF/1 code is PIC.
9674 lt_prog_compiler_static='-non_shared'
9678 lt_prog_compiler_static='-non_shared'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-Bstatic'
9684 case $cc_basename in
9686 lt_prog_compiler_wl='-Qoption ld ';;
9688 lt_prog_compiler_wl='-Wl,';;
9693 lt_prog_compiler_wl='-Qoption ld '
9694 lt_prog_compiler_pic='-PIC'
9695 lt_prog_compiler_static='-Bstatic'
9698 sysv4 | sysv4.2uw2* | sysv4.3*)
9699 lt_prog_compiler_wl='-Wl,'
9700 lt_prog_compiler_pic='-KPIC'
9701 lt_prog_compiler_static='-Bstatic'
9705 if test -d /usr/nec ;then
9706 lt_prog_compiler_pic='-Kconform_pic'
9707 lt_prog_compiler_static='-Bstatic'
9711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-KPIC'
9714 lt_prog_compiler_static='-Bstatic'
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_can_build_shared=no
9723 lt_prog_compiler_pic='-pic'
9724 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_can_build_shared=no
9734 # For platforms which do not support PIC, -DPIC is meaningless:
9736 lt_prog_compiler_pic=
9739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9751 # Check to make sure the PIC flag actually works.
9753 if test -n "$lt_prog_compiler_pic"; then
9754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 lt_cv_prog_compiler_pic_works=no
9760 ac_outfile=conftest.$ac_objext
9761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9763 # Insert the option either (1) after the last *FLAGS variable, or
9764 # (2) before a word containing "conftest.", or (3) at the end.
9765 # Note that $ac_compile itself does not contain backslashes and begins
9766 # with a dollar sign (not a hyphen), so the echo should work correctly.
9767 # The option is referenced via a variable to avoid confusing sed.
9768 lt_compile=`echo "$ac_compile" | $SED \
9769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771 -e 's:$: $lt_compiler_flag:'`
9772 (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773 (eval "$lt_compile" 2>conftest.err)
9775 cat conftest.err >&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 if (exit $ac_status) && test -s "$ac_outfile"; then
9778 # The compiler can only warn and ignore the option if not recognized
9779 # So say no if there are warnings other than the usual output.
9780 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9783 lt_cv_prog_compiler_pic_works=yes
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9793 case $lt_prog_compiler_pic in
9795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9798 lt_prog_compiler_pic=
9799 lt_prog_compiler_can_build_shared=no
9810 # Check to make sure the static flag actually works.
9812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 lt_cv_prog_compiler_static_works=no
9819 save_LDFLAGS="$LDFLAGS"
9820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler_static_works=yes
9834 lt_cv_prog_compiler_static_works=yes
9838 LDFLAGS="$save_LDFLAGS"
9841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9847 lt_prog_compiler_static=
9856 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 lt_cv_prog_compiler_c_o=no
9862 $RM -r conftest 2>/dev/null
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868 lt_compiler_flag="-o out/conftest2.$ac_objext"
9869 # Insert the option either (1) after the last *FLAGS variable, or
9870 # (2) before a word containing "conftest.", or (3) at the end.
9871 # Note that $ac_compile itself does not contain backslashes and begins
9872 # with a dollar sign (not a hyphen), so the echo should work correctly.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>out/conftest.err)
9880 cat out/conftest.err >&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884 # The compiler can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler_c_o=yes
9894 # SGI C++ compiler will create directory out/ii_files/ for
9895 # template instantiation
9896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897 $RM out/* && rmdir out
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9911 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 lt_cv_prog_compiler_c_o=no
9917 $RM -r conftest 2>/dev/null
9921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9923 lt_compiler_flag="-o out/conftest2.$ac_objext"
9924 # Insert the option either (1) after the last *FLAGS variable, or
9925 # (2) before a word containing "conftest.", or (3) at the end.
9926 # Note that $ac_compile itself does not contain backslashes and begins
9927 # with a dollar sign (not a hyphen), so the echo should work correctly.
9928 lt_compile=`echo "$ac_compile" | $SED \
9929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931 -e 's:$: $lt_compiler_flag:'`
9932 (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933 (eval "$lt_compile" 2>out/conftest.err)
9935 cat out/conftest.err >&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9939 # The compiler can only warn and ignore the option if not recognized
9940 # So say no if there are warnings
9941 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944 lt_cv_prog_compiler_c_o=yes
9949 # SGI C++ compiler will create directory out/ii_files/ for
9950 # template instantiation
9951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952 $RM out/* && rmdir out
9958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9964 hard_links="nottested"
9965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966 # do not overwrite the value of need_locks provided by the user
9967 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973 ln conftest.a conftest.b 2>&5 || hard_links=no
9974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975 { echo "$as_me:$LINENO: result: $hard_links" >&5
9976 echo "${ECHO_T}$hard_links" >&6; }
9977 if test "$hard_links" = no; then
9978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9991 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9995 allow_undefined_flag=
9996 always_export_symbols=no
9998 archive_expsym_cmds=
9999 compiler_needs_object=no
10000 enable_shared_with_static_runtimes=no
10001 export_dynamic_flag_spec=
10002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003 hardcode_automatic=no
10005 hardcode_direct_absolute=no
10006 hardcode_libdir_flag_spec=
10007 hardcode_libdir_flag_spec_ld=
10008 hardcode_libdir_separator=
10009 hardcode_minus_L=no
10010 hardcode_shlibpath_var=unsupported
10012 link_all_deplibs=unknown
10014 module_expsym_cmds=
10015 old_archive_from_new_cmds=
10016 old_archive_from_expsyms_cmds=
10017 thread_safe_flag_spec=
10018 whole_archive_flag_spec=
10019 # include_expsyms should be a list of space-separated symbols to be *always*
10020 # included in the symbol list
10022 # exclude_expsyms can be an extended regexp of symbols to exclude
10023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10025 # as well as any symbol that contains `d'.
10026 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10028 # platforms (ab)use it in PIC code, but their linkers get confused if
10029 # the symbol is explicitly referenced. Since portable code cannot
10030 # rely on this symbol name, it's probably fine to never include it in
10031 # preloaded symbol tables.
10032 # Exclude shared library initialization/finalization symbols.
10033 extract_expsyms_cmds=
10036 cygwin* | mingw* | pw32* | cegcc*)
10037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10038 # When not using gcc, we currently assume that we are using
10039 # Microsoft Visual C++.
10040 if test "$GCC" != yes; then
10045 # we just hope/assume this is gcc and not c89 (= MSVC++)
10054 if test "$with_gnu_ld" = yes; then
10055 # If archive_cmds runs LD, not CC, wlarc should be empty
10058 # Set some defaults for GNU ld with shared library support. These
10059 # are reset later if shared libraries are not supported. Putting them
10060 # here allows them to be overridden if necessary.
10061 runpath_var=LD_RUN_PATH
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 export_dynamic_flag_spec='${wl}--export-dynamic'
10064 # ancient GNU ld didn't support --whole-archive et. al.
10065 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10068 whole_archive_flag_spec=
10070 supports_anon_versioning=no
10071 case `$LD -v 2>&1` in
10072 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10074 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10075 *\ 2.11.*) ;; # other 2.11 versions
10076 *) supports_anon_versioning=yes ;;
10079 # See if GNU ld supports shared libraries.
10082 # On AIX/PPC, the GNU linker is very broken
10083 if test "$host_cpu" != ia64; then
10087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10088 *** to be unable to reliably create shared libraries on AIX.
10089 *** Therefore, libtool is disabling shared libraries support. If you
10090 *** really care for shared libraries, you may want to modify your PATH
10091 *** so that a non-GNU linker is found, and then restart.
10100 # see comment about AmigaOS4 .so support
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds=''
10105 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114 allow_undefined_flag=unsupported
10115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10116 # support --undefined. This deserves some investigation. FIXME
10117 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 cygwin* | mingw* | pw32* | cegcc*)
10124 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10125 # as there is no search path for DLLs.
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 allow_undefined_flag=unsupported
10128 always_export_symbols=no
10129 enable_shared_with_static_runtimes=yes
10130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134 # If the export-symbols file already is a .def file (1st line
10135 # is EXPORTS), use it as is; otherwise, prepend...
10136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10137 cp $export_symbols $output_objdir/$soname.def;
10139 echo EXPORTS > $output_objdir/$soname.def;
10140 cat $export_symbols >> $output_objdir/$soname.def;
10142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150 hardcode_shlibpath_var=no
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154 # Instead, shared libraries are loaded at an image base (0x10000000 by
10155 # default) and relocated if they conflict, which is a slow very memory
10156 # consuming and fragmenting process. To avoid this, we pick a random,
10157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163 gnu* | linux* | tpf* | k*bsd*-gnu)
10165 if test "$host_os" = linux-dietlibc; then
10166 case $cc_basename in
10167 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10170 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171 && test "$tmp_diet" = no
10174 tmp_sharedflag='-shared'
10175 case $cc_basename,$host_cpu in
10176 pgcc*) # Portland Group C compiler
10177 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10178 tmp_addflag=' $pic_flag'
10180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10181 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182 tmp_addflag=' $pic_flag -Mnomain' ;;
10183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10184 tmp_addflag=' -i_dynamic' ;;
10185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10186 tmp_addflag=' -i_dynamic -nofor_main' ;;
10187 ifc* | ifort*) # Intel Fortran compiler
10188 tmp_addflag=' -nofor_main' ;;
10189 lf95*) # Lahey Fortran 8.1
10190 whole_archive_flag_spec=
10191 tmp_sharedflag='--shared' ;;
10192 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10193 tmp_sharedflag='-qmkshrobj'
10196 case `$CC -V 2>&1 | sed 5q` in
10197 *Sun\ C*) # Sun C 5.9
10198 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10199 compiler_needs_object=yes
10200 tmp_sharedflag='-G' ;;
10201 *Sun\ F*) # Sun Fortran 8.3
10202 tmp_sharedflag='-G' ;;
10204 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 if test "x$supports_anon_versioning" = xyes; then
10207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209 echo "local: *; };" >> $output_objdir/$libname.ver~
10210 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10213 case $cc_basename in
10215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10216 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10217 hardcode_libdir_flag_spec=
10218 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10219 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10220 if test "x$supports_anon_versioning" = xyes; then
10221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223 echo "local: *; };" >> $output_objdir/$libname.ver~
10224 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems. Therefore, libtool
10250 *** is disabling shared libraries support. We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer. Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265 case `$LD -v 2>&1` in
10266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems. Therefore, libtool
10272 *** is disabling shared libraries support. We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10280 # For security reasons, it is highly recommended that you always
10281 # use absolute paths for naming shared libraries, and exclude the
10282 # DT_RUNPATH tag from executables and libraries. But doing so
10283 # requires that you compile everything twice, which is a pain.
10284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312 if test "$ld_shlibs" = no; then
10314 hardcode_libdir_flag_spec=
10315 export_dynamic_flag_spec=
10316 whole_archive_flag_spec=
10319 # PORTME fill in a description of your system's linker (not GNU ld)
10322 allow_undefined_flag=unsupported
10323 always_export_symbols=yes
10324 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10325 # Note: this linker hardcodes the directories in LIBPATH if there
10326 # are no directories specified by -L.
10327 hardcode_minus_L=yes
10328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329 # Neither direct hardcoding nor static linking is supported with a
10331 hardcode_direct=unsupported
10336 if test "$host_cpu" = ia64; then
10337 # On IA64, the linker does run time linking by default, so we don't
10338 # have to do anything special.
10339 aix_use_runtimelinking=no
10340 exp_sym_flag='-Bexport'
10343 # If we're using GNU nm, then we don't want the "-C" option.
10344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10348 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10350 aix_use_runtimelinking=no
10352 # Test if we are trying to use run time linking or normal
10353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354 # need to do runtime linking.
10355 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10356 for ld_flag in $LDFLAGS; do
10357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10358 aix_use_runtimelinking=yes
10365 exp_sym_flag='-bexport'
10366 no_entry_flag='-bnoentry'
10369 # When large executables or shared objects are built, AIX ld can
10370 # have problems creating the table of contents. If linking a library
10371 # or program results in "error TOC overflow" add -mminimal-toc to
10372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10376 hardcode_direct=yes
10377 hardcode_direct_absolute=yes
10378 hardcode_libdir_separator=':'
10379 link_all_deplibs=yes
10380 file_list_spec='${wl}-f,'
10382 if test "$GCC" = yes; then
10383 case $host_os in aix4.[012]|aix4.[012].*)
10384 # We only want to do this on AIX 4.2 and lower, the check
10385 # below for broken collect2 doesn't work under 4.3+
10386 collect2name=`${CC} -print-prog-name=collect2`
10387 if test -f "$collect2name" &&
10388 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10390 # We have reworked collect2
10393 # We have old collect2
10394 hardcode_direct=unsupported
10395 # It fails to find uninstalled libraries when the uninstalled
10396 # path is not listed in the libpath. Setting hardcode_minus_L
10397 # to unsupported forces relinking
10398 hardcode_minus_L=yes
10399 hardcode_libdir_flag_spec='-L$libdir'
10400 hardcode_libdir_separator=
10404 shared_flag='-shared'
10405 if test "$aix_use_runtimelinking" = yes; then
10406 shared_flag="$shared_flag "'${wl}-G'
10410 if test "$host_cpu" = ia64; then
10411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10412 # chokes on -Wl,-G. The following line is correct:
10415 if test "$aix_use_runtimelinking" = yes; then
10416 shared_flag='${wl}-G'
10418 shared_flag='${wl}-bM:SRE'
10423 export_dynamic_flag_spec='${wl}-bexpall'
10424 # It seems that -bexpall does not export symbols beginning with
10425 # underscore (_), so it is better to generate a list of symbols to export.
10426 always_export_symbols=yes
10427 if test "$aix_use_runtimelinking" = yes; then
10428 # Warning - without using the other runtime loading flags (-brtl),
10429 # -berok will link without error, but may produce a broken library.
10430 allow_undefined_flag='-berok'
10431 # Determine the default libpath from the value encoded in an
10432 # empty executable.
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext &&
10465 $as_test_x conftest$ac_exeext; then
10467 lt_aix_libpath_sed='
10468 /Import File Strings/,/^$/ {
10474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 # Check for a 64-bit object if we didn't find anything.
10476 if test -z "$aix_libpath"; then
10477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10493 if test "$host_cpu" = ia64; then
10494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495 allow_undefined_flag="-z nodefs"
10496 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10498 # Determine the default libpath from the value encoded in an
10499 # empty executable.
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext &&
10532 $as_test_x conftest$ac_exeext; then
10534 lt_aix_libpath_sed='
10535 /Import File Strings/,/^$/ {
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10558 # Warning - without using the other run time loading flags,
10559 # -berok will link without error, but may produce a broken library.
10560 no_undefined_flag=' ${wl}-bernotok'
10561 allow_undefined_flag=' ${wl}-berok'
10562 # Exported symbols can be pulled into shared objects from archives
10563 whole_archive_flag_spec='$convenience'
10564 archive_cmds_need_lc=yes
10565 # This is similar to how AIX traditionally builds its shared libraries.
10566 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10574 # see comment about AmigaOS4 .so support
10575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576 archive_expsym_cmds=''
10579 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10580 hardcode_libdir_flag_spec='-L$libdir'
10581 hardcode_minus_L=yes
10587 export_dynamic_flag_spec=-rdynamic
10590 cygwin* | mingw* | pw32* | cegcc*)
10591 # When not using gcc, we currently assume that we are using
10592 # Microsoft Visual C++.
10593 # hardcode_libdir_flag_spec is actually meaningless, as there is
10594 # no search path for DLLs.
10595 hardcode_libdir_flag_spec=' '
10596 allow_undefined_flag=unsupported
10597 # Tell ltmain to make .lib files, not .a files.
10599 # Tell ltmain to make .dll files, not .so files.
10601 # FIXME: Setting linknames here is a bad hack.
10602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10603 # The linker will automatically build a .lib file if we build a DLL.
10604 old_archive_from_new_cmds='true'
10605 # FIXME: Should let the user specify the lib program.
10606 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10607 fix_srcfile_path='`cygpath -w "$srcfile"`'
10608 enable_shared_with_static_runtimes=yes
10611 darwin* | rhapsody*)
10614 archive_cmds_need_lc=no
10616 hardcode_automatic=yes
10617 hardcode_shlibpath_var=unsupported
10618 whole_archive_flag_spec=''
10619 link_all_deplibs=yes
10620 allow_undefined_flag="$_lt_dar_allow_undefined"
10621 case $cc_basename in
10622 ifort*) _lt_dar_can_shared=yes ;;
10623 *) _lt_dar_can_shared=$GCC ;;
10625 if test "$_lt_dar_can_shared" = "yes"; then
10626 output_verbose_link_cmd=echo
10627 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10628 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10629 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10630 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_shlibpath_var=no
10648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10649 # support. Future versions do this automatically, but an explicit c++rt0.o
10650 # does not break anything, and helps significantly (at the cost of a little
10653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_direct=yes
10656 hardcode_shlibpath_var=no
10659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_direct=yes
10663 hardcode_minus_L=yes
10664 hardcode_shlibpath_var=no
10667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10668 freebsd* | dragonfly*)
10669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10670 hardcode_libdir_flag_spec='-R$libdir'
10671 hardcode_direct=yes
10672 hardcode_shlibpath_var=no
10676 if test "$GCC" = yes; then
10677 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10679 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_direct=yes
10685 # hardcode_minus_L: Not really in the search PATH,
10686 # but as the default location of the library.
10687 hardcode_minus_L=yes
10688 export_dynamic_flag_spec='${wl}-E'
10692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10697 if test "$with_gnu_ld" = no; then
10698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10699 hardcode_libdir_flag_spec_ld='+b $libdir'
10700 hardcode_libdir_separator=:
10701 hardcode_direct=yes
10702 hardcode_direct_absolute=yes
10703 export_dynamic_flag_spec='${wl}-E'
10704 # hardcode_minus_L: Not really in the search PATH,
10705 # but as the default location of the library.
10706 hardcode_minus_L=yes
10711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736 if test "$with_gnu_ld" = no; then
10737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738 hardcode_libdir_separator=:
10743 hardcode_shlibpath_var=no
10746 hardcode_direct=yes
10747 hardcode_direct_absolute=yes
10748 export_dynamic_flag_spec='${wl}-E'
10750 # hardcode_minus_L: Not really in the search PATH,
10751 # but as the default location of the library.
10752 hardcode_minus_L=yes
10758 irix5* | irix6* | nonstopux*)
10759 if test "$GCC" = yes; then
10760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10761 # Try to use the -exported_symbol ld option, if it does not
10762 # work, assume that -exports_file does not work either and
10763 # implicitly export all symbols.
10764 save_LDFLAGS="$LDFLAGS"
10765 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10766 cat >conftest.$ac_ext <<_ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest$ac_exeext &&
10786 $as_test_x conftest$ac_exeext; then
10787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LDFLAGS="$save_LDFLAGS"
10800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10803 archive_cmds_need_lc='no'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 hardcode_libdir_separator=:
10807 link_all_deplibs=yes
10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10814 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10816 hardcode_libdir_flag_spec='-R$libdir'
10817 hardcode_direct=yes
10818 hardcode_shlibpath_var=no
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_direct=yes
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator=:
10826 hardcode_shlibpath_var=no
10833 if test -f /usr/libexec/ld.so; then
10834 hardcode_direct=yes
10835 hardcode_shlibpath_var=no
10836 hardcode_direct_absolute=yes
10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841 export_dynamic_flag_spec='${wl}-E'
10844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846 hardcode_libdir_flag_spec='-R$libdir'
10849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_minus_L=yes
10862 allow_undefined_flag=unsupported
10863 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10864 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10868 if test "$GCC" = yes; then
10869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10872 allow_undefined_flag=' -expect_unresolved \*'
10873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10875 archive_cmds_need_lc='no'
10876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877 hardcode_libdir_separator=:
10880 osf4* | osf5*) # as osf3* with the addition of -msym flag
10881 if test "$GCC" = yes; then
10882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10886 allow_undefined_flag=' -expect_unresolved \*'
10887 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10889 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10891 # Both c and cxx compiler support -rpath directly
10892 hardcode_libdir_flag_spec='-rpath $libdir'
10894 archive_cmds_need_lc='no'
10895 hardcode_libdir_separator=:
10899 no_undefined_flag=' -z defs'
10900 if test "$GCC" = yes; then
10902 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10906 case `$CC -V 2>&1` in
10909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10915 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921 hardcode_libdir_flag_spec='-R$libdir'
10922 hardcode_shlibpath_var=no
10924 solaris2.[0-5] | solaris2.[0-5].*) ;;
10926 # The compiler driver will combine and reorder linker options,
10927 # but understands `-z linker_flag'. GCC discards it without `$wl',
10928 # but is careful enough not to reorder.
10929 # Supported since Solaris 2.6 (maybe 2.5.1?)
10930 if test "$GCC" = yes; then
10931 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10937 link_all_deplibs=yes
10941 if test "x$host_vendor" = xsequent; then
10942 # Use $CC to link under sequent, because it throws in some extra .o
10943 # files that make .init and .fini sections work.
10944 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10948 hardcode_libdir_flag_spec='-L$libdir'
10949 hardcode_direct=yes
10950 hardcode_minus_L=yes
10951 hardcode_shlibpath_var=no
10955 case $host_vendor in
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_direct=yes # is this really true???
10961 ## LD is ld it makes a PLAMLIB
10962 ## CC just makes a GrossModule.
10963 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964 reload_cmds='$CC -r -o $output$reload_objs'
10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10972 runpath_var='LD_RUN_PATH'
10973 hardcode_shlibpath_var=no
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_shlibpath_var=no
10979 export_dynamic_flag_spec='-Bexport'
10983 if test -d /usr/nec; then
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_shlibpath_var=no
10986 runpath_var=LD_RUN_PATH
10987 hardcode_runpath_var=yes
10992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993 no_undefined_flag='${wl}-z,text'
10994 archive_cmds_need_lc=no
10995 hardcode_shlibpath_var=no
10996 runpath_var='LD_RUN_PATH'
10998 if test "$GCC" = yes; then
10999 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 sysv5* | sco3.2v5* | sco5v6*)
11008 # Note: We can NOT use -z defs as we might desire, because we do not
11009 # link with -lc, and that would cause any symbols used from libc to
11010 # always be unresolved, which means just about no library would
11011 # ever link correctly. If we're not using GNU ld we use -z text
11012 # though, which does catch some bad symbols but isn't as heavy-handed
11014 no_undefined_flag='${wl}-z,text'
11015 allow_undefined_flag='${wl}-z,nodefs'
11016 archive_cmds_need_lc=no
11017 hardcode_shlibpath_var=no
11018 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019 hardcode_libdir_separator=':'
11020 link_all_deplibs=yes
11021 export_dynamic_flag_spec='${wl}-Bexport'
11022 runpath_var='LD_RUN_PATH'
11024 if test "$GCC" = yes; then
11025 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035 hardcode_libdir_flag_spec='-L$libdir'
11036 hardcode_shlibpath_var=no
11044 if test x$host_vendor = xsni; then
11046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047 export_dynamic_flag_spec='${wl}-Blargedynsym'
11053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11054 echo "${ECHO_T}$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11057 with_gnu_ld=$with_gnu_ld
11074 # Do we need to explicitly link libc?
11076 case "x$archive_cmds_need_lc" in
11078 # Assume -lc should be added
11079 archive_cmds_need_lc=yes
11081 if test "$enable_shared" = yes && test "$GCC" = yes; then
11082 case $archive_cmds in
11084 # FIXME: we may have to deal with multi-command sequences.
11087 # Test whether the compiler implicitly links with -lc since on some
11088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089 # to ld, don't add -lc before -lgcc.
11090 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } 2>conftest.err; then
11102 libobjs=conftest.$ac_objext
11104 wl=$lt_prog_compiler_wl
11105 pic_flag=$lt_prog_compiler_pic
11111 lt_save_allow_undefined_flag=$allow_undefined_flag
11112 allow_undefined_flag=
11113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11114 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }
11119 archive_cmds_need_lc=no
11121 archive_cmds_need_lc=yes
11123 allow_undefined_flag=$lt_save_allow_undefined_flag
11125 cat conftest.err 1>&5
11128 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11292 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11295 if test "$GCC" = yes; then
11297 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298 *) lt_awk_arg="/^libraries:/" ;;
11300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11302 # if the path contains ";" then we assume it to be the separator
11303 # otherwise default to the standard path separator (i.e. ":") - it is
11304 # assumed that no part of a normal pathname contains ";" but that should
11305 # okay in the real world where ";" in dirpaths is itself problematic.
11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11310 # Ok, now we have the path, separated by spaces, we can step through it
11311 # and add multilib dir if necessary.
11312 lt_tmp_lt_search_path_spec=
11313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11314 for lt_sys_path in $lt_search_path_spec; do
11315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11318 test -d "$lt_sys_path" && \
11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11322 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11323 BEGIN {RS=" "; FS="/|\n";} {
11326 for (lt_i = NF; lt_i > 0; lt_i--) {
11327 if ($lt_i != "" && $lt_i != ".") {
11328 if ($lt_i == "..") {
11331 if (lt_count == 0) {
11332 lt_foo="/" $lt_i lt_foo;
11339 if (lt_foo != "") { lt_freq[lt_foo]++; }
11340 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11342 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11346 library_names_spec=
11347 libname_spec='lib$name'
11351 postuninstall_cmds=
11355 shlibpath_overrides_runpath=unknown
11357 dynamic_linker="$host_os ld.so"
11358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11359 need_lib_prefix=unknown
11360 hardcode_into_libs=no
11362 # when you set need_version to no, make sure it does not cause -set_version
11363 # flags to be left without arguments
11364 need_version=unknown
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11370 shlibpath_var=LIBPATH
11372 # AIX 3 has no versioning support, so we append a major version to the name.
11373 soname_spec='${libname}${release}${shared_ext}$major'
11380 hardcode_into_libs=yes
11381 if test "$host_cpu" = ia64; then
11382 # AIX 5 supports IA64
11383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11384 shlibpath_var=LD_LIBRARY_PATH
11386 # With GCC up to 2.95.x, collect2 would create an import file
11387 # for dependence libraries. The import file would start with
11388 # the line `#! .'. This would cause the generated library to
11389 # depend on `.', always an invalid library. This was fixed in
11390 # development snapshots of GCC prior to 3.0.
11392 aix4 | aix4.[01] | aix4.[01].*)
11393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11395 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11398 can_build_shared=no
11402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11403 # soname into executable. Probably we can add versioning support to
11404 # collect2, so additional links can be useful in future.
11405 if test "$aix_use_runtimelinking" = yes; then
11406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407 # instead of lib<name>.a to let people know that these are not
11408 # typical AIX shared libraries.
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411 # We preserve .a as extension for shared libraries through AIX4.2
11412 # and later when we are not doing run time linking.
11413 library_names_spec='${libname}${release}.a $libname.a'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LIBPATH
11423 # Since July 2007 AmigaOS4 officially supports .so libraries.
11424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 library_names_spec='$libname.ixlibrary $libname.a'
11429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11436 library_names_spec='${libname}${shared_ext}'
11437 dynamic_linker="$host_os ld.so"
11438 shlibpath_var=LIBRARY_PATH
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 soname_spec='${libname}${release}${shared_ext}$major'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450 # the default ld.so.conf also contains /usr/contrib/lib and
11451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452 # libtool to hard-code these into programs
11455 cygwin* | mingw* | pw32* | cegcc*)
11456 version_type=windows
11461 case $GCC,$host_os in
11462 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11463 library_names_spec='$libname.dll.a'
11464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465 postinstall_cmds='base_file=`basename \${file}`~
11466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11467 dldir=$destdir/`dirname \$dlpath`~
11468 test -d \$dldir || mkdir -p \$dldir~
11469 $install_prog $dir/$dlname \$dldir/$dlname~
11470 chmod a+x \$dldir/$dlname~
11471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475 dlpath=$dir/\$dldll~
11477 shlibpath_overrides_runpath=yes
11481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11486 # MinGW DLLs use traditional 'lib' prefix
11487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11489 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490 # It is most probably a Windows format PATH printed by
11491 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11492 # path with ; separators, and with drive letters. We can handle the
11493 # drive letters (cygwin fileutils understands them), so leave them,
11494 # especially as we might pass files found there to a mingw objdump,
11495 # which wouldn't understand a cygwinified path. Ahh.
11496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11502 # pw32 DLLs use 'pw' prefix rather than 'lib'
11503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11512 dynamic_linker='Win32 ld.exe'
11513 # FIXME: first we should search . and the directory the executable is in
11517 darwin* | rhapsody*)
11518 dynamic_linker="$host_os dyld"
11519 version_type=darwin
11522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11523 soname_spec='${libname}${release}${major}$shared_ext'
11524 shlibpath_overrides_runpath=yes
11525 shlibpath_var=DYLD_LIBRARY_PATH
11526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11545 freebsd* | dragonfly*)
11546 # DragonFly does not have aout. When/if they implement a new
11547 # versioning mechanism, adjust this.
11548 if test -x /usr/bin/objformat; then
11549 objformat=`/usr/bin/objformat`
11552 freebsd[123]*) objformat=aout ;;
11553 *) objformat=elf ;;
11556 version_type=freebsd-$objformat
11557 case $version_type in
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11573 freebsd3.[01]* | freebsdelf3.[01]*)
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11577 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11578 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
11582 *) # from 4.6 on, and DragonFly
11583 shlibpath_overrides_runpath=yes
11584 hardcode_into_libs=yes
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 hardcode_into_libs=yes
11599 hpux9* | hpux10* | hpux11*)
11600 # Give a soname corresponding to the major version so that dld.sl refuses to
11601 # link against other versions.
11608 hardcode_into_libs=yes
11609 dynamic_linker="$host_os dld.so"
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 if test "X$HPUX_IA64_MODE" = X32; then
11615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623 hardcode_into_libs=yes
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634 dynamic_linker="$host_os dld.sl"
11635 shlibpath_var=SHLIB_PATH
11636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11641 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11642 postinstall_cmds='chmod 555 $lib'
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 hardcode_into_libs=yes
11657 irix5* | irix6* | nonstopux*)
11659 nonstopux*) version_type=nonstopux ;;
11661 if test "$lt_cv_prog_gnu_ld" = yes; then
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11672 irix5* | nonstopux*)
11673 libsuff= shlibsuff=
11676 case $LD in # libtool.m4 will add one of these switches to LD
11677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678 libsuff= shlibsuff= libmagic=32-bit;;
11679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680 libsuff=32 shlibsuff=N32 libmagic=N32;;
11681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683 *) libsuff= shlibsuff= libmagic=never-match;;
11687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688 shlibpath_overrides_runpath=no
11689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691 hardcode_into_libs=yes
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11699 # This must be Linux ELF.
11700 linux* | k*bsd*-gnu)
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no
11709 # Some binutils ld are patched to set DT_RUNPATH
11710 save_LDFLAGS=$LDFLAGS
11711 save_libdir=$libdir
11712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest$ac_exeext &&
11746 $as_test_x conftest$ac_exeext; then
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11748 shlibpath_overrides_runpath=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LDFLAGS=$save_LDFLAGS
11761 libdir=$save_libdir
11763 # This implies no fast_install, which is unacceptable.
11764 # Some rework will be needed to allow for fast_install
11765 # before this can be enabled.
11766 hardcode_into_libs=yes
11768 # Append ld.so.conf contents to the search path
11769 if test -f /etc/ld.so.conf; then
11770 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11774 # We used to test for /lib/ld.so.1 and disable shared libraries on
11775 # powerpc, because MkLinux only supported shared libraries with the
11776 # GNU dynamic linker. Since this was broken with cross compilers,
11777 # most powerpc-linux boxes support dynamic linking these days and
11778 # people can always --disable-shared, the test was removed, and we
11779 # assume the GNU/Linux dynamic linker is in use.
11780 dynamic_linker='GNU/Linux ld.so'
11787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790 dynamic_linker='NetBSD (a.out) ld.so'
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 dynamic_linker='NetBSD ld.elf_so'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=yes
11798 hardcode_into_libs=yes
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 hardcode_into_libs=yes
11817 dynamic_linker='ldqnx.so'
11822 sys_lib_dlsearch_path_spec="/usr/lib"
11824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11827 *) need_version=no ;;
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834 openbsd2.[89] | openbsd2.[89].*)
11835 shlibpath_overrides_runpath=no
11838 shlibpath_overrides_runpath=yes
11842 shlibpath_overrides_runpath=yes
11847 libname_spec='$name'
11850 library_names_spec='$libname${shared_ext} $libname.a'
11851 dynamic_linker='OS/2 ld.exe'
11852 shlibpath_var=LIBPATH
11855 osf3* | osf4* | osf5*)
11859 soname_spec='${libname}${release}${shared_ext}$major'
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 # ldd complains unless libraries are executable
11880 postinstall_cmds='chmod +x $lib'
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 if test "$with_gnu_ld" = yes; then
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 soname_spec='${libname}${release}${shared_ext}$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 case $host_vendor in
11902 shlibpath_overrides_runpath=no
11904 runpath_var=LD_RUN_PATH
11912 shlibpath_overrides_runpath=no
11913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11919 if test -d /usr/nec ;then
11921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11922 soname_spec='$libname${shared_ext}.$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11928 version_type=freebsd-elf
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=yes
11935 hardcode_into_libs=yes
11936 if test "$with_gnu_ld" = yes; then
11937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11946 sys_lib_dlsearch_path_spec='/usr/lib'
11950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=no
11957 hardcode_into_libs=yes
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11971 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11972 echo "${ECHO_T}$dynamic_linker" >&6; }
11973 test "$dynamic_linker" = no && can_build_shared=no
11975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11976 if test "$GCC" = yes; then
11977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11981 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12073 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12076 if test -n "$hardcode_libdir_flag_spec" ||
12077 test -n "$runpath_var" ||
12078 test "X$hardcode_automatic" = "Xyes" ; then
12080 # We can hardcode non-existent directories.
12081 if test "$hardcode_direct" != no &&
12082 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12083 # have to relink, otherwise we might link with an installed library
12084 # when we should be linking with a yet-to-be-installed one
12085 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12086 test "$hardcode_minus_L" != no; then
12087 # Linking always hardcodes the temporary library directory.
12088 hardcode_action=relink
12090 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12091 hardcode_action=immediate
12094 # We cannot hardcode anything, or else we can only hardcode existing
12096 hardcode_action=unsupported
12098 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12099 echo "${ECHO_T}$hardcode_action" >&6; }
12101 if test "$hardcode_action" = relink ||
12102 test "$inherit_rpath" = yes; then
12103 # Fast installation is not supported
12104 enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106 test "$enable_shared" = no; then
12107 # Fast installation is not necessary
12108 enable_fast_install=needless
12116 if test "x$enable_dlopen" != xyes; then
12117 enable_dlopen=unknown
12118 enable_dlopen_self=unknown
12119 enable_dlopen_self_static=unknown
12126 lt_cv_dlopen="load_add_on"
12128 lt_cv_dlopen_self=yes
12131 mingw* | pw32* | cegcc*)
12132 lt_cv_dlopen="LoadLibrary"
12137 lt_cv_dlopen="dlopen"
12142 # if libdl is installed we need to link against it
12143 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS=$LIBS
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest$ac_exeext &&
12189 $as_test_x conftest$ac_exeext; then
12190 ac_cv_lib_dl_dlopen=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_lib_dl_dlopen=no
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12204 if test $ac_cv_lib_dl_dlopen = yes; then
12205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12208 lt_cv_dlopen="dyld"
12210 lt_cv_dlopen_self=yes
12217 { echo "$as_me:$LINENO: checking for shl_load" >&5
12218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12219 if test "${ac_cv_func_shl_load+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12230 #define shl_load innocuous_shl_load
12232 /* System header to define __stub macros and hopefully few prototypes,
12233 which can conflict with char shl_load (); below.
12234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12235 <limits.h> exists even on freestanding compilers. */
12238 # include <limits.h>
12240 # include <assert.h>
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined __stub_shl_load || defined __stub___shl_load
12262 return shl_load ();
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest$ac_exeext &&
12284 $as_test_x conftest$ac_exeext; then
12285 ac_cv_func_shl_load=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_func_shl_load=no
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12296 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12298 if test $ac_cv_func_shl_load = yes; then
12299 lt_cv_dlopen="shl_load"
12301 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_check_lib_save_LIBS=$LIBS
12308 cat >conftest.$ac_ext <<_ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12325 return shl_load ();
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_dld_shl_load=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_dld_shl_load=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12365 { echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define dlopen innocuous_dlopen
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char dlopen (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12386 # include <limits.h>
12388 # include <assert.h>
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest$ac_exeext &&
12432 $as_test_x conftest$ac_exeext; then
12433 ac_cv_func_dlopen=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_cv_func_dlopen=no
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442 conftest$ac_exeext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12446 if test $ac_cv_func_dlopen = yes; then
12447 lt_cv_dlopen="dlopen"
12449 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 ac_check_lib_save_LIBS=$LIBS
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12463 /* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_link") 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && {
12492 test -z "$ac_c_werror_flag" ||
12493 test ! -s conftest.err
12494 } && test -s conftest$ac_exeext &&
12495 $as_test_x conftest$ac_exeext; then
12496 ac_cv_lib_dl_dlopen=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_cv_lib_dl_dlopen=no
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12510 if test $ac_cv_lib_dl_dlopen = yes; then
12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12513 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext &&
12559 $as_test_x conftest$ac_exeext; then
12560 ac_cv_lib_svld_dlopen=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_lib_svld_dlopen=no
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12574 if test $ac_cv_lib_svld_dlopen = yes; then
12575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12577 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_check_lib_save_LIBS=$LIBS
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12601 return dld_link ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest$ac_exeext &&
12623 $as_test_x conftest$ac_exeext; then
12624 ac_cv_lib_dld_dld_link=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_cv_lib_dld_dld_link=no
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12638 if test $ac_cv_lib_dld_dld_link = yes; then
12639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12660 if test "x$lt_cv_dlopen" != xno; then
12666 case $lt_cv_dlopen in
12668 save_CPPFLAGS="$CPPFLAGS"
12669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12671 save_LDFLAGS="$LDFLAGS"
12672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12675 LIBS="$lt_cv_dlopen_libs $LIBS"
12677 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12679 if test "${lt_cv_dlopen_self+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test "$cross_compiling" = yes; then :
12683 lt_cv_dlopen_self=cross
12685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686 lt_status=$lt_dlunknown
12687 cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12698 # define LT_DLGLOBAL RTLD_GLOBAL
12701 # define LT_DLGLOBAL DL_GLOBAL
12703 # define LT_DLGLOBAL 0
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708 find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12714 # define LT_DLLAZY_OR_NOW DL_LAZY
12717 # define LT_DLLAZY_OR_NOW RTLD_NOW
12720 # define LT_DLLAZY_OR_NOW DL_NOW
12722 # define LT_DLLAZY_OR_NOW 0
12729 void fnord() { int i=42;}
12732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12733 int status = $lt_dlunknown;
12737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12739 /* dlclose (self); */
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12752 (./conftest; exit; ) >&5 2>/dev/null
12754 case x$lt_status in
12755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12760 # compilation failed
12761 lt_cv_dlopen_self=no
12768 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12771 if test "x$lt_cv_dlopen_self" = xyes; then
12772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12775 if test "${lt_cv_dlopen_self_static+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 if test "$cross_compiling" = yes; then :
12779 lt_cv_dlopen_self_static=cross
12781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782 lt_status=$lt_dlunknown
12783 cat > conftest.$ac_ext <<_LT_EOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12794 # define LT_DLGLOBAL RTLD_GLOBAL
12797 # define LT_DLGLOBAL DL_GLOBAL
12799 # define LT_DLGLOBAL 0
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804 find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12810 # define LT_DLLAZY_OR_NOW DL_LAZY
12813 # define LT_DLLAZY_OR_NOW RTLD_NOW
12816 # define LT_DLLAZY_OR_NOW DL_NOW
12818 # define LT_DLLAZY_OR_NOW 0
12825 void fnord() { int i=42;}
12828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829 int status = $lt_dlunknown;
12833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835 /* dlclose (self); */
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12848 (./conftest; exit; ) >&5 2>/dev/null
12850 case x$lt_status in
12851 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12852 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12853 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12856 # compilation failed
12857 lt_cv_dlopen_self_static=no
12864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12865 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12868 CPPFLAGS="$save_CPPFLAGS"
12869 LDFLAGS="$save_LDFLAGS"
12874 case $lt_cv_dlopen_self in
12875 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12876 *) enable_dlopen_self=unknown ;;
12879 case $lt_cv_dlopen_self_static in
12880 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12881 *) enable_dlopen_self_static=unknown ;;
12903 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12904 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12906 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12907 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12908 { echo "$as_me:$LINENO: result: yes" >&5
12909 echo "${ECHO_T}yes" >&6; }
12911 # FIXME - insert some real tests, host_os isn't really good enough
12914 if test -n "$STRIP" ; then
12915 striplib="$STRIP -x"
12916 old_striplib="$STRIP -S"
12917 { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12925 { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12942 # Report which library types will actually be built
12943 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12945 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946 echo "${ECHO_T}$can_build_shared" >&6; }
12948 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12950 test "$can_build_shared" = "no" && enable_shared=no
12952 # On AIX, shared libraries and static libraries use the same namespace, and
12953 # are all built from PIC.
12956 test "$enable_shared" = yes && enable_static=no
12957 if test -n "$RANLIB"; then
12958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959 postinstall_cmds='$RANLIB $lib'
12964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12965 test "$enable_shared" = yes && enable_static=no
12969 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12970 echo "${ECHO_T}$enable_shared" >&6; }
12972 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12974 # Make sure either enable_shared or enable_static is yes.
12975 test "$enable_shared" = yes || enable_static=yes
12976 { echo "$as_me:$LINENO: result: $enable_static" >&5
12977 echo "${ECHO_T}$enable_static" >&6; }
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993 ac_cpp='$CXXCPP $CPPFLAGS'
12994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998 archive_cmds_need_lc_CXX=no
12999 allow_undefined_flag_CXX=
13000 always_export_symbols_CXX=no
13001 archive_expsym_cmds_CXX=
13002 compiler_needs_object_CXX=no
13003 export_dynamic_flag_spec_CXX=
13004 hardcode_direct_CXX=no
13005 hardcode_direct_absolute_CXX=no
13006 hardcode_libdir_flag_spec_CXX=
13007 hardcode_libdir_flag_spec_ld_CXX=
13008 hardcode_libdir_separator_CXX=
13009 hardcode_minus_L_CXX=no
13010 hardcode_shlibpath_var_CXX=unsupported
13011 hardcode_automatic_CXX=no
13012 inherit_rpath_CXX=no
13014 module_expsym_cmds_CXX=
13015 link_all_deplibs_CXX=unknown
13016 old_archive_cmds_CXX=$old_archive_cmds
13017 no_undefined_flag_CXX=
13018 whole_archive_flag_spec_CXX=
13019 enable_shared_with_static_runtimes_CXX=no
13021 # Source file extension for C++ test sources.
13024 # Object file extension for compiled C++ test sources.
13028 # No sense in running all these tests if we already determined that
13029 # the CXX compiler isn't working. Some variables (like enable_shared)
13030 # are currently assumed to apply to all compilers on this platform,
13031 # and will be corrupted by setting them based on a non-working compiler.
13032 if test "$_lt_caught_CXX_error" != yes; then
13033 # Code to be used in simple compile tests
13034 lt_simple_compile_test_code="int some_variable = 0;"
13036 # Code to be used in simple link tests
13037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13046 # If no C compiler was specified, use CC.
13049 # If no C compiler flags were specified, use CFLAGS.
13050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13052 # Allow CC to be a program name with arguments.
13056 # save warnings/boilerplate of simple test code
13057 ac_outfile=conftest.$ac_objext
13058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13060 _lt_compiler_boilerplate=`cat conftest.err`
13063 ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_linker_boilerplate=`cat conftest.err`
13070 # Allow CC to be a program name with arguments.
13075 lt_save_with_gnu_ld=$with_gnu_ld
13076 lt_save_path_LD=$lt_cv_path_LD
13077 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13078 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13080 $as_unset lt_cv_prog_gnu_ld
13082 if test -n "${lt_cv_path_LDCXX+set}"; then
13083 lt_cv_path_LD=$lt_cv_path_LDCXX
13085 $as_unset lt_cv_path_LD
13087 test -z "${LDCXX+set}" || LD=$LDCXX
13091 for cc_temp in $compiler""; do
13093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13102 if test -n "$compiler"; then
13103 # We don't want -fno-exception when compiling C++ code, so set the
13104 # no_builtin_flag separately
13105 if test "$GXX" = yes; then
13106 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13108 lt_prog_compiler_no_builtin_flag_CXX=
13111 if test "$GXX" = yes; then
13112 # Set up default GNU C++ configuration
13116 # Check whether --with-gnu-ld was given.
13117 if test "${with_gnu_ld+set}" = set; then
13118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13124 if test "$GCC" = yes; then
13125 # Check if gcc -print-prog-name=ld gives a path.
13126 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13130 # gcc leaves a trailing carriage return which upsets mingw
13131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13136 # Accept absolute paths.
13138 re_direlt='/[^/][^/]*/\.\./'
13139 # Canonicalize the pathname of ld
13140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13144 test -z "$LD" && LD="$ac_prog"
13147 # If it fails, then pretend we aren't using GCC.
13151 # If it is relative, then search for the first ld in PATH.
13152 with_gnu_ld=unknown
13155 elif test "$with_gnu_ld" = yes; then
13156 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13159 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13162 if test "${lt_cv_path_LD+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 if test -z "$LD"; then
13166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13167 for ac_dir in $PATH; do
13169 test -z "$ac_dir" && ac_dir=.
13170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13171 lt_cv_path_LD="$ac_dir/$ac_prog"
13172 # Check to see if the program is GNU ld. I'd rather use --version,
13173 # but apparently some variants of GNU ld only accept -v.
13174 # Break only if it was the GNU/non-GNU ld that we prefer.
13175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13176 *GNU* | *'with BFD'*)
13177 test "$with_gnu_ld" != no && break
13180 test "$with_gnu_ld" != yes && break
13187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13191 LD="$lt_cv_path_LD"
13192 if test -n "$LD"; then
13193 { echo "$as_me:$LINENO: result: $LD" >&5
13194 echo "${ECHO_T}$LD" >&6; }
13196 { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13201 { (exit 1); exit 1; }; }
13202 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13208 case `$LD -v 2>&1 </dev/null` in
13209 *GNU* | *'with BFD'*)
13210 lt_cv_prog_gnu_ld=yes
13213 lt_cv_prog_gnu_ld=no
13217 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13219 with_gnu_ld=$lt_cv_prog_gnu_ld
13227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228 # archiving commands below assume that GNU ld is being used.
13229 if test "$with_gnu_ld" = yes; then
13230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236 # If archive_cmds runs LD, not CC, wlarc should be empty
13237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238 # investigate it a little bit more. (MM)
13241 # ancient GNU ld didn't support --whole-archive et. al.
13242 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13243 $GREP 'no-whole-archive' > /dev/null; then
13244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13246 whole_archive_flag_spec_CXX=
13252 # A generic and very simple default shared library creation
13253 # command for GNU C++ for the case where it uses the native
13254 # linker, instead of GNU ld. If possible, this setting should
13255 # overridden to take advantage of the native linker features on
13256 # the platform it is being used on.
13257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13271 # PORTME: fill in a description of your system's C++ link characteristics
13272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13277 # FIXME: insert proper C++ library support
13281 if test "$host_cpu" = ia64; then
13282 # On IA64, the linker does run time linking by default, so we don't
13283 # have to do anything special.
13284 aix_use_runtimelinking=no
13285 exp_sym_flag='-Bexport'
13288 aix_use_runtimelinking=no
13290 # Test if we are trying to use run time linking or normal
13291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292 # need to do runtime linking.
13293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13294 for ld_flag in $LDFLAGS; do
13297 aix_use_runtimelinking=yes
13305 exp_sym_flag='-bexport'
13306 no_entry_flag='-bnoentry'
13309 # When large executables or shared objects are built, AIX ld can
13310 # have problems creating the table of contents. If linking a library
13311 # or program results in "error TOC overflow" add -mminimal-toc to
13312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13315 archive_cmds_CXX=''
13316 hardcode_direct_CXX=yes
13317 hardcode_direct_absolute_CXX=yes
13318 hardcode_libdir_separator_CXX=':'
13319 link_all_deplibs_CXX=yes
13320 file_list_spec_CXX='${wl}-f,'
13322 if test "$GXX" = yes; then
13323 case $host_os in aix4.[012]|aix4.[012].*)
13324 # We only want to do this on AIX 4.2 and lower, the check
13325 # below for broken collect2 doesn't work under 4.3+
13326 collect2name=`${CC} -print-prog-name=collect2`
13327 if test -f "$collect2name" &&
13328 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13330 # We have reworked collect2
13333 # We have old collect2
13334 hardcode_direct_CXX=unsupported
13335 # It fails to find uninstalled libraries when the uninstalled
13336 # path is not listed in the libpath. Setting hardcode_minus_L
13337 # to unsupported forces relinking
13338 hardcode_minus_L_CXX=yes
13339 hardcode_libdir_flag_spec_CXX='-L$libdir'
13340 hardcode_libdir_separator_CXX=
13343 shared_flag='-shared'
13344 if test "$aix_use_runtimelinking" = yes; then
13345 shared_flag="$shared_flag "'${wl}-G'
13349 if test "$host_cpu" = ia64; then
13350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13351 # chokes on -Wl,-G. The following line is correct:
13354 if test "$aix_use_runtimelinking" = yes; then
13355 shared_flag='${wl}-G'
13357 shared_flag='${wl}-bM:SRE'
13362 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13363 # It seems that -bexpall does not export symbols beginning with
13364 # underscore (_), so it is better to generate a list of symbols to
13366 always_export_symbols_CXX=yes
13367 if test "$aix_use_runtimelinking" = yes; then
13368 # Warning - without using the other runtime loading flags (-brtl),
13369 # -berok will link without error, but may produce a broken library.
13370 allow_undefined_flag_CXX='-berok'
13371 # Determine the default libpath from the value encoded in an empty
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_cxx_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext &&
13405 $as_test_x conftest$ac_exeext; then
13407 lt_aix_libpath_sed='
13408 /Import File Strings/,/^$/ {
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13430 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13432 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13434 if test "$host_cpu" = ia64; then
13435 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13436 allow_undefined_flag_CXX="-z nodefs"
13437 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13439 # Determine the default libpath from the value encoded in an
13440 # empty executable.
13441 cat >conftest.$ac_ext <<_ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_cxx_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13475 lt_aix_libpath_sed='
13476 /Import File Strings/,/^$/ {
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 # Check for a 64-bit object if we didn't find anything.
13484 if test -z "$aix_libpath"; then
13485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495 conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13499 # Warning - without using the other run time loading flags,
13500 # -berok will link without error, but may produce a broken library.
13501 no_undefined_flag_CXX=' ${wl}-bernotok'
13502 allow_undefined_flag_CXX=' ${wl}-berok'
13503 # Exported symbols can be pulled into shared objects from archives
13504 whole_archive_flag_spec_CXX='$convenience'
13505 archive_cmds_need_lc_CXX=yes
13506 # This is similar to how AIX traditionally builds its shared
13508 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13515 allow_undefined_flag_CXX=unsupported
13516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13517 # support --undefined. This deserves some investigation. FIXME
13518 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525 case $cc_basename in
13527 # FIXME: insert proper C++ library support
13533 cygwin* | mingw* | pw32* | cegcc*)
13534 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13535 # as there is no search path for DLLs.
13536 hardcode_libdir_flag_spec_CXX='-L$libdir'
13537 allow_undefined_flag_CXX=unsupported
13538 always_export_symbols_CXX=no
13539 enable_shared_with_static_runtimes_CXX=yes
13541 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13542 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13543 # If the export-symbols file already is a .def file (1st line
13544 # is EXPORTS), use it as is; otherwise, prepend...
13545 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546 cp $export_symbols $output_objdir/$soname.def;
13548 echo EXPORTS > $output_objdir/$soname.def;
13549 cat $export_symbols >> $output_objdir/$soname.def;
13551 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13556 darwin* | rhapsody*)
13559 archive_cmds_need_lc_CXX=no
13560 hardcode_direct_CXX=no
13561 hardcode_automatic_CXX=yes
13562 hardcode_shlibpath_var_CXX=unsupported
13563 whole_archive_flag_spec_CXX=''
13564 link_all_deplibs_CXX=yes
13565 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13566 case $cc_basename in
13567 ifort*) _lt_dar_can_shared=yes ;;
13568 *) _lt_dar_can_shared=$GCC ;;
13570 if test "$_lt_dar_can_shared" = "yes"; then
13571 output_verbose_link_cmd=echo
13572 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13573 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13574 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13575 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13576 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13577 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13578 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13588 case $cc_basename in
13590 # FIXME: insert proper C++ library support
13594 # Green Hills C++ Compiler
13595 # FIXME: insert proper C++ library support
13599 # FIXME: insert proper C++ library support
13606 # C++ shared libraries reported to be fairly broken before
13612 archive_cmds_need_lc_CXX=no
13615 freebsd* | dragonfly*)
13616 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13626 hardcode_libdir_separator_CXX=:
13627 export_dynamic_flag_spec_CXX='${wl}-E'
13628 hardcode_direct_CXX=yes
13629 hardcode_minus_L_CXX=yes # Not in the search PATH,
13630 # but as the default
13631 # location of the library.
13633 case $cc_basename in
13635 # FIXME: insert proper C++ library support
13639 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13640 # Commands to make compiler produce verbose output that lists
13641 # what "hidden" libraries, object files and flags are used when
13642 # linking a shared library.
13644 # There doesn't appear to be a way to prevent this compiler from
13645 # explicitly linking system object files so we need to strip them
13646 # from the output so that they don't get included in the library
13648 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13651 if test "$GXX" = yes; then
13652 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13654 # FIXME: insert proper C++ library support
13662 if test $with_gnu_ld = no; then
13663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664 hardcode_libdir_separator_CXX=:
13670 export_dynamic_flag_spec_CXX='${wl}-E'
13676 hardcode_direct_CXX=no
13677 hardcode_shlibpath_var_CXX=no
13680 hardcode_direct_CXX=yes
13681 hardcode_direct_absolute_CXX=yes
13682 hardcode_minus_L_CXX=yes # Not in the search PATH,
13683 # but as the default
13684 # location of the library.
13688 case $cc_basename in
13690 # FIXME: insert proper C++ library support
13696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 # Commands to make compiler produce verbose output that lists
13706 # what "hidden" libraries, object files and flags are used when
13707 # linking a shared library.
13709 # There doesn't appear to be a way to prevent this compiler from
13710 # explicitly linking system object files so we need to strip them
13711 # from the output so that they don't get included in the library
13713 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13716 if test "$GXX" = yes; then
13717 if test $with_gnu_ld = no; then
13720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731 # FIXME: insert proper C++ library support
13739 hardcode_direct_CXX=no
13740 hardcode_shlibpath_var_CXX=no
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}-E'
13743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13744 # Instead, shared libraries are loaded at an image base (0x10000000 by
13745 # default) and relocated if they conflict, which is a slow very memory
13746 # consuming and fragmenting process. To avoid this, we pick a random,
13747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13749 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13750 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13753 case $cc_basename in
13756 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13758 # Archives containing C++ object files must be created using
13759 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13760 # necessary to make sure instantiated templates are included
13762 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13765 if test "$GXX" = yes; then
13766 if test "$with_gnu_ld" = no; then
13767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13772 link_all_deplibs_CXX=yes
13775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776 hardcode_libdir_separator_CXX=:
13777 inherit_rpath_CXX=yes
13780 linux* | k*bsd*-gnu)
13781 case $cc_basename in
13783 # Kuck and Associates, Inc. (KAI) C++ Compiler
13785 # KCC will only create a shared library if the output file
13786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787 # to its proper name (with version) after linking.
13788 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13789 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13794 # There doesn't appear to be a way to prevent this compiler from
13795 # explicitly linking system object files so we need to strip them
13796 # from the output so that they don't get included in the library
13798 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13803 # Archives containing C++ object files must be created using
13804 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13805 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810 # version 8.0 and above of icpc choke on multiply defined symbols
13811 # if we add $predep_objects and $postdep_objects, however 7.1 and
13812 # earlier do not add the objects themselves.
13813 case `$CC -V 2>&1` in
13815 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13818 *) # Version 8.0 or newer
13821 ia64*) tmp_idyn=' -i_dynamic';;
13823 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827 archive_cmds_need_lc_CXX=no
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13833 # Portland Group C++ compiler
13835 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13836 prelink_cmds_CXX='tpldir=Template.dir~
13838 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13839 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13840 old_archive_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13843 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13845 archive_cmds_CXX='tpldir=Template.dir~
13847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13848 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13849 archive_expsym_cmds_CXX='tpldir=Template.dir~
13851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13854 *) # Version 6 will use weak symbols
13855 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13860 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13869 runpath_var=LD_RUN_PATH
13870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13871 hardcode_libdir_separator_CXX=:
13873 # Commands to make compiler produce verbose output that lists
13874 # what "hidden" libraries, object files and flags are used when
13875 # linking a shared library.
13877 # There doesn't appear to be a way to prevent this compiler from
13878 # explicitly linking system object files so we need to strip them
13879 # from the output so that they don't get included in the library
13881 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13884 # IBM XL 8.0 on PPC, with GNU ld
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13887 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 if test "x$supports_anon_versioning" = xyes; then
13889 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891 echo "local: *; };" >> $output_objdir/$libname.ver~
13892 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13896 case `$CC -V 2>&1 | sed 5q` in
13899 no_undefined_flag_CXX=' -zdefs'
13900 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13902 hardcode_libdir_flag_spec_CXX='-R$libdir'
13903 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13904 compiler_needs_object_CXX=yes
13906 # Not sure whether something based on
13907 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13909 output_verbose_link_cmd='echo'
13911 # Archives containing C++ object files must be created using
13912 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13913 # necessary to make sure instantiated templates are included
13915 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13923 # FIXME: insert proper C++ library support
13928 # FIXME: insert proper C++ library support
13933 case $cc_basename in
13935 # FIXME: insert proper C++ library support
13939 # FIXME: insert proper C++ library support
13946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13947 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13949 hardcode_libdir_flag_spec_CXX='-R$libdir'
13950 hardcode_direct_CXX=yes
13951 hardcode_shlibpath_var_CXX=no
13953 # Workaround some broken pre-1.5 toolchains
13954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13962 # C++ shared libraries are fairly broken
13967 if test -f /usr/libexec/ld.so; then
13968 hardcode_direct_CXX=yes
13969 hardcode_shlibpath_var_CXX=no
13970 hardcode_direct_absolute_CXX=yes
13971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13975 export_dynamic_flag_spec_CXX='${wl}-E'
13976 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13978 output_verbose_link_cmd=echo
13984 osf3* | osf4* | osf5*)
13985 case $cc_basename in
13987 # Kuck and Associates, Inc. (KAI) C++ Compiler
13989 # KCC will only create a shared library if the output file
13990 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13991 # to its proper name (with version) after linking.
13992 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995 hardcode_libdir_separator_CXX=:
13997 # Archives containing C++ object files must be created using
13998 # the KAI C++ compiler.
14000 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14001 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14005 # Rational C++ 2.4.1
14006 # FIXME: insert proper C++ library support
14012 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14013 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14017 allow_undefined_flag_CXX=' -expect_unresolved \*'
14018 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14019 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14020 echo "-hidden">> $lib.exp~
14021 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14023 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14027 hardcode_libdir_separator_CXX=:
14029 # Commands to make compiler produce verbose output that lists
14030 # what "hidden" libraries, object files and flags are used when
14031 # linking a shared library.
14033 # There doesn't appear to be a way to prevent this compiler from
14034 # explicitly linking system object files so we need to strip them
14035 # from the output so that they don't get included in the library
14037 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14041 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14044 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14047 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052 hardcode_libdir_separator_CXX=:
14054 # Commands to make compiler produce verbose output that lists
14055 # what "hidden" libraries, object files and flags are used when
14056 # linking a shared library.
14057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14060 # FIXME: insert proper C++ library support
14068 # FIXME: insert proper C++ library support
14073 case $cc_basename in
14076 # FIXME: insert proper C++ library support
14081 # FIXME: insert proper C++ library support
14085 # FIXME: insert proper C++ library support
14092 case $cc_basename in
14094 # Sun C++ 4.2, 5.x and Centerline C++
14095 archive_cmds_need_lc_CXX=yes
14096 no_undefined_flag_CXX=' -zdefs'
14097 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14099 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14101 hardcode_libdir_flag_spec_CXX='-R$libdir'
14102 hardcode_shlibpath_var_CXX=no
14104 solaris2.[0-5] | solaris2.[0-5].*) ;;
14106 # The compiler driver will combine and reorder linker options,
14107 # but understands `-z linker_flag'.
14108 # Supported since Solaris 2.6 (maybe 2.5.1?)
14109 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14112 link_all_deplibs_CXX=yes
14114 output_verbose_link_cmd='echo'
14116 # Archives containing C++ object files must be created using
14117 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14118 # necessary to make sure instantiated templates are included
14120 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14123 # Green Hills C++ Compiler
14124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14126 # The C++ compiler must be used to create the archive.
14127 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14130 # GNU C++ compiler with Solaris linker
14131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14132 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14133 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14134 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14138 # Commands to make compiler produce verbose output that lists
14139 # what "hidden" libraries, object files and flags are used when
14140 # linking a shared library.
14141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14143 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14145 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14149 # Commands to make compiler produce verbose output that lists
14150 # what "hidden" libraries, object files and flags are used when
14151 # linking a shared library.
14152 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14155 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14157 solaris2.[0-5] | solaris2.[0-5].*) ;;
14159 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14168 no_undefined_flag_CXX='${wl}-z,text'
14169 archive_cmds_need_lc_CXX=no
14170 hardcode_shlibpath_var_CXX=no
14171 runpath_var='LD_RUN_PATH'
14173 case $cc_basename in
14175 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 sysv5* | sco3.2v5* | sco5v6*)
14186 # Note: We can NOT use -z defs as we might desire, because we do not
14187 # link with -lc, and that would cause any symbols used from libc to
14188 # always be unresolved, which means just about no library would
14189 # ever link correctly. If we're not using GNU ld we use -z text
14190 # though, which does catch some bad symbols but isn't as heavy-handed
14192 no_undefined_flag_CXX='${wl}-z,text'
14193 allow_undefined_flag_CXX='${wl}-z,nodefs'
14194 archive_cmds_need_lc_CXX=no
14195 hardcode_shlibpath_var_CXX=no
14196 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14197 hardcode_libdir_separator_CXX=':'
14198 link_all_deplibs_CXX=yes
14199 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14200 runpath_var='LD_RUN_PATH'
14202 case $cc_basename in
14204 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 case $cc_basename in
14217 # NonStop-UX NCC 3.20
14218 # FIXME: insert proper C++ library support
14222 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14234 # FIXME: insert proper C++ library support
14239 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14240 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14241 test "$ld_shlibs_CXX" = no && can_build_shared=no
14247 ## There is no encapsulation within the following macros, do not change
14248 ## the running order or otherwise move them around unless you know exactly
14249 ## what you are doing...
14250 # Dependencies to place before and after the object being linked:
14251 predep_objects_CXX=
14252 postdep_objects_CXX=
14255 compiler_lib_search_path_CXX=
14257 cat > conftest.$ac_ext <<_LT_EOF
14261 Foo (void) { a = 0; }
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; then
14272 # Parse the compiler output and extract the necessary
14273 # objects, libraries and library flags.
14275 # Sentinel used to keep track of whether or not we are before
14276 # the conftest object file.
14277 pre_test_object_deps_done=no
14279 for p in `eval "$output_verbose_link_cmd"`; do
14283 # Some compilers place space between "-{L,R}" and the path.
14284 # Remove the space.
14285 if test $p = "-L" ||
14286 test $p = "-R"; then
14293 if test "$pre_test_object_deps_done" = no; then
14296 # Internal compiler library paths should come after those
14297 # provided the user. The postdeps already come after the
14298 # user supplied libs so there is no need to process them.
14299 if test -z "$compiler_lib_search_path_CXX"; then
14300 compiler_lib_search_path_CXX="${prev}${p}"
14302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14305 # The "-l" case would never come before the object being
14306 # linked, so don't bother handling this case.
14309 if test -z "$postdeps_CXX"; then
14310 postdeps_CXX="${prev}${p}"
14312 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14318 # This assumes that the test object file only shows up
14319 # once in the compiler output.
14320 if test "$p" = "conftest.$objext"; then
14321 pre_test_object_deps_done=yes
14325 if test "$pre_test_object_deps_done" = no; then
14326 if test -z "$predep_objects_CXX"; then
14327 predep_objects_CXX="$p"
14329 predep_objects_CXX="$predep_objects_CXX $p"
14332 if test -z "$postdep_objects_CXX"; then
14333 postdep_objects_CXX="$p"
14335 postdep_objects_CXX="$postdep_objects_CXX $p"
14340 *) ;; # Ignore the rest.
14348 echo "libtool.m4: error: problem compiling CXX test program"
14351 $RM -f confest.$objext
14353 # PORTME: override above test on systems where it is broken
14356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14357 # hack all around it, let's just trust "g++" to DTRT.
14358 predep_objects_CXX=
14359 postdep_objects_CXX=
14364 case `$CC -V 2>&1 | sed 5q` in
14368 # The more standards-conforming stlport4 library is
14369 # incompatible with the Cstd library. Avoid specifying
14370 # it if it's in CXXFLAGS. Ignore libCrun as
14371 # -library=stlport4 depends on it.
14372 case " $CXX $CXXFLAGS " in
14373 *" -library=stlport4 "*)
14374 solaris_use_stlport4=yes
14378 if test "$solaris_use_stlport4" != yes; then
14379 postdeps_CXX='-library=Cstd -library=Crun'
14386 case $cc_basename in
14388 # The more standards-conforming stlport4 library is
14389 # incompatible with the Cstd library. Avoid specifying
14390 # it if it's in CXXFLAGS. Ignore libCrun as
14391 # -library=stlport4 depends on it.
14392 case " $CXX $CXXFLAGS " in
14393 *" -library=stlport4 "*)
14394 solaris_use_stlport4=yes
14398 # Adding this requires a known-good setup of shared libraries for
14399 # Sun compiler versions before 5.6, else PIC objects from an old
14400 # archive will be linked into the output, leading to subtle bugs.
14401 if test "$solaris_use_stlport4" != yes; then
14402 postdeps_CXX='-library=Cstd -library=Crun'
14410 case " $postdeps_CXX " in
14411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14413 compiler_lib_search_dirs_CXX=
14414 if test -n "${compiler_lib_search_path_CXX}"; then
14415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14448 lt_prog_compiler_wl_CXX=
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX=
14452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14455 # C++ specific cases for pic, static, wl, etc.
14456 if test "$GXX" = yes; then
14457 lt_prog_compiler_wl_CXX='-Wl,'
14458 lt_prog_compiler_static_CXX='-static'
14462 # All AIX code is PIC.
14463 if test "$host_cpu" = ia64; then
14464 # AIX 5 now supports IA64 processor
14465 lt_prog_compiler_static_CXX='-Bstatic'
14472 # see comment about AmigaOS4 .so support
14473 lt_prog_compiler_pic_CXX='-fPIC'
14476 # FIXME: we need at least 68020 code to build shared libraries, but
14477 # adding the `-m68020' flag to GCC prevents building anything better,
14479 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14485 # PIC is the default for these OSes.
14487 mingw* | cygwin* | os2* | pw32* | cegcc*)
14488 # This hack is so that the source file can tell whether it is being
14489 # built for inclusion in a dll (and should export symbols for example).
14490 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14491 # (--disable-auto-import) libraries
14492 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14494 darwin* | rhapsody*)
14495 # PIC is the default on this platform
14496 # Common symbols not allowed in MH_DYLIB files
14497 lt_prog_compiler_pic_CXX='-fno-common'
14500 # DJGPP does not support shared libraries at all
14501 lt_prog_compiler_pic_CXX=
14504 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14505 # Instead, we relocate shared libraries at runtime.
14508 if test -d /usr/nec; then
14509 lt_prog_compiler_pic_CXX=-Kconform_pic
14513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14515 # sets the default TLS model and affects inlining.
14520 lt_prog_compiler_pic_CXX='-fPIC'
14525 # QNX uses GNU C++, but need to define -shared option too, otherwise
14526 # it will coredump.
14527 lt_prog_compiler_pic_CXX='-fPIC -shared'
14530 lt_prog_compiler_pic_CXX='-fPIC'
14536 # All AIX code is PIC.
14537 if test "$host_cpu" = ia64; then
14538 # AIX 5 now supports IA64 processor
14539 lt_prog_compiler_static_CXX='-Bstatic'
14541 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14545 case $cc_basename in
14547 # Green Hills C++ Compiler
14548 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14553 case $cc_basename in
14555 lt_prog_compiler_pic_CXX='-KPIC'
14558 # Green Hills C++ Compiler
14559 lt_prog_compiler_pic_CXX='-pic'
14565 freebsd* | dragonfly*)
14566 # FreeBSD uses GNU C++
14568 hpux9* | hpux10* | hpux11*)
14569 case $cc_basename in
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573 if test "$host_cpu" != ia64; then
14574 lt_prog_compiler_pic_CXX='+Z'
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14585 lt_prog_compiler_pic_CXX='+Z'
14594 # This is c89, which is MS Visual C++ (no shared libs)
14595 # Anyone wants to do a port?
14597 irix5* | irix6* | nonstopux*)
14598 case $cc_basename in
14600 lt_prog_compiler_wl_CXX='-Wl,'
14601 lt_prog_compiler_static_CXX='-non_shared'
14602 # CC pic flag -KPIC is the default.
14608 linux* | k*bsd*-gnu)
14609 case $cc_basename in
14612 lt_prog_compiler_wl_CXX='--backend -Wl,'
14613 lt_prog_compiler_pic_CXX='-fPIC'
14616 # old Intel C++ for x86_64 which still supported -KPIC.
14617 lt_prog_compiler_wl_CXX='-Wl,'
14618 lt_prog_compiler_pic_CXX='-KPIC'
14619 lt_prog_compiler_static_CXX='-static'
14622 # Intel C++, used to be incompatible with GCC.
14623 # ICC 10 doesn't accept -KPIC any more.
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 lt_prog_compiler_pic_CXX='-fPIC'
14626 lt_prog_compiler_static_CXX='-static'
14629 # Portland Group C++ compiler
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 lt_prog_compiler_pic_CXX='-fpic'
14632 lt_prog_compiler_static_CXX='-Bstatic'
14636 # Make sure the PIC flag is empty. It appears that all Alpha
14637 # Linux and Compaq Tru64 Unix objects are PIC.
14638 lt_prog_compiler_pic_CXX=
14639 lt_prog_compiler_static_CXX='-non_shared'
14642 # IBM XL 8.0 on PPC
14643 lt_prog_compiler_wl_CXX='-Wl,'
14644 lt_prog_compiler_pic_CXX='-qpic'
14645 lt_prog_compiler_static_CXX='-qstaticlink'
14648 case `$CC -V 2>&1 | sed 5q` in
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 lt_prog_compiler_static_CXX='-Bstatic'
14653 lt_prog_compiler_wl_CXX='-Qoption ld '
14664 case $cc_basename in
14666 lt_prog_compiler_pic_CXX='-W c,exportall'
14675 # QNX uses GNU C++, but need to define -shared option too, otherwise
14676 # it will coredump.
14677 lt_prog_compiler_pic_CXX='-fPIC -shared'
14679 osf3* | osf4* | osf5*)
14680 case $cc_basename in
14682 lt_prog_compiler_wl_CXX='--backend -Wl,'
14685 # Rational C++ 2.4.1
14686 lt_prog_compiler_pic_CXX='-pic'
14689 # Digital/Compaq C++
14690 lt_prog_compiler_wl_CXX='-Wl,'
14691 # Make sure the PIC flag is empty. It appears that all Alpha
14692 # Linux and Compaq Tru64 Unix objects are PIC.
14693 lt_prog_compiler_pic_CXX=
14694 lt_prog_compiler_static_CXX='-non_shared'
14703 case $cc_basename in
14705 # Sun C++ 4.2, 5.x and Centerline C++
14706 lt_prog_compiler_pic_CXX='-KPIC'
14707 lt_prog_compiler_static_CXX='-Bstatic'
14708 lt_prog_compiler_wl_CXX='-Qoption ld '
14711 # Green Hills C++ Compiler
14712 lt_prog_compiler_pic_CXX='-PIC'
14719 case $cc_basename in
14722 lt_prog_compiler_pic_CXX='-pic'
14723 lt_prog_compiler_static_CXX='-Bstatic'
14727 lt_prog_compiler_pic_CXX='-pic'
14733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14734 case $cc_basename in
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_pic_CXX='-KPIC'
14738 lt_prog_compiler_static_CXX='-Bstatic'
14743 case $cc_basename in
14745 # NonStop-UX NCC 3.20
14746 lt_prog_compiler_pic_CXX='-KPIC'
14755 lt_prog_compiler_can_build_shared_CXX=no
14761 # For platforms which do not support PIC, -DPIC is meaningless:
14763 lt_prog_compiler_pic_CXX=
14766 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14775 # Check to make sure the PIC flag actually works.
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14780 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 lt_cv_prog_compiler_pic_works_CXX=no
14784 ac_outfile=conftest.$ac_objext
14785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787 # Insert the option either (1) after the last *FLAGS variable, or
14788 # (2) before a word containing "conftest.", or (3) at the end.
14789 # Note that $ac_compile itself does not contain backslashes and begins
14790 # with a dollar sign (not a hyphen), so the echo should work correctly.
14791 # The option is referenced via a variable to avoid confusing sed.
14792 lt_compile=`echo "$ac_compile" | $SED \
14793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:14796: $lt_compile\"" >&5)
14797 (eval "$lt_compile" 2>conftest.err)
14799 cat conftest.err >&5
14800 echo "$as_me:14800: \$? = $ac_status" >&5
14801 if (exit $ac_status) && test -s "$ac_outfile"; then
14802 # The compiler can only warn and ignore the option if not recognized
14803 # So say no if there are warnings other than the usual output.
14804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807 lt_cv_prog_compiler_pic_works_CXX=yes
14813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817 case $lt_prog_compiler_pic_CXX in
14819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14822 lt_prog_compiler_pic_CXX=
14823 lt_prog_compiler_can_build_shared_CXX=no
14831 # Check to make sure the static flag actually works.
14833 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14834 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 lt_cv_prog_compiler_static_works_CXX=no
14840 save_LDFLAGS="$LDFLAGS"
14841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844 # The linker can only warn and ignore the option if not recognized
14845 # So say no if there are warnings
14846 if test -s conftest.err; then
14847 # Append any errors to the config.log.
14848 cat conftest.err 1>&5
14849 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851 if diff conftest.exp conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler_static_works_CXX=yes
14855 lt_cv_prog_compiler_static_works_CXX=yes
14859 LDFLAGS="$save_LDFLAGS"
14862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14863 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14865 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14868 lt_prog_compiler_static_CXX=
14874 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 lt_cv_prog_compiler_c_o_CXX=no
14880 $RM -r conftest 2>/dev/null
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886 lt_compiler_flag="-o out/conftest2.$ac_objext"
14887 # Insert the option either (1) after the last *FLAGS variable, or
14888 # (2) before a word containing "conftest.", or (3) at the end.
14889 # Note that $ac_compile itself does not contain backslashes and begins
14890 # with a dollar sign (not a hyphen), so the echo should work correctly.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>out/conftest.err)
14898 cat out/conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902 # The compiler can only warn and ignore the option if not recognized
14903 # So say no if there are warnings
14904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907 lt_cv_prog_compiler_c_o_CXX=yes
14912 # SGI C++ compiler will create directory out/ii_files/ for
14913 # template instantiation
14914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915 $RM out/* && rmdir out
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14926 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 lt_cv_prog_compiler_c_o_CXX=no
14932 $RM -r conftest 2>/dev/null
14936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938 lt_compiler_flag="-o out/conftest2.$ac_objext"
14939 # Insert the option either (1) after the last *FLAGS variable, or
14940 # (2) before a word containing "conftest.", or (3) at the end.
14941 # Note that $ac_compile itself does not contain backslashes and begins
14942 # with a dollar sign (not a hyphen), so the echo should work correctly.
14943 lt_compile=`echo "$ac_compile" | $SED \
14944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946 -e 's:$: $lt_compiler_flag:'`
14947 (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948 (eval "$lt_compile" 2>out/conftest.err)
14950 cat out/conftest.err >&5
14951 echo "$as_me:14951: \$? = $ac_status" >&5
14952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14954 # The compiler can only warn and ignore the option if not recognized
14955 # So say no if there are warnings
14956 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959 lt_cv_prog_compiler_c_o_CXX=yes
14964 # SGI C++ compiler will create directory out/ii_files/ for
14965 # template instantiation
14966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14967 $RM out/* && rmdir out
14973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979 hard_links="nottested"
14980 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14981 # do not overwrite the value of need_locks provided by the user
14982 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 ln conftest.a conftest.b 2>&5 || hard_links=no
14989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990 { echo "$as_me:$LINENO: result: $hard_links" >&5
14991 echo "${ECHO_T}$hard_links" >&6; }
14992 if test "$hard_links" = no; then
14993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009 # If we're using GNU nm, then we don't want the "-C" option.
15010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15012 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15014 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15018 export_symbols_cmds_CXX="$ltdll_cmds"
15020 cygwin* | mingw* | cegcc*)
15021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15027 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15029 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15030 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15031 test "$ld_shlibs_CXX" = no && can_build_shared=no
15033 with_gnu_ld_CXX=$with_gnu_ld
15041 # Do we need to explicitly link libc?
15043 case "x$archive_cmds_need_lc_CXX" in
15045 # Assume -lc should be added
15046 archive_cmds_need_lc_CXX=yes
15048 if test "$enable_shared" = yes && test "$GCC" = yes; then
15049 case $archive_cmds_CXX in
15051 # FIXME: we may have to deal with multi-command sequences.
15054 # Test whether the compiler implicitly links with -lc since on some
15055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15056 # to ld, don't add -lc before -lgcc.
15057 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } 2>conftest.err; then
15069 libobjs=conftest.$ac_objext
15071 wl=$lt_prog_compiler_wl_CXX
15072 pic_flag=$lt_prog_compiler_pic_CXX
15078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15079 allow_undefined_flag_CXX=
15080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15081 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }
15086 archive_cmds_need_lc_CXX=no
15088 archive_cmds_need_lc_CXX=yes
15090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15092 cat conftest.err 1>&5
15095 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15166 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15169 library_names_spec=
15170 libname_spec='lib$name'
15174 postuninstall_cmds=
15178 shlibpath_overrides_runpath=unknown
15180 dynamic_linker="$host_os ld.so"
15181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15182 need_lib_prefix=unknown
15183 hardcode_into_libs=no
15185 # when you set need_version to no, make sure it does not cause -set_version
15186 # flags to be left without arguments
15187 need_version=unknown
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15193 shlibpath_var=LIBPATH
15195 # AIX 3 has no versioning support, so we append a major version to the name.
15196 soname_spec='${libname}${release}${shared_ext}$major'
15203 hardcode_into_libs=yes
15204 if test "$host_cpu" = ia64; then
15205 # AIX 5 supports IA64
15206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15207 shlibpath_var=LD_LIBRARY_PATH
15209 # With GCC up to 2.95.x, collect2 would create an import file
15210 # for dependence libraries. The import file would start with
15211 # the line `#! .'. This would cause the generated library to
15212 # depend on `.', always an invalid library. This was fixed in
15213 # development snapshots of GCC prior to 3.0.
15215 aix4 | aix4.[01] | aix4.[01].*)
15216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15221 can_build_shared=no
15225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15226 # soname into executable. Probably we can add versioning support to
15227 # collect2, so additional links can be useful in future.
15228 if test "$aix_use_runtimelinking" = yes; then
15229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230 # instead of lib<name>.a to let people know that these are not
15231 # typical AIX shared libraries.
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 # We preserve .a as extension for shared libraries through AIX4.2
15235 # and later when we are not doing run time linking.
15236 library_names_spec='${libname}${release}.a $libname.a'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LIBPATH
15246 # Since July 2007 AmigaOS4 officially supports .so libraries.
15247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 library_names_spec='$libname.ixlibrary $libname.a'
15252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15253 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15259 library_names_spec='${libname}${shared_ext}'
15260 dynamic_linker="$host_os ld.so"
15261 shlibpath_var=LIBRARY_PATH
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273 # the default ld.so.conf also contains /usr/contrib/lib and
15274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275 # libtool to hard-code these into programs
15278 cygwin* | mingw* | pw32* | cegcc*)
15279 version_type=windows
15284 case $GCC,$host_os in
15285 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15286 library_names_spec='$libname.dll.a'
15287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288 postinstall_cmds='base_file=`basename \${file}`~
15289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290 dldir=$destdir/`dirname \$dlpath`~
15291 test -d \$dldir || mkdir -p \$dldir~
15292 $install_prog $dir/$dlname \$dldir/$dlname~
15293 chmod a+x \$dldir/$dlname~
15294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298 dlpath=$dir/\$dldll~
15300 shlibpath_overrides_runpath=yes
15304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15309 # MinGW DLLs use traditional 'lib' prefix
15310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15312 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15313 # It is most probably a Windows format PATH printed by
15314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15315 # path with ; separators, and with drive letters. We can handle the
15316 # drive letters (cygwin fileutils understands them), so leave them,
15317 # especially as we might pass files found there to a mingw objdump,
15318 # which wouldn't understand a cygwinified path. Ahh.
15319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15325 # pw32 DLLs use 'pw' prefix rather than 'lib'
15326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15335 dynamic_linker='Win32 ld.exe'
15336 # FIXME: first we should search . and the directory the executable is in
15340 darwin* | rhapsody*)
15341 dynamic_linker="$host_os dyld"
15342 version_type=darwin
15345 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15346 soname_spec='${libname}${release}${major}$shared_ext'
15347 shlibpath_overrides_runpath=yes
15348 shlibpath_var=DYLD_LIBRARY_PATH
15349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15351 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15367 freebsd* | dragonfly*)
15368 # DragonFly does not have aout. When/if they implement a new
15369 # versioning mechanism, adjust this.
15370 if test -x /usr/bin/objformat; then
15371 objformat=`/usr/bin/objformat`
15374 freebsd[123]*) objformat=aout ;;
15375 *) objformat=elf ;;
15378 version_type=freebsd-$objformat
15379 case $version_type in
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15395 freebsd3.[01]* | freebsdelf3.[01]*)
15396 shlibpath_overrides_runpath=yes
15397 hardcode_into_libs=yes
15399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401 shlibpath_overrides_runpath=no
15402 hardcode_into_libs=yes
15404 *) # from 4.6 on, and DragonFly
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 hardcode_into_libs=yes
15421 hpux9* | hpux10* | hpux11*)
15422 # Give a soname corresponding to the major version so that dld.sl refuses to
15423 # link against other versions.
15430 hardcode_into_libs=yes
15431 dynamic_linker="$host_os dld.so"
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 if test "X$HPUX_IA64_MODE" = X32; then
15437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445 hardcode_into_libs=yes
15446 dynamic_linker="$host_os dld.sl"
15447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=SHLIB_PATH
15458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464 postinstall_cmds='chmod 555 $lib'
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 hardcode_into_libs=yes
15479 irix5* | irix6* | nonstopux*)
15481 nonstopux*) version_type=nonstopux ;;
15483 if test "$lt_cv_prog_gnu_ld" = yes; then
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 irix5* | nonstopux*)
15495 libsuff= shlibsuff=
15498 case $LD in # libtool.m4 will add one of these switches to LD
15499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500 libsuff= shlibsuff= libmagic=32-bit;;
15501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502 libsuff=32 shlibsuff=N32 libmagic=N32;;
15503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505 *) libsuff= shlibsuff= libmagic=never-match;;
15509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510 shlibpath_overrides_runpath=no
15511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513 hardcode_into_libs=yes
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15521 # This must be Linux ELF.
15522 linux* | k*bsd*-gnu)
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath=no
15531 # Some binutils ld are patched to set DT_RUNPATH
15532 save_LDFLAGS=$LDFLAGS
15533 save_libdir=$libdir
15534 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15535 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_link") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_cxx_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest$ac_exeext &&
15568 $as_test_x conftest$ac_exeext; then
15569 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15570 shlibpath_overrides_runpath=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LDFLAGS=$save_LDFLAGS
15583 libdir=$save_libdir
15585 # This implies no fast_install, which is unacceptable.
15586 # Some rework will be needed to allow for fast_install
15587 # before this can be enabled.
15588 hardcode_into_libs=yes
15590 # Append ld.so.conf contents to the search path
15591 if test -f /etc/ld.so.conf; then
15592 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15596 # We used to test for /lib/ld.so.1 and disable shared libraries on
15597 # powerpc, because MkLinux only supported shared libraries with the
15598 # GNU dynamic linker. Since this was broken with cross compilers,
15599 # most powerpc-linux boxes support dynamic linking these days and
15600 # people can always --disable-shared, the test was removed, and we
15601 # assume the GNU/Linux dynamic linker is in use.
15602 dynamic_linker='GNU/Linux ld.so'
15609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612 dynamic_linker='NetBSD (a.out) ld.so'
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 dynamic_linker='NetBSD ld.elf_so'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 shlibpath_overrides_runpath=yes
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=no
15638 hardcode_into_libs=yes
15639 dynamic_linker='ldqnx.so'
15644 sys_lib_dlsearch_path_spec="/usr/lib"
15646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15649 *) need_version=no ;;
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15656 openbsd2.[89] | openbsd2.[89].*)
15657 shlibpath_overrides_runpath=no
15660 shlibpath_overrides_runpath=yes
15664 shlibpath_overrides_runpath=yes
15669 libname_spec='$name'
15672 library_names_spec='$libname${shared_ext} $libname.a'
15673 dynamic_linker='OS/2 ld.exe'
15674 shlibpath_var=LIBPATH
15677 osf3* | osf4* | osf5*)
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 hardcode_into_libs=yes
15701 # ldd complains unless libraries are executable
15702 postinstall_cmds='chmod +x $lib'
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 if test "$with_gnu_ld" = yes; then
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 case $host_vendor in
15724 shlibpath_overrides_runpath=no
15726 runpath_var=LD_RUN_PATH
15734 shlibpath_overrides_runpath=no
15735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15741 if test -d /usr/nec ;then
15743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15744 soname_spec='$libname${shared_ext}.$major'
15745 shlibpath_var=LD_LIBRARY_PATH
15749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15750 version_type=freebsd-elf
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=yes
15757 hardcode_into_libs=yes
15758 if test "$with_gnu_ld" = yes; then
15759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15768 sys_lib_dlsearch_path_spec='/usr/lib'
15772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=no
15779 hardcode_into_libs=yes
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15844 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15846 hardcode_action_CXX=
15847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15848 test -n "$runpath_var_CXX" ||
15849 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15851 # We can hardcode non-existent directories.
15852 if test "$hardcode_direct_CXX" != no &&
15853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15854 # have to relink, otherwise we might link with an installed library
15855 # when we should be linking with a yet-to-be-installed one
15856 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15857 test "$hardcode_minus_L_CXX" != no; then
15858 # Linking always hardcodes the temporary library directory.
15859 hardcode_action_CXX=relink
15861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15862 hardcode_action_CXX=immediate
15865 # We cannot hardcode anything, or else we can only hardcode existing
15867 hardcode_action_CXX=unsupported
15869 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15870 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15872 if test "$hardcode_action_CXX" = relink ||
15873 test "$inherit_rpath_CXX" = yes; then
15874 # Fast installation is not supported
15875 enable_fast_install=no
15876 elif test "$shlibpath_overrides_runpath" = yes ||
15877 test "$enable_shared" = no; then
15878 # Fast installation is not necessary
15879 enable_fast_install=needless
15888 fi # test -n "$compiler"
15894 with_gnu_ld=$lt_save_with_gnu_ld
15895 lt_cv_path_LDCXX=$lt_cv_path_LD
15896 lt_cv_path_LD=$lt_save_path_LD
15897 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15898 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15899 fi # test "$_lt_caught_CXX_error" != yes
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15919 ac_config_commands="$ac_config_commands libtool"
15924 # Only expand once:
15929 if test x$use_libtool != xno; then
15930 DEFAULT_OBJECT_TYPE=".lo"
15931 DEFAULT_ARCHIVE_TYPE=".la"
15932 DEFAULT_SHARED_OBJECT_TYPE=".la"
15933 LIBTOOL="\$(LIBTOOL)"
15934 LIBTOOL_INSTALL_TARGET="libtool-install"
15935 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15936 LIBTOOL_CLEAN_TARGET="libtool-clean"
15937 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15938 FD_PLUGIN_DIR="src/plugins/fd"
15941 DEFAULT_OBJECT_TYPE=".o"
15942 DEFAULT_ARCHIVE_TYPE=".a"
15943 DEFAULT_SHARED_OBJECT_TYPE=".so"
15944 LIBTOOL="# \$(LIBTOOL)"
15945 LIBTOOL_INSTALL_TARGET=""
15946 LIBTOOL_UNINSTALL_TARGET=""
15947 LIBTOOL_CLEAN_TARGET=""
15948 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15963 # Check whether --enable-includes was given.
15964 if test "${enable_includes+set}" = set; then
15965 enableval=$enable_includes;
15966 if test x$enableval = xyes; then
15967 install_includes=yes
15975 if test x$use_libtool != xno -a x$install_includes = xyes; then
15976 INCLUDE_INSTALL_TARGET="install-includes"
15977 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15979 INCLUDE_INSTALL_TARGET=""
15980 INCLUDE_UNINSTALL_TARGET=""
15986 { echo "$as_me:$LINENO: checking host system type" >&5
15987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15988 if test "${ac_cv_host+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 if test "x$host_alias" = x; then
15992 ac_cv_host=$ac_cv_build
15994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15995 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15997 { (exit 1); exit 1; }; }
16001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16002 echo "${ECHO_T}$ac_cv_host" >&6; }
16003 case $ac_cv_host in
16005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16006 echo "$as_me: error: invalid value of canonical host" >&2;}
16007 { (exit 1); exit 1; }; };;
16010 ac_save_IFS=$IFS; IFS='-'
16016 # Remember, the first character of IFS is used to create $*,
16017 # except with old shells:
16020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16024 *cygwin* ) CYGWIN=yes;;
16028 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16034 HAVE_SUN_OS_FALSE='#'
16036 HAVE_SUN_OS_TRUE='#'
16039 cat >>confdefs.h <<\_ACEOF
16040 #define HAVE_SUN_OS 1
16048 HAVE_SUN_OS_FALSE='#'
16050 HAVE_SUN_OS_TRUE='#'
16055 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16061 HAVE_OSF1_OS_FALSE='#'
16063 HAVE_OSF1_OS_TRUE='#'
16064 HAVE_OSF1_OS_FALSE=
16066 cat >>confdefs.h <<\_ACEOF
16067 #define HAVE_OSF1_OS 1
16075 HAVE_OSF1_OS_FALSE='#'
16077 HAVE_OSF1_OS_TRUE='#'
16078 HAVE_OSF1_OS_FALSE=
16082 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16088 HAVE_AIX_OS_FALSE='#'
16090 HAVE_AIX_OS_TRUE='#'
16093 cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_AIX_OS 1
16102 HAVE_AIX_OS_FALSE='#'
16104 HAVE_AIX_OS_TRUE='#'
16109 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16115 HAVE_HPUX_OS_FALSE='#'
16117 HAVE_HPUX_OS_TRUE='#'
16118 HAVE_HPUX_OS_FALSE=
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_HPUX_OS 1
16129 HAVE_HPUX_OS_FALSE='#'
16131 HAVE_HPUX_OS_TRUE='#'
16132 HAVE_HPUX_OS_FALSE=
16136 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16141 HAVE_LINUX_OS_TRUE=
16142 HAVE_LINUX_OS_FALSE='#'
16144 HAVE_LINUX_OS_TRUE='#'
16145 HAVE_LINUX_OS_FALSE=
16147 cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_LINUX_OS 1
16155 HAVE_LINUX_OS_TRUE=
16156 HAVE_LINUX_OS_FALSE='#'
16158 HAVE_LINUX_OS_TRUE='#'
16159 HAVE_LINUX_OS_FALSE=
16163 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16168 HAVE_FREEBSD_OS_TRUE=
16169 HAVE_FREEBSD_OS_FALSE='#'
16171 HAVE_FREEBSD_OS_TRUE='#'
16172 HAVE_FREEBSD_OS_FALSE=
16174 cat >>confdefs.h <<\_ACEOF
16175 #define HAVE_FREEBSD_OS 1
16182 HAVE_FREEBSD_OS_TRUE=
16183 HAVE_FREEBSD_OS_FALSE='#'
16185 HAVE_FREEBSD_OS_TRUE='#'
16186 HAVE_FREEBSD_OS_FALSE=
16190 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16195 HAVE_NETBSD_OS_TRUE=
16196 HAVE_NETBSD_OS_FALSE='#'
16198 HAVE_NETBSD_OS_TRUE='#'
16199 HAVE_NETBSD_OS_FALSE=
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_NETBSD_OS 1
16209 HAVE_NETBSD_OS_TRUE=
16210 HAVE_NETBSD_OS_FALSE='#'
16212 HAVE_NETBSD_OS_TRUE='#'
16213 HAVE_NETBSD_OS_FALSE=
16217 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16222 HAVE_OPENBSD_OS_TRUE=
16223 HAVE_OPENBSD_OS_FALSE='#'
16225 HAVE_OPENBSD_OS_TRUE='#'
16226 HAVE_OPENBSD_OS_FALSE=
16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_OPENBSD_OS 1
16236 HAVE_OPENBSD_OS_TRUE=
16237 HAVE_OPENBSD_OS_FALSE='#'
16239 HAVE_OPENBSD_OS_TRUE='#'
16240 HAVE_OPENBSD_OS_FALSE=
16244 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16250 HAVE_BSDI_OS_FALSE='#'
16252 HAVE_BSDI_OS_TRUE='#'
16253 HAVE_BSDI_OS_FALSE=
16255 cat >>confdefs.h <<\_ACEOF
16256 #define HAVE_BSDI_OS 1
16264 HAVE_BSDI_OS_FALSE='#'
16266 HAVE_BSDI_OS_TRUE='#'
16267 HAVE_BSDI_OS_FALSE=
16271 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16277 HAVE_SGI_OS_FALSE='#'
16279 HAVE_SGI_OS_TRUE='#'
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_SGI_OS 1
16291 HAVE_SGI_OS_FALSE='#'
16293 HAVE_SGI_OS_TRUE='#'
16298 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16304 HAVE_IRIX_OS_FALSE='#'
16306 HAVE_IRIX_OS_TRUE='#'
16307 HAVE_IRIX_OS_FALSE=
16309 cat >>confdefs.h <<\_ACEOF
16310 #define HAVE_IRIX_OS 1
16318 HAVE_IRIX_OS_FALSE='#'
16320 HAVE_IRIX_OS_TRUE='#'
16321 HAVE_IRIX_OS_FALSE=
16325 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16330 HAVE_DARWIN_OS_TRUE=
16331 HAVE_DARWIN_OS_FALSE='#'
16333 HAVE_DARWIN_OS_TRUE='#'
16334 HAVE_DARWIN_OS_FALSE=
16336 cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_DARWIN_OS 1
16344 HAVE_DARWIN_OS_TRUE=
16345 HAVE_DARWIN_OS_FALSE='#'
16347 HAVE_DARWIN_OS_TRUE='#'
16348 HAVE_DARWIN_OS_FALSE=
16353 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16354 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16355 if test "x$DISTNAME" != "x"
16357 echo "distname set to $DISTNAME"
16358 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16361 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16364 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16367 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16370 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16373 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16376 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16379 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16382 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16385 elif test -f /etc/SuSE-release
16388 elif test -d /etc/SuSEconfig
16391 elif test -f /etc/mandrake-release
16394 elif test -f /etc/whitebox-release
16397 elif test -f /etc/redhat-release
16400 elif test -f /etc/gentoo-release
16403 elif test -f /etc/debian_version
16406 elif test -f /etc/slackware-version
16409 elif test x$host_vendor = xapple
16412 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16415 elif test -f /etc/engarde-version
16418 elif test "$CYGWIN" = yes
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_CYGWIN 1
16428 { echo "$as_me:$LINENO: result: done" >&5
16429 echo "${ECHO_T}done" >&6; }
16432 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16433 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16434 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 cat >conftest.make <<\_ACEOF
16441 @echo '@@@%%%=$(MAKE)=@@@%%%'
16443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16445 *@@@%%%=?*=@@@%%%*)
16446 eval ac_cv_prog_make_${ac_make}_set=yes;;
16448 eval ac_cv_prog_make_${ac_make}_set=no;;
16450 rm -f conftest.make
16452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16453 { echo "$as_me:$LINENO: result: yes" >&5
16454 echo "${ECHO_T}yes" >&6; }
16457 { echo "$as_me:$LINENO: result: no" >&5
16458 echo "${ECHO_T}no" >&6; }
16459 SET_MAKE="MAKE=${MAKE-make}"
16465 if test -n "$ac_aux_dir"; then
16466 case "$ac_aux_dir" in
16467 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16468 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16471 if test -z "$MKINSTALLDIRS"; then
16472 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16477 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16478 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16479 # Check whether --enable-nls was given.
16480 if test "${enable_nls+set}" = set; then
16481 enableval=$enable_nls; USE_NLS=$enableval
16486 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16487 echo "${ECHO_T}$USE_NLS" >&6; }
16494 # Prepare PATH_SEPARATOR.
16495 # The user is always right.
16496 if test "${PATH_SEPARATOR+set}" != set; then
16497 echo "#! /bin/sh" >conf$$.sh
16498 echo "exit 0" >>conf$$.sh
16500 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16508 # Find out how to test for executable files. Don't use a zero-byte file,
16509 # as systems may use methods other than mode bits to determine executability.
16510 cat >conf$$.file <<_ASEOF
16514 chmod +x conf$$.file
16515 if test -x conf$$.file >/dev/null 2>&1; then
16516 ac_executable_p="test -x"
16518 ac_executable_p="test -f"
16522 # Extract the first word of "msgfmt", so it can be a program name with args.
16523 set dummy msgfmt; ac_word=$2
16524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16526 if test "${ac_cv_path_MSGFMT+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16534 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16535 for ac_dir in $PATH; do
16537 test -z "$ac_dir" && ac_dir=.
16538 for ac_exec_ext in '' $ac_executable_extensions; do
16539 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16540 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16541 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16542 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16543 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16550 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16554 MSGFMT="$ac_cv_path_MSGFMT"
16555 if test "$MSGFMT" != ":"; then
16556 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16557 echo "${ECHO_T}$MSGFMT" >&6; }
16559 { echo "$as_me:$LINENO: result: no" >&5
16560 echo "${ECHO_T}no" >&6; }
16563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16564 set dummy gmsgfmt; ac_word=$2
16565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16567 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $PATH
16579 test -z "$as_dir" && as_dir=.
16580 for ac_exec_ext in '' $ac_executable_extensions; do
16581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16582 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16590 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16594 GMSGFMT=$ac_cv_path_GMSGFMT
16595 if test -n "$GMSGFMT"; then
16596 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16597 echo "${ECHO_T}$GMSGFMT" >&6; }
16599 { echo "$as_me:$LINENO: result: no" >&5
16600 echo "${ECHO_T}no" >&6; }
16606 # Prepare PATH_SEPARATOR.
16607 # The user is always right.
16608 if test "${PATH_SEPARATOR+set}" != set; then
16609 echo "#! /bin/sh" >conf$$.sh
16610 echo "exit 0" >>conf$$.sh
16612 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16620 # Find out how to test for executable files. Don't use a zero-byte file,
16621 # as systems may use methods other than mode bits to determine executability.
16622 cat >conf$$.file <<_ASEOF
16626 chmod +x conf$$.file
16627 if test -x conf$$.file >/dev/null 2>&1; then
16628 ac_executable_p="test -x"
16630 ac_executable_p="test -f"
16634 # Extract the first word of "xgettext", so it can be a program name with args.
16635 set dummy xgettext; ac_word=$2
16636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16638 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 case "$XGETTEXT" in
16643 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16646 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16647 for ac_dir in $PATH; do
16649 test -z "$ac_dir" && ac_dir=.
16650 for ac_exec_ext in '' $ac_executable_extensions; do
16651 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16652 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16653 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16654 (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
16655 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16662 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16666 XGETTEXT="$ac_cv_path_XGETTEXT"
16667 if test "$XGETTEXT" != ":"; then
16668 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16669 echo "${ECHO_T}$XGETTEXT" >&6; }
16671 { echo "$as_me:$LINENO: result: no" >&5
16672 echo "${ECHO_T}no" >&6; }
16678 # Prepare PATH_SEPARATOR.
16679 # The user is always right.
16680 if test "${PATH_SEPARATOR+set}" != set; then
16681 echo "#! /bin/sh" >conf$$.sh
16682 echo "exit 0" >>conf$$.sh
16684 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16692 # Find out how to test for executable files. Don't use a zero-byte file,
16693 # as systems may use methods other than mode bits to determine executability.
16694 cat >conf$$.file <<_ASEOF
16698 chmod +x conf$$.file
16699 if test -x conf$$.file >/dev/null 2>&1; then
16700 ac_executable_p="test -x"
16702 ac_executable_p="test -f"
16706 # Extract the first word of "msgmerge", so it can be a program name with args.
16707 set dummy msgmerge; ac_word=$2
16708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16710 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 case "$MSGMERGE" in
16715 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16718 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16719 for ac_dir in $PATH; do
16721 test -z "$ac_dir" && ac_dir=.
16722 for ac_exec_ext in '' $ac_executable_extensions; do
16723 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16724 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16725 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16726 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16733 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16737 MSGMERGE="$ac_cv_path_MSGMERGE"
16738 if test "$MSGMERGE" != ":"; then
16739 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16740 echo "${ECHO_T}$MSGMERGE" >&6; }
16742 { echo "$as_me:$LINENO: result: no" >&5
16743 echo "${ECHO_T}no" >&6; }
16747 if test "$GMSGFMT" != ":"; then
16748 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16749 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16752 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16753 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16754 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16759 if test "$XGETTEXT" != ":"; then
16760 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16761 (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
16764 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16765 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16771 ac_config_commands="$ac_config_commands default-1"
16775 if test "X$prefix" = "XNONE"; then
16776 acl_final_prefix="$ac_default_prefix"
16778 acl_final_prefix="$prefix"
16780 if test "X$exec_prefix" = "XNONE"; then
16781 acl_final_exec_prefix='${prefix}'
16783 acl_final_exec_prefix="$exec_prefix"
16785 acl_save_prefix="$prefix"
16786 prefix="$acl_final_prefix"
16787 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16788 prefix="$acl_save_prefix"
16791 # Check whether --with-gnu-ld was given.
16792 if test "${with_gnu_ld+set}" = set; then
16793 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16798 # Prepare PATH_SEPARATOR.
16799 # The user is always right.
16800 if test "${PATH_SEPARATOR+set}" != set; then
16801 echo "#! /bin/sh" >conf$$.sh
16802 echo "exit 0" >>conf$$.sh
16804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16812 if test "$GCC" = yes; then
16813 # Check if gcc -print-prog-name=ld gives a path.
16814 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16815 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16818 # gcc leaves a trailing carriage return which upsets mingw
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16824 # Accept absolute paths.
16825 [\\/]* | [A-Za-z]:[\\/]*)
16826 re_direlt='/[^/][^/]*/\.\./'
16827 # Canonicalize the path of ld
16828 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16829 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16830 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16832 test -z "$LD" && LD="$ac_prog"
16835 # If it fails, then pretend we aren't using GCC.
16839 # If it is relative, then search for the first ld in PATH.
16840 with_gnu_ld=unknown
16843 elif test "$with_gnu_ld" = yes; then
16844 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16845 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16847 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16848 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16850 if test "${acl_cv_path_LD+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 if test -z "$LD"; then
16854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16855 for ac_dir in $PATH; do
16856 test -z "$ac_dir" && ac_dir=.
16857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16858 acl_cv_path_LD="$ac_dir/$ac_prog"
16859 # Check to see if the program is GNU ld. I'd rather use --version,
16860 # but apparently some GNU ld's only accept -v.
16861 # Break only if it was the GNU/non-GNU ld that we prefer.
16862 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16863 *GNU* | *'with BFD'*)
16864 test "$with_gnu_ld" != no && break ;;
16866 test "$with_gnu_ld" != yes && break ;;
16872 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16876 LD="$acl_cv_path_LD"
16877 if test -n "$LD"; then
16878 { echo "$as_me:$LINENO: result: $LD" >&5
16879 echo "${ECHO_T}$LD" >&6; }
16881 { echo "$as_me:$LINENO: result: no" >&5
16882 echo "${ECHO_T}no" >&6; }
16884 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16885 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16886 { (exit 1); exit 1; }; }
16887 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16888 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16889 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16893 case `$LD -v 2>&1 </dev/null` in
16894 *GNU* | *'with BFD'*)
16895 acl_cv_prog_gnu_ld=yes ;;
16897 acl_cv_prog_gnu_ld=no ;;
16900 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16901 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16902 with_gnu_ld=$acl_cv_prog_gnu_ld
16907 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16908 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16909 if test "${acl_cv_rpath+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16914 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16916 rm -f ./conftest.sh
16920 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16921 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16923 libext="$acl_cv_libext"
16924 shlibext="$acl_cv_shlibext"
16925 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16926 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16927 hardcode_direct="$acl_cv_hardcode_direct"
16928 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16929 # Check whether --enable-rpath was given.
16930 if test "${enable_rpath+set}" = set; then
16931 enableval=$enable_rpath; :
16945 acl_save_prefix="$prefix"
16946 prefix="$acl_final_prefix"
16947 acl_save_exec_prefix="$exec_prefix"
16948 exec_prefix="$acl_final_exec_prefix"
16950 eval additional_includedir=\"$includedir\"
16951 eval additional_libdir=\"$libdir\"
16953 exec_prefix="$acl_save_exec_prefix"
16954 prefix="$acl_save_prefix"
16957 # Check whether --with-libiconv-prefix was given.
16958 if test "${with_libiconv_prefix+set}" = set; then
16959 withval=$with_libiconv_prefix;
16960 if test "X$withval" = "Xno"; then
16963 if test "X$withval" = "X"; then
16965 acl_save_prefix="$prefix"
16966 prefix="$acl_final_prefix"
16967 acl_save_exec_prefix="$exec_prefix"
16968 exec_prefix="$acl_final_exec_prefix"
16970 eval additional_includedir=\"$includedir\"
16971 eval additional_libdir=\"$libdir\"
16973 exec_prefix="$acl_save_exec_prefix"
16974 prefix="$acl_save_prefix"
16977 additional_includedir="$withval/include"
16978 additional_libdir="$withval/lib"
16989 names_already_handled=
16990 names_next_round='iconv '
16991 while test -n "$names_next_round"; do
16992 names_this_round="$names_next_round"
16994 for name in $names_this_round; do
16996 for n in $names_already_handled; do
16997 if test "$n" = "$name"; then
16998 already_handled=yes
17002 if test -z "$already_handled"; then
17003 names_already_handled="$names_already_handled $name"
17004 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17005 eval value=\"\$HAVE_LIB$uppername\"
17006 if test -n "$value"; then
17007 if test "$value" = yes; then
17008 eval value=\"\$LIB$uppername\"
17009 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17010 eval value=\"\$LTLIB$uppername\"
17011 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17020 if test $use_additional = yes; then
17021 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17022 found_dir="$additional_libdir"
17023 found_so="$additional_libdir/lib$name.$shlibext"
17024 if test -f "$additional_libdir/lib$name.la"; then
17025 found_la="$additional_libdir/lib$name.la"
17028 if test -f "$additional_libdir/lib$name.$libext"; then
17029 found_dir="$additional_libdir"
17030 found_a="$additional_libdir/lib$name.$libext"
17031 if test -f "$additional_libdir/lib$name.la"; then
17032 found_la="$additional_libdir/lib$name.la"
17037 if test "X$found_dir" = "X"; then
17038 for x in $LDFLAGS $LTLIBICONV; do
17040 acl_save_prefix="$prefix"
17041 prefix="$acl_final_prefix"
17042 acl_save_exec_prefix="$exec_prefix"
17043 exec_prefix="$acl_final_exec_prefix"
17045 exec_prefix="$acl_save_exec_prefix"
17046 prefix="$acl_save_prefix"
17050 dir=`echo "X$x" | sed -e 's/^X-L//'`
17051 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17053 found_so="$dir/lib$name.$shlibext"
17054 if test -f "$dir/lib$name.la"; then
17055 found_la="$dir/lib$name.la"
17058 if test -f "$dir/lib$name.$libext"; then
17060 found_a="$dir/lib$name.$libext"
17061 if test -f "$dir/lib$name.la"; then
17062 found_la="$dir/lib$name.la"
17068 if test "X$found_dir" != "X"; then
17073 if test "X$found_dir" != "X"; then
17074 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17075 if test "X$found_so" != "X"; then
17076 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17077 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17080 for x in $ltrpathdirs; do
17081 if test "X$x" = "X$found_dir"; then
17086 if test -z "$haveit"; then
17087 ltrpathdirs="$ltrpathdirs $found_dir"
17089 if test "$hardcode_direct" = yes; then
17090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17092 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17095 for x in $rpathdirs; do
17096 if test "X$x" = "X$found_dir"; then
17101 if test -z "$haveit"; then
17102 rpathdirs="$rpathdirs $found_dir"
17106 for x in $LDFLAGS $LIBICONV; do
17108 acl_save_prefix="$prefix"
17109 prefix="$acl_final_prefix"
17110 acl_save_exec_prefix="$exec_prefix"
17111 exec_prefix="$acl_final_exec_prefix"
17113 exec_prefix="$acl_save_exec_prefix"
17114 prefix="$acl_save_prefix"
17116 if test "X$x" = "X-L$found_dir"; then
17121 if test -z "$haveit"; then
17122 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17124 if test "$hardcode_minus_L" != no; then
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17127 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17133 if test "X$found_a" != "X"; then
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17136 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17139 additional_includedir=
17140 case "$found_dir" in
17142 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17143 additional_includedir="$basedir/include"
17146 if test "X$additional_includedir" != "X"; then
17147 if test "X$additional_includedir" != "X/usr/include"; then
17149 if test "X$additional_includedir" = "X/usr/local/include"; then
17150 if test -n "$GCC"; then
17152 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17156 if test -z "$haveit"; then
17157 for x in $CPPFLAGS $INCICONV; do
17159 acl_save_prefix="$prefix"
17160 prefix="$acl_final_prefix"
17161 acl_save_exec_prefix="$exec_prefix"
17162 exec_prefix="$acl_final_exec_prefix"
17164 exec_prefix="$acl_save_exec_prefix"
17165 prefix="$acl_save_prefix"
17167 if test "X$x" = "X-I$additional_includedir"; then
17172 if test -z "$haveit"; then
17173 if test -d "$additional_includedir"; then
17174 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17180 if test -n "$found_la"; then
17181 save_libdir="$libdir"
17182 case "$found_la" in
17183 */* | *\\*) . "$found_la" ;;
17184 *) . "./$found_la" ;;
17186 libdir="$save_libdir"
17187 for dep in $dependency_libs; do
17190 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17191 if test "X$additional_libdir" != "X/usr/lib"; then
17193 if test "X$additional_libdir" = "X/usr/local/lib"; then
17194 if test -n "$GCC"; then
17196 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17200 if test -z "$haveit"; then
17202 for x in $LDFLAGS $LIBICONV; do
17204 acl_save_prefix="$prefix"
17205 prefix="$acl_final_prefix"
17206 acl_save_exec_prefix="$exec_prefix"
17207 exec_prefix="$acl_final_exec_prefix"
17209 exec_prefix="$acl_save_exec_prefix"
17210 prefix="$acl_save_prefix"
17212 if test "X$x" = "X-L$additional_libdir"; then
17217 if test -z "$haveit"; then
17218 if test -d "$additional_libdir"; then
17219 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17223 for x in $LDFLAGS $LTLIBICONV; do
17225 acl_save_prefix="$prefix"
17226 prefix="$acl_final_prefix"
17227 acl_save_exec_prefix="$exec_prefix"
17228 exec_prefix="$acl_final_exec_prefix"
17230 exec_prefix="$acl_save_exec_prefix"
17231 prefix="$acl_save_prefix"
17233 if test "X$x" = "X-L$additional_libdir"; then
17238 if test -z "$haveit"; then
17239 if test -d "$additional_libdir"; then
17240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17247 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17248 if test "$enable_rpath" != no; then
17250 for x in $rpathdirs; do
17251 if test "X$x" = "X$dir"; then
17256 if test -z "$haveit"; then
17257 rpathdirs="$rpathdirs $dir"
17260 for x in $ltrpathdirs; do
17261 if test "X$x" = "X$dir"; then
17266 if test -z "$haveit"; then
17267 ltrpathdirs="$ltrpathdirs $dir"
17272 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17278 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17285 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17292 if test "X$rpathdirs" != "X"; then
17293 if test -n "$hardcode_libdir_separator"; then
17295 for found_dir in $rpathdirs; do
17296 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17298 acl_save_libdir="$libdir"
17300 eval flag=\"$hardcode_libdir_flag_spec\"
17301 libdir="$acl_save_libdir"
17302 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17304 for found_dir in $rpathdirs; do
17305 acl_save_libdir="$libdir"
17306 libdir="$found_dir"
17307 eval flag=\"$hardcode_libdir_flag_spec\"
17308 libdir="$acl_save_libdir"
17309 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17313 if test "X$ltrpathdirs" != "X"; then
17314 for found_dir in $ltrpathdirs; do
17315 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17336 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17337 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17338 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 gt_save_CPPFLAGS="$CPPFLAGS"
17342 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17343 gt_save_LIBS="$LIBS"
17344 LIBS="$LIBS -framework CoreFoundation"
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <CFPreferences.h>
17355 CFPreferencesCopyAppValue(NULL, NULL)
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } && {
17374 test -z "$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17376 } && test -s conftest$ac_exeext &&
17377 $as_test_x conftest$ac_exeext; then
17378 gt_cv_func_CFPreferencesCopyAppValue=yes
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 gt_cv_func_CFPreferencesCopyAppValue=no
17386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17387 conftest$ac_exeext conftest.$ac_ext
17388 CPPFLAGS="$gt_save_CPPFLAGS"
17389 LIBS="$gt_save_LIBS"
17391 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17392 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17393 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17400 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17401 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17402 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 gt_save_CPPFLAGS="$CPPFLAGS"
17406 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17407 gt_save_LIBS="$LIBS"
17408 LIBS="$LIBS -framework CoreFoundation"
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <CFLocale.h>
17419 CFLocaleCopyCurrent();
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (ac_try="$ac_link"
17426 case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_link") 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } && {
17438 test -z "$ac_c_werror_flag" ||
17439 test ! -s conftest.err
17440 } && test -s conftest$ac_exeext &&
17441 $as_test_x conftest$ac_exeext; then
17442 gt_cv_func_CFLocaleCopyCurrent=yes
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 gt_cv_func_CFLocaleCopyCurrent=no
17450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451 conftest$ac_exeext conftest.$ac_ext
17452 CPPFLAGS="$gt_save_CPPFLAGS"
17453 LIBS="$gt_save_LIBS"
17455 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17456 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17457 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17459 cat >>confdefs.h <<\_ACEOF
17460 #define HAVE_CFLOCALECOPYCURRENT 1
17465 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17466 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17472 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17474 # Check whether --enable-nls was given.
17475 if test "${enable_nls+set}" = set; then
17476 enableval=$enable_nls; USE_NLS=$enableval
17481 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17482 echo "${ECHO_T}$USE_NLS" >&6; }
17491 if test "$USE_NLS" = "yes"; then
17492 gt_use_preinstalled_gnugettext=no
17499 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17500 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17501 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 cat >conftest.$ac_ext <<_ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 #include <libintl.h>
17511 extern int _nl_msg_cat_cntr;
17512 extern int *_nl_domain_bindings;
17516 bindtextdomain ("", "");
17517 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest$ac_exeext &&
17539 $as_test_x conftest$ac_exeext; then
17540 gt_cv_func_gnugettext1_libc=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 gt_cv_func_gnugettext1_libc=no
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext conftest.$ac_ext
17551 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17552 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17554 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17560 am_save_CPPFLAGS="$CPPFLAGS"
17562 for element in $INCICONV; do
17564 for x in $CPPFLAGS; do
17566 acl_save_prefix="$prefix"
17567 prefix="$acl_final_prefix"
17568 acl_save_exec_prefix="$exec_prefix"
17569 exec_prefix="$acl_final_exec_prefix"
17571 exec_prefix="$acl_save_exec_prefix"
17572 prefix="$acl_save_prefix"
17574 if test "X$x" = "X$element"; then
17579 if test -z "$haveit"; then
17580 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17585 { echo "$as_me:$LINENO: checking for iconv" >&5
17586 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17587 if test "${am_cv_func_iconv+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 am_cv_func_iconv="no, consider installing GNU libiconv"
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <stdlib.h>
17604 iconv_t cd = iconv_open("","");
17605 iconv(cd,NULL,NULL,NULL,NULL);
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_c_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17629 am_cv_func_iconv=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638 conftest$ac_exeext conftest.$ac_ext
17639 if test "$am_cv_func_iconv" != yes; then
17640 am_save_LIBS="$LIBS"
17641 LIBS="$LIBS $LIBICONV"
17642 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 #include <stdlib.h>
17653 iconv_t cd = iconv_open("","");
17654 iconv(cd,NULL,NULL,NULL,NULL);
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_link") 2>conftest.er1
17669 grep -v '^ *+' conftest.er1 >conftest.err
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && {
17674 test -z "$ac_c_werror_flag" ||
17675 test ! -s conftest.err
17676 } && test -s conftest$ac_exeext &&
17677 $as_test_x conftest$ac_exeext; then
17678 am_cv_lib_iconv=yes
17679 am_cv_func_iconv=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LIBS="$am_save_LIBS"
17693 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17694 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17695 if test "$am_cv_func_iconv" = yes; then
17697 cat >>confdefs.h <<\_ACEOF
17698 #define HAVE_ICONV 1
17702 if test "$am_cv_lib_iconv" = yes; then
17703 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17704 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17705 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17706 echo "${ECHO_T}$LIBICONV" >&6; }
17708 CPPFLAGS="$am_save_CPPFLAGS"
17720 acl_save_prefix="$prefix"
17721 prefix="$acl_final_prefix"
17722 acl_save_exec_prefix="$exec_prefix"
17723 exec_prefix="$acl_final_exec_prefix"
17725 eval additional_includedir=\"$includedir\"
17726 eval additional_libdir=\"$libdir\"
17728 exec_prefix="$acl_save_exec_prefix"
17729 prefix="$acl_save_prefix"
17732 # Check whether --with-libintl-prefix was given.
17733 if test "${with_libintl_prefix+set}" = set; then
17734 withval=$with_libintl_prefix;
17735 if test "X$withval" = "Xno"; then
17738 if test "X$withval" = "X"; then
17740 acl_save_prefix="$prefix"
17741 prefix="$acl_final_prefix"
17742 acl_save_exec_prefix="$exec_prefix"
17743 exec_prefix="$acl_final_exec_prefix"
17745 eval additional_includedir=\"$includedir\"
17746 eval additional_libdir=\"$libdir\"
17748 exec_prefix="$acl_save_exec_prefix"
17749 prefix="$acl_save_prefix"
17752 additional_includedir="$withval/include"
17753 additional_libdir="$withval/lib"
17764 names_already_handled=
17765 names_next_round='intl '
17766 while test -n "$names_next_round"; do
17767 names_this_round="$names_next_round"
17769 for name in $names_this_round; do
17771 for n in $names_already_handled; do
17772 if test "$n" = "$name"; then
17773 already_handled=yes
17777 if test -z "$already_handled"; then
17778 names_already_handled="$names_already_handled $name"
17779 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17780 eval value=\"\$HAVE_LIB$uppername\"
17781 if test -n "$value"; then
17782 if test "$value" = yes; then
17783 eval value=\"\$LIB$uppername\"
17784 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17785 eval value=\"\$LTLIB$uppername\"
17786 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17795 if test $use_additional = yes; then
17796 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17797 found_dir="$additional_libdir"
17798 found_so="$additional_libdir/lib$name.$shlibext"
17799 if test -f "$additional_libdir/lib$name.la"; then
17800 found_la="$additional_libdir/lib$name.la"
17803 if test -f "$additional_libdir/lib$name.$libext"; then
17804 found_dir="$additional_libdir"
17805 found_a="$additional_libdir/lib$name.$libext"
17806 if test -f "$additional_libdir/lib$name.la"; then
17807 found_la="$additional_libdir/lib$name.la"
17812 if test "X$found_dir" = "X"; then
17813 for x in $LDFLAGS $LTLIBINTL; do
17815 acl_save_prefix="$prefix"
17816 prefix="$acl_final_prefix"
17817 acl_save_exec_prefix="$exec_prefix"
17818 exec_prefix="$acl_final_exec_prefix"
17820 exec_prefix="$acl_save_exec_prefix"
17821 prefix="$acl_save_prefix"
17825 dir=`echo "X$x" | sed -e 's/^X-L//'`
17826 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17828 found_so="$dir/lib$name.$shlibext"
17829 if test -f "$dir/lib$name.la"; then
17830 found_la="$dir/lib$name.la"
17833 if test -f "$dir/lib$name.$libext"; then
17835 found_a="$dir/lib$name.$libext"
17836 if test -f "$dir/lib$name.la"; then
17837 found_la="$dir/lib$name.la"
17843 if test "X$found_dir" != "X"; then
17848 if test "X$found_dir" != "X"; then
17849 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17850 if test "X$found_so" != "X"; then
17851 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17852 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17855 for x in $ltrpathdirs; do
17856 if test "X$x" = "X$found_dir"; then
17861 if test -z "$haveit"; then
17862 ltrpathdirs="$ltrpathdirs $found_dir"
17864 if test "$hardcode_direct" = yes; then
17865 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17867 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17868 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17870 for x in $rpathdirs; do
17871 if test "X$x" = "X$found_dir"; then
17876 if test -z "$haveit"; then
17877 rpathdirs="$rpathdirs $found_dir"
17881 for x in $LDFLAGS $LIBINTL; do
17883 acl_save_prefix="$prefix"
17884 prefix="$acl_final_prefix"
17885 acl_save_exec_prefix="$exec_prefix"
17886 exec_prefix="$acl_final_exec_prefix"
17888 exec_prefix="$acl_save_exec_prefix"
17889 prefix="$acl_save_prefix"
17891 if test "X$x" = "X-L$found_dir"; then
17896 if test -z "$haveit"; then
17897 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17899 if test "$hardcode_minus_L" != no; then
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17902 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17908 if test "X$found_a" != "X"; then
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17911 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17914 additional_includedir=
17915 case "$found_dir" in
17917 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17918 additional_includedir="$basedir/include"
17921 if test "X$additional_includedir" != "X"; then
17922 if test "X$additional_includedir" != "X/usr/include"; then
17924 if test "X$additional_includedir" = "X/usr/local/include"; then
17925 if test -n "$GCC"; then
17927 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17931 if test -z "$haveit"; then
17932 for x in $CPPFLAGS $INCINTL; do
17934 acl_save_prefix="$prefix"
17935 prefix="$acl_final_prefix"
17936 acl_save_exec_prefix="$exec_prefix"
17937 exec_prefix="$acl_final_exec_prefix"
17939 exec_prefix="$acl_save_exec_prefix"
17940 prefix="$acl_save_prefix"
17942 if test "X$x" = "X-I$additional_includedir"; then
17947 if test -z "$haveit"; then
17948 if test -d "$additional_includedir"; then
17949 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17955 if test -n "$found_la"; then
17956 save_libdir="$libdir"
17957 case "$found_la" in
17958 */* | *\\*) . "$found_la" ;;
17959 *) . "./$found_la" ;;
17961 libdir="$save_libdir"
17962 for dep in $dependency_libs; do
17965 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17966 if test "X$additional_libdir" != "X/usr/lib"; then
17968 if test "X$additional_libdir" = "X/usr/local/lib"; then
17969 if test -n "$GCC"; then
17971 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17975 if test -z "$haveit"; then
17977 for x in $LDFLAGS $LIBINTL; do
17979 acl_save_prefix="$prefix"
17980 prefix="$acl_final_prefix"
17981 acl_save_exec_prefix="$exec_prefix"
17982 exec_prefix="$acl_final_exec_prefix"
17984 exec_prefix="$acl_save_exec_prefix"
17985 prefix="$acl_save_prefix"
17987 if test "X$x" = "X-L$additional_libdir"; then
17992 if test -z "$haveit"; then
17993 if test -d "$additional_libdir"; then
17994 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17998 for x in $LDFLAGS $LTLIBINTL; do
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18008 if test "X$x" = "X-L$additional_libdir"; then
18013 if test -z "$haveit"; then
18014 if test -d "$additional_libdir"; then
18015 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18022 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18023 if test "$enable_rpath" != no; then
18025 for x in $rpathdirs; do
18026 if test "X$x" = "X$dir"; then
18031 if test -z "$haveit"; then
18032 rpathdirs="$rpathdirs $dir"
18035 for x in $ltrpathdirs; do
18036 if test "X$x" = "X$dir"; then
18041 if test -z "$haveit"; then
18042 ltrpathdirs="$ltrpathdirs $dir"
18047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18050 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18053 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18054 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18060 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18067 if test "X$rpathdirs" != "X"; then
18068 if test -n "$hardcode_libdir_separator"; then
18070 for found_dir in $rpathdirs; do
18071 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18073 acl_save_libdir="$libdir"
18075 eval flag=\"$hardcode_libdir_flag_spec\"
18076 libdir="$acl_save_libdir"
18077 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18079 for found_dir in $rpathdirs; do
18080 acl_save_libdir="$libdir"
18081 libdir="$found_dir"
18082 eval flag=\"$hardcode_libdir_flag_spec\"
18083 libdir="$acl_save_libdir"
18084 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18088 if test "X$ltrpathdirs" != "X"; then
18089 for found_dir in $ltrpathdirs; do
18090 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18094 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18095 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18096 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 gt_save_CPPFLAGS="$CPPFLAGS"
18100 CPPFLAGS="$CPPFLAGS $INCINTL"
18101 gt_save_LIBS="$LIBS"
18102 LIBS="$LIBS $LIBINTL"
18103 cat >conftest.$ac_ext <<_ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 #include <libintl.h>
18110 extern int _nl_msg_cat_cntr;
18115 const char *_nl_expand_alias (const char *);
18119 bindtextdomain ("", "");
18120 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18125 rm -f conftest.$ac_objext conftest$ac_exeext
18126 if { (ac_try="$ac_link"
18127 case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_link") 2>conftest.er1
18134 grep -v '^ *+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && {
18139 test -z "$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18141 } && test -s conftest$ac_exeext &&
18142 $as_test_x conftest$ac_exeext; then
18143 gt_cv_func_gnugettext1_libintl=yes
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 gt_cv_func_gnugettext1_libintl=no
18151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18152 conftest$ac_exeext conftest.$ac_ext
18153 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18154 LIBS="$LIBS $LIBICONV"
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <libintl.h>
18162 extern int _nl_msg_cat_cntr;
18167 const char *_nl_expand_alias (const char *);
18171 bindtextdomain ("", "");
18172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest$ac_exeext &&
18194 $as_test_x conftest$ac_exeext; then
18195 LIBINTL="$LIBINTL $LIBICONV"
18196 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18197 gt_cv_func_gnugettext1_libintl=yes
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207 conftest$ac_exeext conftest.$ac_ext
18209 CPPFLAGS="$gt_save_CPPFLAGS"
18210 LIBS="$gt_save_LIBS"
18212 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18213 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18216 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18217 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18218 && test "$PACKAGE" != gettext-runtime \
18219 && test "$PACKAGE" != gettext-tools; }; then
18220 gt_use_preinstalled_gnugettext=yes
18229 if test -n "$INTL_MACOSX_LIBS"; then
18230 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18231 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18232 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18233 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18237 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18238 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define ENABLE_NLS 1
18249 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18250 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18251 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18252 echo "${ECHO_T}$USE_NLS" >&6; }
18253 if test "$USE_NLS" = "yes"; then
18254 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18255 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18256 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18257 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18258 gt_source="external libintl"
18263 gt_source="included intl directory"
18265 { echo "$as_me:$LINENO: result: $gt_source" >&5
18266 echo "${ECHO_T}$gt_source" >&6; }
18269 if test "$USE_NLS" = "yes"; then
18271 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18272 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18273 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18274 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18275 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18276 echo "${ECHO_T}$LIBINTL" >&6; }
18278 for element in $INCINTL; do
18280 for x in $CPPFLAGS; do
18282 acl_save_prefix="$prefix"
18283 prefix="$acl_final_prefix"
18284 acl_save_exec_prefix="$exec_prefix"
18285 exec_prefix="$acl_final_exec_prefix"
18287 exec_prefix="$acl_save_exec_prefix"
18288 prefix="$acl_save_prefix"
18290 if test "X$x" = "X$element"; then
18295 if test -z "$haveit"; then
18296 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_GETTEXT 1
18308 cat >>confdefs.h <<\_ACEOF
18309 #define HAVE_DCGETTEXT 1
18319 INTLLIBS="$LIBINTL"
18327 os_name=`uname -s 2>/dev/null`
18328 if test x${prefix} = xNONE ; then
18329 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18330 sysconfdir=/etc/bacula
18333 if test `eval echo ${libdir}` = NONE/lib ; then
18336 os_processor=`uname -p 2>/dev/null`
18337 case ${os_processor} in
18352 if test `eval echo ${includedir}` = NONE/include ; then
18353 includedir=/usr/include
18356 if test `eval echo ${datarootdir}` = NONE/share ; then
18357 datarootdir=/usr/share
18362 if test x${exec_prefix} = xNONE ; then
18363 exec_prefix=${prefix}
18366 sysconfdir=`eval echo ${sysconfdir}`
18367 datarootdir=`eval echo ${datarootdir}`
18368 docdir=`eval echo ${docdir}`
18369 htmldir=`eval echo ${htmldir}`
18370 libdir=`eval echo ${libdir}`
18371 includedir=`eval echo ${includedir}`
18372 localedir=`eval echo ${datarootdir}/locale`
18373 cat >>confdefs.h <<_ACEOF
18374 #define SYSCONFDIR "$sysconfdir"
18377 cat >>confdefs.h <<_ACEOF
18378 #define LOCALEDIR "$localedir"
18382 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18383 sbindir=${exec_prefix}/sbin
18385 sbindir=`eval echo ${sbindir}`
18387 if test x$mandir = x'${prefix}/man' ; then
18388 mandir=/usr/share/man
18391 if test x$htmldir = x${docdir} ; then
18392 htmldir=`eval echo ${docdir}bacula/html`
18395 if test x$docdir = x'/usr/share/doc/' ; then
18396 docdir=`eval echo ${docdir}bacula`
18400 for ac_prog in msgfmt
18402 # Extract the first word of "$ac_prog", so it can be a program name with args.
18403 set dummy $ac_prog; ac_word=$2
18404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18406 if test "${ac_cv_path_MSGFMT+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18415 for as_dir in $PATH
18418 test -z "$as_dir" && as_dir=.
18419 for ac_exec_ext in '' $ac_executable_extensions; do
18420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18421 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18432 MSGFMT=$ac_cv_path_MSGFMT
18433 if test -n "$MSGFMT"; then
18434 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18435 echo "${ECHO_T}$MSGFMT" >&6; }
18437 { echo "$as_me:$LINENO: result: no" >&5
18438 echo "${ECHO_T}no" >&6; }
18442 test -n "$MSGFMT" && break
18444 test -n "$MSGFMT" || MSGFMT="no"
18446 if test "$MSGFMT" = "no"
18448 echo 'msgfmt program not found, disabling NLS !'
18450 USE_INCLUDED_LIBINTL=no
18453 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18454 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18455 if test "${ac_cv_gnu_library_2+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18465 #include <features.h>
18466 #ifdef __GNU_LIBRARY__
18467 #if (__GLIBC__ >= 2)
18473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18474 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18475 ac_cv_gnu_library_2=yes
18477 ac_cv_gnu_library_2=no
18484 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18485 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18487 GLIBC2="$ac_cv_gnu_library_2"
18490 if test -n "$ac_tool_prefix"; then
18491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18495 if test "${ac_cv_prog_RANLIB+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 if test -n "$RANLIB"; then
18499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18502 for as_dir in $PATH
18505 test -z "$as_dir" && as_dir=.
18506 for ac_exec_ext in '' $ac_executable_extensions; do
18507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18518 RANLIB=$ac_cv_prog_RANLIB
18519 if test -n "$RANLIB"; then
18520 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18521 echo "${ECHO_T}$RANLIB" >&6; }
18523 { echo "$as_me:$LINENO: result: no" >&5
18524 echo "${ECHO_T}no" >&6; }
18529 if test -z "$ac_cv_prog_RANLIB"; then
18530 ac_ct_RANLIB=$RANLIB
18531 # Extract the first word of "ranlib", so it can be a program name with args.
18532 set dummy ranlib; ac_word=$2
18533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 if test -n "$ac_ct_RANLIB"; then
18539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542 for as_dir in $PATH
18545 test -z "$as_dir" && as_dir=.
18546 for ac_exec_ext in '' $ac_executable_extensions; do
18547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18548 ac_cv_prog_ac_ct_RANLIB="ranlib"
18549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18559 if test -n "$ac_ct_RANLIB"; then
18560 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18561 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18563 { echo "$as_me:$LINENO: result: no" >&5
18564 echo "${ECHO_T}no" >&6; }
18567 if test "x$ac_ct_RANLIB" = x; then
18570 case $cross_compiling:$ac_tool_warned in
18572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18573 whose name does not start with the host triplet. If you think this
18574 configuration is useful to you, please write to autoconf@gnu.org." >&5
18575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18576 whose name does not start with the host triplet. If you think this
18577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18578 ac_tool_warned=yes ;;
18580 RANLIB=$ac_ct_RANLIB
18583 RANLIB="$ac_cv_prog_RANLIB"
18587 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18588 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-lcposix $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return strerror ();
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && {
18630 test -z "$ac_c_werror_flag" ||
18631 test ! -s conftest.err
18632 } && test -s conftest$ac_exeext &&
18633 $as_test_x conftest$ac_exeext; then
18634 ac_cv_lib_cposix_strerror=yes
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_lib_cposix_strerror=no
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643 conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18646 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18647 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18648 if test $ac_cv_lib_cposix_strerror = yes; then
18649 LIBS="$LIBS -lcposix"
18654 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18655 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18656 if test "${ac_cv_c_const+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18669 /* FIXME: Include the comments suggested by Paul. */
18670 #ifndef __cplusplus
18671 /* Ultrix mips cc rejects this. */
18672 typedef int charset[2];
18674 /* SunOS 4.1.1 cc rejects this. */
18675 char const *const *pcpcc;
18677 /* NEC SVR4.0.2 mips cc rejects this. */
18678 struct point {int x, y;};
18679 static struct point const zero = {0,0};
18680 /* AIX XL C 1.02.0.0 rejects this.
18681 It does not let you subtract one const X* pointer from another in
18682 an arm of an if-expression whose if-part is not a constant
18684 const char *g = "string";
18685 pcpcc = &g + (g ? g-g : 0);
18686 /* HPUX 7.0 cc rejects these. */
18688 ppc = (char**) pcpcc;
18689 pcpcc = (char const *const *) ppc;
18690 { /* SCO 3.2v4 cc rejects this. */
18692 char const *s = 0 ? (char *) 0 : (char const *) 0;
18697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18698 int x[] = {25, 17};
18699 const int *foo = &x[0];
18702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18703 typedef const int *iptr;
18707 { /* AIX XL C 1.02.0.0 rejects this saying
18708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18709 struct s { int j; const int *ap[3]; };
18710 struct s *b; b->j = 5;
18712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18713 const int foo = 10;
18714 if (!foo) return 0;
18716 return !cs[0] && !zero.x;
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_compile") 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest.$ac_objext; then
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18750 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18751 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18752 if test $ac_cv_c_const = no; then
18754 cat >>confdefs.h <<\_ACEOF
18761 { echo "$as_me:$LINENO: checking for signed" >&5
18762 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18763 if test "${bh_cv_c_signed+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18781 rm -f conftest.$ac_objext
18782 if { (ac_try="$ac_compile"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_compile") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest.$ac_objext; then
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18809 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18810 if test $bh_cv_c_signed = no; then
18812 cat >>confdefs.h <<\_ACEOF
18818 { echo "$as_me:$LINENO: checking for inline" >&5
18819 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18820 if test "${ac_cv_c_inline+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 for ac_kw in inline __inline__ __inline; do
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 #ifndef __cplusplus
18833 static $ac_kw foo_t static_foo () {return 0; }
18834 $ac_kw foo_t foo () {return 0; }
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_compile") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest.$ac_objext; then
18855 ac_cv_c_inline=$ac_kw
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 test "$ac_cv_c_inline" != no && break
18868 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18869 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18872 case $ac_cv_c_inline in
18875 case $ac_cv_c_inline in
18877 *) ac_val=$ac_cv_c_inline;;
18879 cat >>confdefs.h <<_ACEOF
18880 #ifndef __cplusplus
18881 #define inline $ac_val
18887 { echo "$as_me:$LINENO: checking for off_t" >&5
18888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18889 if test "${ac_cv_type_off_t+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 $ac_includes_default
18899 typedef off_t ac__type_new_;
18903 if ((ac__type_new_ *) 0)
18905 if (sizeof (ac__type_new_))
18911 rm -f conftest.$ac_objext
18912 if { (ac_try="$ac_compile"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_compile") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest.$ac_objext; then
18928 ac_cv_type_off_t=yes
18930 echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18933 ac_cv_type_off_t=no
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18940 if test $ac_cv_type_off_t = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945 #define off_t long int
18950 { echo "$as_me:$LINENO: checking for size_t" >&5
18951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18952 if test "${ac_cv_type_size_t+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18962 typedef size_t ac__type_new_;
18966 if ((ac__type_new_ *) 0)
18968 if (sizeof (ac__type_new_))
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_compile") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest.$ac_objext; then
18991 ac_cv_type_size_t=yes
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ac_cv_type_size_t=no
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19002 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19003 if test $ac_cv_type_size_t = yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define size_t unsigned int
19014 { echo "$as_me:$LINENO: checking for long long" >&5
19015 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19016 if test "${ac_cv_type_long_long+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 long long ll = 1LL; int i = 63;
19029 long long llmax = (long long) -1;
19030 return ll << i | ll >> i | llmax / ll | llmax % ll;
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 ac_cv_type_long_long=yes
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_type_long_long=no
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19065 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19066 if test $ac_cv_type_long_long = yes; then
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_LONG_LONG 1
19075 { echo "$as_me:$LINENO: checking for long double" >&5
19076 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19077 if test "${gt_cv_c_long_double+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 if test "$GCC" = yes; then
19081 gt_cv_c_long_double=yes
19083 cat >conftest.$ac_ext <<_ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19090 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19091 long double foo = 0.0;
19092 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19093 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest.$ac_objext; then
19120 gt_cv_c_long_double=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 gt_cv_c_long_double=no
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19132 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19133 if test $gt_cv_c_long_double = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE_LONG_DOUBLE 1
19142 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19143 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19144 if test "${gt_cv_c_wchar_t+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <stddef.h>
19154 wchar_t foo = (wchar_t)'\0';
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } && {
19177 test -z "$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 } && test -s conftest.$ac_objext; then
19180 gt_cv_c_wchar_t=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19191 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19192 if test $gt_cv_c_wchar_t = yes; then
19194 cat >>confdefs.h <<\_ACEOF
19195 #define HAVE_WCHAR_T 1
19201 { echo "$as_me:$LINENO: checking for wint_t" >&5
19202 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19203 if test "${gt_cv_c_wint_t+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19213 wint_t foo = (wchar_t)'\0';
19222 rm -f conftest.$ac_objext
19223 if { (ac_try="$ac_compile"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.$ac_objext; then
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19250 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19251 if test $gt_cv_c_wint_t = yes; then
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_WINT_T 1
19260 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19261 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19262 if test "${gl_cv_header_inttypes_h+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #include <sys/types.h>
19272 #include <inttypes.h>
19276 uintmax_t i = (uintmax_t) -1;
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19298 gl_cv_header_inttypes_h=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 gl_cv_header_inttypes_h=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19309 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19310 if test $gl_cv_header_inttypes_h = yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19319 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19320 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19321 if test "${gl_cv_header_stdint_h+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <sys/types.h>
19331 #include <stdint.h>
19335 uintmax_t i = (uintmax_t) -1;
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest.$ac_objext; then
19357 gl_cv_header_stdint_h=yes
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 gl_cv_header_stdint_h=no
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19368 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19369 if test $gl_cv_header_stdint_h = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STDINT_H_WITH_UINTMAX 1
19380 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19381 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19382 if test "${gt_cv_c_intmax_t+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 #include <stddef.h>
19393 #include <stdlib.h>
19394 #if HAVE_STDINT_H_WITH_UINTMAX
19395 #include <stdint.h>
19397 #if HAVE_INTTYPES_H_WITH_UINTMAX
19398 #include <inttypes.h>
19409 rm -f conftest.$ac_objext
19410 if { (ac_try="$ac_compile"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_compile") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest.$ac_objext; then
19426 gt_cv_c_intmax_t=yes
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 gt_cv_c_intmax_t=no
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19437 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19438 if test $gt_cv_c_intmax_t = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_INTMAX_T 1
19448 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19449 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19450 if test "${gt_cv_func_printf_posix+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 if test "$cross_compiling" = yes; then
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19469 $EGREP "notposix" >/dev/null 2>&1; then
19470 gt_cv_func_printf_posix="guessing no"
19472 gt_cv_func_printf_posix="guessing yes"
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19486 #include <string.h>
19487 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19488 dollar expansion (possibly an autoconf bug). */
19489 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19490 static char buf[100];
19493 sprintf (buf, format, 33, 55);
19494 return (strcmp (buf, "55 33") != 0);
19497 rm -f conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_link") 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 gt_cv_func_printf_posix=yes
19519 echo "$as_me: program exited with status $ac_status" >&5
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ( exit $ac_status )
19524 gt_cv_func_printf_posix=no
19526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19532 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19533 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19534 case $gt_cv_func_printf_posix in
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_POSIX_PRINTF 1
19544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19545 # for constant arguments. Useless!
19546 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19547 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19548 if test "${ac_cv_working_alloca_h+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 #include <alloca.h>
19561 char *p = (char *) alloca (2 * sizeof (int));
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_working_alloca_h=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_working_alloca_h=no
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19596 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19598 if test $ac_cv_working_alloca_h = yes; then
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_ALLOCA_H 1
19606 { echo "$as_me:$LINENO: checking for alloca" >&5
19607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19608 if test "${ac_cv_func_alloca_works+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19618 # define alloca __builtin_alloca
19621 # include <malloc.h>
19622 # define alloca _alloca
19624 # ifdef HAVE_ALLOCA_H
19625 # include <alloca.h>
19630 # ifndef alloca /* predefined by HP cc +Olibcalls */
19641 char *p = (char *) alloca (1);
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_link") 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } && {
19661 test -z "$ac_c_werror_flag" ||
19662 test ! -s conftest.err
19663 } && test -s conftest$ac_exeext &&
19664 $as_test_x conftest$ac_exeext; then
19665 ac_cv_func_alloca_works=yes
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_cv_func_alloca_works=no
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674 conftest$ac_exeext conftest.$ac_ext
19676 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19677 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19679 if test $ac_cv_func_alloca_works = yes; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_ALLOCA 1
19686 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19687 # that cause trouble. Some versions do not even contain alloca or
19688 # contain a buggy version. If you still want to use their alloca,
19689 # use ar to extract alloca.o from them instead of compiling alloca.c.
19691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19693 cat >>confdefs.h <<\_ACEOF
19698 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19699 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19700 if test "${ac_cv_os_cray+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 #if defined CRAY && ! defined CRAY2
19716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19717 $EGREP "webecray" >/dev/null 2>&1; then
19725 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19726 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19727 if test $ac_cv_os_cray = yes; then
19728 for ac_func in _getb67 GETB67 getb67; do
19729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19743 #define $ac_func innocuous_$ac_func
19745 /* System header to define __stub macros and hopefully few prototypes,
19746 which can conflict with char $ac_func (); below.
19747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19748 <limits.h> exists even on freestanding compilers. */
19751 # include <limits.h>
19753 # include <assert.h>
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19765 /* The GNU C library defines this for functions which it implements
19766 to always fail with ENOSYS. Some functions are actually named
19767 something starting with __ and the normal name is an alias. */
19768 #if defined __stub_$ac_func || defined __stub___$ac_func
19775 return $ac_func ();
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest$ac_exeext &&
19797 $as_test_x conftest$ac_exeext; then
19798 eval "$as_ac_var=yes"
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 eval "$as_ac_var=no"
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19809 ac_res=`eval echo '${'$as_ac_var'}'`
19810 { echo "$as_me:$LINENO: result: $ac_res" >&5
19811 echo "${ECHO_T}$ac_res" >&6; }
19812 if test `eval echo '${'$as_ac_var'}'` = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define CRAY_STACKSEG_END $ac_func
19824 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19826 if test "${ac_cv_c_stack_direction+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 if test "$cross_compiling" = yes; then
19830 ac_cv_c_stack_direction=0
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 $ac_includes_default
19840 find_stack_direction ()
19842 static char *addr = 0;
19847 return find_stack_direction ();
19850 return (&dummy > addr) ? 1 : -1;
19856 return find_stack_direction () < 0;
19859 rm -f conftest$ac_exeext
19860 if { (ac_try="$ac_link"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_link") 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19870 { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_c_stack_direction=1
19881 echo "$as_me: program exited with status $ac_status" >&5
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ( exit $ac_status )
19886 ac_cv_c_stack_direction=-1
19888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19893 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19896 cat >>confdefs.h <<_ACEOF
19897 #define STACK_DIRECTION $ac_cv_c_stack_direction
19905 for ac_header in stdlib.h unistd.h
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19918 # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 #include <$ac_header>
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest.$ac_objext; then
19947 ac_header_compiler=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_header_compiler=no
19955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957 echo "${ECHO_T}$ac_header_compiler" >&6; }
19959 # Is the header present?
19960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #include <$ac_header>
19970 if { (ac_try="$ac_cpp conftest.$ac_ext"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } >/dev/null && {
19983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19986 ac_header_preproc=yes
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_header_preproc=no
19994 rm -f conftest.err conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19996 echo "${ECHO_T}$ac_header_preproc" >&6; }
19998 # So? What about this header?
19999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20005 ac_header_preproc=yes
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 eval "$as_ac_Header=\$ac_header_preproc"
20030 ac_res=`eval echo '${'$as_ac_Header'}'`
20031 { echo "$as_me:$LINENO: result: $ac_res" >&5
20032 echo "${ECHO_T}$ac_res" >&6; }
20035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20036 cat >>confdefs.h <<_ACEOF
20037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20045 for ac_func in getpagesize
20047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20061 #define $ac_func innocuous_$ac_func
20063 /* System header to define __stub macros and hopefully few prototypes,
20064 which can conflict with char $ac_func (); below.
20065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20066 <limits.h> exists even on freestanding compilers. */
20069 # include <limits.h>
20071 # include <assert.h>
20076 /* Override any GCC internal prototype to avoid an error.
20077 Use char because int might match the return type of a GCC
20078 builtin and then its argument prototype would still apply. */
20083 /* The GNU C library defines this for functions which it implements
20084 to always fail with ENOSYS. Some functions are actually named
20085 something starting with __ and the normal name is an alias. */
20086 #if defined __stub_$ac_func || defined __stub___$ac_func
20093 return $ac_func ();
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 eval "$as_ac_var=yes"
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 eval "$as_ac_var=no"
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20127 ac_res=`eval echo '${'$as_ac_var'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 if test `eval echo '${'$as_ac_var'}'` = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20138 { echo "$as_me:$LINENO: checking for working mmap" >&5
20139 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 if test "$cross_compiling" = yes; then
20144 ac_cv_func_mmap_fixed_mapped=no
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 $ac_includes_default
20153 /* malloc might have been renamed as rpl_malloc. */
20156 /* Thanks to Mike Haertel and Jim Avera for this test.
20157 Here is a matrix of mmap possibilities:
20158 mmap private not fixed
20159 mmap private fixed at somewhere currently unmapped
20160 mmap private fixed at somewhere already mapped
20161 mmap shared not fixed
20162 mmap shared fixed at somewhere currently unmapped
20163 mmap shared fixed at somewhere already mapped
20164 For private mappings, we should verify that changes cannot be read()
20165 back from the file, nor mmap's back from the file at a different
20166 address. (There have been systems where private was not correctly
20167 implemented like the infamous i386 svr4.0, and systems where the
20168 VM page cache was not coherent with the file system buffer cache
20169 like early versions of FreeBSD and possibly contemporary NetBSD.)
20170 For shared mappings, we should conversely verify that changes get
20171 propagated back to all the places they're supposed to be.
20173 Grep wants private fixed already mapped.
20174 The main things grep needs to know about mmap are:
20175 * does it exist and is it safe to write into the mmap'd area
20176 * how to use it (BSD variants) */
20179 #include <sys/mman.h>
20181 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20185 /* This mess was copied from the GNU getpagesize.h. */
20186 #ifndef HAVE_GETPAGESIZE
20187 /* Assume that all systems that can run configure have sys/param.h. */
20188 # ifndef HAVE_SYS_PARAM_H
20189 # define HAVE_SYS_PARAM_H 1
20192 # ifdef _SC_PAGESIZE
20193 # define getpagesize() sysconf(_SC_PAGESIZE)
20194 # else /* no _SC_PAGESIZE */
20195 # ifdef HAVE_SYS_PARAM_H
20196 # include <sys/param.h>
20197 # ifdef EXEC_PAGESIZE
20198 # define getpagesize() EXEC_PAGESIZE
20199 # else /* no EXEC_PAGESIZE */
20201 # define getpagesize() NBPG * CLSIZE
20204 # endif /* no CLSIZE */
20205 # else /* no NBPG */
20207 # define getpagesize() NBPC
20208 # else /* no NBPC */
20210 # define getpagesize() PAGESIZE
20211 # endif /* PAGESIZE */
20212 # endif /* no NBPC */
20213 # endif /* no NBPG */
20214 # endif /* no EXEC_PAGESIZE */
20215 # else /* no HAVE_SYS_PARAM_H */
20216 # define getpagesize() 8192 /* punt totally */
20217 # endif /* no HAVE_SYS_PARAM_H */
20218 # endif /* no _SC_PAGESIZE */
20220 #endif /* no HAVE_GETPAGESIZE */
20225 char *data, *data2, *data3;
20229 pagesize = getpagesize ();
20231 /* First, make a file with some known garbage in it. */
20232 data = (char *) malloc (pagesize);
20235 for (i = 0; i < pagesize; ++i)
20236 *(data + i) = rand ();
20238 fd = creat ("conftest.mmap", 0600);
20241 if (write (fd, data, pagesize) != pagesize)
20245 /* Next, try to mmap the file at a fixed address which already has
20246 something else allocated at it. If we can, also make sure that
20247 we see the same garbage. */
20248 fd = open ("conftest.mmap", O_RDWR);
20251 data2 = (char *) malloc (2 * pagesize);
20254 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20258 for (i = 0; i < pagesize; ++i)
20259 if (*(data + i) != *(data2 + i))
20262 /* Finally, make sure that changes to the mapped area do not
20263 percolate back to the file as seen by read(). (This is a bug on
20264 some variants of i386 svr4.0.) */
20265 for (i = 0; i < pagesize; ++i)
20266 *(data2 + i) = *(data2 + i) + 1;
20267 data3 = (char *) malloc (pagesize);
20270 if (read (fd, data3, pagesize) != pagesize)
20272 for (i = 0; i < pagesize; ++i)
20273 if (*(data + i) != *(data3 + i))
20279 rm -f conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_func_mmap_fixed_mapped=yes
20301 echo "$as_me: program exited with status $ac_status" >&5
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ( exit $ac_status )
20306 ac_cv_func_mmap_fixed_mapped=no
20308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20314 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20315 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20317 cat >>confdefs.h <<\_ACEOF
20318 #define HAVE_MMAP 1
20322 rm -f conftest.mmap
20325 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20326 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20327 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 #include <features.h>
20338 #ifdef __GNU_LIBRARY__
20339 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20347 ac_cv_gnu_library_2_1=yes
20349 ac_cv_gnu_library_2_1=no
20356 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20357 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20359 GLIBC21="$ac_cv_gnu_library_2_1"
20364 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20365 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20366 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 if test "$cross_compiling" = yes; then
20372 # Guess based on the CPU.
20373 case "$host_cpu" in
20374 alpha* | i3456786 | m68k | s390*)
20375 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20377 gt_cv_int_divbyzero_sigfpe="guessing no";;
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20388 #include <stdlib.h>
20389 #include <signal.h>
20393 sigfpe_handler (int sig)
20395 sigfpe_handler (sig) int sig;
20398 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20399 exit (sig != SIGFPE);
20409 signal (SIGFPE, sigfpe_handler);
20410 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20411 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20412 signal (SIGTRAP, sigfpe_handler);
20414 /* Linux/SPARC yields signal SIGILL. */
20415 #if defined (__sparc__) && defined (__linux__)
20416 signal (SIGILL, sigfpe_handler);
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 gt_cv_int_divbyzero_sigfpe=yes
20447 echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ( exit $ac_status )
20452 gt_cv_int_divbyzero_sigfpe=no
20454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20461 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20462 case "$gt_cv_int_divbyzero_sigfpe" in
20467 cat >>confdefs.h <<_ACEOF
20468 #define INTDIV0_RAISES_SIGFPE $value
20473 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20474 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20475 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 unsigned long long ull = 1ULL; int i = 63;
20488 unsigned long long ullmax = (unsigned long long) -1;
20489 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest$ac_exeext &&
20511 $as_test_x conftest$ac_exeext; then
20512 ac_cv_type_unsigned_long_long=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_cv_type_unsigned_long_long=no
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20523 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20524 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20525 if test $ac_cv_type_unsigned_long_long = yes; then
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE_UNSIGNED_LONG_LONG 1
20536 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20538 test $ac_cv_type_unsigned_long_long = yes \
20539 && ac_type='unsigned long long' \
20540 || ac_type='unsigned long'
20542 cat >>confdefs.h <<_ACEOF
20543 #define uintmax_t $ac_type
20548 cat >>confdefs.h <<\_ACEOF
20549 #define HAVE_UINTMAX_T 1
20555 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20556 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20557 if test "${gt_cv_header_inttypes_h+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 #include <sys/types.h>
20568 #include <inttypes.h>
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 gt_cv_header_inttypes_h=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 gt_cv_header_inttypes_h=no
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20606 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20607 if test $gt_cv_header_inttypes_h = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_INTTYPES_H 1
20617 if test $gt_cv_header_inttypes_h = yes; then
20618 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20619 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20620 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <inttypes.h>
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest.$ac_objext; then
20660 gt_cv_inttypes_pri_broken=no
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 gt_cv_inttypes_pri_broken=yes
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20672 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20674 if test "$gt_cv_inttypes_pri_broken" = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define PRI_MACROS_BROKEN 1
20684 for ac_header in stdint.h
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 ac_res=`eval echo '${'$as_ac_Header'}'`
20694 { echo "$as_me:$LINENO: result: $ac_res" >&5
20695 echo "${ECHO_T}$ac_res" >&6; }
20697 # Is the header compilable?
20698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_header_compiler=yes
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_header_compiler=no
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6; }
20738 # Is the header present?
20739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <$ac_header>
20749 if { (ac_try="$ac_cpp conftest.$ac_ext"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } >/dev/null && {
20762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20765 ac_header_preproc=yes
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ac_header_preproc=no
20773 rm -f conftest.err conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20775 echo "${ECHO_T}$ac_header_preproc" >&6; }
20777 # So? What about this header?
20778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20784 ac_header_preproc=yes
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 eval "$as_ac_Header=\$ac_header_preproc"
20809 ac_res=`eval echo '${'$as_ac_Header'}'`
20810 { echo "$as_me:$LINENO: result: $ac_res" >&5
20811 echo "${ECHO_T}$ac_res" >&6; }
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20823 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20824 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20833 #include <limits.h>
20835 #include <stdint.h>
20842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20843 $EGREP "Found it" >/dev/null 2>&1; then
20848 if test -z "$result"; then
20849 if test "$cross_compiling" = yes; then
20850 # Depending upon the size, compute the lo and hi bounds.
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 #include <stddef.h>
20861 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 #include <stddef.h>
20897 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20904 rm -f conftest.$ac_objext
20905 if { (ac_try="$ac_compile"
20906 case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_compile") 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } && {
20918 test -z "$ac_c_werror_flag" ||
20919 test ! -s conftest.err
20920 } && test -s conftest.$ac_objext; then
20921 ac_hi=$ac_mid; break
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 ac_lo=`expr $ac_mid + 1`
20927 if test $ac_lo -le $ac_mid; then
20931 ac_mid=`expr 2 '*' $ac_mid + 1`
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <stddef.h>
20950 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20976 cat >conftest.$ac_ext <<_ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <stddef.h>
20986 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } && {
21007 test -z "$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 } && test -s conftest.$ac_objext; then
21010 ac_lo=$ac_mid; break
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_hi=`expr '(' $ac_mid ')' - 1`
21016 if test $ac_mid -le $ac_hi; then
21020 ac_mid=`expr 2 '*' $ac_mid`
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 # Binary search between lo and hi bounds.
21037 while test "x$ac_lo" != "x$ac_hi"; do
21038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <stddef.h>
21049 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_lo=`expr '(' $ac_mid ')' + 1`
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 ?*) res_hi=$ac_lo;;
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <stddef.h>
21095 static long int longval () { return ~(size_t)0 / 10; }
21096 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21098 #include <stdlib.h>
21103 FILE *f = fopen ("conftest.val", "w");
21106 if ((~(size_t)0 / 10) < 0)
21108 long int i = longval ();
21109 if (i != (~(size_t)0 / 10))
21111 fprintf (f, "%ld\n", i);
21115 unsigned long int i = ulongval ();
21116 if (i != (~(size_t)0 / 10))
21118 fprintf (f, "%lu\n", i);
21120 return ferror (f) || fclose (f) != 0;
21126 rm -f conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21137 { (case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_try") 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 res_hi=`cat conftest.val`
21148 echo "$as_me: program exited with status $ac_status" >&5
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ( exit $ac_status )
21155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21159 if test "$cross_compiling" = yes; then
21160 # Depending upon the size, compute the lo and hi bounds.
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <stddef.h>
21171 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <stddef.h>
21207 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest.$ac_objext; then
21231 ac_hi=$ac_mid; break
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_lo=`expr $ac_mid + 1`
21237 if test $ac_lo -le $ac_mid; then
21241 ac_mid=`expr 2 '*' $ac_mid + 1`
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 #include <stddef.h>
21260 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_compile") 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } && {
21281 test -z "$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 } && test -s conftest.$ac_objext; then
21286 cat >conftest.$ac_ext <<_ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292 #include <stddef.h>
21296 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21312 grep -v '^ *+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 ac_lo=$ac_mid; break
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_hi=`expr '(' $ac_mid ')' - 1`
21326 if test $ac_mid -le $ac_hi; then
21330 ac_mid=`expr 2 '*' $ac_mid`
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 # Binary search between lo and hi bounds.
21347 while test "x$ac_lo" != "x$ac_hi"; do
21348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <stddef.h>
21359 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21366 rm -f conftest.$ac_objext
21367 if { (ac_try="$ac_compile"
21368 case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_compile") 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest.$ac_objext; then
21385 echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21388 ac_lo=`expr '(' $ac_mid ')' + 1`
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 ?*) res_lo=$ac_lo;;
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #include <stddef.h>
21405 static long int longval () { return ~(size_t)0 % 10; }
21406 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21408 #include <stdlib.h>
21413 FILE *f = fopen ("conftest.val", "w");
21416 if ((~(size_t)0 % 10) < 0)
21418 long int i = longval ();
21419 if (i != (~(size_t)0 % 10))
21421 fprintf (f, "%ld\n", i);
21425 unsigned long int i = ulongval ();
21426 if (i != (~(size_t)0 % 10))
21428 fprintf (f, "%lu\n", i);
21430 return ferror (f) || fclose (f) != 0;
21436 rm -f conftest$ac_exeext
21437 if { (ac_try="$ac_link"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_link") 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_try") 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 res_lo=`cat conftest.val`
21458 echo "$as_me: program exited with status $ac_status" >&5
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ( exit $ac_status )
21465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21469 if test "$cross_compiling" = yes; then
21470 # Depending upon the size, compute the lo and hi bounds.
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <stddef.h>
21481 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_compile") 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } && {
21502 test -z "$ac_c_werror_flag" ||
21503 test ! -s conftest.err
21504 } && test -s conftest.$ac_objext; then
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 #include <stddef.h>
21517 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 ac_hi=$ac_mid; break
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_lo=`expr $ac_mid + 1`
21547 if test $ac_lo -le $ac_mid; then
21551 ac_mid=`expr 2 '*' $ac_mid + 1`
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 #include <stddef.h>
21570 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 #include <stddef.h>
21606 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21622 grep -v '^ *+' conftest.er1 >conftest.err
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.$ac_objext; then
21630 ac_lo=$ac_mid; break
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_hi=`expr '(' $ac_mid ')' - 1`
21636 if test $ac_mid -le $ac_hi; then
21640 ac_mid=`expr 2 '*' $ac_mid`
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <stddef.h>
21669 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ac_lo=`expr '(' $ac_mid ')' + 1`
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704 ?*) fits_in_uint=$ac_lo;;
21708 cat >conftest.$ac_ext <<_ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 #include <stddef.h>
21715 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21716 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21718 #include <stdlib.h>
21723 FILE *f = fopen ("conftest.val", "w");
21726 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21728 long int i = longval ();
21729 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21731 fprintf (f, "%ld\n", i);
21735 unsigned long int i = ulongval ();
21736 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21738 fprintf (f, "%lu\n", i);
21740 return ferror (f) || fclose (f) != 0;
21746 rm -f conftest$ac_exeext
21747 if { (ac_try="$ac_link"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_link") 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21757 { (case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_try") 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 fits_in_uint=`cat conftest.val`
21768 echo "$as_me: program exited with status $ac_status" >&5
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ( exit $ac_status )
21775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21779 if test "$fits_in_uint" = 1; then
21780 cat >conftest.$ac_ext <<_ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 #include <stddef.h>
21788 extern unsigned long foo;
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 if test -z "$result"; then
21826 if test "$fits_in_uint" = 1; then
21827 result="$res_hi$res_lo"U
21829 result="$res_hi$res_lo"UL
21832 result='~(size_t)0'
21835 { echo "$as_me:$LINENO: result: $result" >&5
21836 echo "${ECHO_T}$result" >&6; }
21837 if test "$result" != yes; then
21839 cat >>confdefs.h <<_ACEOF
21840 #define SIZE_MAX $result
21849 for ac_header in stdint.h
21851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_res=`eval echo '${'$as_ac_Header'}'`
21859 { echo "$as_me:$LINENO: result: $ac_res" >&5
21860 echo "${ECHO_T}$ac_res" >&6; }
21862 # Is the header compilable?
21863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21872 #include <$ac_header>
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21891 ac_header_compiler=yes
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_header_compiler=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901 echo "${ECHO_T}$ac_header_compiler" >&6; }
21903 # Is the header present?
21904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <$ac_header>
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21922 grep -v '^ *+' conftest.er1 >conftest.err
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null && {
21927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928 test ! -s conftest.err
21930 ac_header_preproc=yes
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_header_preproc=no
21938 rm -f conftest.err conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21940 echo "${ECHO_T}$ac_header_preproc" >&6; }
21942 # So? What about this header?
21943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21949 ac_header_preproc=yes
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21972 eval "$as_ac_Header=\$ac_header_preproc"
21974 ac_res=`eval echo '${'$as_ac_Header'}'`
21975 { echo "$as_me:$LINENO: result: $ac_res" >&5
21976 echo "${ECHO_T}$ac_res" >&6; }
21979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21980 cat >>confdefs.h <<_ACEOF
21981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21995 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21996 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21997 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 $ac_includes_default
22007 typedef ptrdiff_t ac__type_new_;
22011 if ((ac__type_new_ *) 0)
22013 if (sizeof (ac__type_new_))
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_compile") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && {
22033 test -z "$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 } && test -s conftest.$ac_objext; then
22036 ac_cv_type_ptrdiff_t=yes
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_cv_type_ptrdiff_t=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22047 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22048 if test $ac_cv_type_ptrdiff_t = yes; then
22052 cat >>confdefs.h <<\_ACEOF
22053 #define ptrdiff_t long
22069 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22070 stdlib.h string.h unistd.h sys/param.h
22072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 ac_res=`eval echo '${'$as_ac_Header'}'`
22080 { echo "$as_me:$LINENO: result: $ac_res" >&5
22081 echo "${ECHO_T}$ac_res" >&6; }
22083 # Is the header compilable?
22084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 $ac_includes_default
22093 #include <$ac_header>
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22112 ac_header_compiler=yes
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_header_compiler=no
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22122 echo "${ECHO_T}$ac_header_compiler" >&6; }
22124 # Is the header present?
22125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 #include <$ac_header>
22135 if { (ac_try="$ac_cpp conftest.$ac_ext"
22136 case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } >/dev/null && {
22148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22149 test ! -s conftest.err
22151 ac_header_preproc=yes
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_header_preproc=no
22159 rm -f conftest.err conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22161 echo "${ECHO_T}$ac_header_preproc" >&6; }
22163 # So? What about this header?
22164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22170 ac_header_preproc=yes
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 eval "$as_ac_Header=\$ac_header_preproc"
22195 ac_res=`eval echo '${'$as_ac_Header'}'`
22196 { echo "$as_me:$LINENO: result: $ac_res" >&5
22197 echo "${ECHO_T}$ac_res" >&6; }
22200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22201 cat >>confdefs.h <<_ACEOF
22202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22232 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22233 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22234 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22259 # include <limits.h>
22261 # include <assert.h>
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22283 return $ac_func ();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext &&
22305 $as_test_x conftest$ac_exeext; then
22306 eval "$as_ac_var=yes"
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 eval "$as_ac_var=no"
22314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315 conftest$ac_exeext conftest.$ac_ext
22317 ac_res=`eval echo '${'$as_ac_var'}'`
22318 { echo "$as_me:$LINENO: result: $ac_res" >&5
22319 echo "${ECHO_T}$ac_res" >&6; }
22320 if test `eval echo '${'$as_ac_var'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22330 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22331 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22332 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22347 char *p = (char *) _snprintf;
22354 rm -f conftest.$ac_objext
22355 if { (ac_try="$ac_compile"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_compile") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest.$ac_objext; then
22371 ac_cv_have_decl__snprintf=yes
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_cv_have_decl__snprintf=no
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22382 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22383 if test $ac_cv_have_decl__snprintf = yes; then
22389 cat >>confdefs.h <<_ACEOF
22390 #define HAVE_DECL__SNPRINTF $gt_value
22395 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22396 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22397 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 cat >conftest.$ac_ext <<_ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22412 char *p = (char *) _snwprintf;
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } && {
22433 test -z "$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22435 } && test -s conftest.$ac_objext; then
22436 ac_cv_have_decl__snwprintf=yes
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ac_cv_have_decl__snwprintf=no
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22447 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22448 if test $ac_cv_have_decl__snwprintf = yes; then
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL__SNWPRINTF $gt_value
22461 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22462 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22463 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22477 #ifndef feof_unlocked
22478 char *p = (char *) feof_unlocked;
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_cv_have_decl_feof_unlocked=yes
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_have_decl_feof_unlocked=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22513 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22514 if test $ac_cv_have_decl_feof_unlocked = yes; then
22520 cat >>confdefs.h <<_ACEOF
22521 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22526 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22527 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22528 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22542 #ifndef fgets_unlocked
22543 char *p = (char *) fgets_unlocked;
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_cv_have_decl_fgets_unlocked=yes
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_cv_have_decl_fgets_unlocked=no
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22578 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22579 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22585 cat >>confdefs.h <<_ACEOF
22586 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22591 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22592 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22593 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 cat >conftest.$ac_ext <<_ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22607 #ifndef getc_unlocked
22608 char *p = (char *) getc_unlocked;
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_compile") 2>conftest.er1
22624 grep -v '^ *+' conftest.er1 >conftest.err
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest.$ac_objext; then
22632 ac_cv_have_decl_getc_unlocked=yes
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 ac_cv_have_decl_getc_unlocked=no
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22643 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22644 if test $ac_cv_have_decl_getc_unlocked = yes; then
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22656 case $gt_cv_func_printf_posix in
22657 *yes) HAVE_POSIX_PRINTF=1 ;;
22658 *) HAVE_POSIX_PRINTF=0 ;;
22661 if test "$ac_cv_func_asprintf" = yes; then
22667 if test "$ac_cv_func_snprintf" = yes; then
22673 if test "$ac_cv_func_wprintf" = yes; then
22685 am_save_CPPFLAGS="$CPPFLAGS"
22687 for element in $INCICONV; do
22689 for x in $CPPFLAGS; do
22691 acl_save_prefix="$prefix"
22692 prefix="$acl_final_prefix"
22693 acl_save_exec_prefix="$exec_prefix"
22694 exec_prefix="$acl_final_exec_prefix"
22696 exec_prefix="$acl_save_exec_prefix"
22697 prefix="$acl_save_prefix"
22699 if test "X$x" = "X$element"; then
22704 if test -z "$haveit"; then
22705 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22710 { echo "$as_me:$LINENO: checking for iconv" >&5
22711 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22712 if test "${am_cv_func_iconv+set}" = set; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 am_cv_func_iconv="no, consider installing GNU libiconv"
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <stdlib.h>
22729 iconv_t cd = iconv_open("","");
22730 iconv(cd,NULL,NULL,NULL,NULL);
22736 rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_link") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest$ac_exeext &&
22753 $as_test_x conftest$ac_exeext; then
22754 am_cv_func_iconv=yes
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22763 conftest$ac_exeext conftest.$ac_ext
22764 if test "$am_cv_func_iconv" != yes; then
22765 am_save_LIBS="$LIBS"
22766 LIBS="$LIBS $LIBICONV"
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 #include <stdlib.h>
22778 iconv_t cd = iconv_open("","");
22779 iconv(cd,NULL,NULL,NULL,NULL);
22785 rm -f conftest.$ac_objext conftest$ac_exeext
22786 if { (ac_try="$ac_link"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_link") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest$ac_exeext &&
22802 $as_test_x conftest$ac_exeext; then
22803 am_cv_lib_iconv=yes
22804 am_cv_func_iconv=yes
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22813 conftest$ac_exeext conftest.$ac_ext
22814 LIBS="$am_save_LIBS"
22818 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22819 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22820 if test "$am_cv_func_iconv" = yes; then
22822 cat >>confdefs.h <<\_ACEOF
22823 #define HAVE_ICONV 1
22827 if test "$am_cv_lib_iconv" = yes; then
22828 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22829 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22830 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22831 echo "${ECHO_T}$LIBICONV" >&6; }
22833 CPPFLAGS="$am_save_CPPFLAGS"
22840 if test "$am_cv_func_iconv" = yes; then
22841 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22842 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22843 if test "${am_cv_proto_iconv+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22854 #include <stdlib.h>
22860 #if defined(__STDC__) || defined(__cplusplus)
22861 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 am_cv_proto_iconv_arg1=""
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 am_cv_proto_iconv_arg1="const"
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 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);"
22903 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22904 { echo "$as_me:$LINENO: result: ${ac_t:-
22905 }$am_cv_proto_iconv" >&5
22906 echo "${ECHO_T}${ac_t:-
22907 }$am_cv_proto_iconv" >&6; }
22909 cat >>confdefs.h <<_ACEOF
22910 #define ICONV_CONST $am_cv_proto_iconv_arg1
22916 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22917 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22918 if test "${am_cv_langinfo_codeset+set}" = set; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 #include <langinfo.h>
22931 char* cs = nl_langinfo(CODESET);
22936 rm -f conftest.$ac_objext conftest$ac_exeext
22937 if { (ac_try="$ac_link"
22938 case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943 (eval "$ac_link") 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest$ac_exeext &&
22953 $as_test_x conftest$ac_exeext; then
22954 am_cv_langinfo_codeset=yes
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 am_cv_langinfo_codeset=no
22962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22963 conftest$ac_exeext conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22967 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22968 if test $am_cv_langinfo_codeset = yes; then
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_LANGINFO_CODESET 1
22976 if test $ac_cv_header_locale_h = yes; then
22978 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22979 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22980 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 #include <locale.h>
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_link") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest$ac_exeext &&
23015 $as_test_x conftest$ac_exeext; then
23016 gt_cv_val_LC_MESSAGES=yes
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 gt_cv_val_LC_MESSAGES=no
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025 conftest$ac_exeext conftest.$ac_ext
23027 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23028 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23029 if test $gt_cv_val_LC_MESSAGES = yes; then
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_LC_MESSAGES 1
23039 if test -n "$INTL_MACOSX_LIBS"; then
23040 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23043 for ac_prog in bison
23045 # Extract the first word of "$ac_prog", so it can be a program name with args.
23046 set dummy $ac_prog; ac_word=$2
23047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23049 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 if test -n "$INTLBISON"; then
23053 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056 for as_dir in $PATH
23059 test -z "$as_dir" && as_dir=.
23060 for ac_exec_ext in '' $ac_executable_extensions; do
23061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23062 ac_cv_prog_INTLBISON="$ac_prog"
23063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23072 INTLBISON=$ac_cv_prog_INTLBISON
23073 if test -n "$INTLBISON"; then
23074 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23075 echo "${ECHO_T}$INTLBISON" >&6; }
23077 { echo "$as_me:$LINENO: result: no" >&5
23078 echo "${ECHO_T}no" >&6; }
23082 test -n "$INTLBISON" && break
23085 if test -z "$INTLBISON"; then
23088 { echo "$as_me:$LINENO: checking version of bison" >&5
23089 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23090 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23091 case $ac_prog_version in
23092 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23093 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23094 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23095 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23097 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23098 echo "${ECHO_T}$ac_prog_version" >&6; }
23100 if test $ac_verc_fail = yes; then
23119 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23120 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23121 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 gt_save_CPPFLAGS="$CPPFLAGS"
23125 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23126 gt_save_LIBS="$LIBS"
23127 LIBS="$LIBS -framework CoreFoundation"
23128 cat >conftest.$ac_ext <<_ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <CFPreferences.h>
23138 CFPreferencesCopyAppValue(NULL, NULL)
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest$ac_exeext &&
23160 $as_test_x conftest$ac_exeext; then
23161 gt_cv_func_CFPreferencesCopyAppValue=yes
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 gt_cv_func_CFPreferencesCopyAppValue=no
23169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23170 conftest$ac_exeext conftest.$ac_ext
23171 CPPFLAGS="$gt_save_CPPFLAGS"
23172 LIBS="$gt_save_LIBS"
23174 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23175 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23176 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23183 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23184 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23185 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 gt_save_CPPFLAGS="$CPPFLAGS"
23189 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23190 gt_save_LIBS="$LIBS"
23191 LIBS="$LIBS -framework CoreFoundation"
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <CFLocale.h>
23202 CFLocaleCopyCurrent();
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_link") 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest$ac_exeext &&
23224 $as_test_x conftest$ac_exeext; then
23225 gt_cv_func_CFLocaleCopyCurrent=yes
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 gt_cv_func_CFLocaleCopyCurrent=no
23233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23234 conftest$ac_exeext conftest.$ac_ext
23235 CPPFLAGS="$gt_save_CPPFLAGS"
23236 LIBS="$gt_save_LIBS"
23238 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23239 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23240 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_CFLOCALECOPYCURRENT 1
23248 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23249 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23255 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23257 # Check whether --enable-nls was given.
23258 if test "${enable_nls+set}" = set; then
23259 enableval=$enable_nls; USE_NLS=$enableval
23264 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23265 echo "${ECHO_T}$USE_NLS" >&6; }
23270 BUILD_INCLUDED_LIBINTL=no
23271 USE_INCLUDED_LIBINTL=no
23277 if test "$USE_NLS" = "yes"; then
23278 gt_use_preinstalled_gnugettext=no
23280 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23281 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23283 # Check whether --with-included-gettext was given.
23284 if test "${with_included_gettext+set}" = set; then
23285 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23287 nls_cv_force_use_gnu_gettext=no
23290 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23291 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23293 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23294 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23301 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23302 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23303 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 #include <libintl.h>
23313 extern int _nl_msg_cat_cntr;
23314 extern int *_nl_domain_bindings;
23318 bindtextdomain ("", "");
23319 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (ac_try="$ac_link"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_link") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && {
23338 test -z "$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 } && test -s conftest$ac_exeext &&
23341 $as_test_x conftest$ac_exeext; then
23342 gt_cv_func_gnugettext1_libc=yes
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 gt_cv_func_gnugettext1_libc=no
23350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23351 conftest$ac_exeext conftest.$ac_ext
23353 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23354 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23356 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23362 acl_save_prefix="$prefix"
23363 prefix="$acl_final_prefix"
23364 acl_save_exec_prefix="$exec_prefix"
23365 exec_prefix="$acl_final_exec_prefix"
23367 eval additional_includedir=\"$includedir\"
23368 eval additional_libdir=\"$libdir\"
23370 exec_prefix="$acl_save_exec_prefix"
23371 prefix="$acl_save_prefix"
23374 # Check whether --with-libintl-prefix was given.
23375 if test "${with_libintl_prefix+set}" = set; then
23376 withval=$with_libintl_prefix;
23377 if test "X$withval" = "Xno"; then
23380 if test "X$withval" = "X"; then
23382 acl_save_prefix="$prefix"
23383 prefix="$acl_final_prefix"
23384 acl_save_exec_prefix="$exec_prefix"
23385 exec_prefix="$acl_final_exec_prefix"
23387 eval additional_includedir=\"$includedir\"
23388 eval additional_libdir=\"$libdir\"
23390 exec_prefix="$acl_save_exec_prefix"
23391 prefix="$acl_save_prefix"
23394 additional_includedir="$withval/include"
23395 additional_libdir="$withval/lib"
23406 names_already_handled=
23407 names_next_round='intl '
23408 while test -n "$names_next_round"; do
23409 names_this_round="$names_next_round"
23411 for name in $names_this_round; do
23413 for n in $names_already_handled; do
23414 if test "$n" = "$name"; then
23415 already_handled=yes
23419 if test -z "$already_handled"; then
23420 names_already_handled="$names_already_handled $name"
23421 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23422 eval value=\"\$HAVE_LIB$uppername\"
23423 if test -n "$value"; then
23424 if test "$value" = yes; then
23425 eval value=\"\$LIB$uppername\"
23426 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23427 eval value=\"\$LTLIB$uppername\"
23428 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23437 if test $use_additional = yes; then
23438 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23439 found_dir="$additional_libdir"
23440 found_so="$additional_libdir/lib$name.$shlibext"
23441 if test -f "$additional_libdir/lib$name.la"; then
23442 found_la="$additional_libdir/lib$name.la"
23445 if test -f "$additional_libdir/lib$name.$libext"; then
23446 found_dir="$additional_libdir"
23447 found_a="$additional_libdir/lib$name.$libext"
23448 if test -f "$additional_libdir/lib$name.la"; then
23449 found_la="$additional_libdir/lib$name.la"
23454 if test "X$found_dir" = "X"; then
23455 for x in $LDFLAGS $LTLIBINTL; do
23457 acl_save_prefix="$prefix"
23458 prefix="$acl_final_prefix"
23459 acl_save_exec_prefix="$exec_prefix"
23460 exec_prefix="$acl_final_exec_prefix"
23462 exec_prefix="$acl_save_exec_prefix"
23463 prefix="$acl_save_prefix"
23467 dir=`echo "X$x" | sed -e 's/^X-L//'`
23468 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23470 found_so="$dir/lib$name.$shlibext"
23471 if test -f "$dir/lib$name.la"; then
23472 found_la="$dir/lib$name.la"
23475 if test -f "$dir/lib$name.$libext"; then
23477 found_a="$dir/lib$name.$libext"
23478 if test -f "$dir/lib$name.la"; then
23479 found_la="$dir/lib$name.la"
23485 if test "X$found_dir" != "X"; then
23490 if test "X$found_dir" != "X"; then
23491 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23492 if test "X$found_so" != "X"; then
23493 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23494 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23497 for x in $ltrpathdirs; do
23498 if test "X$x" = "X$found_dir"; then
23503 if test -z "$haveit"; then
23504 ltrpathdirs="$ltrpathdirs $found_dir"
23506 if test "$hardcode_direct" = yes; then
23507 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23509 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23510 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23512 for x in $rpathdirs; do
23513 if test "X$x" = "X$found_dir"; then
23518 if test -z "$haveit"; then
23519 rpathdirs="$rpathdirs $found_dir"
23523 for x in $LDFLAGS $LIBINTL; do
23525 acl_save_prefix="$prefix"
23526 prefix="$acl_final_prefix"
23527 acl_save_exec_prefix="$exec_prefix"
23528 exec_prefix="$acl_final_exec_prefix"
23530 exec_prefix="$acl_save_exec_prefix"
23531 prefix="$acl_save_prefix"
23533 if test "X$x" = "X-L$found_dir"; then
23538 if test -z "$haveit"; then
23539 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23541 if test "$hardcode_minus_L" != no; then
23542 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23544 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23550 if test "X$found_a" != "X"; then
23551 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23553 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23556 additional_includedir=
23557 case "$found_dir" in
23559 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23560 additional_includedir="$basedir/include"
23563 if test "X$additional_includedir" != "X"; then
23564 if test "X$additional_includedir" != "X/usr/include"; then
23566 if test "X$additional_includedir" = "X/usr/local/include"; then
23567 if test -n "$GCC"; then
23569 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23573 if test -z "$haveit"; then
23574 for x in $CPPFLAGS $INCINTL; do
23576 acl_save_prefix="$prefix"
23577 prefix="$acl_final_prefix"
23578 acl_save_exec_prefix="$exec_prefix"
23579 exec_prefix="$acl_final_exec_prefix"
23581 exec_prefix="$acl_save_exec_prefix"
23582 prefix="$acl_save_prefix"
23584 if test "X$x" = "X-I$additional_includedir"; then
23589 if test -z "$haveit"; then
23590 if test -d "$additional_includedir"; then
23591 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23597 if test -n "$found_la"; then
23598 save_libdir="$libdir"
23599 case "$found_la" in
23600 */* | *\\*) . "$found_la" ;;
23601 *) . "./$found_la" ;;
23603 libdir="$save_libdir"
23604 for dep in $dependency_libs; do
23607 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23608 if test "X$additional_libdir" != "X/usr/lib"; then
23610 if test "X$additional_libdir" = "X/usr/local/lib"; then
23611 if test -n "$GCC"; then
23613 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23617 if test -z "$haveit"; then
23619 for x in $LDFLAGS $LIBINTL; do
23621 acl_save_prefix="$prefix"
23622 prefix="$acl_final_prefix"
23623 acl_save_exec_prefix="$exec_prefix"
23624 exec_prefix="$acl_final_exec_prefix"
23626 exec_prefix="$acl_save_exec_prefix"
23627 prefix="$acl_save_prefix"
23629 if test "X$x" = "X-L$additional_libdir"; then
23634 if test -z "$haveit"; then
23635 if test -d "$additional_libdir"; then
23636 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23640 for x in $LDFLAGS $LTLIBINTL; do
23642 acl_save_prefix="$prefix"
23643 prefix="$acl_final_prefix"
23644 acl_save_exec_prefix="$exec_prefix"
23645 exec_prefix="$acl_final_exec_prefix"
23647 exec_prefix="$acl_save_exec_prefix"
23648 prefix="$acl_save_prefix"
23650 if test "X$x" = "X-L$additional_libdir"; then
23655 if test -z "$haveit"; then
23656 if test -d "$additional_libdir"; then
23657 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23664 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23665 if test "$enable_rpath" != no; then
23667 for x in $rpathdirs; do
23668 if test "X$x" = "X$dir"; then
23673 if test -z "$haveit"; then
23674 rpathdirs="$rpathdirs $dir"
23677 for x in $ltrpathdirs; do
23678 if test "X$x" = "X$dir"; then
23683 if test -z "$haveit"; then
23684 ltrpathdirs="$ltrpathdirs $dir"
23689 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23692 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23695 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23696 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23702 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23703 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23709 if test "X$rpathdirs" != "X"; then
23710 if test -n "$hardcode_libdir_separator"; then
23712 for found_dir in $rpathdirs; do
23713 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23715 acl_save_libdir="$libdir"
23717 eval flag=\"$hardcode_libdir_flag_spec\"
23718 libdir="$acl_save_libdir"
23719 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23721 for found_dir in $rpathdirs; do
23722 acl_save_libdir="$libdir"
23723 libdir="$found_dir"
23724 eval flag=\"$hardcode_libdir_flag_spec\"
23725 libdir="$acl_save_libdir"
23726 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23730 if test "X$ltrpathdirs" != "X"; then
23731 for found_dir in $ltrpathdirs; do
23732 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23736 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23737 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23738 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 gt_save_CPPFLAGS="$CPPFLAGS"
23742 CPPFLAGS="$CPPFLAGS $INCINTL"
23743 gt_save_LIBS="$LIBS"
23744 LIBS="$LIBS $LIBINTL"
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 #include <libintl.h>
23752 extern int _nl_msg_cat_cntr;
23757 const char *_nl_expand_alias (const char *);
23761 bindtextdomain ("", "");
23762 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23767 rm -f conftest.$ac_objext conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_link") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest$ac_exeext &&
23784 $as_test_x conftest$ac_exeext; then
23785 gt_cv_func_gnugettext1_libintl=yes
23787 echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23790 gt_cv_func_gnugettext1_libintl=no
23793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23794 conftest$ac_exeext conftest.$ac_ext
23795 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23796 LIBS="$LIBS $LIBICONV"
23797 cat >conftest.$ac_ext <<_ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 #include <libintl.h>
23804 extern int _nl_msg_cat_cntr;
23809 const char *_nl_expand_alias (const char *);
23813 bindtextdomain ("", "");
23814 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_link") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1 >conftest.err
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest$ac_exeext &&
23836 $as_test_x conftest$ac_exeext; then
23837 LIBINTL="$LIBINTL $LIBICONV"
23838 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23839 gt_cv_func_gnugettext1_libintl=yes
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849 conftest$ac_exeext conftest.$ac_ext
23851 CPPFLAGS="$gt_save_CPPFLAGS"
23852 LIBS="$gt_save_LIBS"
23854 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23855 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23858 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23859 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23860 && test "$PACKAGE" != gettext-runtime \
23861 && test "$PACKAGE" != gettext-tools; }; then
23862 gt_use_preinstalled_gnugettext=yes
23870 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23871 nls_cv_use_gnu_gettext=yes
23875 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23876 BUILD_INCLUDED_LIBINTL=yes
23877 USE_INCLUDED_LIBINTL=yes
23878 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23879 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23880 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23884 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23885 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23890 if test -n "$INTL_MACOSX_LIBS"; then
23891 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23892 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23893 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23894 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23898 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23899 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23901 cat >>confdefs.h <<\_ACEOF
23902 #define ENABLE_NLS 1
23910 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23911 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23912 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23913 echo "${ECHO_T}$USE_NLS" >&6; }
23914 if test "$USE_NLS" = "yes"; then
23915 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23916 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23917 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23918 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23919 gt_source="external libintl"
23924 gt_source="included intl directory"
23926 { echo "$as_me:$LINENO: result: $gt_source" >&5
23927 echo "${ECHO_T}$gt_source" >&6; }
23930 if test "$USE_NLS" = "yes"; then
23932 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23933 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23934 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23935 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23936 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23937 echo "${ECHO_T}$LIBINTL" >&6; }
23939 for element in $INCINTL; do
23941 for x in $CPPFLAGS; do
23943 acl_save_prefix="$prefix"
23944 prefix="$acl_final_prefix"
23945 acl_save_exec_prefix="$exec_prefix"
23946 exec_prefix="$acl_final_exec_prefix"
23948 exec_prefix="$acl_save_exec_prefix"
23949 prefix="$acl_save_prefix"
23951 if test "X$x" = "X$element"; then
23956 if test -z "$haveit"; then
23957 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_GETTEXT 1
23969 cat >>confdefs.h <<\_ACEOF
23970 #define HAVE_DCGETTEXT 1
23979 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23980 BUILD_INCLUDED_LIBINTL=yes
23987 nls_cv_header_intl=
23988 nls_cv_header_libgt=
24000 if test "$USE_INCLUDED_LIBINTL" = yes; then
24001 INTLOBJS="\$(GETTOBJS)"
24005 INTL_LIBTOOL_SUFFIX_PREFIX=
24009 INTLLIBS="$LIBINTL"
24021 support_postgresql=no
24024 support_smartalloc=yes
24025 support_readline=yes
24029 support_wx_console=no
24030 support_tray_monitor=no
24035 support_static_tools=no
24036 support_static_fd=no
24037 support_static_sd=no
24038 support_static_dir=no
24039 support_static_cons=no
24041 build_client_only=no
24050 # Check whether --enable-gnome was given.
24051 if test "${enable_gnome+set}" = set; then
24052 enableval=$enable_gnome;
24053 if test x$enableval = xyes; then
24062 if test x$support_gnome = xyes; then
24063 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24064 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24065 { (exit 1); exit 1; }; }
24066 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24067 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24068 { (exit 1); exit 1; }; }
24070 # AC_SUBST(GNOME_DIR)
24072 # Check whether --enable-bat was given.
24073 if test "${enable_bat+set}" = set; then
24074 enableval=$enable_bat;
24075 if test x$enableval = xyes; then
24077 cat >>confdefs.h <<\_ACEOF
24089 if test x$support_bat = xyes; then
24090 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24092 if test $pkg = 0; then
24093 BAT_DIR=src/qt-console
24095 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24096 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24097 { (exit 1); exit 1; }; }
24115 # Check whether --enable-bwx-console was given.
24116 if test "${enable_bwx_console+set}" = set; then
24117 enableval=$enable_bwx_console;
24118 if test x$enableval = xyes; then
24119 support_wx_console=yes
24127 if test x$support_wx_console = xyes; then
24128 abc=`$WXCONFIG $WXFLAGS --cppflags`
24130 if test $pkg = 0; then
24131 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24132 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24133 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24137 WX_DIR="src/wx-console"
24140 echo "wx-config program not found. bwx-console disabled."
24142 support_wx_console=no
24147 # Check whether --enable-tray-monitor was given.
24148 if test "${enable_tray_monitor+set}" = set; then
24149 enableval=$enable_tray_monitor;
24150 if test x$enableval = xyes; then
24151 support_tray_monitor=yes
24159 if test x$support_tray_monitor = xyes; then
24160 abc=`$PKGCONFIG --exists gtk+-2.0`
24162 if test $pkg = 0; then
24163 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24164 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24167 TRAY_MONITOR_DIR=src/tray-monitor
24168 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24170 if test $pkg = 0; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_GTK_2_4 1
24181 # Check whether --enable-smartalloc was given.
24182 if test "${enable_smartalloc+set}" = set; then
24183 enableval=$enable_smartalloc;
24184 if test x$enableval = xno; then
24185 support_smartalloc=no
24192 if test x$support_smartalloc = xyes; then
24194 cat >>confdefs.h <<\_ACEOF
24195 #define SMARTALLOC 1
24200 # Check whether --enable-lockmgr was given.
24201 if test "${enable_lockmgr+set}" = set; then
24202 enableval=$enable_lockmgr;
24203 if test x$enableval = xyes; then
24204 support_lockmgr=yes
24211 if test x$support_lockmgr = xyes; then
24213 cat >>confdefs.h <<\_ACEOF
24214 #define _USE_LOCKMGR 1
24220 # Check whether --enable-static-tools was given.
24221 if test "${enable_static_tools+set}" = set; then
24222 enableval=$enable_static_tools;
24223 if test x$enableval = xyes; then
24224 if test x$use_libtool = xyes; then
24225 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24226 please rerun configure with --disable-libtool" >&5
24227 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24228 please rerun configure with --disable-libtool" >&2;}
24229 { (exit 1); exit 1; }; }
24231 support_static_tools=yes
24239 if test x$support_static_tools = xyes; then
24240 TTOOL_LDFLAGS="-static"
24244 # Check whether --enable-static-fd was given.
24245 if test "${enable_static_fd+set}" = set; then
24246 enableval=$enable_static_fd;
24247 if test x$enableval = xyes; then
24248 if test x$use_libtool = xyes; then
24249 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24250 please rerun configure with --disable-libtool" >&5
24251 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24252 please rerun configure with --disable-libtool" >&2;}
24253 { (exit 1); exit 1; }; }
24255 support_static_fd=yes
24263 if test x$support_static_fd = xyes; then
24264 STATIC_FD="static-bacula-fd"
24268 # Check whether --enable-static-sd was given.
24269 if test "${enable_static_sd+set}" = set; then
24270 enableval=$enable_static_sd;
24271 if test x$enableval = xyes; then
24272 if test x$use_libtool = xyes; then
24273 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24274 please rerun configure with --disable-libtool" >&5
24275 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24276 please rerun configure with --disable-libtool" >&2;}
24277 { (exit 1); exit 1; }; }
24279 support_static_sd=yes
24287 if test x$support_static_sd = xyes; then
24288 STATIC_SD="static-bacula-sd"
24292 # Check whether --enable-static-dir was given.
24293 if test "${enable_static_dir+set}" = set; then
24294 enableval=$enable_static_dir;
24295 if test x$enableval = xyes; then
24296 if test x$use_libtool = xyes; then
24297 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24298 please rerun configure with --disable-libtool" >&5
24299 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24300 please rerun configure with --disable-libtool" >&2;}
24301 { (exit 1); exit 1; }; }
24303 support_static_dir=yes
24311 if test x$support_static_dir = xyes; then
24312 STATIC_DIR="static-bacula-dir"
24316 # Check whether --enable-static-cons was given.
24317 if test "${enable_static_cons+set}" = set; then
24318 enableval=$enable_static_cons;
24319 if test x$enableval = xyes; then
24320 if test x$use_libtool = xyes; then
24321 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24322 please rerun configure with --disable-libtool" >&5
24323 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24324 please rerun configure with --disable-libtool" >&2;}
24325 { (exit 1); exit 1; }; }
24327 support_static_cons=yes
24337 if test x$support_static_cons = xyes; then
24338 STATIC_CONS="static-bconsole"
24339 STATIC_GNOME_CONS="static-bgnome-console"
24340 STATIC_WX_CONS="static-bwx-console"
24346 # Check whether --enable-client-only was given.
24347 if test "${enable_client_only+set}" = set; then
24348 enableval=$enable_client_only;
24349 if test x$enableval = xyes; then
24350 build_client_only=yes
24358 if test x$build_client_only = xno; then
24365 # Check whether --enable-build-dird was given.
24366 if test "${enable_build_dird+set}" = set; then
24367 enableval=$enable_build_dird;
24368 if test x$enableval = xno; then
24375 if test x$build_dird = xyes; then
24376 DIRD_DIR="src/dird"
24377 DIR_TOOLS="DIRTOOLS"
24380 DIR_TOOLS="NODIRTOOLS"
24385 # Check whether --enable-build-stored was given.
24386 if test "${enable_build_stored+set}" = set; then
24387 enableval=$enable_build_stored;
24388 if test x$enableval = xno; then
24395 if test x$build_stored = xyes; then
24396 STORED_DIR="src/stored"
24402 # Check whether --enable-conio was given.
24403 if test "${enable_conio+set}" = set; then
24404 enableval=$enable_conio;
24405 if test x$enableval = xno; then
24415 # Check whether --enable-ipv6 was given.
24416 if test "${enable_ipv6+set}" = set; then
24417 enableval=$enable_ipv6;
24418 if test x$enableval = xno; then
24426 if test x$support_ipv6 = xyes; then
24427 cat >conftest.$ac_ext <<_ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 #include <sys/types.h>
24434 #include <sys/socket.h>
24435 #include <netinet/in.h>
24439 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24444 rm -f conftest.$ac_objext conftest$ac_exeext
24445 if { (ac_try="$ac_link"
24446 case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_link") 2>conftest.er1
24453 grep -v '^ *+' conftest.er1 >conftest.err
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } && {
24458 test -z "$ac_c_werror_flag" ||
24459 test ! -s conftest.err
24460 } && test -s conftest$ac_exeext &&
24461 $as_test_x conftest$ac_exeext; then
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24471 conftest$ac_exeext conftest.$ac_ext
24474 if test x$support_ipv6 = xyes; then
24476 cat >>confdefs.h <<\_ACEOF
24477 #define HAVE_IPV6 1
24483 if test "${ac_cv_header_curses_h+set}" = set; then
24484 { echo "$as_me:$LINENO: checking for curses.h" >&5
24485 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24486 if test "${ac_cv_header_curses_h+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24490 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24492 # Is the header compilable?
24493 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24494 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 $ac_includes_default
24502 #include <curses.h>
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_compiler=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 echo "${ECHO_T}$ac_header_compiler" >&6; }
24533 # Is the header present?
24534 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24535 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <curses.h>
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24552 grep -v '^ *+' conftest.er1 >conftest.err
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } >/dev/null && {
24557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24560 ac_header_preproc=yes
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ac_header_preproc=no
24568 rm -f conftest.err conftest.$ac_ext
24569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24570 echo "${ECHO_T}$ac_header_preproc" >&6; }
24572 # So? What about this header?
24573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24575 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24576 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24578 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24579 ac_header_preproc=yes
24582 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24583 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
24585 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24587 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
24589 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
24590 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24591 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24592 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24593 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24597 { echo "$as_me:$LINENO: checking for curses.h" >&5
24598 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24599 if test "${ac_cv_header_curses_h+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 ac_cv_header_curses_h=$ac_header_preproc
24604 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24605 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24608 if test $ac_cv_header_curses_h = yes; then
24609 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24610 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24611 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-lncurses $LIBS"
24616 cat >conftest.$ac_ext <<_ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h. */
24623 /* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest$ac_exeext &&
24655 $as_test_x conftest$ac_exeext; then
24656 ac_cv_lib_ncurses_tgetent=yes
24658 echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_cv_lib_ncurses_tgetent=no
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665 conftest$ac_exeext conftest.$ac_ext
24666 LIBS=$ac_check_lib_save_LIBS
24668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24669 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24670 if test $ac_cv_lib_ncurses_tgetent = yes; then
24671 TERM_LIB="-lncurses"
24673 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24674 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24675 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24676 echo $ECHO_N "(cached) $ECHO_C" >&6
24678 ac_check_lib_save_LIBS=$LIBS
24679 LIBS="-ltermcap $LIBS"
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24687 /* Override any GCC internal prototype to avoid an error.
24688 Use char because int might match the return type of a GCC
24689 builtin and then its argument prototype would still apply. */
24702 rm -f conftest.$ac_objext conftest$ac_exeext
24703 if { (ac_try="$ac_link"
24704 case "(($ac_try" in
24705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_link") 2>conftest.er1
24711 grep -v '^ *+' conftest.er1 >conftest.err
24713 cat conftest.err >&5
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } && {
24716 test -z "$ac_c_werror_flag" ||
24717 test ! -s conftest.err
24718 } && test -s conftest$ac_exeext &&
24719 $as_test_x conftest$ac_exeext; then
24720 ac_cv_lib_termcap_tgetent=yes
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 ac_cv_lib_termcap_tgetent=no
24728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24729 conftest$ac_exeext conftest.$ac_ext
24730 LIBS=$ac_check_lib_save_LIBS
24732 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24733 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24734 if test $ac_cv_lib_termcap_tgetent = yes; then
24735 TERM_LIB="-ltermcap"
24744 for ac_header in curses.h
24746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 ac_res=`eval echo '${'$as_ac_Header'}'`
24754 { echo "$as_me:$LINENO: result: $ac_res" >&5
24755 echo "${ECHO_T}$ac_res" >&6; }
24757 # Is the header compilable?
24758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24766 $ac_includes_default
24767 #include <$ac_header>
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_header_compiler=yes
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ac_header_compiler=no
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24796 echo "${ECHO_T}$ac_header_compiler" >&6; }
24798 # Is the header present?
24799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24807 #include <$ac_header>
24809 if { (ac_try="$ac_cpp conftest.$ac_ext"
24810 case "(($ac_try" in
24811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24817 grep -v '^ *+' conftest.er1 >conftest.err
24819 cat conftest.err >&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } >/dev/null && {
24822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24825 ac_header_preproc=yes
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ac_header_preproc=no
24833 rm -f conftest.err conftest.$ac_ext
24834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24835 echo "${ECHO_T}$ac_header_preproc" >&6; }
24837 # So? What about this header?
24838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24844 ac_header_preproc=yes
24847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24867 eval "$as_ac_Header=\$ac_header_preproc"
24869 ac_res=`eval echo '${'$as_ac_Header'}'`
24870 { echo "$as_me:$LINENO: result: $ac_res" >&5
24871 echo "${ECHO_T}$ac_res" >&6; }
24874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24875 cat >>confdefs.h <<_ACEOF
24876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24883 if test "${ac_cv_header_term_h+set}" = set; then
24884 { echo "$as_me:$LINENO: checking for term.h" >&5
24885 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24886 if test "${ac_cv_header_term_h+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24889 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24890 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24892 # Is the header compilable?
24893 { echo "$as_me:$LINENO: checking term.h usability" >&5
24894 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 $ac_includes_default
24904 rm -f conftest.$ac_objext
24905 if { (ac_try="$ac_compile"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911 (eval "$ac_compile") 2>conftest.er1
24913 grep -v '^ *+' conftest.er1 >conftest.err
24915 cat conftest.err >&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } && {
24918 test -z "$ac_c_werror_flag" ||
24919 test ! -s conftest.err
24920 } && test -s conftest.$ac_objext; then
24921 ac_header_compiler=yes
24923 echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24926 ac_header_compiler=no
24929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24931 echo "${ECHO_T}$ac_header_compiler" >&6; }
24933 # Is the header present?
24934 { echo "$as_me:$LINENO: checking term.h presence" >&5
24935 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24936 cat >conftest.$ac_ext <<_ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24944 if { (ac_try="$ac_cpp conftest.$ac_ext"
24945 case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24952 grep -v '^ *+' conftest.er1 >conftest.err
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } >/dev/null && {
24957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24958 test ! -s conftest.err
24960 ac_header_preproc=yes
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 ac_header_preproc=no
24968 rm -f conftest.err conftest.$ac_ext
24969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24970 echo "${ECHO_T}$ac_header_preproc" >&6; }
24972 # So? What about this header?
24973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24975 { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24976 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24978 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24979 ac_header_preproc=yes
24982 { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24983 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
24985 echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
24986 { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24987 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24988 { echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
24989 echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
24990 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24991 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24992 { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24993 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24997 { echo "$as_me:$LINENO: checking for term.h" >&5
24998 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24999 if test "${ac_cv_header_term_h+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25002 ac_cv_header_term_h=$ac_header_preproc
25004 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25005 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25008 if test $ac_cv_header_term_h = yes; then
25009 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25010 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25011 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lcurses $LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25023 /* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25038 rm -f conftest.$ac_objext conftest$ac_exeext
25039 if { (ac_try="$ac_link"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045 (eval "$ac_link") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest$ac_exeext &&
25055 $as_test_x conftest$ac_exeext; then
25056 ac_cv_lib_curses_tgetent=yes
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 ac_cv_lib_curses_tgetent=no
25064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25065 conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25069 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25070 if test $ac_cv_lib_curses_tgetent = yes; then
25071 TERM_LIB="-lcurses"
25085 if test x$support_conio = xyes; then
25086 if test x$TERM_LIB != x; then
25087 CONS_LIBS=$TERM_LIB
25091 support_readline=no
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_CONIO 1
25098 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25103 # Check whether --enable-readline was given.
25104 if test "${enable_readline+set}" = set; then
25105 enableval=$enable_readline;
25106 if test x$enableval = xno; then
25107 support_readline=no
25113 if test x$TERM_LIB = x ; then
25114 support_readline=no
25119 if test x$support_readline = xyes; then
25121 # Check whether --with-readline was given.
25122 if test "${with_readline+set}" = set; then
25123 withval=$with_readline;
25124 case "$with_readline" in
25129 if test -f ${with_readline}/readline.h; then
25130 CONS_INC="-I${with_readline}"
25131 CONS_LDFLAGS="-L$with_readline"
25132 elif test -f ${with_readline}/include/readline/readline.h; then
25133 CONS_INC="-I${with_readline}/include/readline"
25134 CONS_LDFLAGS="-L${with_readline}/lib"
25135 with_readline="${with_readline}/include/readline"
25137 with_readline="/usr/include/readline"
25140 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25142 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25143 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25147 ac_res=`eval echo '${'$as_ac_Header'}'`
25148 { echo "$as_me:$LINENO: result: $ac_res" >&5
25149 echo "${ECHO_T}$ac_res" >&6; }
25151 # Is the header compilable?
25152 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25153 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25160 $ac_includes_default
25161 #include <${with_readline}/readline.h>
25163 rm -f conftest.$ac_objext
25164 if { (ac_try="$ac_compile"
25165 case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_compile") 2>conftest.er1
25172 grep -v '^ *+' conftest.er1 >conftest.err
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } && {
25177 test -z "$ac_c_werror_flag" ||
25178 test ! -s conftest.err
25179 } && test -s conftest.$ac_objext; then
25180 ac_header_compiler=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ac_header_compiler=no
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25190 echo "${ECHO_T}$ac_header_compiler" >&6; }
25192 # Is the header present?
25193 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25194 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25195 cat >conftest.$ac_ext <<_ACEOF
25198 cat confdefs.h >>conftest.$ac_ext
25199 cat >>conftest.$ac_ext <<_ACEOF
25200 /* end confdefs.h. */
25201 #include <${with_readline}/readline.h>
25203 if { (ac_try="$ac_cpp conftest.$ac_ext"
25204 case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } >/dev/null && {
25216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25219 ac_header_preproc=yes
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ac_header_preproc=no
25227 rm -f conftest.err conftest.$ac_ext
25228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25229 echo "${ECHO_T}$ac_header_preproc" >&6; }
25231 # So? What about this header?
25232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25234 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25238 ac_header_preproc=yes
25241 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25243 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25245 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25246 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25247 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25248 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25250 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25252 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25256 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25257 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 eval "$as_ac_Header=\$ac_header_preproc"
25263 ac_res=`eval echo '${'$as_ac_Header'}'`
25264 { echo "$as_me:$LINENO: result: $ac_res" >&5
25265 echo "${ECHO_T}$ac_res" >&6; }
25268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_READLINE 1
25275 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25281 echo "readline.h not found. readline turned off ..."
25293 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25294 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25295 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25296 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25297 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25300 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25302 # Is the header compilable?
25303 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25304 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25312 #include </usr/include/readline/readline.h>
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 ac_header_compiler=yes
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_header_compiler=no
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25341 echo "${ECHO_T}$ac_header_compiler" >&6; }
25343 # Is the header present?
25344 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25345 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 #include </usr/include/readline/readline.h>
25354 if { (ac_try="$ac_cpp conftest.$ac_ext"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } >/dev/null && {
25367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25370 ac_header_preproc=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_header_preproc=no
25378 rm -f conftest.err conftest.$ac_ext
25379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25380 echo "${ECHO_T}$ac_header_preproc" >&6; }
25382 # So? What about this header?
25383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25385 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25389 ac_header_preproc=yes
25392 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25396 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25397 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25398 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25399 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25400 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25401 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25402 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25403 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25407 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25408 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25409 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25414 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25415 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25418 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_READLINE 1
25426 CONS_INC="-I/usr/include/readline"
25427 CONS_LIBS="-lreadline $TERM_LIB"
25431 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25433 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25434 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25436 echo $ECHO_N "(cached) $ECHO_C" >&6
25438 ac_res=`eval echo '${'$as_ac_Header'}'`
25439 { echo "$as_me:$LINENO: result: $ac_res" >&5
25440 echo "${ECHO_T}$ac_res" >&6; }
25442 # Is the header compilable?
25443 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25444 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25445 cat >conftest.$ac_ext <<_ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25451 $ac_includes_default
25452 #include <${TOP_DIR}/depkgs/readline/readline.h>
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_compile") 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest.$ac_objext; then
25471 ac_header_compiler=yes
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_header_compiler=no
25479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25481 echo "${ECHO_T}$ac_header_compiler" >&6; }
25483 # Is the header present?
25484 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25485 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25486 cat >conftest.$ac_ext <<_ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 #include <${TOP_DIR}/depkgs/readline/readline.h>
25494 if { (ac_try="$ac_cpp conftest.$ac_ext"
25495 case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25502 grep -v '^ *+' conftest.er1 >conftest.err
25504 cat conftest.err >&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } >/dev/null && {
25507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25508 test ! -s conftest.err
25510 ac_header_preproc=yes
25512 echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25515 ac_header_preproc=no
25518 rm -f conftest.err conftest.$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25520 echo "${ECHO_T}$ac_header_preproc" >&6; }
25522 # So? What about this header?
25523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25525 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25529 ac_header_preproc=yes
25532 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25537 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25539 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25541 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25542 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25543 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25547 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25548 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 eval "$as_ac_Header=\$ac_header_preproc"
25554 ac_res=`eval echo '${'$as_ac_Header'}'`
25555 { echo "$as_me:$LINENO: result: $ac_res" >&5
25556 echo "${ECHO_T}$ac_res" >&6; }
25559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25562 cat >>confdefs.h <<\_ACEOF
25563 #define HAVE_READLINE 1
25567 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25568 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25569 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25570 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25575 echo "readline.h not found. readline turned off ..."
25602 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25603 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25604 if test "${ac_cv_header_stat_broken+set}" = set; then
25605 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 cat >conftest.$ac_ext <<_ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25613 #include <sys/types.h>
25614 #include <sys/stat.h>
25616 #if defined S_ISBLK && defined S_IFDIR
25617 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25620 #if defined S_ISBLK && defined S_IFCHR
25621 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25624 #if defined S_ISLNK && defined S_IFREG
25625 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25628 #if defined S_ISSOCK && defined S_IFREG
25629 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_compile") 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } && {
25647 test -z "$ac_c_werror_flag" ||
25648 test ! -s conftest.err
25649 } && test -s conftest.$ac_objext; then
25650 ac_cv_header_stat_broken=no
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ac_cv_header_stat_broken=yes
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25661 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25662 if test $ac_cv_header_stat_broken = yes; then
25664 cat >>confdefs.h <<\_ACEOF
25665 #define STAT_MACROS_BROKEN 1
25675 ac_header_dirent=no
25676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25677 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25678 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25679 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 #include <sys/types.h>
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_compile") 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && {
25715 test -z "$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 } && test -s conftest.$ac_objext; then
25718 eval "$as_ac_Header=yes"
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 eval "$as_ac_Header=no"
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 ac_res=`eval echo '${'$as_ac_Header'}'`
25729 { echo "$as_me:$LINENO: result: $ac_res" >&5
25730 echo "${ECHO_T}$ac_res" >&6; }
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732 cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25736 ac_header_dirent=$ac_hdr; break
25740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25741 if test $ac_header_dirent = dirent.h; then
25742 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25744 if test "${ac_cv_search_opendir+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25747 ac_func_search_save_LIBS=$LIBS
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25755 /* Override any GCC internal prototype to avoid an error.
25756 Use char because int might match the return type of a GCC
25757 builtin and then its argument prototype would still apply. */
25770 for ac_lib in '' dir; do
25771 if test -z "$ac_lib"; then
25772 ac_res="none required"
25775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (ac_try="$ac_link"
25779 case "(($ac_try" in
25780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781 *) ac_try_echo=$ac_try;;
25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784 (eval "$ac_link") 2>conftest.er1
25786 grep -v '^ *+' conftest.er1 >conftest.err
25788 cat conftest.err >&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } && {
25791 test -z "$ac_c_werror_flag" ||
25792 test ! -s conftest.err
25793 } && test -s conftest$ac_exeext &&
25794 $as_test_x conftest$ac_exeext; then
25795 ac_cv_search_opendir=$ac_res
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25805 if test "${ac_cv_search_opendir+set}" = set; then
25809 if test "${ac_cv_search_opendir+set}" = set; then
25812 ac_cv_search_opendir=no
25814 rm conftest.$ac_ext
25815 LIBS=$ac_func_search_save_LIBS
25817 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25818 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25819 ac_res=$ac_cv_search_opendir
25820 if test "$ac_res" != no; then
25821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25826 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25827 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25828 if test "${ac_cv_search_opendir+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25831 ac_func_search_save_LIBS=$LIBS
25832 cat >conftest.$ac_ext <<_ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h. */
25839 /* Override any GCC internal prototype to avoid an error.
25840 Use char because int might match the return type of a GCC
25841 builtin and then its argument prototype would still apply. */
25854 for ac_lib in '' x; do
25855 if test -z "$ac_lib"; then
25856 ac_res="none required"
25859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25861 rm -f conftest.$ac_objext conftest$ac_exeext
25862 if { (ac_try="$ac_link"
25863 case "(($ac_try" in
25864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25865 *) ac_try_echo=$ac_try;;
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868 (eval "$ac_link") 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } && {
25875 test -z "$ac_c_werror_flag" ||
25876 test ! -s conftest.err
25877 } && test -s conftest$ac_exeext &&
25878 $as_test_x conftest$ac_exeext; then
25879 ac_cv_search_opendir=$ac_res
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25889 if test "${ac_cv_search_opendir+set}" = set; then
25893 if test "${ac_cv_search_opendir+set}" = set; then
25896 ac_cv_search_opendir=no
25898 rm conftest.$ac_ext
25899 LIBS=$ac_func_search_save_LIBS
25901 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25902 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25903 ac_res=$ac_cv_search_opendir
25904 if test "$ac_res" != no; then
25905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25918 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25926 cat >conftest.$ac_ext <<_ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25934 #define $ac_func innocuous_$ac_func
25936 /* System header to define __stub macros and hopefully few prototypes,
25937 which can conflict with char $ac_func (); below.
25938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25939 <limits.h> exists even on freestanding compilers. */
25942 # include <limits.h>
25944 # include <assert.h>
25949 /* Override any GCC internal prototype to avoid an error.
25950 Use char because int might match the return type of a GCC
25951 builtin and then its argument prototype would still apply. */
25956 /* The GNU C library defines this for functions which it implements
25957 to always fail with ENOSYS. Some functions are actually named
25958 something starting with __ and the normal name is an alias. */
25959 #if defined __stub_$ac_func || defined __stub___$ac_func
25966 return $ac_func ();
25971 rm -f conftest.$ac_objext conftest$ac_exeext
25972 if { (ac_try="$ac_link"
25973 case "(($ac_try" in
25974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975 *) ac_try_echo=$ac_try;;
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978 (eval "$ac_link") 2>conftest.er1
25980 grep -v '^ *+' conftest.er1 >conftest.err
25982 cat conftest.err >&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && {
25985 test -z "$ac_c_werror_flag" ||
25986 test ! -s conftest.err
25987 } && test -s conftest$ac_exeext &&
25988 $as_test_x conftest$ac_exeext; then
25989 eval "$as_ac_var=yes"
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 eval "$as_ac_var=no"
25997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25998 conftest$ac_exeext conftest.$ac_ext
26000 ac_res=`eval echo '${'$as_ac_var'}'`
26001 { echo "$as_me:$LINENO: result: $ac_res" >&5
26002 echo "${ECHO_T}$ac_res" >&6; }
26003 if test `eval echo '${'$as_ac_var'}'` = yes; then
26004 cat >>confdefs.h <<_ACEOF
26005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26013 for ac_func in nanosleep nl_langinfo
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26029 #define $ac_func innocuous_$ac_func
26031 /* System header to define __stub macros and hopefully few prototypes,
26032 which can conflict with char $ac_func (); below.
26033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034 <limits.h> exists even on freestanding compilers. */
26037 # include <limits.h>
26039 # include <assert.h>
26044 /* Override any GCC internal prototype to avoid an error.
26045 Use char because int might match the return type of a GCC
26046 builtin and then its argument prototype would still apply. */
26051 /* The GNU C library defines this for functions which it implements
26052 to always fail with ENOSYS. Some functions are actually named
26053 something starting with __ and the normal name is an alias. */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26061 return $ac_func ();
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
26068 case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_link") 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } && {
26080 test -z "$ac_c_werror_flag" ||
26081 test ! -s conftest.err
26082 } && test -s conftest$ac_exeext &&
26083 $as_test_x conftest$ac_exeext; then
26084 eval "$as_ac_var=yes"
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 eval "$as_ac_var=no"
26092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26093 conftest$ac_exeext conftest.$ac_ext
26095 ac_res=`eval echo '${'$as_ac_var'}'`
26096 { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26107 for ac_header in varargs.h
26109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26114 echo $ECHO_N "(cached) $ECHO_C" >&6
26116 ac_res=`eval echo '${'$as_ac_Header'}'`
26117 { echo "$as_me:$LINENO: result: $ac_res" >&5
26118 echo "${ECHO_T}$ac_res" >&6; }
26120 # Is the header compilable?
26121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26123 cat >conftest.$ac_ext <<_ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h. */
26129 $ac_includes_default
26130 #include <$ac_header>
26132 rm -f conftest.$ac_objext
26133 if { (ac_try="$ac_compile"
26134 case "(($ac_try" in
26135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136 *) ac_try_echo=$ac_try;;
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139 (eval "$ac_compile") 2>conftest.er1
26141 grep -v '^ *+' conftest.er1 >conftest.err
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } && {
26146 test -z "$ac_c_werror_flag" ||
26147 test ! -s conftest.err
26148 } && test -s conftest.$ac_objext; then
26149 ac_header_compiler=yes
26151 echo "$as_me: failed program was:" >&5
26152 sed 's/^/| /' conftest.$ac_ext >&5
26154 ac_header_compiler=no
26157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26159 echo "${ECHO_T}$ac_header_compiler" >&6; }
26161 # Is the header present?
26162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26170 #include <$ac_header>
26172 if { (ac_try="$ac_cpp conftest.$ac_ext"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26180 grep -v '^ *+' conftest.er1 >conftest.err
26182 cat conftest.err >&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } >/dev/null && {
26185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26186 test ! -s conftest.err
26188 ac_header_preproc=yes
26190 echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26193 ac_header_preproc=no
26196 rm -f conftest.err conftest.$ac_ext
26197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26198 echo "${ECHO_T}$ac_header_preproc" >&6; }
26200 # So? What about this header?
26201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26207 ac_header_preproc=yes
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26228 echo $ECHO_N "(cached) $ECHO_C" >&6
26230 eval "$as_ac_Header=\$ac_header_preproc"
26232 ac_res=`eval echo '${'$as_ac_Header'}'`
26233 { echo "$as_me:$LINENO: result: $ac_res" >&5
26234 echo "${ECHO_T}$ac_res" >&6; }
26237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26238 cat >>confdefs.h <<_ACEOF
26239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26248 { echo "$as_me:$LINENO: checking for Python support" >&5
26249 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26251 # Check whether --with-python was given.
26252 if test "${with_python+set}" = set; then
26253 withval=$with_python;
26256 if test "$withval" != "no"; then
26257 if test "$withval" = "yes"; then
26258 if test -e /usr/bin/python-config ; then
26259 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26260 PYTHON_LIBS=`/usr/bin/python-config --libs`
26262 for python_root in /usr /usr/local /usr/sfw; do
26263 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26264 if test -f $python_root/include/${ver}/Python.h; then
26265 PYTHON_INCDIR=-I$python_root/include/${ver}
26266 if test -d $python_root/lib64/${ver}/config; then
26267 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26269 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26276 if test x$PYTHON_INCDIR = x; then
26277 if test -f $prefix/include/Python.h; then
26278 PYTHON_INCDIR=-I$prefix/include
26279 if test -d $prefix/lib64/config; then
26280 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26282 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26285 { echo "$as_me:$LINENO: result: no" >&5
26286 echo "${ECHO_T}no" >&6; }
26287 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26288 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26289 { (exit 1); exit 1; }; }
26294 if test -e $withval/bin/python-config ; then
26295 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26296 PYTHON_LIBS=`$withval/bin/python-config --libs`
26297 elif test -f $withval/Python.h; then
26298 PYTHON_INCDIR=-I$withval
26299 PYTHON_LIBS="-L$withval/config -lpython"
26300 elif test -f $withval/include/Python.h; then
26301 PYTHON_INCDIR=-I$withval/include
26302 if test -d $withval/lib64/config; then
26303 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26305 PYTHON_LIBS="-L$withval/lib/config -lpython"
26307 elif test -f $withval/include/python/Python.h; then
26308 PYTHON_INCDIR=-I$withval/include/python
26309 if test -d $withval/lib64/python/config; then
26310 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26312 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26315 { echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6; }
26317 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26318 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26319 { (exit 1); exit 1; }; }
26323 cat >>confdefs.h <<\_ACEOF
26324 #define HAVE_PYTHON 1
26327 { echo "$as_me:$LINENO: result: yes" >&5
26328 echo "${ECHO_T}yes" >&6; }
26330 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26331 echo "$as_me: checking for more Python libs" >&6;}
26332 saved_LIBS="$LIBS"; LIBS=
26333 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26334 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26335 if test "${ac_cv_search_shm_open+set}" = set; then
26336 echo $ECHO_N "(cached) $ECHO_C" >&6
26338 ac_func_search_save_LIBS=$LIBS
26339 cat >conftest.$ac_ext <<_ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26346 /* Override any GCC internal prototype to avoid an error.
26347 Use char because int might match the return type of a GCC
26348 builtin and then its argument prototype would still apply. */
26356 return shm_open ();
26361 for ac_lib in '' rt; do
26362 if test -z "$ac_lib"; then
26363 ac_res="none required"
26366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26368 rm -f conftest.$ac_objext conftest$ac_exeext
26369 if { (ac_try="$ac_link"
26370 case "(($ac_try" in
26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375 (eval "$ac_link") 2>conftest.er1
26377 grep -v '^ *+' conftest.er1 >conftest.err
26379 cat conftest.err >&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && {
26382 test -z "$ac_c_werror_flag" ||
26383 test ! -s conftest.err
26384 } && test -s conftest$ac_exeext &&
26385 $as_test_x conftest$ac_exeext; then
26386 ac_cv_search_shm_open=$ac_res
26388 echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26396 if test "${ac_cv_search_shm_open+set}" = set; then
26400 if test "${ac_cv_search_shm_open+set}" = set; then
26403 ac_cv_search_shm_open=no
26405 rm conftest.$ac_ext
26406 LIBS=$ac_func_search_save_LIBS
26408 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26409 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26410 ac_res=$ac_cv_search_shm_open
26411 if test "$ac_res" != no; then
26412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26417 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26418 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26419 if test "${ac_cv_lib_util_openpty+set}" = set; then
26420 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 ac_check_lib_save_LIBS=$LIBS
26423 LIBS="-lutil $LIBS"
26424 cat >conftest.$ac_ext <<_ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26431 /* Override any GCC internal prototype to avoid an error.
26432 Use char because int might match the return type of a GCC
26433 builtin and then its argument prototype would still apply. */
26446 rm -f conftest.$ac_objext conftest$ac_exeext
26447 if { (ac_try="$ac_link"
26448 case "(($ac_try" in
26449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450 *) ac_try_echo=$ac_try;;
26452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453 (eval "$ac_link") 2>conftest.er1
26455 grep -v '^ *+' conftest.er1 >conftest.err
26457 cat conftest.err >&5
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); } && {
26460 test -z "$ac_c_werror_flag" ||
26461 test ! -s conftest.err
26462 } && test -s conftest$ac_exeext &&
26463 $as_test_x conftest$ac_exeext; then
26464 ac_cv_lib_util_openpty=yes
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 ac_cv_lib_util_openpty=no
26472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26473 conftest$ac_exeext conftest.$ac_ext
26474 LIBS=$ac_check_lib_save_LIBS
26476 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26477 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26478 if test $ac_cv_lib_util_openpty = yes; then
26479 cat >>confdefs.h <<_ACEOF
26480 #define HAVE_LIBUTIL 1
26483 LIBS="-lutil $LIBS"
26487 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26490 { echo "$as_me:$LINENO: result: no" >&5
26491 echo "${ECHO_T}no" >&6; }
26496 { echo "$as_me:$LINENO: result: no" >&5
26497 echo "${ECHO_T}no" >&6; }
26505 { echo "$as_me:$LINENO: checking for socket" >&5
26506 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26507 if test "${ac_cv_func_socket+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 cat >conftest.$ac_ext <<_ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h. */
26516 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26518 #define socket innocuous_socket
26520 /* System header to define __stub macros and hopefully few prototypes,
26521 which can conflict with char socket (); below.
26522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26523 <limits.h> exists even on freestanding compilers. */
26526 # include <limits.h>
26528 # include <assert.h>
26533 /* Override any GCC internal prototype to avoid an error.
26534 Use char because int might match the return type of a GCC
26535 builtin and then its argument prototype would still apply. */
26540 /* The GNU C library defines this for functions which it implements
26541 to always fail with ENOSYS. Some functions are actually named
26542 something starting with __ and the normal name is an alias. */
26543 #if defined __stub_socket || defined __stub___socket
26555 rm -f conftest.$ac_objext conftest$ac_exeext
26556 if { (ac_try="$ac_link"
26557 case "(($ac_try" in
26558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559 *) ac_try_echo=$ac_try;;
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562 (eval "$ac_link") 2>conftest.er1
26564 grep -v '^ *+' conftest.er1 >conftest.err
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } && {
26569 test -z "$ac_c_werror_flag" ||
26570 test ! -s conftest.err
26571 } && test -s conftest$ac_exeext &&
26572 $as_test_x conftest$ac_exeext; then
26573 ac_cv_func_socket=yes
26575 echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26578 ac_cv_func_socket=no
26581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26582 conftest$ac_exeext conftest.$ac_ext
26584 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26585 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26586 if test $ac_cv_func_socket = yes; then
26587 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26588 echo "${ECHO_T}using libc's socket" >&6; }
26591 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26592 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26593 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 ac_check_lib_save_LIBS=$LIBS
26597 LIBS="-lxnet $LIBS"
26598 cat >conftest.$ac_ext <<_ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26605 /* Override any GCC internal prototype to avoid an error.
26606 Use char because int might match the return type of a GCC
26607 builtin and then its argument prototype would still apply. */
26620 rm -f conftest.$ac_objext conftest$ac_exeext
26621 if { (ac_try="$ac_link"
26622 case "(($ac_try" in
26623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624 *) ac_try_echo=$ac_try;;
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627 (eval "$ac_link") 2>conftest.er1
26629 grep -v '^ *+' conftest.er1 >conftest.err
26631 cat conftest.err >&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } && {
26634 test -z "$ac_c_werror_flag" ||
26635 test ! -s conftest.err
26636 } && test -s conftest$ac_exeext &&
26637 $as_test_x conftest$ac_exeext; then
26638 ac_cv_lib_xnet_socket=yes
26640 echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26643 ac_cv_lib_xnet_socket=no
26646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26647 conftest$ac_exeext conftest.$ac_ext
26648 LIBS=$ac_check_lib_save_LIBS
26650 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26651 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26652 if test $ac_cv_lib_xnet_socket = yes; then
26653 cat >>confdefs.h <<_ACEOF
26654 #define HAVE_LIBXNET 1
26657 LIBS="-lxnet $LIBS"
26662 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26664 if test "${ac_cv_lib_socket_socket+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26667 ac_check_lib_save_LIBS=$LIBS
26668 LIBS="-lsocket $LIBS"
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26676 /* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (ac_try="$ac_link"
26693 case "(($ac_try" in
26694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695 *) ac_try_echo=$ac_try;;
26697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26698 (eval "$ac_link") 2>conftest.er1
26700 grep -v '^ *+' conftest.er1 >conftest.err
26702 cat conftest.err >&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } && {
26705 test -z "$ac_c_werror_flag" ||
26706 test ! -s conftest.err
26707 } && test -s conftest$ac_exeext &&
26708 $as_test_x conftest$ac_exeext; then
26709 ac_cv_lib_socket_socket=yes
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 ac_cv_lib_socket_socket=no
26717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26718 conftest$ac_exeext conftest.$ac_ext
26719 LIBS=$ac_check_lib_save_LIBS
26721 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26722 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26723 if test $ac_cv_lib_socket_socket = yes; then
26724 cat >>confdefs.h <<_ACEOF
26725 #define HAVE_LIBSOCKET 1
26728 LIBS="-lsocket $LIBS"
26733 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26734 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26735 if test "${ac_cv_lib_inet_socket+set}" = set; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26738 ac_check_lib_save_LIBS=$LIBS
26739 LIBS="-linet $LIBS"
26740 cat >conftest.$ac_ext <<_ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h. */
26747 /* Override any GCC internal prototype to avoid an error.
26748 Use char because int might match the return type of a GCC
26749 builtin and then its argument prototype would still apply. */
26762 rm -f conftest.$ac_objext conftest$ac_exeext
26763 if { (ac_try="$ac_link"
26764 case "(($ac_try" in
26765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766 *) ac_try_echo=$ac_try;;
26768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26769 (eval "$ac_link") 2>conftest.er1
26771 grep -v '^ *+' conftest.er1 >conftest.err
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } && {
26776 test -z "$ac_c_werror_flag" ||
26777 test ! -s conftest.err
26778 } && test -s conftest$ac_exeext &&
26779 $as_test_x conftest$ac_exeext; then
26780 ac_cv_lib_inet_socket=yes
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 ac_cv_lib_inet_socket=no
26788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26789 conftest$ac_exeext conftest.$ac_ext
26790 LIBS=$ac_check_lib_save_LIBS
26792 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26793 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26794 if test $ac_cv_lib_inet_socket = yes; then
26795 cat >>confdefs.h <<_ACEOF
26796 #define HAVE_LIBINET 1
26799 LIBS="-linet $LIBS"
26809 # Check whether --with-tcp-wrappers was given.
26810 if test "${with_tcp_wrappers+set}" = set; then
26811 withval=$with_tcp_wrappers;
26812 if test "x$withval" != "xno" ; then
26814 LIBS="$saved_LIBS -lwrap"
26815 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26816 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26817 if test "${ac_cv_search_nanosleep+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 ac_func_search_save_LIBS=$LIBS
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26828 /* Override any GCC internal prototype to avoid an error.
26829 Use char because int might match the return type of a GCC
26830 builtin and then its argument prototype would still apply. */
26838 return nanosleep ();
26843 for ac_lib in '' rt; do
26844 if test -z "$ac_lib"; then
26845 ac_res="none required"
26848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26850 rm -f conftest.$ac_objext conftest$ac_exeext
26851 if { (ac_try="$ac_link"
26852 case "(($ac_try" in
26853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854 *) ac_try_echo=$ac_try;;
26856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857 (eval "$ac_link") 2>conftest.er1
26859 grep -v '^ *+' conftest.er1 >conftest.err
26861 cat conftest.err >&5
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); } && {
26864 test -z "$ac_c_werror_flag" ||
26865 test ! -s conftest.err
26866 } && test -s conftest$ac_exeext &&
26867 $as_test_x conftest$ac_exeext; then
26868 ac_cv_search_nanosleep=$ac_res
26870 echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26878 if test "${ac_cv_search_nanosleep+set}" = set; then
26882 if test "${ac_cv_search_nanosleep+set}" = set; then
26885 ac_cv_search_nanosleep=no
26887 rm conftest.$ac_ext
26888 LIBS=$ac_func_search_save_LIBS
26890 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26891 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26892 ac_res=$ac_cv_search_nanosleep
26893 if test "$ac_res" != no; then
26894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26898 { echo "$as_me:$LINENO: checking for libwrap" >&5
26899 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26900 cat >conftest.$ac_ext <<_ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h. */
26907 #include <sys/types.h>
26909 int deny_severity = 0;
26910 int allow_severity = 0;
26911 struct request_info *req;
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (ac_try="$ac_link"
26925 case "(($ac_try" in
26926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927 *) ac_try_echo=$ac_try;;
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930 (eval "$ac_link") 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } && {
26937 test -z "$ac_c_werror_flag" ||
26938 test ! -s conftest.err
26939 } && test -s conftest$ac_exeext &&
26940 $as_test_x conftest$ac_exeext; then
26942 { echo "$as_me:$LINENO: result: yes" >&5
26943 echo "${ECHO_T}yes" >&6; }
26945 cat >>confdefs.h <<\_ACEOF
26946 #define HAVE_LIBWRAP 1
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26958 LIBS="$saved_LIBS -lwrap -lnsl"
26959 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26960 cat >conftest.$ac_ext <<_ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26967 #include <sys/types.h>
26969 int deny_severity = 0;
26970 int allow_severity = 0;
26971 struct request_info *req;
26983 rm -f conftest.$ac_objext conftest$ac_exeext
26984 if { (ac_try="$ac_link"
26985 case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990 (eval "$ac_link") 2>conftest.er1
26992 grep -v '^ *+' conftest.er1 >conftest.err
26994 cat conftest.err >&5
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } && {
26997 test -z "$ac_c_werror_flag" ||
26998 test ! -s conftest.err
26999 } && test -s conftest$ac_exeext &&
27000 $as_test_x conftest$ac_exeext; then
27002 { echo "$as_me:$LINENO: result: yes" >&5
27003 echo "${ECHO_T}yes" >&6; }
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_LIBWRAP 1
27014 echo "$as_me: failed program was:" >&5
27015 sed 's/^/| /' conftest.$ac_ext >&5
27018 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27019 echo "$as_me: error: *** libwrap missing" >&2;}
27020 { (exit 1); exit 1; }; }
27025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27026 conftest$ac_exeext conftest.$ac_ext
27031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27032 conftest$ac_exeext conftest.$ac_ext
27039 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27040 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27042 # Check whether --with-openssl was given.
27043 if test "${with_openssl+set}" = set; then
27044 withval=$with_openssl;
27045 with_openssl_directory=${withval}
27051 if test "x$with_openssl_directory" != "xno"; then
27052 OPENSSL_LIBS="-lssl -lcrypto"
27055 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27057 # Make sure the $with_openssl_directory also makes sense
27059 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27060 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27061 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27065 saved_LIBS="${LIBS}"
27066 saved_CFLAGS="${CFLAGS}"
27067 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27068 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27070 cat >conftest.$ac_ext <<_ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h. */
27077 #include <openssl/ssl.h>
27083 CRYPTO_set_id_callback(NULL);
27089 rm -f conftest.$ac_objext conftest$ac_exeext
27090 if { (ac_try="$ac_link"
27091 case "(($ac_try" in
27092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093 *) ac_try_echo=$ac_try;;
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096 (eval "$ac_link") 2>conftest.er1
27098 grep -v '^ *+' conftest.er1 >conftest.err
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } && {
27103 test -z "$ac_c_werror_flag" ||
27104 test ! -s conftest.err
27105 } && test -s conftest$ac_exeext &&
27106 $as_test_x conftest$ac_exeext; then
27109 support_crypto="yes"
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27117 support_crypto="no"
27122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27123 conftest$ac_exeext conftest.$ac_ext
27125 cat >conftest.$ac_ext <<_ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27132 #include <openssl/evp.h>
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148 *) ac_try_echo=$ac_try;;
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151 (eval "$ac_link") 2>conftest.er1
27153 grep -v '^ *+' conftest.er1 >conftest.err
27155 cat conftest.err >&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } && {
27158 test -z "$ac_c_werror_flag" ||
27159 test ! -s conftest.err
27160 } && test -s conftest$ac_exeext &&
27161 $as_test_x conftest$ac_exeext; then
27163 ac_cv_openssl_sha2="yes"
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27170 ac_cv_openssl_sha2="no"
27175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27176 conftest$ac_exeext conftest.$ac_ext
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27185 #include <openssl/evp.h>
27197 rm -f conftest.$ac_objext conftest$ac_exeext
27198 if { (ac_try="$ac_link"
27199 case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_link") 2>conftest.er1
27206 grep -v '^ *+' conftest.er1 >conftest.err
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && {
27211 test -z "$ac_c_werror_flag" ||
27212 test ! -s conftest.err
27213 } && test -s conftest$ac_exeext &&
27214 $as_test_x conftest$ac_exeext; then
27216 ac_cv_openssl_export="no"
27219 echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27223 ac_cv_openssl_export="yes"
27228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27229 conftest$ac_exeext conftest.$ac_ext
27231 LIBS="${saved_LIBS}"
27232 CFLAGS="${saved_CFLAGS}"
27234 if test "$support_tls" = "yes"; then
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_OPENSSL 1
27241 cat >>confdefs.h <<\_ACEOF
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE_CRYPTO 1
27252 if test "$ac_cv_openssl_sha2" = "yes"; then
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE_SHA2 1
27260 if test "$ac_cv_openssl_export" = "yes"; then
27262 cat >>confdefs.h <<\_ACEOF
27263 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27269 support_crypto="no"
27273 { echo "$as_me:$LINENO: result: $support_tls" >&5
27274 echo "${ECHO_T}$support_tls" >&6; }
27276 if test "$support_tls" = "no"; then
27280 if test "$support_crypto" = "no"; then
27284 { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27285 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27286 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 ac_check_lib_save_LIBS=$LIBS
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27298 /* Override any GCC internal prototype to avoid an error.
27299 Use char because int might match the return type of a GCC
27300 builtin and then its argument prototype would still apply. */
27304 char EVP_PKEY_encrypt_old ();
27308 return EVP_PKEY_encrypt_old ();
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_link") 2>conftest.er1
27322 grep -v '^ *+' conftest.er1 >conftest.err
27324 cat conftest.err >&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); } && {
27327 test -z "$ac_c_werror_flag" ||
27328 test ! -s conftest.err
27329 } && test -s conftest$ac_exeext &&
27330 $as_test_x conftest$ac_exeext; then
27331 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27340 conftest$ac_exeext conftest.$ac_ext
27341 LIBS=$ac_check_lib_save_LIBS
27343 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27344 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27345 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27347 cat >>confdefs.h <<\_ACEOF
27348 #define HAVE_OPENSSLv1 1
27358 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27359 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27360 if test "${ac_cv_search_dlopen+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 ac_func_search_save_LIBS=$LIBS
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27371 /* Override any GCC internal prototype to avoid an error.
27372 Use char because int might match the return type of a GCC
27373 builtin and then its argument prototype would still apply. */
27386 for ac_lib in '' dl; do
27387 if test -z "$ac_lib"; then
27388 ac_res="none required"
27391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397 *) ac_try_echo=$ac_try;;
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400 (eval "$ac_link") 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } && {
27407 test -z "$ac_c_werror_flag" ||
27408 test ! -s conftest.err
27409 } && test -s conftest$ac_exeext &&
27410 $as_test_x conftest$ac_exeext; then
27411 ac_cv_search_dlopen=$ac_res
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27421 if test "${ac_cv_search_dlopen+set}" = set; then
27425 if test "${ac_cv_search_dlopen+set}" = set; then
27428 ac_cv_search_dlopen=no
27430 rm conftest.$ac_ext
27431 LIBS=$ac_func_search_save_LIBS
27433 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27434 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27435 ac_res=$ac_cv_search_dlopen
27436 if test "$ac_res" != no; then
27437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27442 working_dir=`eval echo ${prefix}/var/bacula/working`
27444 # Check whether --with-working-dir was given.
27445 if test "${with_working_dir+set}" = set; then
27446 withval=$with_working_dir;
27447 if test "x$withval" != "xno" ; then
27448 working_dir=$withval
27459 # Check whether --with-archivedir was given.
27460 if test "${with_archivedir+set}" = set; then
27461 withval=$with_archivedir;
27462 if test "x$withval" != "xno" ; then
27463 archivedir=$withval
27472 basename=`hostname`
27474 # Check whether --with-basename was given.
27475 if test "${with_basename+set}" = set; then
27476 withval=$with_basename;
27477 if test "x$withval" != "xno" ; then
27487 hostname=`uname -n | cut -d '.' -f 1`
27488 if test x${hostname} = x ; then
27489 hostname="localhost"
27492 # Check whether --with-hostname was given.
27493 if test "${with_hostname+set}" = set; then
27494 withval=$with_hostname;
27495 if test "x$withval" != "xno" ; then
27506 scriptdir=`eval echo ${sysconfdir}`
27508 # Check whether --with-scriptdir was given.
27509 if test "${with_scriptdir+set}" = set; then
27510 withval=$with_scriptdir;
27511 if test "x$withval" != "xno" ; then
27524 # Check whether --with-bsrdir was given.
27525 if test "${with_bsrdir+set}" = set; then
27526 withval=$with_bsrdir;
27527 if test "x$withval" != "xno" ; then
27539 # Check whether --with-logdir was given.
27540 if test "${with_logdir+set}" = set; then
27541 withval=$with_logdir;
27542 if test "x$withval" != "xno" ; then
27553 # ------------------------------------------
27554 # Where to place plugindir (plugin files)
27555 # ------------------------------------------
27556 plugindir=`eval echo ${libdir}`
27558 # Check whether --with-plugindir was given.
27559 if test "${with_plugindir+set}" = set; then
27560 withval=$with_plugindir;
27561 if test "x$withval" != "xno" ; then
27571 dump_email=root@localhost
27573 # Check whether --with-dump-email was given.
27574 if test "${with_dump_email+set}" = set; then
27575 withval=$with_dump_email;
27576 if test "x$withval" != "xno" ; then
27577 dump_email=$withval
27586 job_email=root@localhost
27588 # Check whether --with-job-email was given.
27589 if test "${with_job_email+set}" = set; then
27590 withval=$with_job_email;
27591 if test "x$withval" != "xno" ; then
27601 smtp_host=localhost
27603 # Check whether --with-smtp_host was given.
27604 if test "${with_smtp_host+set}" = set; then
27605 withval=$with_smtp_host;
27606 if test "x$withval" != "xno" ; then
27618 # Check whether --with-pid-dir was given.
27619 if test "${with_pid_dir+set}" = set; then
27620 withval=$with_pid_dir;
27621 if test "x$withval" != "xno" ; then
27629 cat >>confdefs.h <<_ACEOF
27630 #define _PATH_BACULA_PIDDIR "$piddir"
27635 subsysdir=/var/run/subsys
27636 if test -d /var/run/subsys; then
27637 subsysdir=/var/run/subsys
27638 elif test -d /var/lock/subsys; then
27639 subsysdir=/var/lock/subsys
27641 subsysdir=/var/run/subsys
27644 # Check whether --with-subsys-dir was given.
27645 if test "${with_subsys_dir+set}" = set; then
27646 withval=$with_subsys_dir;
27647 if test "x$withval" != "xno" ; then
27659 # Check whether --with-baseport was given.
27660 if test "${with_baseport+set}" = set; then
27661 withval=$with_baseport;
27662 if test "x$withval" != "xno" ; then
27671 dir_port=`expr $baseport`
27672 fd_port=`expr $baseport + 1`
27673 sd_port=`expr $fd_port + 1`
27681 # Check whether --with-dir-password was given.
27682 if test "${with_dir_password+set}" = set; then
27683 withval=$with_dir_password;
27684 if test "x$withval" != "xno" ; then
27685 dir_password=$withval
27692 if test "x$dir_password" = "x" ; then
27693 if test "x$OPENSSL" = "xnone" ; then
27694 key=`autoconf/randpass 33`
27696 key=`openssl rand -base64 33`
27703 # Check whether --with-fd-password was given.
27704 if test "${with_fd_password+set}" = set; then
27705 withval=$with_fd_password;
27706 if test "x$withval" != "xno" ; then
27707 fd_password=$withval
27714 if test "x$fd_password" = "x" ; then
27715 if test "x$OPENSSL" = "xnone" ; then
27716 key=`autoconf/randpass 37`
27718 key=`openssl rand -base64 33`
27725 # Check whether --with-sd-password was given.
27726 if test "${with_sd_password+set}" = set; then
27727 withval=$with_sd_password;
27728 if test "x$withval" != "xno" ; then
27729 sd_password=$withval
27736 if test "x$sd_password" = "x" ; then
27737 if test "x$OPENSSL" = "xnone" ; then
27738 key=`autoconf/randpass 41`
27740 key=`openssl rand -base64 33`
27747 # Check whether --with-mon-dir-password was given.
27748 if test "${with_mon_dir_password+set}" = set; then
27749 withval=$with_mon_dir_password;
27750 if test "x$withval" != "xno" ; then
27751 mon_dir_password=$withval
27758 if test "x$mon_dir_password" = "x" ; then
27759 if test "x$OPENSSL" = "xnone" ; then
27760 key=`autoconf/randpass 33`
27762 key=`openssl rand -base64 33`
27764 mon_dir_password=$key
27769 # Check whether --with-mon-fd-password was given.
27770 if test "${with_mon_fd_password+set}" = set; then
27771 withval=$with_mon_fd_password;
27772 if test "x$withval" != "xno" ; then
27773 mon_fd_password=$withval
27780 if test "x$mon_fd_password" = "x" ; then
27781 if test "x$OPENSSL" = "xnone" ; then
27782 key=`autoconf/randpass 37`
27784 key=`openssl rand -base64 33`
27786 mon_fd_password=$key
27791 # Check whether --with-mon-sd-password was given.
27792 if test "${with_mon_sd_password+set}" = set; then
27793 withval=$with_mon_sd_password;
27794 if test "x$withval" != "xno" ; then
27795 mon_sd_password=$withval
27802 if test "x$mon_sd_password" = "x" ; then
27803 if test "x$OPENSSL" = "xnone" ; then
27804 key=`autoconf/randpass 41`
27806 key=`openssl rand -base64 33`
27808 mon_sd_password=$key
27820 # Check whether --with-db_name was given.
27821 if test "${with_db_name+set}" = set; then
27822 withval=$with_db_name;
27823 if test "x$withval" != "x" ; then
27834 # Check whether --with-db_user was given.
27835 if test "${with_db_user+set}" = set; then
27836 withval=$with_db_user;
27837 if test "x$withval" != "x" ; then
27848 # Check whether --with-db_password was given.
27849 if test "${with_db_password+set}" = set; then
27850 withval=$with_db_password;
27851 if test "x$withval" != "x" ; then
27852 db_password=$withval
27862 # Check whether --with-db_port was given.
27863 if test "${with_db_port+set}" = set; then
27864 withval=$with_db_port;
27865 if test "x$withval" != "x" ; then
27875 # Handle users and groups for each daemon
27879 # Check whether --with-dir_user was given.
27880 if test "${with_dir_user+set}" = set; then
27881 withval=$with_dir_user;
27882 if test "x$withval" != "x" ; then
27892 # Check whether --with-dir_group was given.
27893 if test "${with_dir_group+set}" = set; then
27894 withval=$with_dir_group;
27895 if test "x$withval" != "x" ; then
27905 # Check whether --with-sd_user was given.
27906 if test "${with_sd_user+set}" = set; then
27907 withval=$with_sd_user;
27908 if test "x$withval" != "x" ; then
27918 # Check whether --with-sd_group was given.
27919 if test "${with_sd_group+set}" = set; then
27920 withval=$with_sd_group;
27921 if test "x$withval" != "x" ; then
27931 # Check whether --with-fd_user was given.
27932 if test "${with_fd_user+set}" = set; then
27933 withval=$with_fd_user;
27934 if test "x$withval" != "x" ; then
27944 # Check whether --with-fd_group was given.
27945 if test "${with_fd_group+set}" = set; then
27946 withval=$with_fd_group;
27947 if test "x$withval" != "x" ; then
27964 # Check whether --with-sbin-perm was given.
27965 if test "${with_sbin_perm+set}" = set; then
27966 withval=$with_sbin_perm;
27967 if test "x$withval" != "x" ; then
27980 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27981 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27983 # Check whether --with-postgresql was given.
27984 if test "${with_postgresql+set}" = set; then
27985 withval=$with_postgresql;
27986 if test "$withval" != "no"; then
27987 if test "$db_found" = "yes"; then
27988 { echo "$as_me:$LINENO: result: error" >&5
27989 echo "${ECHO_T}error" >&6; }
27990 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27991 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27992 { (exit 1); exit 1; }; };
27994 if test "$withval" = "yes"; then
27995 PG_CONFIG=`which pg_config`
27996 if test -n "$PG_CONFIG";then
27997 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27998 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27999 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28000 elif test -f /usr/local/include/libpq-fe.h; then
28001 POSTGRESQL_INCDIR=/usr/local/include
28002 if test -d /usr/local/lib64; then
28003 POSTGRESQL_LIBDIR=/usr/local/lib64
28005 POSTGRESQL_LIBDIR=/usr/local/lib
28007 POSTGRESQL_BINDIR=/usr/local/bin
28008 elif test -f /usr/include/libpq-fe.h; then
28009 POSTGRESQL_INCDIR=/usr/include
28010 if test -d /usr/lib64; then
28011 POSTGRESQL_LIBDIR=/usr/lib64
28013 POSTGRESQL_LIBDIR=/usr/lib
28015 POSTGRESQL_BINDIR=/usr/bin
28016 elif test -f /usr/include/pgsql/libpq-fe.h; then
28017 POSTGRESQL_INCDIR=/usr/include/pgsql
28018 if test -d /usr/lib64/pgsql; then
28019 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28021 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28023 POSTGRESQL_BINDIR=/usr/bin
28024 elif test -f /usr/include/postgresql/libpq-fe.h; then
28025 POSTGRESQL_INCDIR=/usr/include/postgresql
28026 if test -d /usr/lib64/postgresql; then
28027 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28029 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28031 POSTGRESQL_BINDIR=/usr/bin
28033 { echo "$as_me:$LINENO: result: no" >&5
28034 echo "${ECHO_T}no" >&6; }
28035 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28036 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28037 { (exit 1); exit 1; }; }
28039 elif test -f $withval/include/libpq-fe.h; then
28040 POSTGRESQL_INCDIR=$withval/include
28041 POSTGRESQL_LIBDIR=$withval/lib
28042 POSTGRESQL_BINDIR=$withval/bin
28043 elif test -f $withval/include/postgresql/libpq-fe.h; then
28044 POSTGRESQL_INCDIR=$withval/include/postgresql
28045 if test -d $withval/lib64; then
28046 POSTGRESQL_LIBDIR=$withval/lib64
28048 POSTGRESQL_LIBDIR=$withval/lib
28050 POSTGRESQL_BINDIR=$withval/bin
28052 { echo "$as_me:$LINENO: result: no" >&5
28053 echo "${ECHO_T}no" >&6; }
28054 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28055 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28056 { (exit 1); exit 1; }; }
28058 cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_POSTGRESQL 1
28062 { echo "$as_me:$LINENO: result: yes" >&5
28063 echo "${ECHO_T}yes" >&6; }
28064 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28065 { echo "$as_me:$LINENO: checking for crypt" >&5
28066 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28067 if test "${ac_cv_func_crypt+set}" = set; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28070 cat >conftest.$ac_ext <<_ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28076 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28078 #define crypt innocuous_crypt
28080 /* System header to define __stub macros and hopefully few prototypes,
28081 which can conflict with char crypt (); below.
28082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083 <limits.h> exists even on freestanding compilers. */
28086 # include <limits.h>
28088 # include <assert.h>
28093 /* Override any GCC internal prototype to avoid an error.
28094 Use char because int might match the return type of a GCC
28095 builtin and then its argument prototype would still apply. */
28100 /* The GNU C library defines this for functions which it implements
28101 to always fail with ENOSYS. Some functions are actually named
28102 something starting with __ and the normal name is an alias. */
28103 #if defined __stub_crypt || defined __stub___crypt
28115 rm -f conftest.$ac_objext conftest$ac_exeext
28116 if { (ac_try="$ac_link"
28117 case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_link") 2>conftest.er1
28124 grep -v '^ *+' conftest.er1 >conftest.err
28126 cat conftest.err >&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && {
28129 test -z "$ac_c_werror_flag" ||
28130 test ! -s conftest.err
28131 } && test -s conftest$ac_exeext &&
28132 $as_test_x conftest$ac_exeext; then
28133 ac_cv_func_crypt=yes
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 ac_cv_func_crypt=no
28141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28142 conftest$ac_exeext conftest.$ac_ext
28144 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28145 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28146 if test $ac_cv_func_crypt = yes; then
28149 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28150 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28151 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 ac_check_lib_save_LIBS=$LIBS
28155 LIBS="-lcrypt $LIBS"
28156 cat >conftest.$ac_ext <<_ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28163 /* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28178 rm -f conftest.$ac_objext conftest$ac_exeext
28179 if { (ac_try="$ac_link"
28180 case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_link") 2>conftest.er1
28187 grep -v '^ *+' conftest.er1 >conftest.err
28189 cat conftest.err >&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); } && {
28192 test -z "$ac_c_werror_flag" ||
28193 test ! -s conftest.err
28194 } && test -s conftest$ac_exeext &&
28195 $as_test_x conftest$ac_exeext; then
28196 ac_cv_lib_crypt_crypt=yes
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28201 ac_cv_lib_crypt_crypt=no
28204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28205 conftest$ac_exeext conftest.$ac_ext
28206 LIBS=$ac_check_lib_save_LIBS
28208 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28209 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28210 if test $ac_cv_lib_crypt_crypt = yes; then
28211 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28216 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28217 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28218 SQL_BINDIR=$POSTGRESQL_BINDIR
28219 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28222 support_postgresql=yes
28226 { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28232 { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28245 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28246 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28248 # Check whether --with-mysql was given.
28249 if test "${with_mysql+set}" = set; then
28250 withval=$with_mysql;
28251 if test "$withval" != "no"; then
28252 if test "$withval" = "yes"; then
28253 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28254 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28255 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28256 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28257 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28259 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28261 MYSQL_BINDIR=/usr/local/mysql/bin
28262 elif test -f /usr/include/mysql/mysql.h; then
28263 MYSQL_INCDIR=/usr/include/mysql
28264 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28265 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28266 MYSQL_LIBDIR=/usr/lib64/mysql
28267 elif test -f /usr/lib64/libmysqlclient_r.a \
28268 -o -f /usr/lib64/libmysqlclient_r.so; then
28269 MYSQL_LIBDIR=/usr/lib64
28270 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28271 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28272 MYSQL_LIBDIR=/usr/lib/mysql
28274 MYSQL_LIBDIR=/usr/lib
28276 MYSQL_BINDIR=/usr/bin
28277 elif test -f /usr/include/mysql.h; then
28278 MYSQL_INCDIR=/usr/include
28279 if test -f /usr/lib64/libmysqlclient_r.a \
28280 -o -f /usr/lib64/libmysqlclient_r.so; then
28281 MYSQL_LIBDIR=/usr/lib64
28283 MYSQL_LIBDIR=/usr/lib
28285 MYSQL_BINDIR=/usr/bin
28286 elif test -f /usr/local/include/mysql/mysql.h; then
28287 MYSQL_INCDIR=/usr/local/include/mysql
28288 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28289 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28290 MYSQL_LIBDIR=/usr/local/lib64/mysql
28292 MYSQL_LIBDIR=/usr/local/lib/mysql
28294 MYSQL_BINDIR=/usr/local/bin
28295 elif test -f /usr/local/include/mysql.h; then
28296 MYSQL_INCDIR=/usr/local/include
28297 if test -f /usr/local/lib64/libmysqlclient_r.a \
28298 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28299 MYSQL_LIBDIR=/usr/local/lib64
28301 MYSQL_LIBDIR=/usr/local/lib
28303 MYSQL_BINDIR=/usr/local/bin
28305 { echo "$as_me:$LINENO: result: no" >&5
28306 echo "${ECHO_T}no" >&6; }
28307 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28308 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28309 { (exit 1); exit 1; }; }
28312 if test -f $withval/include/mysql/mysql.h; then
28313 MYSQL_INCDIR=$withval/include/mysql
28314 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28315 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28316 MYSQL_LIBDIR=$withval/lib64/mysql
28317 elif test -f $withval/lib64/libmysqlclient_r.a \
28318 -o -f $withval/lib64/libmysqlclient_r.so; then
28319 MYSQL_LIBDIR=$withval/lib64
28320 elif test -f $withval/lib/libmysqlclient_r.a \
28321 -o -f $withval/lib/libmysqlclient_r.so; then
28322 MYSQL_LIBDIR=$withval/lib
28324 MYSQL_LIBDIR=$withval/lib/mysql
28326 MYSQL_BINDIR=$withval/bin
28327 elif test -f $withval/include/mysql.h; then
28328 MYSQL_INCDIR=$withval/include
28329 if test -f $withval/lib64/libmysqlclient_r.a \
28330 -o -f $withval/lib64/libmysqlclient_r.so; then
28331 MYSQL_LIBDIR=$withval/lib64
28333 MYSQL_LIBDIR=$withval/lib
28335 MYSQL_BINDIR=$withval/bin
28337 { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28340 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28341 { (exit 1); exit 1; }; }
28344 SQL_INCLUDE=-I$MYSQL_INCDIR
28345 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28346 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28347 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28348 cat >>confdefs.h <<\_ACEOF
28349 #define HAVE_THREAD_SAFE_MYSQL 1
28353 SQL_BINDIR=$MYSQL_BINDIR
28354 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28357 cat >>confdefs.h <<\_ACEOF
28358 #define HAVE_MYSQL 1
28361 { echo "$as_me:$LINENO: result: yes" >&5
28362 echo "${ECHO_T}yes" >&6; }
28369 { echo "$as_me:$LINENO: result: no" >&5
28370 echo "${ECHO_T}no" >&6; }
28378 # Check whether --with-embedded-mysql was given.
28379 if test "${with_embedded_mysql+set}" = set; then
28380 withval=$with_embedded_mysql;
28381 if test "$withval" != "no"; then
28382 if test "$withval" = "yes"; then
28383 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28384 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28385 if test -d /usr/local/mysql/lib64/mysql; then
28386 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28388 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28390 MYSQL_BINDIR=/usr/local/mysql/bin
28391 elif test -f /usr/include/mysql/mysql.h; then
28392 MYSQL_INCDIR=/usr/include/mysql
28393 if test -d /usr/lib64/mysql; then
28394 MYSQL_LIBDIR=/usr/lib64/mysql
28396 MYSQL_LIBDIR=/usr/lib/mysql
28398 MYSQL_BINDIR=/usr/bin
28399 elif test -f /usr/include/mysql.h; then
28400 MYSQL_INCDIR=/usr/include
28401 if test -d /usr/lib64; then
28402 MYSQL_LIBDIR=/usr/lib64
28404 MYSQL_LIBDIR=/usr/lib
28406 MYSQL_BINDIR=/usr/bin
28407 elif test -f /usr/local/include/mysql/mysql.h; then
28408 MYSQL_INCDIR=/usr/local/include/mysql
28409 if test -d /usr/local/lib64/mysql; then
28410 MYSQL_LIBDIR=/usr/local/lib64/mysql
28412 MYSQL_LIBDIR=/usr/local/lib/mysql
28414 MYSQL_BINDIR=/usr/local/bin
28415 elif test -f /usr/local/include/mysql.h; then
28416 MYSQL_INCDIR=/usr/local/include
28417 if test -d /usr/local/lib64; then
28418 MYSQL_LIBDIR=/usr/local/lib64
28420 MYSQL_LIBDIR=/usr/local/lib
28422 MYSQL_BINDIR=/usr/local/bin
28424 { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28427 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28428 { (exit 1); exit 1; }; }
28431 if test -f $withval/include/mysql/mysql.h; then
28432 MYSQL_INCDIR=$withval/include/mysql
28433 if test -d $withval/lib64/mysql; then
28434 MYSQL_LIBDIR=$withval/lib64/mysql
28436 MYSQL_LIBDIR=$withval/lib/mysql
28438 MYSQL_BINDIR=$withval/bin
28439 elif test -f $withval/include/mysql.h; then
28440 MYSQL_INCDIR=$withval/include
28441 if test -d $withval/lib64; then
28442 MYSQL_LIBDIR=$withval/lib64
28444 MYSQL_LIBDIR=$withval/lib
28446 MYSQL_BINDIR=$withval/bin
28448 { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28450 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28451 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28452 { (exit 1); exit 1; }; }
28455 SQL_INCLUDE=-I$MYSQL_INCDIR
28456 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28457 SQL_BINDIR=$MYSQL_BINDIR
28458 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28460 cat >>confdefs.h <<\_ACEOF
28461 #define HAVE_MYSQL 1
28464 cat >>confdefs.h <<\_ACEOF
28465 #define HAVE_EMBEDDED_MYSQL 1
28468 { echo "$as_me:$LINENO: result: yes" >&5
28469 echo "${ECHO_T}yes" >&6; }
28476 { echo "$as_me:$LINENO: result: no" >&5
28477 echo "${ECHO_T}no" >&6; }
28493 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28494 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28496 # Check whether --with-ingres was given.
28497 if test "${with_ingres+set}" = set; then
28498 withval=$with_ingres;
28499 if test "$withval" != "no"; then
28500 if test "$withval" = "yes"; then
28501 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28502 INGRES_INCDIR=${II_SYSTEM}/files
28503 INGRES_LIBDIR=${II_SYSTEM}/lib
28504 INGRES_BINDIR=${II_SYSTEM}/bin
28505 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28506 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28507 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28508 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28510 { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28512 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28513 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28514 { (exit 1); exit 1; }; }
28517 if test -f $withval/files/eqdefc.h; then
28518 INGRES_INCDIR=$withval/files
28519 INGRES_LIBDIR=$withval/lib
28520 INGRES_BINDIR=$withval/bin
28522 { echo "$as_me:$LINENO: result: no" >&5
28523 echo "${ECHO_T}no" >&6; }
28524 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28525 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28526 { (exit 1); exit 1; }; }
28529 SQL_INCLUDE=-I$INGRES_INCDIR
28530 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28531 SQL_BINDIR=$INGRES_BINDIR
28532 SQL_LIB=$INGRES_LIBDIR/libingres.a
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_INGRES 1
28538 { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28546 { echo "$as_me:$LINENO: result: no" >&5
28547 echo "${ECHO_T}no" >&6; }
28552 { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28565 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28566 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28568 # Check whether --with-sqlite3 was given.
28569 if test "${with_sqlite3+set}" = set; then
28570 withval=$with_sqlite3;
28571 if test "$withval" != "no"; then
28572 if test "$withval" = "yes"; then
28573 if test -f /usr/local/include/sqlite3.h; then
28574 SQLITE_INCDIR=/usr/local/include
28575 if test -d /usr/local/lib64; then
28576 SQLITE_LIBDIR=/usr/local/lib64
28578 SQLITE_LIBDIR=/usr/local/lib
28580 SQLITE_BINDIR=/usr/local/bin
28581 elif test -f /usr/include/sqlite3.h; then
28582 SQLITE_INCDIR=/usr/include
28583 if test -d /usr/lib64; then
28584 SQLITE_LIBDIR=/usr/lib64
28586 SQLITE_LIBDIR=/usr/lib
28588 SQLITE_BINDIR=/usr/bin
28589 elif test -f $prefix/include/sqlite3.h; then
28590 SQLITE_INCDIR=$prefix/include
28591 if test -d $prefix/lib64; then
28592 SQLITE_LIBDIR=$prefix/lib64
28594 SQLITE_LIBDIR=$prefix/lib
28596 SQLITE_BINDIR=$prefix/bin
28598 { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28601 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28602 { (exit 1); exit 1; }; }
28605 if test -f $withval/sqlite3.h; then
28606 SQLITE_INCDIR=$withval
28607 SQLITE_LIBDIR=$withval
28608 SQLITE_BINDIR=$withval
28609 elif test -f $withval/include/sqlite3.h; then
28610 SQLITE_INCDIR=$withval/include
28611 if test -d $withval/lib64; then
28612 SQLITE_LIBDIR=$withval/lib64
28614 SQLITE_LIBDIR=$withval/lib
28616 SQLITE_BINDIR=$withval/bin
28618 { echo "$as_me:$LINENO: result: no" >&5
28619 echo "${ECHO_T}no" >&6; }
28620 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28621 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28622 { (exit 1); exit 1; }; }
28625 SQL_INCLUDE=-I$SQLITE_INCDIR
28626 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28627 SQL_BINDIR=$SQLITE_BINDIR
28628 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28630 cat >>confdefs.h <<\_ACEOF
28631 #define HAVE_SQLITE3 1
28634 { echo "$as_me:$LINENO: result: yes" >&5
28635 echo "${ECHO_T}yes" >&6; }
28637 support_sqlite3=yes
28642 { echo "$as_me:$LINENO: result: no" >&5
28643 echo "${ECHO_T}no" >&6; }
28648 { echo "$as_me:$LINENO: result: no" >&5
28649 echo "${ECHO_T}no" >&6; }
28659 # BA_CHECK_SQLITE_DB
28663 { echo "$as_me:$LINENO: checking for DBI support" >&5
28664 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28666 # Check whether --with-dbi was given.
28667 if test "${with_dbi+set}" = set; then
28669 if test "$withval" != "no"; then
28670 if test "$withval" = "yes"; then
28671 if test -f /usr/local/include/dbi/dbi.h; then
28672 DBI_INCDIR=/usr/local/dbi/include
28673 if test -d /usr/local/lib64; then
28674 DBI_LIBDIR=/usr/local/lib64
28676 DBI_LIBDIR=/usr/local/lib
28678 DBI_BINDIR=/usr/local/bin
28679 elif test -f /usr/include/dbi/dbi.h; then
28680 DBI_INCDIR=/usr/include
28681 if test -d /usr/lib64; then
28682 DBI_LIBDIR=/usr/lib64
28684 DBI_LIBDIR=/usr/lib
28686 DBI_BINDIR=/usr/bin
28687 elif test -f $prefix/include/dbi/dbi.h; then
28688 DBI_INCDIR=$prefix/include
28689 if test -d $prefix/lib64; then
28690 DBI_LIBDIR=$prefix/lib64
28692 DBI_LIBDIR=$prefix/lib
28694 DBI_BINDIR=$prefix/bin
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28699 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28700 { (exit 1); exit 1; }; }
28702 if test -d /usr/local/lib/dbd; then
28703 DRIVERDIR=/usr/local/lib/dbd
28704 if test -d /usr/local/lib64/dbd; then
28705 DRIVERDIR=/usr/local/lib64/dbd
28707 DRIVERDIR=/usr/local/lib/dbd
28709 elif test -d /usr/lib/dbd; then
28710 DRIVERDIR=/usr/lib/dbd
28711 if test -d /usr/lib64/dbd; then
28712 DRIVERDIR=/usr/lib64/dbd
28714 DRIVERDIR=/usr/lib/dbd
28716 elif test -d $prefix/lib/dbd; then
28717 if test -d $prefix/lib64/dbd; then
28718 DRIVERDIR=$prefix/lib64/dbd
28720 DRIVERDIR=$prefix/lib/dbd
28722 elif test -d /usr/local/lib64/dbd; then
28723 DRIVERDIR=/usr/local/lib64/dbd
28724 elif test -d /usr/lib64/dbd; then
28725 DRIVERDIR=/usr/lib64/dbd
28726 elif test -d $prefix/lib64/dbd; then
28727 DRIVERDIR=$prefix/lib64/dbd
28729 { echo "$as_me:$LINENO: result: no" >&5
28730 echo "${ECHO_T}no" >&6; }
28731 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28732 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28733 { (exit 1); exit 1; }; }
28736 if test -f $withval/dbi.h; then
28737 DBI_INCDIR=$withval
28738 DBI_LIBDIR=$withval
28739 DBI_BINDIR=$withval
28740 elif test -f $withval/include/dbi/dbi.h; then
28741 DBI_INCDIR=$withval/include
28742 if test -d $withval/lib64; then
28743 DBI_LIBDIR=$withval/lib64
28745 DBI_LIBDIR=$withval/lib
28747 DBI_BINDIR=$withval/bin
28749 { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28752 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28753 { (exit 1); exit 1; }; }
28755 if test -d $withval/dbd; then
28756 DRIVERDIR=$withval/dbd
28757 elif test -d $withval/lib/; then
28758 if test -d $withval/lib64/dbd; then
28759 DRIVERDIR=$withval/lib64/dbd
28761 DRIVERDIR=$withval/lib/dbd
28763 elif test -d $withval/lib64/dbd; then
28764 DRIVERDIR=$withval/lib64/dbd
28766 { echo "$as_me:$LINENO: result: no" >&5
28767 echo "${ECHO_T}no" >&6; }
28768 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28769 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28770 { (exit 1); exit 1; }; }
28773 SQL_INCLUDE=-I$DBI_INCDIR
28774 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28775 SQL_BINDIR=$DBI_BINDIR
28776 SQL_LIB=$DBI_LIBDIR/libdbi.a
28777 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28780 cat >>confdefs.h <<\_ACEOF
28784 { echo "$as_me:$LINENO: result: yes" >&5
28785 echo "${ECHO_T}yes" >&6; }
28793 { echo "$as_me:$LINENO: result: no" >&5
28794 echo "${ECHO_T}no" >&6; }
28799 { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28815 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28816 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28818 # Check whether --with-dbi-driver was given.
28819 if test "${with_dbi_driver+set}" = set; then
28820 withval=$with_dbi_driver;
28821 if test "$withval" != "no"; then
28825 if test -f /usr/local/mysql/bin/mysql; then
28826 SQL_BINDIR=/usr/local/mysql/bin
28827 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28828 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28829 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28831 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28833 elif test -f /usr/bin/mysql; then
28834 SQL_BINDIR=/usr/bin
28835 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28836 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28837 SQL_LIBDIR=/usr/lib64/mysql
28838 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28839 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28840 SQL_LIBDIR=/usr/lib/mysql
28842 SQL_LIBDIR=/usr/lib
28844 elif test -f /usr/local/bin/mysql; then
28845 SQL_BINDIR=/usr/local/bin
28846 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28847 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28848 SQL_LIBDIR=/usr/local/lib64/mysql
28849 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28850 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28851 SQL_LIBDIR=/usr/local/lib/mysql
28853 SQL_LIBDIR=/usr/local/lib
28855 elif test -f $withval/bin/mysql; then
28856 SQL_BINDIR=$withval/bin
28857 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28858 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28859 SQL_LIBDIR=$withval/lib64/mysql
28860 elif test -f $withval/lib64/libmysqlclient_r.a \
28861 -o -f $withval/lib64/libmysqlclient_r.so; then
28862 SQL_LIBDIR=$withval/lib64
28863 elif test -f $withval/lib/libmysqlclient_r.a \
28864 -o -f $withval/lib/libmysqlclient_r.so; then
28865 SQL_LIBDIR=$withval/lib/
28867 SQL_LIBDIR=$withval/lib/mysql
28870 { echo "$as_me:$LINENO: result: no" >&5
28871 echo "${ECHO_T}no" >&6; }
28872 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28873 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28874 { (exit 1); exit 1; }; }
28876 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28877 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28879 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28883 db_prog="postgresql"
28884 PG_CONFIG=`which pg_config`
28885 if test -n "$PG_CONFIG"; then
28886 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28887 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28888 elif test -f /usr/local/bin/psql; then
28889 SQL_BINDIR=/usr/local/bin
28890 if test -d /usr/local/lib64; then
28891 SQL_LIBDIR=/usr/local/lib64
28893 SQL_LIBDIR=/usr/local/lib
28895 elif test -f /usr/bin/psql; then
28896 SQL_BINDIR=/usr/local/bin
28897 if test -d /usr/lib64/postgresql; then
28898 SQL_LIBDIR=/usr/lib64/postgresql
28899 elif test -d /usr/lib/postgresql; then
28900 SQL_LIBDIR=/usr/lib/postgresql
28901 elif test -d /usr/lib64; then
28902 SQL_LIBDIR=/usr/lib64
28904 SQL_LIBDIR=/usr/lib
28906 elif test -f $withval/bin/psql; then
28907 SQL_BINDIR=$withval/bin
28908 if test -d $withval/lib64; then
28909 SQL_LIBDIR=$withval/lib64
28911 SQL_LIBDIR=$withval/lib
28914 { echo "$as_me:$LINENO: result: no" >&5
28915 echo "${ECHO_T}no" >&6; }
28916 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28917 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28918 { (exit 1); exit 1; }; }
28920 if test -f $SQL_LIBDIR/libpq.so; then
28921 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28923 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28928 if test -f /usr/local/bin/sqlite; then
28929 SQL_BINDIR=/usr/local/bin
28930 if test -d /usr/local/lib64; then
28931 SQL_LIBDIR=/usr/local/lib64
28933 SQL_LIBDIR=/usr/local/lib
28935 elif test -f /usr/bin/sqlite; then
28936 SQL_BINDIR=/usr/bin
28937 if test -d /usr/lib64; then
28938 SQL_LIBDIR=/usr/lib64
28940 SQL_LIBDIR=/usr/lib
28942 elif test -f $withval/bin/sqlite; then
28943 SQL_BINDIR=$withval/bin
28944 if test -d $withval/lib64; then
28945 SQL_LIBDIR=$withval/lib64
28947 SQL_LIBDIR=$withval/lib
28950 { echo "$as_me:$LINENO: result: no" >&5
28951 echo "${ECHO_T}no" >&6; }
28952 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28953 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28954 { (exit 1); exit 1; }; }
28956 if test -f $SQL_LIBDIR/libsqlite.so; then
28957 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28959 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28964 if test -f /usr/local/bin/sqlite3; then
28965 SQL_BINDIR=/usr/local/bin
28966 if test -d /usr/local/lib64; then
28967 SQL_LIBDIR=/usr/local/lib64
28969 SQL_LIBDIR=/usr/local/lib
28971 elif test -f /usr/bin/sqlite3; then
28972 SQL_BINDIR=/usr/bin
28973 if test -d /usr/lib64; then
28974 SQL_LIBDIR=/usr/lib64
28976 SQL_LIBDIR=/usr/lib
28978 elif test -f $withval/bin/sqlite3; then
28979 SQL_BINDIR=$withval/bin
28980 if test -d $withval/lib64; then
28981 SQL_LIBDIR=$withval/lib64
28983 SQL_LIBDIR=$withval/lib
28986 { echo "$as_me:$LINENO: result: no" >&5
28987 echo "${ECHO_T}no" >&6; }
28988 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28989 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28990 { (exit 1); exit 1; }; }
28992 if test -f $SQL_LIBDIR/libsqlite3.so; then
28993 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28995 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28999 { echo "$as_me:$LINENO: result: no" >&5
29000 echo "${ECHO_T}no" >&6; }
29001 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29002 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29003 { (exit 1); exit 1; }; }
29007 { echo "$as_me:$LINENO: result: yes" >&5
29008 echo "${ECHO_T}yes" >&6; }
29011 { echo "$as_me:$LINENO: result: no" >&5
29012 echo "${ECHO_T}no" >&6; }
29017 { echo "$as_me:$LINENO: result: no" >&5
29018 echo "${ECHO_T}no" >&6; }
29031 support_batch_insert=no
29032 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29034 if test $pkg = 0; then
29035 support_batch_insert=yes
29036 # Check whether --enable-batch-insert was given.
29037 if test "${enable_batch_insert+set}" = set; then
29038 enableval=$enable_batch_insert;
29039 if test x$enableval = xno; then
29040 support_batch_insert=no
29042 support_batch_insert=yes
29050 if test x$DB_TYPE = xpostgresql; then
29051 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29052 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29053 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29056 ac_check_lib_save_LIBS=$LIBS
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29065 /* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
29071 char PQisthreadsafe ();
29075 return PQisthreadsafe ();
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_link") 2>conftest.er1
29089 grep -v '^ *+' conftest.er1 >conftest.err
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && {
29094 test -z "$ac_c_werror_flag" ||
29095 test ! -s conftest.err
29096 } && test -s conftest$ac_exeext &&
29097 $as_test_x conftest$ac_exeext; then
29098 ac_cv_lib_pq_PQisthreadsafe=yes
29100 echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29103 ac_cv_lib_pq_PQisthreadsafe=no
29106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29107 conftest$ac_exeext conftest.$ac_ext
29108 LIBS=$ac_check_lib_save_LIBS
29110 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29111 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29112 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_PQISTHREADSAFE 1
29120 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29121 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29122 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29125 ac_check_lib_save_LIBS=$LIBS
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29134 /* Override any GCC internal prototype to avoid an error.
29135 Use char because int might match the return type of a GCC
29136 builtin and then its argument prototype would still apply. */
29140 char PQputCopyData ();
29144 return PQputCopyData ();
29149 rm -f conftest.$ac_objext conftest$ac_exeext
29150 if { (ac_try="$ac_link"
29151 case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_link") 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } && {
29163 test -z "$ac_c_werror_flag" ||
29164 test ! -s conftest.err
29165 } && test -s conftest$ac_exeext &&
29166 $as_test_x conftest$ac_exeext; then
29167 ac_cv_lib_pq_PQputCopyData=yes
29169 echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29172 ac_cv_lib_pq_PQputCopyData=no
29175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29176 conftest$ac_exeext conftest.$ac_ext
29177 LIBS=$ac_check_lib_save_LIBS
29179 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29180 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29181 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_PQ_COPY 1
29189 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29191 support_batch_insert=no
29195 if test x$DB_TYPE = xdbi; then
29199 if test $DB_PROG = postgresql; then
29200 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29201 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29202 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29205 ac_check_lib_save_LIBS=$LIBS
29207 cat >conftest.$ac_ext <<_ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29214 /* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
29220 char PQisthreadsafe ();
29224 return PQisthreadsafe ();
29229 rm -f conftest.$ac_objext conftest$ac_exeext
29230 if { (ac_try="$ac_link"
29231 case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_link") 2>conftest.er1
29238 grep -v '^ *+' conftest.er1 >conftest.err
29240 cat conftest.err >&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } && {
29243 test -z "$ac_c_werror_flag" ||
29244 test ! -s conftest.err
29245 } && test -s conftest$ac_exeext &&
29246 $as_test_x conftest$ac_exeext; then
29247 ac_cv_lib_pq_PQisthreadsafe=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_cv_lib_pq_PQisthreadsafe=no
29255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29256 conftest$ac_exeext conftest.$ac_ext
29257 LIBS=$ac_check_lib_save_LIBS
29259 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29260 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29261 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_PQISTHREADSAFE 1
29268 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29269 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29270 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29273 ac_check_lib_save_LIBS=$LIBS
29275 cat >conftest.$ac_ext <<_ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 /* Override any GCC internal prototype to avoid an error.
29283 Use char because int might match the return type of a GCC
29284 builtin and then its argument prototype would still apply. */
29288 char PQputCopyData ();
29292 return PQputCopyData ();
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (ac_try="$ac_link"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_link") 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } && {
29311 test -z "$ac_c_werror_flag" ||
29312 test ! -s conftest.err
29313 } && test -s conftest$ac_exeext &&
29314 $as_test_x conftest$ac_exeext; then
29315 ac_cv_lib_pq_PQputCopyData=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_cv_lib_pq_PQputCopyData=no
29323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29324 conftest$ac_exeext conftest.$ac_ext
29325 LIBS=$ac_check_lib_save_LIBS
29327 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29328 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29329 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29330 cat >>confdefs.h <<\_ACEOF
29331 #define HAVE_PQ_COPY 1
29336 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29340 if test $DB_PROG = mysql; then
29341 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29345 if test $DB_PROG = sqlite3; then
29346 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29348 { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29349 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29350 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29351 echo $ECHO_N "(cached) $ECHO_C" >&6
29353 ac_check_lib_save_LIBS=$LIBS
29354 LIBS="-lsqlite3 $LIBS"
29355 cat >conftest.$ac_ext <<_ACEOF
29358 cat confdefs.h >>conftest.$ac_ext
29359 cat >>conftest.$ac_ext <<_ACEOF
29360 /* end confdefs.h. */
29362 /* Override any GCC internal prototype to avoid an error.
29363 Use char because int might match the return type of a GCC
29364 builtin and then its argument prototype would still apply. */
29368 char sqlite3_threadsafe ();
29372 return sqlite3_threadsafe ();
29377 rm -f conftest.$ac_objext conftest$ac_exeext
29378 if { (ac_try="$ac_link"
29379 case "(($ac_try" in
29380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381 *) ac_try_echo=$ac_try;;
29383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29384 (eval "$ac_link") 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } && {
29391 test -z "$ac_c_werror_flag" ||
29392 test ! -s conftest.err
29393 } && test -s conftest$ac_exeext &&
29394 $as_test_x conftest$ac_exeext; then
29395 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29397 echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29400 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29404 conftest$ac_exeext conftest.$ac_ext
29405 LIBS=$ac_check_lib_save_LIBS
29407 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29408 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29409 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_SQLITE3_THREADSAFE 1
29419 if test $pkg = 0; then
29420 # Check whether --enable-batch-insert was given.
29421 if test "${enable_batch_insert+set}" = set; then
29422 enableval=$enable_batch_insert;
29423 if test x$enableval = xno; then
29424 support_batch_insert=no
29426 support_batch_insert=yes
29439 if test x$DB_TYPE = xingres; then
29440 support_batch_insert=yes
29443 if test $support_batch_insert = yes ; then
29445 cat >>confdefs.h <<\_ACEOF
29446 #define HAVE_BATCH_FILE_INSERT 1
29451 cat >>confdefs.h <<\_ACEOF
29452 #define PROTOTYPES 1
29456 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29457 if test -z "$CCOPTS"; then
29458 CCOPTS='-g -O2 -Wall'
29465 largefile_support="no"
29467 # Check whether --enable-largefile was given.
29468 if test "${enable_largefile+set}" = set; then
29469 enableval=$enable_largefile;
29472 if test "$enable_largefile" != no; then
29473 if test -n "$ac_tool_prefix"; then
29474 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29475 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29478 if test "${ac_cv_prog_GETCONF+set}" = set; then
29479 echo $ECHO_N "(cached) $ECHO_C" >&6
29481 if test -n "$GETCONF"; then
29482 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29485 for as_dir in $PATH
29488 test -z "$as_dir" && as_dir=.
29489 for ac_exec_ext in '' $ac_executable_extensions; do
29490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29491 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29501 GETCONF=$ac_cv_prog_GETCONF
29502 if test -n "$GETCONF"; then
29503 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29504 echo "${ECHO_T}$GETCONF" >&6; }
29506 { echo "$as_me:$LINENO: result: no" >&5
29507 echo "${ECHO_T}no" >&6; }
29512 if test -z "$ac_cv_prog_GETCONF"; then
29513 ac_ct_GETCONF=$GETCONF
29514 # Extract the first word of "getconf", so it can be a program name with args.
29515 set dummy getconf; ac_word=$2
29516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29518 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 if test -n "$ac_ct_GETCONF"; then
29522 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29525 for as_dir in $PATH
29528 test -z "$as_dir" && as_dir=.
29529 for ac_exec_ext in '' $ac_executable_extensions; do
29530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29531 ac_cv_prog_ac_ct_GETCONF="getconf"
29532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29541 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29542 if test -n "$ac_ct_GETCONF"; then
29543 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29544 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29546 { echo "$as_me:$LINENO: result: no" >&5
29547 echo "${ECHO_T}no" >&6; }
29550 if test "x$ac_ct_GETCONF" = x; then
29553 case $cross_compiling:$ac_tool_warned in
29555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29556 whose name does not start with the host triplet. If you think this
29557 configuration is useful to you, please write to autoconf@gnu.org." >&5
29558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29559 whose name does not start with the host triplet. If you think this
29560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29561 ac_tool_warned=yes ;;
29563 GETCONF=$ac_ct_GETCONF
29566 GETCONF="$ac_cv_prog_GETCONF"
29569 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29570 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29571 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29574 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29575 ac_cv_sys_largefile_CFLAGS=no
29577 # IRIX 6.2 and later require cc -n32.
29578 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29579 if test "$GCC" != yes; then
29580 ac_cv_sys_largefile_CFLAGS=-n32
29583 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (ac_try="$ac_link"
29601 case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_link") 2>conftest.er1
29608 grep -v '^ *+' conftest.er1 >conftest.err
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } && {
29613 test -z "$ac_c_werror_flag" ||
29614 test ! -s conftest.err
29615 } && test -s conftest$ac_exeext &&
29616 $as_test_x conftest$ac_exeext; then
29619 echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29622 ac_cv_sys_largefile_CFLAGS=no
29625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29626 conftest$ac_exeext conftest.$ac_ext
29631 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29632 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29633 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29634 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29635 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29636 echo $ECHO_N "(cached) $ECHO_C" >&6
29638 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29639 ac_cv_sys_largefile_LDFLAGS=no
29643 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29644 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29645 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29646 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29647 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29651 ac_cv_sys_largefile_LIBS=no
29655 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29656 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29658 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29661 -D_FILE_OFFSET_BITS=*) ;;
29662 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29663 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29668 case "$CPPFLAGS" in
29669 '') CPPFLAGS="$ac_flag" ;;
29670 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29678 '') CFLAGS="$ac_flag" ;;
29679 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29684 case "$ac_cv_sys_largefile_LDFLAGS" in
29688 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29689 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29692 case "$ac_cv_sys_largefile_LIBS" in
29696 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29697 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29700 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29701 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 ac_cv_sys_file_offset_bits=no
29706 ac_cv_sys_file_offset_bits=64
29707 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29709 -D_FILE_OFFSET_BITS)
29710 ac_cv_sys_file_offset_bits=1 ;;
29711 -D_FILE_OFFSET_BITS=*)
29712 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29717 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29718 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29719 if test "$ac_cv_sys_file_offset_bits" != no; then
29721 cat >>confdefs.h <<_ACEOF
29722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29726 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29727 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29728 if test "${ac_cv_sys_largefile_source+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29731 ac_cv_sys_largefile_source=no
29732 ac_cv_sys_largefile_source=1
29733 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29735 -D_LARGEFILE_SOURCE)
29736 ac_cv_sys_largefile_source=1 ;;
29737 -D_LARGEFILE_SOURCE=*)
29738 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29743 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29744 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29745 if test "$ac_cv_sys_largefile_source" != no; then
29747 cat >>confdefs.h <<_ACEOF
29748 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29752 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29753 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29754 if test "${ac_cv_sys_large_files+set}" = set; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29757 ac_cv_sys_large_files=no
29758 ac_cv_sys_large_files=1
29759 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29762 ac_cv_sys_large_files=1 ;;
29764 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29769 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29771 if test "$ac_cv_sys_large_files" != no; then
29773 cat >>confdefs.h <<_ACEOF
29774 #define _LARGE_FILES $ac_cv_sys_large_files
29781 { echo "$as_me:$LINENO: checking for X" >&5
29782 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29785 # Check whether --with-x was given.
29786 if test "${with_x+set}" = set; then
29790 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29791 if test "x$with_x" = xno; then
29792 # The user explicitly disabled X.
29795 case $x_includes,$x_libraries in #(
29796 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29797 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29798 { (exit 1); exit 1; }; };; #(
29799 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29800 echo $ECHO_N "(cached) $ECHO_C" >&6
29802 # One or both of the vars are not set, and there is no cached value.
29803 ac_x_includes=no ac_x_libraries=no
29804 rm -f -r conftest.dir
29805 if mkdir conftest.dir; then
29807 cat >Imakefile <<'_ACEOF'
29809 @echo incroot='${INCROOT}'
29811 @echo usrlibdir='${USRLIBDIR}'
29813 @echo libdir='${LIBDIR}'
29815 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29817 for ac_var in incroot usrlibdir libdir; do
29818 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29820 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29821 for ac_extension in a so sl; do
29822 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29823 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29824 ac_im_usrlibdir=$ac_im_libdir; break
29827 # Screen out bogus values from the imake configuration. They are
29828 # bogus both because they are the default anyway, and because
29829 # using them would break gcc on systems where it needs fixed includes.
29830 case $ac_im_incroot in
29831 /usr/include) ac_x_includes= ;;
29832 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29834 case $ac_im_usrlibdir in
29835 /usr/lib | /lib) ;;
29836 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29840 rm -f -r conftest.dir
29843 # Standard set of common directories for X headers.
29844 # Check X11 before X11Rn because it is often a symlink to the current release.
29856 /usr/local/X11/include
29857 /usr/local/X11R6/include
29858 /usr/local/X11R5/include
29859 /usr/local/X11R4/include
29861 /usr/local/include/X11
29862 /usr/local/include/X11R6
29863 /usr/local/include/X11R5
29864 /usr/local/include/X11R4
29868 /usr/XFree86/include/X11
29872 /usr/unsupported/include
29873 /usr/athena/include
29874 /usr/local/x11r5/include
29875 /usr/lpp/Xamples/include
29877 /usr/openwin/include
29878 /usr/openwin/share/include'
29880 if test "$ac_x_includes" = no; then
29881 # Guess where to find include files, by looking for Xlib.h.
29882 # First, try using that file with no special directory specified.
29883 cat >conftest.$ac_ext <<_ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h. */
29889 #include <X11/Xlib.h>
29891 if { (ac_try="$ac_cpp conftest.$ac_ext"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29899 grep -v '^ *+' conftest.er1 >conftest.err
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } >/dev/null && {
29904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29905 test ! -s conftest.err
29907 # We can compile using X headers with no special include directory.
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29913 for ac_dir in $ac_x_header_dirs; do
29914 if test -r "$ac_dir/X11/Xlib.h"; then
29915 ac_x_includes=$ac_dir
29921 rm -f conftest.err conftest.$ac_ext
29922 fi # $ac_x_includes = no
29924 if test "$ac_x_libraries" = no; then
29925 # Check for the libraries.
29926 # See if we find them without any special options.
29927 # Don't add to $LIBS permanently.
29930 cat >conftest.$ac_ext <<_ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h. */
29936 #include <X11/Xlib.h>
29945 rm -f conftest.$ac_objext conftest$ac_exeext
29946 if { (ac_try="$ac_link"
29947 case "(($ac_try" in
29948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29949 *) ac_try_echo=$ac_try;;
29951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29952 (eval "$ac_link") 2>conftest.er1
29954 grep -v '^ *+' conftest.er1 >conftest.err
29956 cat conftest.err >&5
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); } && {
29959 test -z "$ac_c_werror_flag" ||
29960 test ! -s conftest.err
29961 } && test -s conftest$ac_exeext &&
29962 $as_test_x conftest$ac_exeext; then
29964 # We can link X programs with no special library path.
29967 echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29971 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29973 # Don't even attempt the hair of trying to link an X program!
29974 for ac_extension in a so sl; do
29975 if test -r "$ac_dir/libX11.$ac_extension"; then
29976 ac_x_libraries=$ac_dir
29983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29984 conftest$ac_exeext conftest.$ac_ext
29985 fi # $ac_x_libraries = no
29987 case $ac_x_includes,$ac_x_libraries in #(
29988 no,* | *,no | *\'*)
29989 # Didn't find X, or a directory has "'" in its name.
29990 ac_cv_have_x="have_x=no";; #(
29992 # Record where we found X for the cache.
29993 ac_cv_have_x="have_x=yes\
29994 ac_x_includes='$ac_x_includes'\
29995 ac_x_libraries='$ac_x_libraries'"
30001 eval "$ac_cv_have_x"
30004 if test "$have_x" != yes; then
30005 { echo "$as_me:$LINENO: result: $have_x" >&5
30006 echo "${ECHO_T}$have_x" >&6; }
30009 # If each of the values was on the command line, it overrides each guess.
30010 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30011 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30012 # Update the cache value to reflect the command line values.
30013 ac_cv_have_x="have_x=yes\
30014 ac_x_includes='$x_includes'\
30015 ac_x_libraries='$x_libraries'"
30016 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30017 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30020 if test "$no_x" = yes; then
30021 # Not all programs may use this symbol, but it does not hurt to define it.
30023 cat >>confdefs.h <<\_ACEOF
30024 #define X_DISPLAY_MISSING 1
30027 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30029 if test -n "$x_includes"; then
30030 X_CFLAGS="$X_CFLAGS -I$x_includes"
30033 # It would also be nice to do this for all -L options, not just this one.
30034 if test -n "$x_libraries"; then
30035 X_LIBS="$X_LIBS -L$x_libraries"
30036 # For Solaris; some versions of Sun CC require a space after -R and
30037 # others require no space. Words are not sufficient . . . .
30038 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30039 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30040 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30041 ac_xsave_c_werror_flag=$ac_c_werror_flag
30042 ac_c_werror_flag=yes
30043 cat >conftest.$ac_ext <<_ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h. */
30058 rm -f conftest.$ac_objext conftest$ac_exeext
30059 if { (ac_try="$ac_link"
30060 case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_link") 2>conftest.er1
30067 grep -v '^ *+' conftest.er1 >conftest.err
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); } && {
30072 test -z "$ac_c_werror_flag" ||
30073 test ! -s conftest.err
30074 } && test -s conftest$ac_exeext &&
30075 $as_test_x conftest$ac_exeext; then
30076 { echo "$as_me:$LINENO: result: no" >&5
30077 echo "${ECHO_T}no" >&6; }
30078 X_LIBS="$X_LIBS -R$x_libraries"
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 LIBS="$ac_xsave_LIBS -R $x_libraries"
30084 cat >conftest.$ac_ext <<_ACEOF
30087 cat confdefs.h >>conftest.$ac_ext
30088 cat >>conftest.$ac_ext <<_ACEOF
30089 /* end confdefs.h. */
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (ac_try="$ac_link"
30101 case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_link") 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } && {
30113 test -z "$ac_c_werror_flag" ||
30114 test ! -s conftest.err
30115 } && test -s conftest$ac_exeext &&
30116 $as_test_x conftest$ac_exeext; then
30117 { echo "$as_me:$LINENO: result: yes" >&5
30118 echo "${ECHO_T}yes" >&6; }
30119 X_LIBS="$X_LIBS -R $x_libraries"
30121 echo "$as_me: failed program was:" >&5
30122 sed 's/^/| /' conftest.$ac_ext >&5
30124 { echo "$as_me:$LINENO: result: neither works" >&5
30125 echo "${ECHO_T}neither works" >&6; }
30128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30129 conftest$ac_exeext conftest.$ac_ext
30132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30133 conftest$ac_exeext conftest.$ac_ext
30134 ac_c_werror_flag=$ac_xsave_c_werror_flag
30135 LIBS=$ac_xsave_LIBS
30138 # Check for system-dependent libraries X programs must link with.
30139 # Do this before checking for the system-independent R6 libraries
30140 # (-lICE), since we may need -lsocket or whatever for X linking.
30142 if test "$ISC" = yes; then
30143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30145 # Martyn Johnson says this is needed for Ultrix, if the X
30146 # libraries were built with DECnet support. And Karl Berry says
30147 # the Alpha needs dnet_stub (dnet does not exist).
30148 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30149 cat >conftest.$ac_ext <<_ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30156 /* Override any GCC internal prototype to avoid an error.
30157 Use char because int might match the return type of a GCC
30158 builtin and then its argument prototype would still apply. */
30162 char XOpenDisplay ();
30166 return XOpenDisplay ();
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_link") 2>conftest.er1
30180 grep -v '^ *+' conftest.er1 >conftest.err
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } && {
30185 test -z "$ac_c_werror_flag" ||
30186 test ! -s conftest.err
30187 } && test -s conftest$ac_exeext &&
30188 $as_test_x conftest$ac_exeext; then
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30194 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30195 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30196 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 ac_check_lib_save_LIBS=$LIBS
30200 LIBS="-ldnet $LIBS"
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30208 /* Override any GCC internal prototype to avoid an error.
30209 Use char because int might match the return type of a GCC
30210 builtin and then its argument prototype would still apply. */
30218 return dnet_ntoa ();
30223 rm -f conftest.$ac_objext conftest$ac_exeext
30224 if { (ac_try="$ac_link"
30225 case "(($ac_try" in
30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227 *) ac_try_echo=$ac_try;;
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_link") 2>conftest.er1
30232 grep -v '^ *+' conftest.er1 >conftest.err
30234 cat conftest.err >&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); } && {
30237 test -z "$ac_c_werror_flag" ||
30238 test ! -s conftest.err
30239 } && test -s conftest$ac_exeext &&
30240 $as_test_x conftest$ac_exeext; then
30241 ac_cv_lib_dnet_dnet_ntoa=yes
30243 echo "$as_me: failed program was:" >&5
30244 sed 's/^/| /' conftest.$ac_ext >&5
30246 ac_cv_lib_dnet_dnet_ntoa=no
30249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30250 conftest$ac_exeext conftest.$ac_ext
30251 LIBS=$ac_check_lib_save_LIBS
30253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30254 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30255 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30256 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30259 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30260 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30261 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30262 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30263 echo $ECHO_N "(cached) $ECHO_C" >&6
30265 ac_check_lib_save_LIBS=$LIBS
30266 LIBS="-ldnet_stub $LIBS"
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30274 /* Override any GCC internal prototype to avoid an error.
30275 Use char because int might match the return type of a GCC
30276 builtin and then its argument prototype would still apply. */
30284 return dnet_ntoa ();
30289 rm -f conftest.$ac_objext conftest$ac_exeext
30290 if { (ac_try="$ac_link"
30291 case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_link") 2>conftest.er1
30298 grep -v '^ *+' conftest.er1 >conftest.err
30300 cat conftest.err >&5
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } && {
30303 test -z "$ac_c_werror_flag" ||
30304 test ! -s conftest.err
30305 } && test -s conftest$ac_exeext &&
30306 $as_test_x conftest$ac_exeext; then
30307 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30309 echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.$ac_ext >&5
30312 ac_cv_lib_dnet_stub_dnet_ntoa=no
30315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30316 conftest$ac_exeext conftest.$ac_ext
30317 LIBS=$ac_check_lib_save_LIBS
30319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30320 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30321 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30329 conftest$ac_exeext conftest.$ac_ext
30330 LIBS="$ac_xsave_LIBS"
30332 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30333 # to get the SysV transport functions.
30334 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30336 # The nsl library prevents programs from opening the X display
30337 # on Irix 5.2, according to T.E. Dickey.
30338 # The functions gethostbyname, getservbyname, and inet_addr are
30339 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30340 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30341 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30342 if test "${ac_cv_func_gethostbyname+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30353 #define gethostbyname innocuous_gethostbyname
30355 /* System header to define __stub macros and hopefully few prototypes,
30356 which can conflict with char gethostbyname (); below.
30357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30358 <limits.h> exists even on freestanding compilers. */
30361 # include <limits.h>
30363 # include <assert.h>
30366 #undef gethostbyname
30368 /* Override any GCC internal prototype to avoid an error.
30369 Use char because int might match the return type of a GCC
30370 builtin and then its argument prototype would still apply. */
30374 char gethostbyname ();
30375 /* The GNU C library defines this for functions which it implements
30376 to always fail with ENOSYS. Some functions are actually named
30377 something starting with __ and the normal name is an alias. */
30378 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30385 return gethostbyname ();
30390 rm -f conftest.$ac_objext conftest$ac_exeext
30391 if { (ac_try="$ac_link"
30392 case "(($ac_try" in
30393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394 *) ac_try_echo=$ac_try;;
30396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30397 (eval "$ac_link") 2>conftest.er1
30399 grep -v '^ *+' conftest.er1 >conftest.err
30401 cat conftest.err >&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } && {
30404 test -z "$ac_c_werror_flag" ||
30405 test ! -s conftest.err
30406 } && test -s conftest$ac_exeext &&
30407 $as_test_x conftest$ac_exeext; then
30408 ac_cv_func_gethostbyname=yes
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413 ac_cv_func_gethostbyname=no
30416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30417 conftest$ac_exeext conftest.$ac_ext
30419 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30420 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30422 if test $ac_cv_func_gethostbyname = no; then
30423 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30424 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30425 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30428 ac_check_lib_save_LIBS=$LIBS
30430 cat >conftest.$ac_ext <<_ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h. */
30437 /* Override any GCC internal prototype to avoid an error.
30438 Use char because int might match the return type of a GCC
30439 builtin and then its argument prototype would still apply. */
30443 char gethostbyname ();
30447 return gethostbyname ();
30452 rm -f conftest.$ac_objext conftest$ac_exeext
30453 if { (ac_try="$ac_link"
30454 case "(($ac_try" in
30455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30456 *) ac_try_echo=$ac_try;;
30458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30459 (eval "$ac_link") 2>conftest.er1
30461 grep -v '^ *+' conftest.er1 >conftest.err
30463 cat conftest.err >&5
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); } && {
30466 test -z "$ac_c_werror_flag" ||
30467 test ! -s conftest.err
30468 } && test -s conftest$ac_exeext &&
30469 $as_test_x conftest$ac_exeext; then
30470 ac_cv_lib_nsl_gethostbyname=yes
30472 echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30475 ac_cv_lib_nsl_gethostbyname=no
30478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30479 conftest$ac_exeext conftest.$ac_ext
30480 LIBS=$ac_check_lib_save_LIBS
30482 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30483 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30484 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30488 if test $ac_cv_lib_nsl_gethostbyname = no; then
30489 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30490 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30491 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30494 ac_check_lib_save_LIBS=$LIBS
30496 cat >conftest.$ac_ext <<_ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h. */
30503 /* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply. */
30509 char gethostbyname ();
30513 return gethostbyname ();
30518 rm -f conftest.$ac_objext conftest$ac_exeext
30519 if { (ac_try="$ac_link"
30520 case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525 (eval "$ac_link") 2>conftest.er1
30527 grep -v '^ *+' conftest.er1 >conftest.err
30529 cat conftest.err >&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); } && {
30532 test -z "$ac_c_werror_flag" ||
30533 test ! -s conftest.err
30534 } && test -s conftest$ac_exeext &&
30535 $as_test_x conftest$ac_exeext; then
30536 ac_cv_lib_bsd_gethostbyname=yes
30538 echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30541 ac_cv_lib_bsd_gethostbyname=no
30544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30545 conftest$ac_exeext conftest.$ac_ext
30546 LIBS=$ac_check_lib_save_LIBS
30548 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30549 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30550 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30551 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30557 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30558 # socket/setsockopt and other routines are undefined under SCO ODT
30559 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30560 # on later versions), says Simon Leinen: it contains gethostby*
30561 # variants that don't use the name server (or something). -lsocket
30562 # must be given before -lnsl if both are needed. We assume that
30563 # if connect needs -lnsl, so does gethostbyname.
30564 { echo "$as_me:$LINENO: checking for connect" >&5
30565 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30566 if test "${ac_cv_func_connect+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30569 cat >conftest.$ac_ext <<_ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30575 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30577 #define connect innocuous_connect
30579 /* System header to define __stub macros and hopefully few prototypes,
30580 which can conflict with char connect (); below.
30581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30582 <limits.h> exists even on freestanding compilers. */
30585 # include <limits.h>
30587 # include <assert.h>
30592 /* Override any GCC internal prototype to avoid an error.
30593 Use char because int might match the return type of a GCC
30594 builtin and then its argument prototype would still apply. */
30599 /* The GNU C library defines this for functions which it implements
30600 to always fail with ENOSYS. Some functions are actually named
30601 something starting with __ and the normal name is an alias. */
30602 #if defined __stub_connect || defined __stub___connect
30614 rm -f conftest.$ac_objext conftest$ac_exeext
30615 if { (ac_try="$ac_link"
30616 case "(($ac_try" in
30617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618 *) ac_try_echo=$ac_try;;
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621 (eval "$ac_link") 2>conftest.er1
30623 grep -v '^ *+' conftest.er1 >conftest.err
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } && {
30628 test -z "$ac_c_werror_flag" ||
30629 test ! -s conftest.err
30630 } && test -s conftest$ac_exeext &&
30631 $as_test_x conftest$ac_exeext; then
30632 ac_cv_func_connect=yes
30634 echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30637 ac_cv_func_connect=no
30640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30641 conftest$ac_exeext conftest.$ac_ext
30643 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30644 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30646 if test $ac_cv_func_connect = no; then
30647 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30648 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30649 if test "${ac_cv_lib_socket_connect+set}" = set; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30652 ac_check_lib_save_LIBS=$LIBS
30653 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30654 cat >conftest.$ac_ext <<_ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30661 /* Override any GCC internal prototype to avoid an error.
30662 Use char because int might match the return type of a GCC
30663 builtin and then its argument prototype would still apply. */
30676 rm -f conftest.$ac_objext conftest$ac_exeext
30677 if { (ac_try="$ac_link"
30678 case "(($ac_try" in
30679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680 *) ac_try_echo=$ac_try;;
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683 (eval "$ac_link") 2>conftest.er1
30685 grep -v '^ *+' conftest.er1 >conftest.err
30687 cat conftest.err >&5
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } && {
30690 test -z "$ac_c_werror_flag" ||
30691 test ! -s conftest.err
30692 } && test -s conftest$ac_exeext &&
30693 $as_test_x conftest$ac_exeext; then
30694 ac_cv_lib_socket_connect=yes
30696 echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30699 ac_cv_lib_socket_connect=no
30702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30703 conftest$ac_exeext conftest.$ac_ext
30704 LIBS=$ac_check_lib_save_LIBS
30706 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30707 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30708 if test $ac_cv_lib_socket_connect = yes; then
30709 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30714 # Guillermo Gomez says -lposix is necessary on A/UX.
30715 { echo "$as_me:$LINENO: checking for remove" >&5
30716 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30717 if test "${ac_cv_func_remove+set}" = set; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30720 cat >conftest.$ac_ext <<_ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h. */
30726 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30728 #define remove innocuous_remove
30730 /* System header to define __stub macros and hopefully few prototypes,
30731 which can conflict with char remove (); below.
30732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733 <limits.h> exists even on freestanding compilers. */
30736 # include <limits.h>
30738 # include <assert.h>
30743 /* Override any GCC internal prototype to avoid an error.
30744 Use char because int might match the return type of a GCC
30745 builtin and then its argument prototype would still apply. */
30750 /* The GNU C library defines this for functions which it implements
30751 to always fail with ENOSYS. Some functions are actually named
30752 something starting with __ and the normal name is an alias. */
30753 #if defined __stub_remove || defined __stub___remove
30765 rm -f conftest.$ac_objext conftest$ac_exeext
30766 if { (ac_try="$ac_link"
30767 case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_link") 2>conftest.er1
30774 grep -v '^ *+' conftest.er1 >conftest.err
30776 cat conftest.err >&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); } && {
30779 test -z "$ac_c_werror_flag" ||
30780 test ! -s conftest.err
30781 } && test -s conftest$ac_exeext &&
30782 $as_test_x conftest$ac_exeext; then
30783 ac_cv_func_remove=yes
30785 echo "$as_me: failed program was:" >&5
30786 sed 's/^/| /' conftest.$ac_ext >&5
30788 ac_cv_func_remove=no
30791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30792 conftest$ac_exeext conftest.$ac_ext
30794 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30795 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30797 if test $ac_cv_func_remove = no; then
30798 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30799 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30800 if test "${ac_cv_lib_posix_remove+set}" = set; then
30801 echo $ECHO_N "(cached) $ECHO_C" >&6
30803 ac_check_lib_save_LIBS=$LIBS
30804 LIBS="-lposix $LIBS"
30805 cat >conftest.$ac_ext <<_ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h. */
30812 /* Override any GCC internal prototype to avoid an error.
30813 Use char because int might match the return type of a GCC
30814 builtin and then its argument prototype would still apply. */
30827 rm -f conftest.$ac_objext conftest$ac_exeext
30828 if { (ac_try="$ac_link"
30829 case "(($ac_try" in
30830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831 *) ac_try_echo=$ac_try;;
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834 (eval "$ac_link") 2>conftest.er1
30836 grep -v '^ *+' conftest.er1 >conftest.err
30838 cat conftest.err >&5
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); } && {
30841 test -z "$ac_c_werror_flag" ||
30842 test ! -s conftest.err
30843 } && test -s conftest$ac_exeext &&
30844 $as_test_x conftest$ac_exeext; then
30845 ac_cv_lib_posix_remove=yes
30847 echo "$as_me: failed program was:" >&5
30848 sed 's/^/| /' conftest.$ac_ext >&5
30850 ac_cv_lib_posix_remove=no
30853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30854 conftest$ac_exeext conftest.$ac_ext
30855 LIBS=$ac_check_lib_save_LIBS
30857 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30858 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30859 if test $ac_cv_lib_posix_remove = yes; then
30860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30865 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30866 { echo "$as_me:$LINENO: checking for shmat" >&5
30867 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30868 if test "${ac_cv_func_shmat+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30871 cat >conftest.$ac_ext <<_ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h. */
30877 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30879 #define shmat innocuous_shmat
30881 /* System header to define __stub macros and hopefully few prototypes,
30882 which can conflict with char shmat (); below.
30883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884 <limits.h> exists even on freestanding compilers. */
30887 # include <limits.h>
30889 # include <assert.h>
30894 /* Override any GCC internal prototype to avoid an error.
30895 Use char because int might match the return type of a GCC
30896 builtin and then its argument prototype would still apply. */
30901 /* The GNU C library defines this for functions which it implements
30902 to always fail with ENOSYS. Some functions are actually named
30903 something starting with __ and the normal name is an alias. */
30904 #if defined __stub_shmat || defined __stub___shmat
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (ac_try="$ac_link"
30918 case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_link") 2>conftest.er1
30925 grep -v '^ *+' conftest.er1 >conftest.err
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); } && {
30930 test -z "$ac_c_werror_flag" ||
30931 test ! -s conftest.err
30932 } && test -s conftest$ac_exeext &&
30933 $as_test_x conftest$ac_exeext; then
30934 ac_cv_func_shmat=yes
30936 echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30939 ac_cv_func_shmat=no
30942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943 conftest$ac_exeext conftest.$ac_ext
30945 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30946 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30948 if test $ac_cv_func_shmat = no; then
30949 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30950 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30951 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30954 ac_check_lib_save_LIBS=$LIBS
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30963 /* Override any GCC internal prototype to avoid an error.
30964 Use char because int might match the return type of a GCC
30965 builtin and then its argument prototype would still apply. */
30978 rm -f conftest.$ac_objext conftest$ac_exeext
30979 if { (ac_try="$ac_link"
30980 case "(($ac_try" in
30981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982 *) ac_try_echo=$ac_try;;
30984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30985 (eval "$ac_link") 2>conftest.er1
30987 grep -v '^ *+' conftest.er1 >conftest.err
30989 cat conftest.err >&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } && {
30992 test -z "$ac_c_werror_flag" ||
30993 test ! -s conftest.err
30994 } && test -s conftest$ac_exeext &&
30995 $as_test_x conftest$ac_exeext; then
30996 ac_cv_lib_ipc_shmat=yes
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_cv_lib_ipc_shmat=no
31004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31005 conftest$ac_exeext conftest.$ac_ext
31006 LIBS=$ac_check_lib_save_LIBS
31008 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31009 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31010 if test $ac_cv_lib_ipc_shmat = yes; then
31011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31017 # Check for libraries that X11R6 Xt/Xaw programs need.
31018 ac_save_LDFLAGS=$LDFLAGS
31019 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31020 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31021 # check for ICE first), but we must link in the order -lSM -lICE or
31022 # we get undefined symbols. So assume we have SM if we have ICE.
31023 # These have to be linked with before -lX11, unlike the other
31024 # libraries we check for below, so use a different variable.
31025 # John Interrante, Karl Berry
31026 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31027 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31028 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 ac_check_lib_save_LIBS=$LIBS
31032 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31033 cat >conftest.$ac_ext <<_ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h. */
31040 /* Override any GCC internal prototype to avoid an error.
31041 Use char because int might match the return type of a GCC
31042 builtin and then its argument prototype would still apply. */
31046 char IceConnectionNumber ();
31050 return IceConnectionNumber ();
31055 rm -f conftest.$ac_objext conftest$ac_exeext
31056 if { (ac_try="$ac_link"
31057 case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_link") 2>conftest.er1
31064 grep -v '^ *+' conftest.er1 >conftest.err
31066 cat conftest.err >&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } && {
31069 test -z "$ac_c_werror_flag" ||
31070 test ! -s conftest.err
31071 } && test -s conftest$ac_exeext &&
31072 $as_test_x conftest$ac_exeext; then
31073 ac_cv_lib_ICE_IceConnectionNumber=yes
31075 echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31078 ac_cv_lib_ICE_IceConnectionNumber=no
31081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31082 conftest$ac_exeext conftest.$ac_ext
31083 LIBS=$ac_check_lib_save_LIBS
31085 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31086 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31087 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31088 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31091 LDFLAGS=$ac_save_LDFLAGS
31157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31162 echo $ECHO_N "(cached) $ECHO_C" >&6
31164 ac_res=`eval echo '${'$as_ac_Header'}'`
31165 { echo "$as_me:$LINENO: result: $ac_res" >&5
31166 echo "${ECHO_T}$ac_res" >&6; }
31168 # Is the header compilable?
31169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31171 cat >conftest.$ac_ext <<_ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h. */
31177 $ac_includes_default
31178 #include <$ac_header>
31180 rm -f conftest.$ac_objext
31181 if { (ac_try="$ac_compile"
31182 case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_compile") 2>conftest.er1
31189 grep -v '^ *+' conftest.er1 >conftest.err
31191 cat conftest.err >&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } && {
31194 test -z "$ac_c_werror_flag" ||
31195 test ! -s conftest.err
31196 } && test -s conftest.$ac_objext; then
31197 ac_header_compiler=yes
31199 echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31202 ac_header_compiler=no
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31207 echo "${ECHO_T}$ac_header_compiler" >&6; }
31209 # Is the header present?
31210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31212 cat >conftest.$ac_ext <<_ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h. */
31218 #include <$ac_header>
31220 if { (ac_try="$ac_cpp conftest.$ac_ext"
31221 case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31228 grep -v '^ *+' conftest.er1 >conftest.err
31230 cat conftest.err >&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } >/dev/null && {
31233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31234 test ! -s conftest.err
31236 ac_header_preproc=yes
31238 echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31241 ac_header_preproc=no
31244 rm -f conftest.err conftest.$ac_ext
31245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31246 echo "${ECHO_T}$ac_header_preproc" >&6; }
31248 # So? What about this header?
31249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31255 ac_header_preproc=yes
31258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31278 eval "$as_ac_Header=\$ac_header_preproc"
31280 ac_res=`eval echo '${'$as_ac_Header'}'`
31281 { echo "$as_me:$LINENO: result: $ac_res" >&5
31282 echo "${ECHO_T}$ac_res" >&6; }
31285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31286 cat >>confdefs.h <<_ACEOF
31287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31294 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31295 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31296 if test "${ac_cv_header_stdc+set}" = set; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31305 #include <stdlib.h>
31306 #include <stdarg.h>
31307 #include <string.h>
31318 rm -f conftest.$ac_objext
31319 if { (ac_try="$ac_compile"
31320 case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_compile") 2>conftest.er1
31327 grep -v '^ *+' conftest.er1 >conftest.err
31329 cat conftest.err >&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } && {
31332 test -z "$ac_c_werror_flag" ||
31333 test ! -s conftest.err
31334 } && test -s conftest.$ac_objext; then
31335 ac_cv_header_stdc=yes
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31340 ac_cv_header_stdc=no
31343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345 if test $ac_cv_header_stdc = yes; then
31346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31347 cat >conftest.$ac_ext <<_ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31353 #include <string.h>
31356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31357 $EGREP "memchr" >/dev/null 2>&1; then
31360 ac_cv_header_stdc=no
31366 if test $ac_cv_header_stdc = yes; then
31367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31368 cat >conftest.$ac_ext <<_ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31374 #include <stdlib.h>
31377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31378 $EGREP "free" >/dev/null 2>&1; then
31381 ac_cv_header_stdc=no
31387 if test $ac_cv_header_stdc = yes; then
31388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31389 if test "$cross_compiling" = yes; then
31392 cat >conftest.$ac_ext <<_ACEOF
31395 cat confdefs.h >>conftest.$ac_ext
31396 cat >>conftest.$ac_ext <<_ACEOF
31397 /* end confdefs.h. */
31399 #include <stdlib.h>
31400 #if ((' ' & 0x0FF) == 0x020)
31401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31404 # define ISLOWER(c) \
31405 (('a' <= (c) && (c) <= 'i') \
31406 || ('j' <= (c) && (c) <= 'r') \
31407 || ('s' <= (c) && (c) <= 'z'))
31408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31416 for (i = 0; i < 256; i++)
31417 if (XOR (islower (i), ISLOWER (i))
31418 || toupper (i) != TOUPPER (i))
31423 rm -f conftest$ac_exeext
31424 if { (ac_try="$ac_link"
31425 case "(($ac_try" in
31426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427 *) ac_try_echo=$ac_try;;
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430 (eval "$ac_link") 2>&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31434 { (case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_try") 2>&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); }; }; then
31445 echo "$as_me: program exited with status $ac_status" >&5
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31449 ( exit $ac_status )
31450 ac_cv_header_stdc=no
31452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31458 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31459 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31460 if test $ac_cv_header_stdc = yes; then
31462 cat >>confdefs.h <<\_ACEOF
31463 #define STDC_HEADERS 1
31468 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31469 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31470 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31471 echo $ECHO_N "(cached) $ECHO_C" >&6
31473 cat >conftest.$ac_ext <<_ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h. */
31479 #include <sys/types.h>
31483 return makedev(0, 0);
31488 rm -f conftest.$ac_objext conftest$ac_exeext
31489 if { (ac_try="$ac_link"
31490 case "(($ac_try" in
31491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492 *) ac_try_echo=$ac_try;;
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495 (eval "$ac_link") 2>conftest.er1
31497 grep -v '^ *+' conftest.er1 >conftest.err
31499 cat conftest.err >&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } && {
31502 test -z "$ac_c_werror_flag" ||
31503 test ! -s conftest.err
31504 } && test -s conftest$ac_exeext &&
31505 $as_test_x conftest$ac_exeext; then
31506 ac_cv_header_sys_types_h_makedev=yes
31508 echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31511 ac_cv_header_sys_types_h_makedev=no
31514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31515 conftest$ac_exeext conftest.$ac_ext
31518 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31519 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31521 if test $ac_cv_header_sys_types_h_makedev = no; then
31522 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31523 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31524 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31529 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31531 # Is the header compilable?
31532 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31533 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31534 cat >conftest.$ac_ext <<_ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h. */
31540 $ac_includes_default
31541 #include <sys/mkdev.h>
31543 rm -f conftest.$ac_objext
31544 if { (ac_try="$ac_compile"
31545 case "(($ac_try" in
31546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547 *) ac_try_echo=$ac_try;;
31549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550 (eval "$ac_compile") 2>conftest.er1
31552 grep -v '^ *+' conftest.er1 >conftest.err
31554 cat conftest.err >&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); } && {
31557 test -z "$ac_c_werror_flag" ||
31558 test ! -s conftest.err
31559 } && test -s conftest.$ac_objext; then
31560 ac_header_compiler=yes
31562 echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.$ac_ext >&5
31565 ac_header_compiler=no
31568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31570 echo "${ECHO_T}$ac_header_compiler" >&6; }
31572 # Is the header present?
31573 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31574 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31575 cat >conftest.$ac_ext <<_ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h. */
31581 #include <sys/mkdev.h>
31583 if { (ac_try="$ac_cpp conftest.$ac_ext"
31584 case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31591 grep -v '^ *+' conftest.er1 >conftest.err
31593 cat conftest.err >&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } >/dev/null && {
31596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31597 test ! -s conftest.err
31599 ac_header_preproc=yes
31601 echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31604 ac_header_preproc=no
31607 rm -f conftest.err conftest.$ac_ext
31608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31609 echo "${ECHO_T}$ac_header_preproc" >&6; }
31611 # So? What about this header?
31612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31614 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31615 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31617 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31618 ac_header_preproc=yes
31621 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31622 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31623 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31624 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31626 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31628 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31629 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31630 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31632 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31636 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31637 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31638 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31643 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31644 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31647 if test $ac_cv_header_sys_mkdev_h = yes; then
31649 cat >>confdefs.h <<\_ACEOF
31650 #define MAJOR_IN_MKDEV 1
31657 if test $ac_cv_header_sys_mkdev_h = no; then
31658 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31659 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31660 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31661 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31665 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31667 # Is the header compilable?
31668 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31669 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 $ac_includes_default
31677 #include <sys/sysmacros.h>
31679 rm -f conftest.$ac_objext
31680 if { (ac_try="$ac_compile"
31681 case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_compile") 2>conftest.er1
31688 grep -v '^ *+' conftest.er1 >conftest.err
31690 cat conftest.err >&5
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } && {
31693 test -z "$ac_c_werror_flag" ||
31694 test ! -s conftest.err
31695 } && test -s conftest.$ac_objext; then
31696 ac_header_compiler=yes
31698 echo "$as_me: failed program was:" >&5
31699 sed 's/^/| /' conftest.$ac_ext >&5
31701 ac_header_compiler=no
31704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31706 echo "${ECHO_T}$ac_header_compiler" >&6; }
31708 # Is the header present?
31709 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31710 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31711 cat >conftest.$ac_ext <<_ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 #include <sys/sysmacros.h>
31719 if { (ac_try="$ac_cpp conftest.$ac_ext"
31720 case "(($ac_try" in
31721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722 *) ac_try_echo=$ac_try;;
31724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31727 grep -v '^ *+' conftest.er1 >conftest.err
31729 cat conftest.err >&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); } >/dev/null && {
31732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31733 test ! -s conftest.err
31735 ac_header_preproc=yes
31737 echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31740 ac_header_preproc=no
31743 rm -f conftest.err conftest.$ac_ext
31744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31745 echo "${ECHO_T}$ac_header_preproc" >&6; }
31747 # So? What about this header?
31748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31750 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31751 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31752 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31753 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31754 ac_header_preproc=yes
31757 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31758 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31759 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31760 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31761 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31762 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31763 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31764 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31766 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31768 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31772 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31773 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31774 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31775 echo $ECHO_N "(cached) $ECHO_C" >&6
31777 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31780 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31783 if test $ac_cv_header_sys_sysmacros_h = yes; then
31785 cat >>confdefs.h <<\_ACEOF
31786 #define MAJOR_IN_SYSMACROS 1
31800 ac_header_dirent=no
31801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31802 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31803 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31806 echo $ECHO_N "(cached) $ECHO_C" >&6
31808 cat >conftest.$ac_ext <<_ACEOF
31811 cat confdefs.h >>conftest.$ac_ext
31812 cat >>conftest.$ac_ext <<_ACEOF
31813 /* end confdefs.h. */
31814 #include <sys/types.h>
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31835 grep -v '^ *+' conftest.er1 >conftest.err
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } && {
31840 test -z "$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 } && test -s conftest.$ac_objext; then
31843 eval "$as_ac_Header=yes"
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 eval "$as_ac_Header=no"
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31853 ac_res=`eval echo '${'$as_ac_Header'}'`
31854 { echo "$as_me:$LINENO: result: $ac_res" >&5
31855 echo "${ECHO_T}$ac_res" >&6; }
31856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31857 cat >>confdefs.h <<_ACEOF
31858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31861 ac_header_dirent=$ac_hdr; break
31865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31866 if test $ac_header_dirent = dirent.h; then
31867 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31869 if test "${ac_cv_search_opendir+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31872 ac_func_search_save_LIBS=$LIBS
31873 cat >conftest.$ac_ext <<_ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31880 /* Override any GCC internal prototype to avoid an error.
31881 Use char because int might match the return type of a GCC
31882 builtin and then its argument prototype would still apply. */
31895 for ac_lib in '' dir; do
31896 if test -z "$ac_lib"; then
31897 ac_res="none required"
31900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31902 rm -f conftest.$ac_objext conftest$ac_exeext
31903 if { (ac_try="$ac_link"
31904 case "(($ac_try" in
31905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906 *) ac_try_echo=$ac_try;;
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909 (eval "$ac_link") 2>conftest.er1
31911 grep -v '^ *+' conftest.er1 >conftest.err
31913 cat conftest.err >&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); } && {
31916 test -z "$ac_c_werror_flag" ||
31917 test ! -s conftest.err
31918 } && test -s conftest$ac_exeext &&
31919 $as_test_x conftest$ac_exeext; then
31920 ac_cv_search_opendir=$ac_res
31922 echo "$as_me: failed program was:" >&5
31923 sed 's/^/| /' conftest.$ac_ext >&5
31928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31930 if test "${ac_cv_search_opendir+set}" = set; then
31934 if test "${ac_cv_search_opendir+set}" = set; then
31937 ac_cv_search_opendir=no
31939 rm conftest.$ac_ext
31940 LIBS=$ac_func_search_save_LIBS
31942 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31943 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31944 ac_res=$ac_cv_search_opendir
31945 if test "$ac_res" != no; then
31946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31951 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31952 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31953 if test "${ac_cv_search_opendir+set}" = set; then
31954 echo $ECHO_N "(cached) $ECHO_C" >&6
31956 ac_func_search_save_LIBS=$LIBS
31957 cat >conftest.$ac_ext <<_ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h. */
31964 /* Override any GCC internal prototype to avoid an error.
31965 Use char because int might match the return type of a GCC
31966 builtin and then its argument prototype would still apply. */
31979 for ac_lib in '' x; do
31980 if test -z "$ac_lib"; then
31981 ac_res="none required"
31984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31986 rm -f conftest.$ac_objext conftest$ac_exeext
31987 if { (ac_try="$ac_link"
31988 case "(($ac_try" in
31989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990 *) ac_try_echo=$ac_try;;
31992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31993 (eval "$ac_link") 2>conftest.er1
31995 grep -v '^ *+' conftest.er1 >conftest.err
31997 cat conftest.err >&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); } && {
32000 test -z "$ac_c_werror_flag" ||
32001 test ! -s conftest.err
32002 } && test -s conftest$ac_exeext &&
32003 $as_test_x conftest$ac_exeext; then
32004 ac_cv_search_opendir=$ac_res
32006 echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32014 if test "${ac_cv_search_opendir+set}" = set; then
32018 if test "${ac_cv_search_opendir+set}" = set; then
32021 ac_cv_search_opendir=no
32023 rm conftest.$ac_ext
32024 LIBS=$ac_func_search_save_LIBS
32026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32028 ac_res=$ac_cv_search_opendir
32029 if test "$ac_res" != no; then
32030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32036 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32037 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32038 if test "${ac_cv_header_stat_broken+set}" = set; then
32039 echo $ECHO_N "(cached) $ECHO_C" >&6
32041 cat >conftest.$ac_ext <<_ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h. */
32047 #include <sys/types.h>
32048 #include <sys/stat.h>
32050 #if defined S_ISBLK && defined S_IFDIR
32051 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32054 #if defined S_ISBLK && defined S_IFCHR
32055 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32058 #if defined S_ISLNK && defined S_IFREG
32059 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32062 #if defined S_ISSOCK && defined S_IFREG
32063 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32067 rm -f conftest.$ac_objext
32068 if { (ac_try="$ac_compile"
32069 case "(($ac_try" in
32070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071 *) ac_try_echo=$ac_try;;
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074 (eval "$ac_compile") 2>conftest.er1
32076 grep -v '^ *+' conftest.er1 >conftest.err
32078 cat conftest.err >&5
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); } && {
32081 test -z "$ac_c_werror_flag" ||
32082 test ! -s conftest.err
32083 } && test -s conftest.$ac_objext; then
32084 ac_cv_header_stat_broken=no
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 ac_cv_header_stat_broken=yes
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32094 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32095 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32096 if test $ac_cv_header_stat_broken = yes; then
32098 cat >>confdefs.h <<\_ACEOF
32099 #define STAT_MACROS_BROKEN 1
32104 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32105 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32106 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32109 cat >conftest.$ac_ext <<_ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h. */
32115 #include <sys/types.h>
32116 #include <sys/wait.h>
32117 #ifndef WEXITSTATUS
32118 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32129 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32134 rm -f conftest.$ac_objext
32135 if { (ac_try="$ac_compile"
32136 case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_compile") 2>conftest.er1
32143 grep -v '^ *+' conftest.er1 >conftest.err
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } && {
32148 test -z "$ac_c_werror_flag" ||
32149 test ! -s conftest.err
32150 } && test -s conftest.$ac_objext; then
32151 ac_cv_header_sys_wait_h=yes
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 ac_cv_header_sys_wait_h=no
32159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32162 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32163 if test $ac_cv_header_sys_wait_h = yes; then
32165 cat >>confdefs.h <<\_ACEOF
32166 #define HAVE_SYS_WAIT_H 1
32171 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32172 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32173 if test "${ac_cv_header_time+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32176 cat >conftest.$ac_ext <<_ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h. */
32182 #include <sys/types.h>
32183 #include <sys/time.h>
32189 if ((struct tm *) 0)
32195 rm -f conftest.$ac_objext
32196 if { (ac_try="$ac_compile"
32197 case "(($ac_try" in
32198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199 *) ac_try_echo=$ac_try;;
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202 (eval "$ac_compile") 2>conftest.er1
32204 grep -v '^ *+' conftest.er1 >conftest.err
32206 cat conftest.err >&5
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); } && {
32209 test -z "$ac_c_werror_flag" ||
32210 test ! -s conftest.err
32211 } && test -s conftest.$ac_objext; then
32212 ac_cv_header_time=yes
32214 echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.$ac_ext >&5
32217 ac_cv_header_time=no
32220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32222 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32223 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32224 if test $ac_cv_header_time = yes; then
32226 cat >>confdefs.h <<\_ACEOF
32227 #define TIME_WITH_SYS_TIME 1
32232 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32233 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32234 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32235 echo $ECHO_N "(cached) $ECHO_C" >&6
32237 cat >conftest.$ac_ext <<_ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h. */
32243 $ac_includes_default
32247 static struct stat ac_aggr;
32248 if (ac_aggr.st_blksize)
32254 rm -f conftest.$ac_objext
32255 if { (ac_try="$ac_compile"
32256 case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_compile") 2>conftest.er1
32263 grep -v '^ *+' conftest.er1 >conftest.err
32265 cat conftest.err >&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } && {
32268 test -z "$ac_c_werror_flag" ||
32269 test ! -s conftest.err
32270 } && test -s conftest.$ac_objext; then
32271 ac_cv_member_struct_stat_st_blksize=yes
32273 echo "$as_me: failed program was:" >&5
32274 sed 's/^/| /' conftest.$ac_ext >&5
32276 cat >conftest.$ac_ext <<_ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h. */
32282 $ac_includes_default
32286 static struct stat ac_aggr;
32287 if (sizeof ac_aggr.st_blksize)
32293 rm -f conftest.$ac_objext
32294 if { (ac_try="$ac_compile"
32295 case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_compile") 2>conftest.er1
32302 grep -v '^ *+' conftest.er1 >conftest.err
32304 cat conftest.err >&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } && {
32307 test -z "$ac_c_werror_flag" ||
32308 test ! -s conftest.err
32309 } && test -s conftest.$ac_objext; then
32310 ac_cv_member_struct_stat_st_blksize=yes
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32315 ac_cv_member_struct_stat_st_blksize=no
32318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32325 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32327 cat >>confdefs.h <<_ACEOF
32328 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32332 cat >>confdefs.h <<\_ACEOF
32333 #define HAVE_ST_BLKSIZE 1
32339 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32340 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32341 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32342 echo $ECHO_N "(cached) $ECHO_C" >&6
32344 cat >conftest.$ac_ext <<_ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h. */
32350 $ac_includes_default
32354 static struct stat ac_aggr;
32355 if (ac_aggr.st_blocks)
32361 rm -f conftest.$ac_objext
32362 if { (ac_try="$ac_compile"
32363 case "(($ac_try" in
32364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32365 *) ac_try_echo=$ac_try;;
32367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32368 (eval "$ac_compile") 2>conftest.er1
32370 grep -v '^ *+' conftest.er1 >conftest.err
32372 cat conftest.err >&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } && {
32375 test -z "$ac_c_werror_flag" ||
32376 test ! -s conftest.err
32377 } && test -s conftest.$ac_objext; then
32378 ac_cv_member_struct_stat_st_blocks=yes
32380 echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32383 cat >conftest.$ac_ext <<_ACEOF
32386 cat confdefs.h >>conftest.$ac_ext
32387 cat >>conftest.$ac_ext <<_ACEOF
32388 /* end confdefs.h. */
32389 $ac_includes_default
32393 static struct stat ac_aggr;
32394 if (sizeof ac_aggr.st_blocks)
32400 rm -f conftest.$ac_objext
32401 if { (ac_try="$ac_compile"
32402 case "(($ac_try" in
32403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404 *) ac_try_echo=$ac_try;;
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407 (eval "$ac_compile") 2>conftest.er1
32409 grep -v '^ *+' conftest.er1 >conftest.err
32411 cat conftest.err >&5
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); } && {
32414 test -z "$ac_c_werror_flag" ||
32415 test ! -s conftest.err
32416 } && test -s conftest.$ac_objext; then
32417 ac_cv_member_struct_stat_st_blocks=yes
32419 echo "$as_me: failed program was:" >&5
32420 sed 's/^/| /' conftest.$ac_ext >&5
32422 ac_cv_member_struct_stat_st_blocks=no
32425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32431 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32432 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32434 cat >>confdefs.h <<_ACEOF
32435 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_ST_BLOCKS 1
32444 case " $LIBOBJS " in
32445 *" fileblocks.$ac_objext "* ) ;;
32446 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32453 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32454 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32455 if test "${ac_cv_struct_tm+set}" = set; then
32456 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 cat >conftest.$ac_ext <<_ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h. */
32464 #include <sys/types.h>
32471 int *p = &tm.tm_sec;
32477 rm -f conftest.$ac_objext
32478 if { (ac_try="$ac_compile"
32479 case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_compile") 2>conftest.er1
32486 grep -v '^ *+' conftest.er1 >conftest.err
32488 cat conftest.err >&5
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); } && {
32491 test -z "$ac_c_werror_flag" ||
32492 test ! -s conftest.err
32493 } && test -s conftest.$ac_objext; then
32494 ac_cv_struct_tm=time.h
32496 echo "$as_me: failed program was:" >&5
32497 sed 's/^/| /' conftest.$ac_ext >&5
32499 ac_cv_struct_tm=sys/time.h
32502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32504 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32505 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32506 if test $ac_cv_struct_tm = sys/time.h; then
32508 cat >>confdefs.h <<\_ACEOF
32509 #define TM_IN_SYS_TIME 1
32514 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32515 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32516 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32519 cat >conftest.$ac_ext <<_ACEOF
32522 cat confdefs.h >>conftest.$ac_ext
32523 cat >>conftest.$ac_ext <<_ACEOF
32524 /* end confdefs.h. */
32525 #include <sys/types.h>
32526 #include <$ac_cv_struct_tm>
32532 static struct tm ac_aggr;
32533 if (ac_aggr.tm_zone)
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543 *) ac_try_echo=$ac_try;;
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546 (eval "$ac_compile") 2>conftest.er1
32548 grep -v '^ *+' conftest.er1 >conftest.err
32550 cat conftest.err >&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } && {
32553 test -z "$ac_c_werror_flag" ||
32554 test ! -s conftest.err
32555 } && test -s conftest.$ac_objext; then
32556 ac_cv_member_struct_tm_tm_zone=yes
32558 echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32561 cat >conftest.$ac_ext <<_ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h. */
32567 #include <sys/types.h>
32568 #include <$ac_cv_struct_tm>
32574 static struct tm ac_aggr;
32575 if (sizeof ac_aggr.tm_zone)
32581 rm -f conftest.$ac_objext
32582 if { (ac_try="$ac_compile"
32583 case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_compile") 2>conftest.er1
32590 grep -v '^ *+' conftest.er1 >conftest.err
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } && {
32595 test -z "$ac_c_werror_flag" ||
32596 test ! -s conftest.err
32597 } && test -s conftest.$ac_objext; then
32598 ac_cv_member_struct_tm_tm_zone=yes
32600 echo "$as_me: failed program was:" >&5
32601 sed 's/^/| /' conftest.$ac_ext >&5
32603 ac_cv_member_struct_tm_tm_zone=no
32606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32615 cat >>confdefs.h <<_ACEOF
32616 #define HAVE_STRUCT_TM_TM_ZONE 1
32622 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32624 cat >>confdefs.h <<\_ACEOF
32625 #define HAVE_TM_ZONE 1
32629 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32630 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32631 if test "${ac_cv_have_decl_tzname+set}" = set; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
32662 grep -v '^ *+' conftest.er1 >conftest.err
32664 cat conftest.err >&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } && {
32667 test -z "$ac_c_werror_flag" ||
32668 test ! -s conftest.err
32669 } && test -s conftest.$ac_objext; then
32670 ac_cv_have_decl_tzname=yes
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32675 ac_cv_have_decl_tzname=no
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32681 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32682 if test $ac_cv_have_decl_tzname = yes; then
32684 cat >>confdefs.h <<_ACEOF
32685 #define HAVE_DECL_TZNAME 1
32690 cat >>confdefs.h <<_ACEOF
32691 #define HAVE_DECL_TZNAME 0
32698 { echo "$as_me:$LINENO: checking for tzname" >&5
32699 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32700 if test "${ac_cv_var_tzname+set}" = set; then
32701 echo $ECHO_N "(cached) $ECHO_C" >&6
32703 cat >conftest.$ac_ext <<_ACEOF
32706 cat confdefs.h >>conftest.$ac_ext
32707 cat >>conftest.$ac_ext <<_ACEOF
32708 /* end confdefs.h. */
32710 #if !HAVE_DECL_TZNAME
32711 extern char *tzname[];
32717 return tzname[0][0];
32722 rm -f conftest.$ac_objext conftest$ac_exeext
32723 if { (ac_try="$ac_link"
32724 case "(($ac_try" in
32725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726 *) ac_try_echo=$ac_try;;
32728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729 (eval "$ac_link") 2>conftest.er1
32731 grep -v '^ *+' conftest.er1 >conftest.err
32733 cat conftest.err >&5
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); } && {
32736 test -z "$ac_c_werror_flag" ||
32737 test ! -s conftest.err
32738 } && test -s conftest$ac_exeext &&
32739 $as_test_x conftest$ac_exeext; then
32740 ac_cv_var_tzname=yes
32742 echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_cv_var_tzname=no
32748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32749 conftest$ac_exeext conftest.$ac_ext
32751 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32752 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32753 if test $ac_cv_var_tzname = yes; then
32755 cat >>confdefs.h <<\_ACEOF
32756 #define HAVE_TZNAME 1
32763 { echo "$as_me:$LINENO: checking for utime.h" >&5
32764 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32765 if test "${ba_cv_header_utime_h+set}" = set; then
32766 echo $ECHO_N "(cached) $ECHO_C" >&6
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32776 #include <sys/types.h>
32789 rm -f conftest.$ac_objext
32790 if { (ac_try="$ac_compile"
32791 case "(($ac_try" in
32792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793 *) ac_try_echo=$ac_try;;
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_compile") 2>conftest.er1
32798 grep -v '^ *+' conftest.er1 >conftest.err
32800 cat conftest.err >&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); } && {
32803 test -z "$ac_c_werror_flag" ||
32804 test ! -s conftest.err
32805 } && test -s conftest.$ac_objext; then
32807 ba_cv_header_utime_h=yes
32810 echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32814 ba_cv_header_utime_h=no
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32823 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32824 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32825 test $ba_cv_header_utime_h = yes &&
32826 cat >>confdefs.h <<\_ACEOF
32827 #define HAVE_UTIME_H 1
32831 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32832 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32833 if test "${ba_cv_header_socklen_t+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32837 cat >conftest.$ac_ext <<_ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h. */
32844 #include <sys/types.h>
32845 #include <sys/socket.h>
32857 rm -f conftest.$ac_objext
32858 if { (ac_try="$ac_compile"
32859 case "(($ac_try" in
32860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861 *) ac_try_echo=$ac_try;;
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864 (eval "$ac_compile") 2>conftest.er1
32866 grep -v '^ *+' conftest.er1 >conftest.err
32868 cat conftest.err >&5
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); } && {
32871 test -z "$ac_c_werror_flag" ||
32872 test ! -s conftest.err
32873 } && test -s conftest.$ac_objext; then
32875 ba_cv_header_socklen_t=yes
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32882 ba_cv_header_socklen_t=no
32887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32891 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32892 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32893 test $ba_cv_header_socklen_t = yes &&
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_SOCKLEN_T 1
32900 ac_cpp='$CXXCPP $CPPFLAGS'
32901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32906 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32907 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32911 cat >conftest.$ac_ext <<_ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h. */
32918 #include <unistd.h>
32919 #include <sys/types.h>
32920 #include <sys/ioctl.h>
32926 int (*d_ioctl)(int fd, unsigned long int request, ...);
32933 rm -f conftest.$ac_objext
32934 if { (ac_try="$ac_compile"
32935 case "(($ac_try" in
32936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937 *) ac_try_echo=$ac_try;;
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940 (eval "$ac_compile") 2>conftest.er1
32942 grep -v '^ *+' conftest.er1 >conftest.err
32944 cat conftest.err >&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); } && {
32947 test -z "$ac_cxx_werror_flag" ||
32948 test ! -s conftest.err
32949 } && test -s conftest.$ac_objext; then
32951 ba_cv_header_ioctl_req_t=yes
32954 echo "$as_me: failed program was:" >&5
32955 sed 's/^/| /' conftest.$ac_ext >&5
32958 ba_cv_header_ioctl_req_t=no
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32967 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32968 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32969 test $ba_cv_header_ioctl_req_t = yes &&
32970 cat >>confdefs.h <<\_ACEOF
32971 #define HAVE_IOCTL_ULINT_REQUEST 1
32976 ac_cpp='$CPP $CPPFLAGS'
32977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32983 ac_cpp='$CXXCPP $CPPFLAGS'
32984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32988 { echo "$as_me:$LINENO: checking for typeof" >&5
32989 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32990 if test "${ba_cv_have_typeof+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32994 if test "$cross_compiling" = yes; then
32996 ba_cv_have_typeof=no
33000 cat >conftest.$ac_ext <<_ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h. */
33007 main(){char *a = 0; a = (typeof a)a;}
33010 rm -f conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_link") 2>&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33021 { (case "(($ac_try" in
33022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_try") 2>&5
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
33031 ba_cv_have_typeof=yes
33034 echo "$as_me: program exited with status $ac_status" >&5
33035 echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33038 ( exit $ac_status )
33040 ba_cv_have_typeof=no
33043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33050 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33051 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33052 test $ba_cv_have_typeof = yes &&
33053 cat >>confdefs.h <<\_ACEOF
33054 #define HAVE_TYPEOF 1
33058 ac_cpp='$CPP $CPPFLAGS'
33059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33064 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33065 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33066 if test "${ac_cv_c_const+set}" = set; then
33067 echo $ECHO_N "(cached) $ECHO_C" >&6
33069 cat >conftest.$ac_ext <<_ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h. */
33079 /* FIXME: Include the comments suggested by Paul. */
33080 #ifndef __cplusplus
33081 /* Ultrix mips cc rejects this. */
33082 typedef int charset[2];
33084 /* SunOS 4.1.1 cc rejects this. */
33085 char const *const *pcpcc;
33087 /* NEC SVR4.0.2 mips cc rejects this. */
33088 struct point {int x, y;};
33089 static struct point const zero = {0,0};
33090 /* AIX XL C 1.02.0.0 rejects this.
33091 It does not let you subtract one const X* pointer from another in
33092 an arm of an if-expression whose if-part is not a constant
33094 const char *g = "string";
33095 pcpcc = &g + (g ? g-g : 0);
33096 /* HPUX 7.0 cc rejects these. */
33098 ppc = (char**) pcpcc;
33099 pcpcc = (char const *const *) ppc;
33100 { /* SCO 3.2v4 cc rejects this. */
33102 char const *s = 0 ? (char *) 0 : (char const *) 0;
33107 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33108 int x[] = {25, 17};
33109 const int *foo = &x[0];
33112 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33113 typedef const int *iptr;
33117 { /* AIX XL C 1.02.0.0 rejects this saying
33118 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33119 struct s { int j; const int *ap[3]; };
33120 struct s *b; b->j = 5;
33122 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33123 const int foo = 10;
33124 if (!foo) return 0;
33126 return !cs[0] && !zero.x;
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
33142 grep -v '^ *+' conftest.er1 >conftest.err
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } && {
33147 test -z "$ac_c_werror_flag" ||
33148 test ! -s conftest.err
33149 } && test -s conftest.$ac_objext; then
33152 echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33161 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33162 if test $ac_cv_c_const = no; then
33164 cat >>confdefs.h <<\_ACEOF
33171 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33172 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33174 # The order of these tests is important.
33175 cat >conftest.$ac_ext <<_ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33182 #include <sys/statvfs.h>
33183 #include <sys/fstyp.h>
33186 if { (ac_try="$ac_cpp conftest.$ac_ext"
33187 case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33194 grep -v '^ *+' conftest.er1 >conftest.err
33196 cat conftest.err >&5
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } >/dev/null && {
33199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33200 test ! -s conftest.err
33202 cat >>confdefs.h <<\_ACEOF
33203 #define FSTYPE_STATVFS 1
33208 echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33214 rm -f conftest.err conftest.$ac_ext
33215 if test $fstype = no; then
33216 cat >conftest.$ac_ext <<_ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33223 #include <sys/statfs.h>
33224 #include <sys/fstyp.h>
33227 if { (ac_try="$ac_cpp conftest.$ac_ext"
33228 case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33235 grep -v '^ *+' conftest.er1 >conftest.err
33237 cat conftest.err >&5
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } >/dev/null && {
33240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33241 test ! -s conftest.err
33243 cat >>confdefs.h <<\_ACEOF
33244 #define FSTYPE_USG_STATFS 1
33249 echo "$as_me: failed program was:" >&5
33250 sed 's/^/| /' conftest.$ac_ext >&5
33255 rm -f conftest.err conftest.$ac_ext
33257 if test $fstype = no; then
33258 cat >conftest.$ac_ext <<_ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h. */
33265 #include <sys/statfs.h>
33266 #include <sys/vmount.h>
33269 if { (ac_try="$ac_cpp conftest.$ac_ext"
33270 case "(($ac_try" in
33271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272 *) ac_try_echo=$ac_try;;
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33277 grep -v '^ *+' conftest.er1 >conftest.err
33279 cat conftest.err >&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); } >/dev/null && {
33282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33283 test ! -s conftest.err
33285 cat >>confdefs.h <<\_ACEOF
33286 #define FSTYPE_AIX_STATFS 1
33291 echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33297 rm -f conftest.err conftest.$ac_ext
33299 if test $fstype = no; then
33300 cat >conftest.$ac_ext <<_ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33307 #include <mntent.h>
33310 if { (ac_try="$ac_cpp conftest.$ac_ext"
33311 case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33318 grep -v '^ *+' conftest.er1 >conftest.err
33320 cat conftest.err >&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); } >/dev/null && {
33323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33324 test ! -s conftest.err
33326 cat >>confdefs.h <<\_ACEOF
33327 #define FSTYPE_MNTENT 1
33332 echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33338 rm -f conftest.err conftest.$ac_ext
33340 if test $fstype = no; then
33341 cat >conftest.$ac_ext <<_ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h. */
33347 #include <sys/mount.h>
33350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33351 $EGREP "f_type;" >/dev/null 2>&1; then
33352 cat >>confdefs.h <<\_ACEOF
33353 #define FSTYPE_STATFS 1
33360 if test $fstype = no; then
33361 cat >conftest.$ac_ext <<_ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h. */
33368 #include <sys/mount.h>
33369 #include <sys/fs_types.h>
33372 if { (ac_try="$ac_cpp conftest.$ac_ext"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33380 grep -v '^ *+' conftest.er1 >conftest.err
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } >/dev/null && {
33385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33386 test ! -s conftest.err
33388 cat >>confdefs.h <<\_ACEOF
33389 #define FSTYPE_GETMNT 1
33394 echo "$as_me: failed program was:" >&5
33395 sed 's/^/| /' conftest.$ac_ext >&5
33400 rm -f conftest.err conftest.$ac_ext
33402 { echo "$as_me:$LINENO: result: $fstype" >&5
33403 echo "${ECHO_T}$fstype" >&6; }
33405 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33406 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33407 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33408 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33412 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33414 # Is the header compilable?
33415 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33416 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33417 cat >conftest.$ac_ext <<_ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33423 $ac_includes_default
33424 #include <sys/statvfs.h>
33426 rm -f conftest.$ac_objext
33427 if { (ac_try="$ac_compile"
33428 case "(($ac_try" in
33429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33430 *) ac_try_echo=$ac_try;;
33432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33433 (eval "$ac_compile") 2>conftest.er1
33435 grep -v '^ *+' conftest.er1 >conftest.err
33437 cat conftest.err >&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); } && {
33440 test -z "$ac_c_werror_flag" ||
33441 test ! -s conftest.err
33442 } && test -s conftest.$ac_objext; then
33443 ac_header_compiler=yes
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 ac_header_compiler=no
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33453 echo "${ECHO_T}$ac_header_compiler" >&6; }
33455 # Is the header present?
33456 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33457 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33458 cat >conftest.$ac_ext <<_ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h. */
33464 #include <sys/statvfs.h>
33466 if { (ac_try="$ac_cpp conftest.$ac_ext"
33467 case "(($ac_try" in
33468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33474 grep -v '^ *+' conftest.er1 >conftest.err
33476 cat conftest.err >&5
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } >/dev/null && {
33479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33480 test ! -s conftest.err
33482 ac_header_preproc=yes
33484 echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33487 ac_header_preproc=no
33490 rm -f conftest.err conftest.$ac_ext
33491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33492 echo "${ECHO_T}$ac_header_preproc" >&6; }
33494 # So? What about this header?
33495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33497 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33498 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33500 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33501 ac_header_preproc=yes
33504 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33505 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33506 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33507 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33508 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33509 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33510 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33511 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33512 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33513 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33514 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33515 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33519 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33520 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33521 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33524 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33526 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33527 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33530 if test $ac_cv_header_sys_statvfs_h = yes; then
33532 cat >>confdefs.h <<\_ACEOF
33533 #define HAVE_SYS_STATVFS_H 1
33540 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33541 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33542 if test "${ac_cv_type_signal+set}" = set; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33545 cat >conftest.$ac_ext <<_ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h. */
33551 #include <sys/types.h>
33552 #include <signal.h>
33557 return *(signal (0, 0)) (0) == 1;
33562 rm -f conftest.$ac_objext
33563 if { (ac_try="$ac_compile"
33564 case "(($ac_try" in
33565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566 *) ac_try_echo=$ac_try;;
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569 (eval "$ac_compile") 2>conftest.er1
33571 grep -v '^ *+' conftest.er1 >conftest.err
33573 cat conftest.err >&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } && {
33576 test -z "$ac_c_werror_flag" ||
33577 test ! -s conftest.err
33578 } && test -s conftest.$ac_objext; then
33579 ac_cv_type_signal=int
33581 echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33584 ac_cv_type_signal=void
33587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33589 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33590 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33592 cat >>confdefs.h <<_ACEOF
33593 #define RETSIGTYPE $ac_cv_type_signal
33598 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33599 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33600 if test "${bash_cv_signal_vintage+set}" = set; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33604 cat >conftest.$ac_ext <<_ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33610 #include <signal.h>
33616 struct sigaction sa;
33617 sigemptyset(&ss); sigsuspend(&ss);
33618 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33619 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (ac_try="$ac_link"
33627 case "(($ac_try" in
33628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629 *) ac_try_echo=$ac_try;;
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632 (eval "$ac_link") 2>conftest.er1
33634 grep -v '^ *+' conftest.er1 >conftest.err
33636 cat conftest.err >&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); } && {
33639 test -z "$ac_c_werror_flag" ||
33640 test ! -s conftest.err
33641 } && test -s conftest$ac_exeext &&
33642 $as_test_x conftest$ac_exeext; then
33643 bash_cv_signal_vintage="posix"
33645 echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33649 cat >conftest.$ac_ext <<_ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h. */
33655 #include <signal.h>
33660 int mask = sigmask(SIGINT);
33661 sigsetmask(mask); sigblock(mask); sigpause(mask);
33667 rm -f conftest.$ac_objext conftest$ac_exeext
33668 if { (ac_try="$ac_link"
33669 case "(($ac_try" in
33670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671 *) ac_try_echo=$ac_try;;
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674 (eval "$ac_link") 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } && {
33681 test -z "$ac_c_werror_flag" ||
33682 test ! -s conftest.err
33683 } && test -s conftest$ac_exeext &&
33684 $as_test_x conftest$ac_exeext; then
33685 bash_cv_signal_vintage="4.2bsd"
33687 echo "$as_me: failed program was:" >&5
33688 sed 's/^/| /' conftest.$ac_ext >&5
33691 cat >conftest.$ac_ext <<_ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h. */
33698 #include <signal.h>
33699 RETSIGTYPE foo() { }
33704 int mask = sigmask(SIGINT);
33705 sigset(SIGINT, foo); sigrelse(SIGINT);
33706 sighold(SIGINT); sigpause(SIGINT);
33712 rm -f conftest.$ac_objext conftest$ac_exeext
33713 if { (ac_try="$ac_link"
33714 case "(($ac_try" in
33715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716 *) ac_try_echo=$ac_try;;
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719 (eval "$ac_link") 2>conftest.er1
33721 grep -v '^ *+' conftest.er1 >conftest.err
33723 cat conftest.err >&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } && {
33726 test -z "$ac_c_werror_flag" ||
33727 test ! -s conftest.err
33728 } && test -s conftest$ac_exeext &&
33729 $as_test_x conftest$ac_exeext; then
33730 bash_cv_signal_vintage="svr3"
33732 echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33735 bash_cv_signal_vintage="v7"
33739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33740 conftest$ac_exeext conftest.$ac_ext
33744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33745 conftest$ac_exeext conftest.$ac_ext
33749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33750 conftest$ac_exeext conftest.$ac_ext
33754 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33755 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33756 if test "$bash_cv_signal_vintage" = "posix"; then
33757 cat >>confdefs.h <<\_ACEOF
33758 #define HAVE_POSIX_SIGNALS 1
33761 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33762 cat >>confdefs.h <<\_ACEOF
33763 #define HAVE_BSD_SIGNALS 1
33766 elif test "$bash_cv_signal_vintage" = "svr3"; then
33767 cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_USG_SIGHOLD 1
33773 { echo "$as_me:$LINENO: checking for mode_t" >&5
33774 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33775 if test "${ac_cv_type_mode_t+set}" = set; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33778 cat >conftest.$ac_ext <<_ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h. */
33784 $ac_includes_default
33785 typedef mode_t ac__type_new_;
33789 if ((ac__type_new_ *) 0)
33791 if (sizeof (ac__type_new_))
33797 rm -f conftest.$ac_objext
33798 if { (ac_try="$ac_compile"
33799 case "(($ac_try" in
33800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801 *) ac_try_echo=$ac_try;;
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804 (eval "$ac_compile") 2>conftest.er1
33806 grep -v '^ *+' conftest.er1 >conftest.err
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } && {
33811 test -z "$ac_c_werror_flag" ||
33812 test ! -s conftest.err
33813 } && test -s conftest.$ac_objext; then
33814 ac_cv_type_mode_t=yes
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 ac_cv_type_mode_t=no
33822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33824 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33825 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33826 if test $ac_cv_type_mode_t = yes; then
33830 cat >>confdefs.h <<_ACEOF
33836 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33837 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33838 if test "${ac_cv_type_uid_t+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 cat >conftest.$ac_ext <<_ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33847 #include <sys/types.h>
33850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33851 $EGREP "uid_t" >/dev/null 2>&1; then
33852 ac_cv_type_uid_t=yes
33854 ac_cv_type_uid_t=no
33859 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33860 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33861 if test $ac_cv_type_uid_t = no; then
33863 cat >>confdefs.h <<\_ACEOF
33868 cat >>confdefs.h <<\_ACEOF
33874 { echo "$as_me:$LINENO: checking for size_t" >&5
33875 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33876 if test "${ac_cv_type_size_t+set}" = set; then
33877 echo $ECHO_N "(cached) $ECHO_C" >&6
33879 cat >conftest.$ac_ext <<_ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h. */
33885 $ac_includes_default
33886 typedef size_t ac__type_new_;
33890 if ((ac__type_new_ *) 0)
33892 if (sizeof (ac__type_new_))
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33907 grep -v '^ *+' conftest.er1 >conftest.err
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } && {
33912 test -z "$ac_c_werror_flag" ||
33913 test ! -s conftest.err
33914 } && test -s conftest.$ac_objext; then
33915 ac_cv_type_size_t=yes
33917 echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33920 ac_cv_type_size_t=no
33923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33925 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33926 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33927 if test $ac_cv_type_size_t = yes; then
33931 cat >>confdefs.h <<_ACEOF
33932 #define size_t unsigned int
33937 { echo "$as_me:$LINENO: checking for pid_t" >&5
33938 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33939 if test "${ac_cv_type_pid_t+set}" = set; then
33940 echo $ECHO_N "(cached) $ECHO_C" >&6
33942 cat >conftest.$ac_ext <<_ACEOF
33945 cat confdefs.h >>conftest.$ac_ext
33946 cat >>conftest.$ac_ext <<_ACEOF
33947 /* end confdefs.h. */
33948 $ac_includes_default
33949 typedef pid_t ac__type_new_;
33953 if ((ac__type_new_ *) 0)
33955 if (sizeof (ac__type_new_))
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965 *) ac_try_echo=$ac_try;;
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968 (eval "$ac_compile") 2>conftest.er1
33970 grep -v '^ *+' conftest.er1 >conftest.err
33972 cat conftest.err >&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } && {
33975 test -z "$ac_c_werror_flag" ||
33976 test ! -s conftest.err
33977 } && test -s conftest.$ac_objext; then
33978 ac_cv_type_pid_t=yes
33980 echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983 ac_cv_type_pid_t=no
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33988 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33989 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33990 if test $ac_cv_type_pid_t = yes; then
33994 cat >>confdefs.h <<_ACEOF
34000 { echo "$as_me:$LINENO: checking for off_t" >&5
34001 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34002 if test "${ac_cv_type_off_t+set}" = set; then
34003 echo $ECHO_N "(cached) $ECHO_C" >&6
34005 cat >conftest.$ac_ext <<_ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h. */
34011 $ac_includes_default
34012 typedef off_t ac__type_new_;
34016 if ((ac__type_new_ *) 0)
34018 if (sizeof (ac__type_new_))
34024 rm -f conftest.$ac_objext
34025 if { (ac_try="$ac_compile"
34026 case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_compile") 2>conftest.er1
34033 grep -v '^ *+' conftest.er1 >conftest.err
34035 cat conftest.err >&5
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); } && {
34038 test -z "$ac_c_werror_flag" ||
34039 test ! -s conftest.err
34040 } && test -s conftest.$ac_objext; then
34041 ac_cv_type_off_t=yes
34043 echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34046 ac_cv_type_off_t=no
34049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34051 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34052 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34053 if test $ac_cv_type_off_t = yes; then
34057 cat >>confdefs.h <<_ACEOF
34058 #define off_t long int
34064 { echo "$as_me:$LINENO: checking for intptr_t" >&5
34065 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34066 if test "${ac_cv_type_intptr_t+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34069 cat >conftest.$ac_ext <<_ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h. */
34075 $ac_includes_default
34076 typedef intptr_t ac__type_new_;
34080 if ((ac__type_new_ *) 0)
34082 if (sizeof (ac__type_new_))
34088 rm -f conftest.$ac_objext
34089 if { (ac_try="$ac_compile"
34090 case "(($ac_try" in
34091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092 *) ac_try_echo=$ac_try;;
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_compile") 2>conftest.er1
34097 grep -v '^ *+' conftest.er1 >conftest.err
34099 cat conftest.err >&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } && {
34102 test -z "$ac_c_werror_flag" ||
34103 test ! -s conftest.err
34104 } && test -s conftest.$ac_objext; then
34105 ac_cv_type_intptr_t=yes
34107 echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34110 ac_cv_type_intptr_t=no
34113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34115 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34116 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34117 if test $ac_cv_type_intptr_t = yes; then
34119 cat >>confdefs.h <<\_ACEOF
34120 #define HAVE_INTPTR_T 1
34124 for ac_type in 'int' 'long int' 'long long int'; do
34125 cat >conftest.$ac_ext <<_ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34131 $ac_includes_default
34135 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149 (eval "$ac_compile") 2>conftest.er1
34151 grep -v '^ *+' conftest.er1 >conftest.err
34153 cat conftest.err >&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } && {
34156 test -z "$ac_c_werror_flag" ||
34157 test ! -s conftest.err
34158 } && test -s conftest.$ac_objext; then
34160 cat >>confdefs.h <<_ACEOF
34161 #define intptr_t $ac_type
34166 echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34173 test -z "$ac_type" && break
34179 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34180 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34181 if test "${ac_cv_type_uintptr_t+set}" = set; then
34182 echo $ECHO_N "(cached) $ECHO_C" >&6
34184 cat >conftest.$ac_ext <<_ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190 $ac_includes_default
34191 typedef uintptr_t ac__type_new_;
34195 if ((ac__type_new_ *) 0)
34197 if (sizeof (ac__type_new_))
34203 rm -f conftest.$ac_objext
34204 if { (ac_try="$ac_compile"
34205 case "(($ac_try" in
34206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_compile") 2>conftest.er1
34212 grep -v '^ *+' conftest.er1 >conftest.err
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } && {
34217 test -z "$ac_c_werror_flag" ||
34218 test ! -s conftest.err
34219 } && test -s conftest.$ac_objext; then
34220 ac_cv_type_uintptr_t=yes
34222 echo "$as_me: failed program was:" >&5
34223 sed 's/^/| /' conftest.$ac_ext >&5
34225 ac_cv_type_uintptr_t=no
34228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34230 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34231 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34232 if test $ac_cv_type_uintptr_t = yes; then
34234 cat >>confdefs.h <<\_ACEOF
34235 #define HAVE_UINTPTR_T 1
34239 for ac_type in 'unsigned int' 'unsigned long int' \
34240 'unsigned long long int'; do
34241 cat >conftest.$ac_ext <<_ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h. */
34247 $ac_includes_default
34251 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262 *) ac_try_echo=$ac_try;;
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265 (eval "$ac_compile") 2>conftest.er1
34267 grep -v '^ *+' conftest.er1 >conftest.err
34269 cat conftest.err >&5
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } && {
34272 test -z "$ac_c_werror_flag" ||
34273 test ! -s conftest.err
34274 } && test -s conftest.$ac_objext; then
34276 cat >>confdefs.h <<_ACEOF
34277 #define uintptr_t $ac_type
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34289 test -z "$ac_type" && break
34294 { echo "$as_me:$LINENO: checking for ino_t" >&5
34295 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34296 if test "${ac_cv_type_ino_t+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34299 cat >conftest.$ac_ext <<_ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h. */
34305 $ac_includes_default
34306 typedef ino_t ac__type_new_;
34310 if ((ac__type_new_ *) 0)
34312 if (sizeof (ac__type_new_))
34318 rm -f conftest.$ac_objext
34319 if { (ac_try="$ac_compile"
34320 case "(($ac_try" in
34321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34322 *) ac_try_echo=$ac_try;;
34324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34325 (eval "$ac_compile") 2>conftest.er1
34327 grep -v '^ *+' conftest.er1 >conftest.err
34329 cat conftest.err >&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); } && {
34332 test -z "$ac_c_werror_flag" ||
34333 test ! -s conftest.err
34334 } && test -s conftest.$ac_objext; then
34335 ac_cv_type_ino_t=yes
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 ac_cv_type_ino_t=no
34343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34345 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34346 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34347 if test $ac_cv_type_ino_t = yes; then
34351 cat >>confdefs.h <<_ACEOF
34352 #define ino_t unsigned long
34357 { echo "$as_me:$LINENO: checking for dev_t" >&5
34358 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34359 if test "${ac_cv_type_dev_t+set}" = set; then
34360 echo $ECHO_N "(cached) $ECHO_C" >&6
34362 cat >conftest.$ac_ext <<_ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h. */
34368 $ac_includes_default
34369 typedef dev_t ac__type_new_;
34373 if ((ac__type_new_ *) 0)
34375 if (sizeof (ac__type_new_))
34381 rm -f conftest.$ac_objext
34382 if { (ac_try="$ac_compile"
34383 case "(($ac_try" in
34384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385 *) ac_try_echo=$ac_try;;
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388 (eval "$ac_compile") 2>conftest.er1
34390 grep -v '^ *+' conftest.er1 >conftest.err
34392 cat conftest.err >&5
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } && {
34395 test -z "$ac_c_werror_flag" ||
34396 test ! -s conftest.err
34397 } && test -s conftest.$ac_objext; then
34398 ac_cv_type_dev_t=yes
34400 echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34403 ac_cv_type_dev_t=no
34406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34409 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34410 if test $ac_cv_type_dev_t = yes; then
34414 cat >>confdefs.h <<_ACEOF
34415 #define dev_t unsigned long
34420 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34421 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34422 if test "${ac_cv_type_daddr_t+set}" = set; then
34423 echo $ECHO_N "(cached) $ECHO_C" >&6
34425 cat >conftest.$ac_ext <<_ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 $ac_includes_default
34432 typedef daddr_t ac__type_new_;
34436 if ((ac__type_new_ *) 0)
34438 if (sizeof (ac__type_new_))
34444 rm -f conftest.$ac_objext
34445 if { (ac_try="$ac_compile"
34446 case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_compile") 2>conftest.er1
34453 grep -v '^ *+' conftest.er1 >conftest.err
34455 cat conftest.err >&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); } && {
34458 test -z "$ac_c_werror_flag" ||
34459 test ! -s conftest.err
34460 } && test -s conftest.$ac_objext; then
34461 ac_cv_type_daddr_t=yes
34463 echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34466 ac_cv_type_daddr_t=no
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34471 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34472 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34473 if test $ac_cv_type_daddr_t = yes; then
34477 cat >>confdefs.h <<_ACEOF
34478 #define daddr_t long
34483 { echo "$as_me:$LINENO: checking for major_t" >&5
34484 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34485 if test "${ac_cv_type_major_t+set}" = set; then
34486 echo $ECHO_N "(cached) $ECHO_C" >&6
34488 cat >conftest.$ac_ext <<_ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h. */
34494 $ac_includes_default
34495 typedef major_t ac__type_new_;
34499 if ((ac__type_new_ *) 0)
34501 if (sizeof (ac__type_new_))
34507 rm -f conftest.$ac_objext
34508 if { (ac_try="$ac_compile"
34509 case "(($ac_try" in
34510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34511 *) ac_try_echo=$ac_try;;
34513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34514 (eval "$ac_compile") 2>conftest.er1
34516 grep -v '^ *+' conftest.er1 >conftest.err
34518 cat conftest.err >&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } && {
34521 test -z "$ac_c_werror_flag" ||
34522 test ! -s conftest.err
34523 } && test -s conftest.$ac_objext; then
34524 ac_cv_type_major_t=yes
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34529 ac_cv_type_major_t=no
34532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34534 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34535 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34536 if test $ac_cv_type_major_t = yes; then
34540 cat >>confdefs.h <<_ACEOF
34541 #define major_t int
34546 { echo "$as_me:$LINENO: checking for minor_t" >&5
34547 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34548 if test "${ac_cv_type_minor_t+set}" = set; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
34551 cat >conftest.$ac_ext <<_ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h. */
34557 $ac_includes_default
34558 typedef minor_t ac__type_new_;
34562 if ((ac__type_new_ *) 0)
34564 if (sizeof (ac__type_new_))
34570 rm -f conftest.$ac_objext
34571 if { (ac_try="$ac_compile"
34572 case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577 (eval "$ac_compile") 2>conftest.er1
34579 grep -v '^ *+' conftest.er1 >conftest.err
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } && {
34584 test -z "$ac_c_werror_flag" ||
34585 test ! -s conftest.err
34586 } && test -s conftest.$ac_objext; then
34587 ac_cv_type_minor_t=yes
34589 echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34592 ac_cv_type_minor_t=no
34595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34597 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34598 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34599 if test $ac_cv_type_minor_t = yes; then
34603 cat >>confdefs.h <<_ACEOF
34604 #define minor_t int
34609 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34610 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34611 if test "${ac_cv_type_ssize_t+set}" = set; then
34612 echo $ECHO_N "(cached) $ECHO_C" >&6
34614 cat >conftest.$ac_ext <<_ACEOF
34617 cat confdefs.h >>conftest.$ac_ext
34618 cat >>conftest.$ac_ext <<_ACEOF
34619 /* end confdefs.h. */
34620 $ac_includes_default
34621 typedef ssize_t ac__type_new_;
34625 if ((ac__type_new_ *) 0)
34627 if (sizeof (ac__type_new_))
34633 rm -f conftest.$ac_objext
34634 if { (ac_try="$ac_compile"
34635 case "(($ac_try" in
34636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34637 *) ac_try_echo=$ac_try;;
34639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34640 (eval "$ac_compile") 2>conftest.er1
34642 grep -v '^ *+' conftest.er1 >conftest.err
34644 cat conftest.err >&5
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); } && {
34647 test -z "$ac_c_werror_flag" ||
34648 test ! -s conftest.err
34649 } && test -s conftest.$ac_objext; then
34650 ac_cv_type_ssize_t=yes
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34655 ac_cv_type_ssize_t=no
34658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34660 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34661 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34662 if test $ac_cv_type_ssize_t = yes; then
34666 cat >>confdefs.h <<_ACEOF
34667 #define ssize_t int
34672 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34673 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34674 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34677 cat >conftest.$ac_ext <<_ACEOF
34680 cat confdefs.h >>conftest.$ac_ext
34681 cat >>conftest.$ac_ext <<_ACEOF
34682 /* end confdefs.h. */
34683 $ac_includes_default
34687 static struct stat ac_aggr;
34688 if (ac_aggr.st_blocks)
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_compile") 2>conftest.er1
34703 grep -v '^ *+' conftest.er1 >conftest.err
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } && {
34708 test -z "$ac_c_werror_flag" ||
34709 test ! -s conftest.err
34710 } && test -s conftest.$ac_objext; then
34711 ac_cv_member_struct_stat_st_blocks=yes
34713 echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34716 cat >conftest.$ac_ext <<_ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h. */
34722 $ac_includes_default
34726 static struct stat ac_aggr;
34727 if (sizeof ac_aggr.st_blocks)
34733 rm -f conftest.$ac_objext
34734 if { (ac_try="$ac_compile"
34735 case "(($ac_try" in
34736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737 *) ac_try_echo=$ac_try;;
34739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34740 (eval "$ac_compile") 2>conftest.er1
34742 grep -v '^ *+' conftest.er1 >conftest.err
34744 cat conftest.err >&5
34745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746 (exit $ac_status); } && {
34747 test -z "$ac_c_werror_flag" ||
34748 test ! -s conftest.err
34749 } && test -s conftest.$ac_objext; then
34750 ac_cv_member_struct_stat_st_blocks=yes
34752 echo "$as_me: failed program was:" >&5
34753 sed 's/^/| /' conftest.$ac_ext >&5
34755 ac_cv_member_struct_stat_st_blocks=no
34758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34764 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34765 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34767 cat >>confdefs.h <<_ACEOF
34768 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34772 cat >>confdefs.h <<\_ACEOF
34773 #define HAVE_ST_BLOCKS 1
34777 case " $LIBOBJS " in
34778 *" fileblocks.$ac_objext "* ) ;;
34779 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34786 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34787 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34788 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34791 cat >conftest.$ac_ext <<_ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h. */
34797 $ac_includes_default
34801 static struct stat ac_aggr;
34802 if (ac_aggr.st_rdev)
34808 rm -f conftest.$ac_objext
34809 if { (ac_try="$ac_compile"
34810 case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_compile") 2>conftest.er1
34817 grep -v '^ *+' conftest.er1 >conftest.err
34819 cat conftest.err >&5
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); } && {
34822 test -z "$ac_c_werror_flag" ||
34823 test ! -s conftest.err
34824 } && test -s conftest.$ac_objext; then
34825 ac_cv_member_struct_stat_st_rdev=yes
34827 echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34830 cat >conftest.$ac_ext <<_ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h. */
34836 $ac_includes_default
34840 static struct stat ac_aggr;
34841 if (sizeof ac_aggr.st_rdev)
34847 rm -f conftest.$ac_objext
34848 if { (ac_try="$ac_compile"
34849 case "(($ac_try" in
34850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851 *) ac_try_echo=$ac_try;;
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854 (eval "$ac_compile") 2>conftest.er1
34856 grep -v '^ *+' conftest.er1 >conftest.err
34858 cat conftest.err >&5
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } && {
34861 test -z "$ac_c_werror_flag" ||
34862 test ! -s conftest.err
34863 } && test -s conftest.$ac_objext; then
34864 ac_cv_member_struct_stat_st_rdev=yes
34866 echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34869 ac_cv_member_struct_stat_st_rdev=no
34872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34879 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34881 cat >>confdefs.h <<_ACEOF
34882 #define HAVE_STRUCT_STAT_ST_RDEV 1
34886 cat >>confdefs.h <<\_ACEOF
34887 #define HAVE_ST_RDEV 1
34893 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34894 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34895 if test "${ac_cv_struct_tm+set}" = set; then
34896 echo $ECHO_N "(cached) $ECHO_C" >&6
34898 cat >conftest.$ac_ext <<_ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h. */
34904 #include <sys/types.h>
34911 int *p = &tm.tm_sec;
34917 rm -f conftest.$ac_objext
34918 if { (ac_try="$ac_compile"
34919 case "(($ac_try" in
34920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921 *) ac_try_echo=$ac_try;;
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924 (eval "$ac_compile") 2>conftest.er1
34926 grep -v '^ *+' conftest.er1 >conftest.err
34928 cat conftest.err >&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } && {
34931 test -z "$ac_c_werror_flag" ||
34932 test ! -s conftest.err
34933 } && test -s conftest.$ac_objext; then
34934 ac_cv_struct_tm=time.h
34936 echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.$ac_ext >&5
34939 ac_cv_struct_tm=sys/time.h
34942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34944 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34945 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34946 if test $ac_cv_struct_tm = sys/time.h; then
34948 cat >>confdefs.h <<\_ACEOF
34949 #define TM_IN_SYS_TIME 1
34954 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34955 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34956 if test "${ac_cv_c_const+set}" = set; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34959 cat >conftest.$ac_ext <<_ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34969 /* FIXME: Include the comments suggested by Paul. */
34970 #ifndef __cplusplus
34971 /* Ultrix mips cc rejects this. */
34972 typedef int charset[2];
34974 /* SunOS 4.1.1 cc rejects this. */
34975 char const *const *pcpcc;
34977 /* NEC SVR4.0.2 mips cc rejects this. */
34978 struct point {int x, y;};
34979 static struct point const zero = {0,0};
34980 /* AIX XL C 1.02.0.0 rejects this.
34981 It does not let you subtract one const X* pointer from another in
34982 an arm of an if-expression whose if-part is not a constant
34984 const char *g = "string";
34985 pcpcc = &g + (g ? g-g : 0);
34986 /* HPUX 7.0 cc rejects these. */
34988 ppc = (char**) pcpcc;
34989 pcpcc = (char const *const *) ppc;
34990 { /* SCO 3.2v4 cc rejects this. */
34992 char const *s = 0 ? (char *) 0 : (char const *) 0;
34997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34998 int x[] = {25, 17};
34999 const int *foo = &x[0];
35002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35003 typedef const int *iptr;
35007 { /* AIX XL C 1.02.0.0 rejects this saying
35008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35009 struct s { int j; const int *ap[3]; };
35010 struct s *b; b->j = 5;
35012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35013 const int foo = 10;
35014 if (!foo) return 0;
35016 return !cs[0] && !zero.x;
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027 *) ac_try_echo=$ac_try;;
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030 (eval "$ac_compile") 2>conftest.er1
35032 grep -v '^ *+' conftest.er1 >conftest.err
35034 cat conftest.err >&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } && {
35037 test -z "$ac_c_werror_flag" ||
35038 test ! -s conftest.err
35039 } && test -s conftest.$ac_objext; then
35042 echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35050 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35051 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35052 if test $ac_cv_c_const = no; then
35054 cat >>confdefs.h <<\_ACEOF
35061 { echo "$as_me:$LINENO: checking for char" >&5
35062 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35063 if test "${ac_cv_type_char+set}" = set; then
35064 echo $ECHO_N "(cached) $ECHO_C" >&6
35066 cat >conftest.$ac_ext <<_ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h. */
35072 $ac_includes_default
35073 typedef char ac__type_new_;
35077 if ((ac__type_new_ *) 0)
35079 if (sizeof (ac__type_new_))
35085 rm -f conftest.$ac_objext
35086 if { (ac_try="$ac_compile"
35087 case "(($ac_try" in
35088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35089 *) ac_try_echo=$ac_try;;
35091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35092 (eval "$ac_compile") 2>conftest.er1
35094 grep -v '^ *+' conftest.er1 >conftest.err
35096 cat conftest.err >&5
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } && {
35099 test -z "$ac_c_werror_flag" ||
35100 test ! -s conftest.err
35101 } && test -s conftest.$ac_objext; then
35102 ac_cv_type_char=yes
35104 echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35112 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35113 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35115 # The cast to long int works around a bug in the HP C Compiler
35116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35118 # This bug is HP SR number 8606223364.
35119 { echo "$as_me:$LINENO: checking size of char" >&5
35120 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35121 if test "${ac_cv_sizeof_char+set}" = set; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35124 if test "$cross_compiling" = yes; then
35125 # Depending upon the size, compute the lo and hi bounds.
35126 cat >conftest.$ac_ext <<_ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h. */
35132 $ac_includes_default
35133 typedef char ac__type_sizeof_;
35137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35144 rm -f conftest.$ac_objext
35145 if { (ac_try="$ac_compile"
35146 case "(($ac_try" in
35147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35148 *) ac_try_echo=$ac_try;;
35150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35151 (eval "$ac_compile") 2>conftest.er1
35153 grep -v '^ *+' conftest.er1 >conftest.err
35155 cat conftest.err >&5
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } && {
35158 test -z "$ac_c_werror_flag" ||
35159 test ! -s conftest.err
35160 } && test -s conftest.$ac_objext; then
35163 cat >conftest.$ac_ext <<_ACEOF
35166 cat confdefs.h >>conftest.$ac_ext
35167 cat >>conftest.$ac_ext <<_ACEOF
35168 /* end confdefs.h. */
35169 $ac_includes_default
35170 typedef char ac__type_sizeof_;
35174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35181 rm -f conftest.$ac_objext
35182 if { (ac_try="$ac_compile"
35183 case "(($ac_try" in
35184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35185 *) ac_try_echo=$ac_try;;
35187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35188 (eval "$ac_compile") 2>conftest.er1
35190 grep -v '^ *+' conftest.er1 >conftest.err
35192 cat conftest.err >&5
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); } && {
35195 test -z "$ac_c_werror_flag" ||
35196 test ! -s conftest.err
35197 } && test -s conftest.$ac_objext; then
35198 ac_hi=$ac_mid; break
35200 echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35203 ac_lo=`expr $ac_mid + 1`
35204 if test $ac_lo -le $ac_mid; then
35208 ac_mid=`expr 2 '*' $ac_mid + 1`
35211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35217 cat >conftest.$ac_ext <<_ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h. */
35223 $ac_includes_default
35224 typedef char ac__type_sizeof_;
35228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35235 rm -f conftest.$ac_objext
35236 if { (ac_try="$ac_compile"
35237 case "(($ac_try" in
35238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35239 *) ac_try_echo=$ac_try;;
35241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35242 (eval "$ac_compile") 2>conftest.er1
35244 grep -v '^ *+' conftest.er1 >conftest.err
35246 cat conftest.err >&5
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); } && {
35249 test -z "$ac_c_werror_flag" ||
35250 test ! -s conftest.err
35251 } && test -s conftest.$ac_objext; then
35254 cat >conftest.$ac_ext <<_ACEOF
35257 cat confdefs.h >>conftest.$ac_ext
35258 cat >>conftest.$ac_ext <<_ACEOF
35259 /* end confdefs.h. */
35260 $ac_includes_default
35261 typedef char ac__type_sizeof_;
35265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35272 rm -f conftest.$ac_objext
35273 if { (ac_try="$ac_compile"
35274 case "(($ac_try" in
35275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35276 *) ac_try_echo=$ac_try;;
35278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35279 (eval "$ac_compile") 2>conftest.er1
35281 grep -v '^ *+' conftest.er1 >conftest.err
35283 cat conftest.err >&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); } && {
35286 test -z "$ac_c_werror_flag" ||
35287 test ! -s conftest.err
35288 } && test -s conftest.$ac_objext; then
35289 ac_lo=$ac_mid; break
35291 echo "$as_me: failed program was:" >&5
35292 sed 's/^/| /' conftest.$ac_ext >&5
35294 ac_hi=`expr '(' $ac_mid ')' - 1`
35295 if test $ac_mid -le $ac_hi; then
35299 ac_mid=`expr 2 '*' $ac_mid`
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35315 # Binary search between lo and hi bounds.
35316 while test "x$ac_lo" != "x$ac_hi"; do
35317 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35318 cat >conftest.$ac_ext <<_ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h. */
35324 $ac_includes_default
35325 typedef char ac__type_sizeof_;
35329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35336 rm -f conftest.$ac_objext
35337 if { (ac_try="$ac_compile"
35338 case "(($ac_try" in
35339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35340 *) ac_try_echo=$ac_try;;
35342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35343 (eval "$ac_compile") 2>conftest.er1
35345 grep -v '^ *+' conftest.er1 >conftest.err
35347 cat conftest.err >&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } && {
35350 test -z "$ac_c_werror_flag" ||
35351 test ! -s conftest.err
35352 } && test -s conftest.$ac_objext; then
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35358 ac_lo=`expr '(' $ac_mid ')' + 1`
35361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35364 ?*) ac_cv_sizeof_char=$ac_lo;;
35365 '') if test "$ac_cv_type_char" = yes; then
35366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35367 See \`config.log' for more details." >&5
35368 echo "$as_me: error: cannot compute sizeof (char)
35369 See \`config.log' for more details." >&2;}
35370 { (exit 77); exit 77; }; }
35372 ac_cv_sizeof_char=0
35376 cat >conftest.$ac_ext <<_ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 $ac_includes_default
35383 typedef char ac__type_sizeof_;
35384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35387 #include <stdlib.h>
35392 FILE *f = fopen ("conftest.val", "w");
35395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35397 long int i = longval ();
35398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35400 fprintf (f, "%ld\n", i);
35404 unsigned long int i = ulongval ();
35405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35407 fprintf (f, "%lu\n", i);
35409 return ferror (f) || fclose (f) != 0;
35415 rm -f conftest$ac_exeext
35416 if { (ac_try="$ac_link"
35417 case "(($ac_try" in
35418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35419 *) ac_try_echo=$ac_try;;
35421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35422 (eval "$ac_link") 2>&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35426 { (case "(($ac_try" in
35427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35428 *) ac_try_echo=$ac_try;;
35430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35431 (eval "$ac_try") 2>&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); }; }; then
35435 ac_cv_sizeof_char=`cat conftest.val`
35437 echo "$as_me: program exited with status $ac_status" >&5
35438 echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35441 ( exit $ac_status )
35442 if test "$ac_cv_type_char" = yes; then
35443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35444 See \`config.log' for more details." >&5
35445 echo "$as_me: error: cannot compute sizeof (char)
35446 See \`config.log' for more details." >&2;}
35447 { (exit 77); exit 77; }; }
35449 ac_cv_sizeof_char=0
35452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35456 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35457 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35461 cat >>confdefs.h <<_ACEOF
35462 #define SIZEOF_CHAR $ac_cv_sizeof_char
35466 { echo "$as_me:$LINENO: checking for short int" >&5
35467 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35468 if test "${ac_cv_type_short_int+set}" = set; then
35469 echo $ECHO_N "(cached) $ECHO_C" >&6
35471 cat >conftest.$ac_ext <<_ACEOF
35474 cat confdefs.h >>conftest.$ac_ext
35475 cat >>conftest.$ac_ext <<_ACEOF
35476 /* end confdefs.h. */
35477 $ac_includes_default
35478 typedef short int ac__type_new_;
35482 if ((ac__type_new_ *) 0)
35484 if (sizeof (ac__type_new_))
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494 *) ac_try_echo=$ac_try;;
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497 (eval "$ac_compile") 2>conftest.er1
35499 grep -v '^ *+' conftest.er1 >conftest.err
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } && {
35504 test -z "$ac_c_werror_flag" ||
35505 test ! -s conftest.err
35506 } && test -s conftest.$ac_objext; then
35507 ac_cv_type_short_int=yes
35509 echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35512 ac_cv_type_short_int=no
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35518 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35520 # The cast to long int works around a bug in the HP C Compiler
35521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35523 # This bug is HP SR number 8606223364.
35524 { echo "$as_me:$LINENO: checking size of short int" >&5
35525 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35526 if test "${ac_cv_sizeof_short_int+set}" = set; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35529 if test "$cross_compiling" = yes; then
35530 # Depending upon the size, compute the lo and hi bounds.
35531 cat >conftest.$ac_ext <<_ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h. */
35537 $ac_includes_default
35538 typedef short int ac__type_sizeof_;
35542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35549 rm -f conftest.$ac_objext
35550 if { (ac_try="$ac_compile"
35551 case "(($ac_try" in
35552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553 *) ac_try_echo=$ac_try;;
35555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35556 (eval "$ac_compile") 2>conftest.er1
35558 grep -v '^ *+' conftest.er1 >conftest.err
35560 cat conftest.err >&5
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); } && {
35563 test -z "$ac_c_werror_flag" ||
35564 test ! -s conftest.err
35565 } && test -s conftest.$ac_objext; then
35568 cat >conftest.$ac_ext <<_ACEOF
35571 cat confdefs.h >>conftest.$ac_ext
35572 cat >>conftest.$ac_ext <<_ACEOF
35573 /* end confdefs.h. */
35574 $ac_includes_default
35575 typedef short int ac__type_sizeof_;
35579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35586 rm -f conftest.$ac_objext
35587 if { (ac_try="$ac_compile"
35588 case "(($ac_try" in
35589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35590 *) ac_try_echo=$ac_try;;
35592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35593 (eval "$ac_compile") 2>conftest.er1
35595 grep -v '^ *+' conftest.er1 >conftest.err
35597 cat conftest.err >&5
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); } && {
35600 test -z "$ac_c_werror_flag" ||
35601 test ! -s conftest.err
35602 } && test -s conftest.$ac_objext; then
35603 ac_hi=$ac_mid; break
35605 echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35608 ac_lo=`expr $ac_mid + 1`
35609 if test $ac_lo -le $ac_mid; then
35613 ac_mid=`expr 2 '*' $ac_mid + 1`
35616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35619 echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35622 cat >conftest.$ac_ext <<_ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h. */
35628 $ac_includes_default
35629 typedef short int ac__type_sizeof_;
35633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35640 rm -f conftest.$ac_objext
35641 if { (ac_try="$ac_compile"
35642 case "(($ac_try" in
35643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35644 *) ac_try_echo=$ac_try;;
35646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35647 (eval "$ac_compile") 2>conftest.er1
35649 grep -v '^ *+' conftest.er1 >conftest.err
35651 cat conftest.err >&5
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); } && {
35654 test -z "$ac_c_werror_flag" ||
35655 test ! -s conftest.err
35656 } && test -s conftest.$ac_objext; then
35659 cat >conftest.$ac_ext <<_ACEOF
35662 cat confdefs.h >>conftest.$ac_ext
35663 cat >>conftest.$ac_ext <<_ACEOF
35664 /* end confdefs.h. */
35665 $ac_includes_default
35666 typedef short int ac__type_sizeof_;
35670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35677 rm -f conftest.$ac_objext
35678 if { (ac_try="$ac_compile"
35679 case "(($ac_try" in
35680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35681 *) ac_try_echo=$ac_try;;
35683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35684 (eval "$ac_compile") 2>conftest.er1
35686 grep -v '^ *+' conftest.er1 >conftest.err
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } && {
35691 test -z "$ac_c_werror_flag" ||
35692 test ! -s conftest.err
35693 } && test -s conftest.$ac_objext; then
35694 ac_lo=$ac_mid; break
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 ac_hi=`expr '(' $ac_mid ')' - 1`
35700 if test $ac_mid -le $ac_hi; then
35704 ac_mid=`expr 2 '*' $ac_mid`
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35710 echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35720 # Binary search between lo and hi bounds.
35721 while test "x$ac_lo" != "x$ac_hi"; do
35722 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35723 cat >conftest.$ac_ext <<_ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35729 $ac_includes_default
35730 typedef short int ac__type_sizeof_;
35734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35741 rm -f conftest.$ac_objext
35742 if { (ac_try="$ac_compile"
35743 case "(($ac_try" in
35744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35745 *) ac_try_echo=$ac_try;;
35747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35748 (eval "$ac_compile") 2>conftest.er1
35750 grep -v '^ *+' conftest.er1 >conftest.err
35752 cat conftest.err >&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } && {
35755 test -z "$ac_c_werror_flag" ||
35756 test ! -s conftest.err
35757 } && test -s conftest.$ac_objext; then
35760 echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35763 ac_lo=`expr '(' $ac_mid ')' + 1`
35766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35769 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35770 '') if test "$ac_cv_type_short_int" = yes; then
35771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (short int)
35774 See \`config.log' for more details." >&2;}
35775 { (exit 77); exit 77; }; }
35777 ac_cv_sizeof_short_int=0
35781 cat >conftest.$ac_ext <<_ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h. */
35787 $ac_includes_default
35788 typedef short int ac__type_sizeof_;
35789 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35790 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35792 #include <stdlib.h>
35797 FILE *f = fopen ("conftest.val", "w");
35800 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35802 long int i = longval ();
35803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35805 fprintf (f, "%ld\n", i);
35809 unsigned long int i = ulongval ();
35810 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35812 fprintf (f, "%lu\n", i);
35814 return ferror (f) || fclose (f) != 0;
35820 rm -f conftest$ac_exeext
35821 if { (ac_try="$ac_link"
35822 case "(($ac_try" in
35823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824 *) ac_try_echo=$ac_try;;
35826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35827 (eval "$ac_link") 2>&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35831 { (case "(($ac_try" in
35832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35833 *) ac_try_echo=$ac_try;;
35835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35836 (eval "$ac_try") 2>&5
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); }; }; then
35840 ac_cv_sizeof_short_int=`cat conftest.val`
35842 echo "$as_me: program exited with status $ac_status" >&5
35843 echo "$as_me: failed program was:" >&5
35844 sed 's/^/| /' conftest.$ac_ext >&5
35846 ( exit $ac_status )
35847 if test "$ac_cv_type_short_int" = yes; then
35848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35849 See \`config.log' for more details." >&5
35850 echo "$as_me: error: cannot compute sizeof (short int)
35851 See \`config.log' for more details." >&2;}
35852 { (exit 77); exit 77; }; }
35854 ac_cv_sizeof_short_int=0
35857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35861 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35862 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35866 cat >>confdefs.h <<_ACEOF
35867 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35871 { echo "$as_me:$LINENO: checking for int" >&5
35872 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35873 if test "${ac_cv_type_int+set}" = set; then
35874 echo $ECHO_N "(cached) $ECHO_C" >&6
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35882 $ac_includes_default
35883 typedef int ac__type_new_;
35887 if ((ac__type_new_ *) 0)
35889 if (sizeof (ac__type_new_))
35895 rm -f conftest.$ac_objext
35896 if { (ac_try="$ac_compile"
35897 case "(($ac_try" in
35898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899 *) ac_try_echo=$ac_try;;
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902 (eval "$ac_compile") 2>conftest.er1
35904 grep -v '^ *+' conftest.er1 >conftest.err
35906 cat conftest.err >&5
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } && {
35909 test -z "$ac_c_werror_flag" ||
35910 test ! -s conftest.err
35911 } && test -s conftest.$ac_objext; then
35914 echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35922 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35923 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35925 # The cast to long int works around a bug in the HP C Compiler
35926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35928 # This bug is HP SR number 8606223364.
35929 { echo "$as_me:$LINENO: checking size of int" >&5
35930 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35931 if test "${ac_cv_sizeof_int+set}" = set; then
35932 echo $ECHO_N "(cached) $ECHO_C" >&6
35934 if test "$cross_compiling" = yes; then
35935 # Depending upon the size, compute the lo and hi bounds.
35936 cat >conftest.$ac_ext <<_ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h. */
35942 $ac_includes_default
35943 typedef int ac__type_sizeof_;
35947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35954 rm -f conftest.$ac_objext
35955 if { (ac_try="$ac_compile"
35956 case "(($ac_try" in
35957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35958 *) ac_try_echo=$ac_try;;
35960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35961 (eval "$ac_compile") 2>conftest.er1
35963 grep -v '^ *+' conftest.er1 >conftest.err
35965 cat conftest.err >&5
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); } && {
35968 test -z "$ac_c_werror_flag" ||
35969 test ! -s conftest.err
35970 } && test -s conftest.$ac_objext; then
35973 cat >conftest.$ac_ext <<_ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h. */
35979 $ac_includes_default
35980 typedef int ac__type_sizeof_;
35984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35991 rm -f conftest.$ac_objext
35992 if { (ac_try="$ac_compile"
35993 case "(($ac_try" in
35994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35995 *) ac_try_echo=$ac_try;;
35997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35998 (eval "$ac_compile") 2>conftest.er1
36000 grep -v '^ *+' conftest.er1 >conftest.err
36002 cat conftest.err >&5
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); } && {
36005 test -z "$ac_c_werror_flag" ||
36006 test ! -s conftest.err
36007 } && test -s conftest.$ac_objext; then
36008 ac_hi=$ac_mid; break
36010 echo "$as_me: failed program was:" >&5
36011 sed 's/^/| /' conftest.$ac_ext >&5
36013 ac_lo=`expr $ac_mid + 1`
36014 if test $ac_lo -le $ac_mid; then
36018 ac_mid=`expr 2 '*' $ac_mid + 1`
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36024 echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36027 cat >conftest.$ac_ext <<_ACEOF
36030 cat confdefs.h >>conftest.$ac_ext
36031 cat >>conftest.$ac_ext <<_ACEOF
36032 /* end confdefs.h. */
36033 $ac_includes_default
36034 typedef int ac__type_sizeof_;
36038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36045 rm -f conftest.$ac_objext
36046 if { (ac_try="$ac_compile"
36047 case "(($ac_try" in
36048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36049 *) ac_try_echo=$ac_try;;
36051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36052 (eval "$ac_compile") 2>conftest.er1
36054 grep -v '^ *+' conftest.er1 >conftest.err
36056 cat conftest.err >&5
36057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058 (exit $ac_status); } && {
36059 test -z "$ac_c_werror_flag" ||
36060 test ! -s conftest.err
36061 } && test -s conftest.$ac_objext; then
36064 cat >conftest.$ac_ext <<_ACEOF
36067 cat confdefs.h >>conftest.$ac_ext
36068 cat >>conftest.$ac_ext <<_ACEOF
36069 /* end confdefs.h. */
36070 $ac_includes_default
36071 typedef int ac__type_sizeof_;
36075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36082 rm -f conftest.$ac_objext
36083 if { (ac_try="$ac_compile"
36084 case "(($ac_try" in
36085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36086 *) ac_try_echo=$ac_try;;
36088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36089 (eval "$ac_compile") 2>conftest.er1
36091 grep -v '^ *+' conftest.er1 >conftest.err
36093 cat conftest.err >&5
36094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095 (exit $ac_status); } && {
36096 test -z "$ac_c_werror_flag" ||
36097 test ! -s conftest.err
36098 } && test -s conftest.$ac_objext; then
36099 ac_lo=$ac_mid; break
36101 echo "$as_me: failed program was:" >&5
36102 sed 's/^/| /' conftest.$ac_ext >&5
36104 ac_hi=`expr '(' $ac_mid ')' - 1`
36105 if test $ac_mid -le $ac_hi; then
36109 ac_mid=`expr 2 '*' $ac_mid`
36112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36115 echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36125 # Binary search between lo and hi bounds.
36126 while test "x$ac_lo" != "x$ac_hi"; do
36127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36128 cat >conftest.$ac_ext <<_ACEOF
36131 cat confdefs.h >>conftest.$ac_ext
36132 cat >>conftest.$ac_ext <<_ACEOF
36133 /* end confdefs.h. */
36134 $ac_includes_default
36135 typedef int ac__type_sizeof_;
36139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36146 rm -f conftest.$ac_objext
36147 if { (ac_try="$ac_compile"
36148 case "(($ac_try" in
36149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36150 *) ac_try_echo=$ac_try;;
36152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36153 (eval "$ac_compile") 2>conftest.er1
36155 grep -v '^ *+' conftest.er1 >conftest.err
36157 cat conftest.err >&5
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); } && {
36160 test -z "$ac_c_werror_flag" ||
36161 test ! -s conftest.err
36162 } && test -s conftest.$ac_objext; then
36165 echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36168 ac_lo=`expr '(' $ac_mid ')' + 1`
36171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36174 ?*) ac_cv_sizeof_int=$ac_lo;;
36175 '') if test "$ac_cv_type_int" = yes; then
36176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36177 See \`config.log' for more details." >&5
36178 echo "$as_me: error: cannot compute sizeof (int)
36179 See \`config.log' for more details." >&2;}
36180 { (exit 77); exit 77; }; }
36186 cat >conftest.$ac_ext <<_ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h. */
36192 $ac_includes_default
36193 typedef int ac__type_sizeof_;
36194 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36195 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36197 #include <stdlib.h>
36202 FILE *f = fopen ("conftest.val", "w");
36205 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36207 long int i = longval ();
36208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36210 fprintf (f, "%ld\n", i);
36214 unsigned long int i = ulongval ();
36215 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36217 fprintf (f, "%lu\n", i);
36219 return ferror (f) || fclose (f) != 0;
36225 rm -f conftest$ac_exeext
36226 if { (ac_try="$ac_link"
36227 case "(($ac_try" in
36228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229 *) ac_try_echo=$ac_try;;
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232 (eval "$ac_link") 2>&5
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36236 { (case "(($ac_try" in
36237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36238 *) ac_try_echo=$ac_try;;
36240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36241 (eval "$ac_try") 2>&5
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; }; then
36245 ac_cv_sizeof_int=`cat conftest.val`
36247 echo "$as_me: program exited with status $ac_status" >&5
36248 echo "$as_me: failed program was:" >&5
36249 sed 's/^/| /' conftest.$ac_ext >&5
36251 ( exit $ac_status )
36252 if test "$ac_cv_type_int" = yes; then
36253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36254 See \`config.log' for more details." >&5
36255 echo "$as_me: error: cannot compute sizeof (int)
36256 See \`config.log' for more details." >&2;}
36257 { (exit 77); exit 77; }; }
36262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36267 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36271 cat >>confdefs.h <<_ACEOF
36272 #define SIZEOF_INT $ac_cv_sizeof_int
36276 { echo "$as_me:$LINENO: checking for long int" >&5
36277 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36278 if test "${ac_cv_type_long_int+set}" = set; then
36279 echo $ECHO_N "(cached) $ECHO_C" >&6
36281 cat >conftest.$ac_ext <<_ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h. */
36287 $ac_includes_default
36288 typedef long int ac__type_new_;
36292 if ((ac__type_new_ *) 0)
36294 if (sizeof (ac__type_new_))
36300 rm -f conftest.$ac_objext
36301 if { (ac_try="$ac_compile"
36302 case "(($ac_try" in
36303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36304 *) ac_try_echo=$ac_try;;
36306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36307 (eval "$ac_compile") 2>conftest.er1
36309 grep -v '^ *+' conftest.er1 >conftest.err
36311 cat conftest.err >&5
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); } && {
36314 test -z "$ac_c_werror_flag" ||
36315 test ! -s conftest.err
36316 } && test -s conftest.$ac_objext; then
36317 ac_cv_type_long_int=yes
36319 echo "$as_me: failed program was:" >&5
36320 sed 's/^/| /' conftest.$ac_ext >&5
36322 ac_cv_type_long_int=no
36325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36327 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36328 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36330 # The cast to long int works around a bug in the HP C Compiler
36331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36333 # This bug is HP SR number 8606223364.
36334 { echo "$as_me:$LINENO: checking size of long int" >&5
36335 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36336 if test "${ac_cv_sizeof_long_int+set}" = set; then
36337 echo $ECHO_N "(cached) $ECHO_C" >&6
36339 if test "$cross_compiling" = yes; then
36340 # Depending upon the size, compute the lo and hi bounds.
36341 cat >conftest.$ac_ext <<_ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36347 $ac_includes_default
36348 typedef long int ac__type_sizeof_;
36352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36359 rm -f conftest.$ac_objext
36360 if { (ac_try="$ac_compile"
36361 case "(($ac_try" in
36362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36363 *) ac_try_echo=$ac_try;;
36365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36366 (eval "$ac_compile") 2>conftest.er1
36368 grep -v '^ *+' conftest.er1 >conftest.err
36370 cat conftest.err >&5
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); } && {
36373 test -z "$ac_c_werror_flag" ||
36374 test ! -s conftest.err
36375 } && test -s conftest.$ac_objext; then
36378 cat >conftest.$ac_ext <<_ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h. */
36384 $ac_includes_default
36385 typedef long int ac__type_sizeof_;
36389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36396 rm -f conftest.$ac_objext
36397 if { (ac_try="$ac_compile"
36398 case "(($ac_try" in
36399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36400 *) ac_try_echo=$ac_try;;
36402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36403 (eval "$ac_compile") 2>conftest.er1
36405 grep -v '^ *+' conftest.er1 >conftest.err
36407 cat conftest.err >&5
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); } && {
36410 test -z "$ac_c_werror_flag" ||
36411 test ! -s conftest.err
36412 } && test -s conftest.$ac_objext; then
36413 ac_hi=$ac_mid; break
36415 echo "$as_me: failed program was:" >&5
36416 sed 's/^/| /' conftest.$ac_ext >&5
36418 ac_lo=`expr $ac_mid + 1`
36419 if test $ac_lo -le $ac_mid; then
36423 ac_mid=`expr 2 '*' $ac_mid + 1`
36426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36429 echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36432 cat >conftest.$ac_ext <<_ACEOF
36435 cat confdefs.h >>conftest.$ac_ext
36436 cat >>conftest.$ac_ext <<_ACEOF
36437 /* end confdefs.h. */
36438 $ac_includes_default
36439 typedef long int ac__type_sizeof_;
36443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36450 rm -f conftest.$ac_objext
36451 if { (ac_try="$ac_compile"
36452 case "(($ac_try" in
36453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36454 *) ac_try_echo=$ac_try;;
36456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36457 (eval "$ac_compile") 2>conftest.er1
36459 grep -v '^ *+' conftest.er1 >conftest.err
36461 cat conftest.err >&5
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); } && {
36464 test -z "$ac_c_werror_flag" ||
36465 test ! -s conftest.err
36466 } && test -s conftest.$ac_objext; then
36469 cat >conftest.$ac_ext <<_ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h. */
36475 $ac_includes_default
36476 typedef long int ac__type_sizeof_;
36480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36487 rm -f conftest.$ac_objext
36488 if { (ac_try="$ac_compile"
36489 case "(($ac_try" in
36490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491 *) ac_try_echo=$ac_try;;
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494 (eval "$ac_compile") 2>conftest.er1
36496 grep -v '^ *+' conftest.er1 >conftest.err
36498 cat conftest.err >&5
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); } && {
36501 test -z "$ac_c_werror_flag" ||
36502 test ! -s conftest.err
36503 } && test -s conftest.$ac_objext; then
36504 ac_lo=$ac_mid; break
36506 echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36509 ac_hi=`expr '(' $ac_mid ')' - 1`
36510 if test $ac_mid -le $ac_hi; then
36514 ac_mid=`expr 2 '*' $ac_mid`
36517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36520 echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36530 # Binary search between lo and hi bounds.
36531 while test "x$ac_lo" != "x$ac_hi"; do
36532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36533 cat >conftest.$ac_ext <<_ACEOF
36536 cat confdefs.h >>conftest.$ac_ext
36537 cat >>conftest.$ac_ext <<_ACEOF
36538 /* end confdefs.h. */
36539 $ac_includes_default
36540 typedef long int ac__type_sizeof_;
36544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36551 rm -f conftest.$ac_objext
36552 if { (ac_try="$ac_compile"
36553 case "(($ac_try" in
36554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36555 *) ac_try_echo=$ac_try;;
36557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36558 (eval "$ac_compile") 2>conftest.er1
36560 grep -v '^ *+' conftest.er1 >conftest.err
36562 cat conftest.err >&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } && {
36565 test -z "$ac_c_werror_flag" ||
36566 test ! -s conftest.err
36567 } && test -s conftest.$ac_objext; then
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36573 ac_lo=`expr '(' $ac_mid ')' + 1`
36576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36579 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36580 '') if test "$ac_cv_type_long_int" = yes; then
36581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36582 See \`config.log' for more details." >&5
36583 echo "$as_me: error: cannot compute sizeof (long int)
36584 See \`config.log' for more details." >&2;}
36585 { (exit 77); exit 77; }; }
36587 ac_cv_sizeof_long_int=0
36591 cat >conftest.$ac_ext <<_ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h. */
36597 $ac_includes_default
36598 typedef long int ac__type_sizeof_;
36599 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36600 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36602 #include <stdlib.h>
36607 FILE *f = fopen ("conftest.val", "w");
36610 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36612 long int i = longval ();
36613 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36615 fprintf (f, "%ld\n", i);
36619 unsigned long int i = ulongval ();
36620 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36622 fprintf (f, "%lu\n", i);
36624 return ferror (f) || fclose (f) != 0;
36630 rm -f conftest$ac_exeext
36631 if { (ac_try="$ac_link"
36632 case "(($ac_try" in
36633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36634 *) ac_try_echo=$ac_try;;
36636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36637 (eval "$ac_link") 2>&5
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36641 { (case "(($ac_try" in
36642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36643 *) ac_try_echo=$ac_try;;
36645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36646 (eval "$ac_try") 2>&5
36648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); }; }; then
36650 ac_cv_sizeof_long_int=`cat conftest.val`
36652 echo "$as_me: program exited with status $ac_status" >&5
36653 echo "$as_me: failed program was:" >&5
36654 sed 's/^/| /' conftest.$ac_ext >&5
36656 ( exit $ac_status )
36657 if test "$ac_cv_type_long_int" = yes; then
36658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36659 See \`config.log' for more details." >&5
36660 echo "$as_me: error: cannot compute sizeof (long int)
36661 See \`config.log' for more details." >&2;}
36662 { (exit 77); exit 77; }; }
36664 ac_cv_sizeof_long_int=0
36667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36671 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36672 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36676 cat >>confdefs.h <<_ACEOF
36677 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36681 { echo "$as_me:$LINENO: checking for long long int" >&5
36682 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36683 if test "${ac_cv_type_long_long_int+set}" = set; then
36684 echo $ECHO_N "(cached) $ECHO_C" >&6
36686 cat >conftest.$ac_ext <<_ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36692 $ac_includes_default
36693 typedef long long int ac__type_new_;
36697 if ((ac__type_new_ *) 0)
36699 if (sizeof (ac__type_new_))
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709 *) ac_try_echo=$ac_try;;
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712 (eval "$ac_compile") 2>conftest.er1
36714 grep -v '^ *+' conftest.er1 >conftest.err
36716 cat conftest.err >&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && {
36719 test -z "$ac_c_werror_flag" ||
36720 test ! -s conftest.err
36721 } && test -s conftest.$ac_objext; then
36722 ac_cv_type_long_long_int=yes
36724 echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36727 ac_cv_type_long_long_int=no
36730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36732 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36733 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36735 # The cast to long int works around a bug in the HP C Compiler
36736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36738 # This bug is HP SR number 8606223364.
36739 { echo "$as_me:$LINENO: checking size of long long int" >&5
36740 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36741 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36742 echo $ECHO_N "(cached) $ECHO_C" >&6
36744 if test "$cross_compiling" = yes; then
36745 # Depending upon the size, compute the lo and hi bounds.
36746 cat >conftest.$ac_ext <<_ACEOF
36749 cat confdefs.h >>conftest.$ac_ext
36750 cat >>conftest.$ac_ext <<_ACEOF
36751 /* end confdefs.h. */
36752 $ac_includes_default
36753 typedef long long int ac__type_sizeof_;
36757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36764 rm -f conftest.$ac_objext
36765 if { (ac_try="$ac_compile"
36766 case "(($ac_try" in
36767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36768 *) ac_try_echo=$ac_try;;
36770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36771 (eval "$ac_compile") 2>conftest.er1
36773 grep -v '^ *+' conftest.er1 >conftest.err
36775 cat conftest.err >&5
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); } && {
36778 test -z "$ac_c_werror_flag" ||
36779 test ! -s conftest.err
36780 } && test -s conftest.$ac_objext; then
36783 cat >conftest.$ac_ext <<_ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h. */
36789 $ac_includes_default
36790 typedef long long int ac__type_sizeof_;
36794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36801 rm -f conftest.$ac_objext
36802 if { (ac_try="$ac_compile"
36803 case "(($ac_try" in
36804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36805 *) ac_try_echo=$ac_try;;
36807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36808 (eval "$ac_compile") 2>conftest.er1
36810 grep -v '^ *+' conftest.er1 >conftest.err
36812 cat conftest.err >&5
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } && {
36815 test -z "$ac_c_werror_flag" ||
36816 test ! -s conftest.err
36817 } && test -s conftest.$ac_objext; then
36818 ac_hi=$ac_mid; break
36820 echo "$as_me: failed program was:" >&5
36821 sed 's/^/| /' conftest.$ac_ext >&5
36823 ac_lo=`expr $ac_mid + 1`
36824 if test $ac_lo -le $ac_mid; then
36828 ac_mid=`expr 2 '*' $ac_mid + 1`
36831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36837 cat >conftest.$ac_ext <<_ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h. */
36843 $ac_includes_default
36844 typedef long long int ac__type_sizeof_;
36848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36855 rm -f conftest.$ac_objext
36856 if { (ac_try="$ac_compile"
36857 case "(($ac_try" in
36858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859 *) ac_try_echo=$ac_try;;
36861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36862 (eval "$ac_compile") 2>conftest.er1
36864 grep -v '^ *+' conftest.er1 >conftest.err
36866 cat conftest.err >&5
36867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 (exit $ac_status); } && {
36869 test -z "$ac_c_werror_flag" ||
36870 test ! -s conftest.err
36871 } && test -s conftest.$ac_objext; then
36874 cat >conftest.$ac_ext <<_ACEOF
36877 cat confdefs.h >>conftest.$ac_ext
36878 cat >>conftest.$ac_ext <<_ACEOF
36879 /* end confdefs.h. */
36880 $ac_includes_default
36881 typedef long long int ac__type_sizeof_;
36885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36892 rm -f conftest.$ac_objext
36893 if { (ac_try="$ac_compile"
36894 case "(($ac_try" in
36895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36896 *) ac_try_echo=$ac_try;;
36898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36899 (eval "$ac_compile") 2>conftest.er1
36901 grep -v '^ *+' conftest.er1 >conftest.err
36903 cat conftest.err >&5
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); } && {
36906 test -z "$ac_c_werror_flag" ||
36907 test ! -s conftest.err
36908 } && test -s conftest.$ac_objext; then
36909 ac_lo=$ac_mid; break
36911 echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36914 ac_hi=`expr '(' $ac_mid ')' - 1`
36915 if test $ac_mid -le $ac_hi; then
36919 ac_mid=`expr 2 '*' $ac_mid`
36922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36935 # Binary search between lo and hi bounds.
36936 while test "x$ac_lo" != "x$ac_hi"; do
36937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36938 cat >conftest.$ac_ext <<_ACEOF
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h. */
36944 $ac_includes_default
36945 typedef long long int ac__type_sizeof_;
36949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36956 rm -f conftest.$ac_objext
36957 if { (ac_try="$ac_compile"
36958 case "(($ac_try" in
36959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36960 *) ac_try_echo=$ac_try;;
36962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36963 (eval "$ac_compile") 2>conftest.er1
36965 grep -v '^ *+' conftest.er1 >conftest.err
36967 cat conftest.err >&5
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); } && {
36970 test -z "$ac_c_werror_flag" ||
36971 test ! -s conftest.err
36972 } && test -s conftest.$ac_objext; then
36975 echo "$as_me: failed program was:" >&5
36976 sed 's/^/| /' conftest.$ac_ext >&5
36978 ac_lo=`expr '(' $ac_mid ')' + 1`
36981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36984 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36985 '') if test "$ac_cv_type_long_long_int" = yes; then
36986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36987 See \`config.log' for more details." >&5
36988 echo "$as_me: error: cannot compute sizeof (long long int)
36989 See \`config.log' for more details." >&2;}
36990 { (exit 77); exit 77; }; }
36992 ac_cv_sizeof_long_long_int=0
36996 cat >conftest.$ac_ext <<_ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h. */
37002 $ac_includes_default
37003 typedef long long int ac__type_sizeof_;
37004 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37005 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37007 #include <stdlib.h>
37012 FILE *f = fopen ("conftest.val", "w");
37015 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37017 long int i = longval ();
37018 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37020 fprintf (f, "%ld\n", i);
37024 unsigned long int i = ulongval ();
37025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37027 fprintf (f, "%lu\n", i);
37029 return ferror (f) || fclose (f) != 0;
37035 rm -f conftest$ac_exeext
37036 if { (ac_try="$ac_link"
37037 case "(($ac_try" in
37038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039 *) ac_try_echo=$ac_try;;
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042 (eval "$ac_link") 2>&5
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37046 { (case "(($ac_try" in
37047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37048 *) ac_try_echo=$ac_try;;
37050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37051 (eval "$ac_try") 2>&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; }; then
37055 ac_cv_sizeof_long_long_int=`cat conftest.val`
37057 echo "$as_me: program exited with status $ac_status" >&5
37058 echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37061 ( exit $ac_status )
37062 if test "$ac_cv_type_long_long_int" = yes; then
37063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37064 See \`config.log' for more details." >&5
37065 echo "$as_me: error: cannot compute sizeof (long long int)
37066 See \`config.log' for more details." >&2;}
37067 { (exit 77); exit 77; }; }
37069 ac_cv_sizeof_long_long_int=0
37072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37077 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37081 cat >>confdefs.h <<_ACEOF
37082 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37086 { echo "$as_me:$LINENO: checking for int *" >&5
37087 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37088 if test "${ac_cv_type_int_p+set}" = set; then
37089 echo $ECHO_N "(cached) $ECHO_C" >&6
37091 cat >conftest.$ac_ext <<_ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h. */
37097 $ac_includes_default
37098 typedef int * ac__type_new_;
37102 if ((ac__type_new_ *) 0)
37104 if (sizeof (ac__type_new_))
37110 rm -f conftest.$ac_objext
37111 if { (ac_try="$ac_compile"
37112 case "(($ac_try" in
37113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114 *) ac_try_echo=$ac_try;;
37116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117 (eval "$ac_compile") 2>conftest.er1
37119 grep -v '^ *+' conftest.er1 >conftest.err
37121 cat conftest.err >&5
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } && {
37124 test -z "$ac_c_werror_flag" ||
37125 test ! -s conftest.err
37126 } && test -s conftest.$ac_objext; then
37127 ac_cv_type_int_p=yes
37129 echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37132 ac_cv_type_int_p=no
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37137 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37138 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37140 # The cast to long int works around a bug in the HP C Compiler
37141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37143 # This bug is HP SR number 8606223364.
37144 { echo "$as_me:$LINENO: checking size of int *" >&5
37145 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37146 if test "${ac_cv_sizeof_int_p+set}" = set; then
37147 echo $ECHO_N "(cached) $ECHO_C" >&6
37149 if test "$cross_compiling" = yes; then
37150 # Depending upon the size, compute the lo and hi bounds.
37151 cat >conftest.$ac_ext <<_ACEOF
37154 cat confdefs.h >>conftest.$ac_ext
37155 cat >>conftest.$ac_ext <<_ACEOF
37156 /* end confdefs.h. */
37157 $ac_includes_default
37158 typedef int * ac__type_sizeof_;
37162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37169 rm -f conftest.$ac_objext
37170 if { (ac_try="$ac_compile"
37171 case "(($ac_try" in
37172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37173 *) ac_try_echo=$ac_try;;
37175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37176 (eval "$ac_compile") 2>conftest.er1
37178 grep -v '^ *+' conftest.er1 >conftest.err
37180 cat conftest.err >&5
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); } && {
37183 test -z "$ac_c_werror_flag" ||
37184 test ! -s conftest.err
37185 } && test -s conftest.$ac_objext; then
37188 cat >conftest.$ac_ext <<_ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h. */
37194 $ac_includes_default
37195 typedef int * ac__type_sizeof_;
37199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210 *) ac_try_echo=$ac_try;;
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213 (eval "$ac_compile") 2>conftest.er1
37215 grep -v '^ *+' conftest.er1 >conftest.err
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } && {
37220 test -z "$ac_c_werror_flag" ||
37221 test ! -s conftest.err
37222 } && test -s conftest.$ac_objext; then
37223 ac_hi=$ac_mid; break
37225 echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37228 ac_lo=`expr $ac_mid + 1`
37229 if test $ac_lo -le $ac_mid; then
37233 ac_mid=`expr 2 '*' $ac_mid + 1`
37236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37239 echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37242 cat >conftest.$ac_ext <<_ACEOF
37245 cat confdefs.h >>conftest.$ac_ext
37246 cat >>conftest.$ac_ext <<_ACEOF
37247 /* end confdefs.h. */
37248 $ac_includes_default
37249 typedef int * ac__type_sizeof_;
37253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37260 rm -f conftest.$ac_objext
37261 if { (ac_try="$ac_compile"
37262 case "(($ac_try" in
37263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37264 *) ac_try_echo=$ac_try;;
37266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37267 (eval "$ac_compile") 2>conftest.er1
37269 grep -v '^ *+' conftest.er1 >conftest.err
37271 cat conftest.err >&5
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); } && {
37274 test -z "$ac_c_werror_flag" ||
37275 test ! -s conftest.err
37276 } && test -s conftest.$ac_objext; then
37279 cat >conftest.$ac_ext <<_ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h. */
37285 $ac_includes_default
37286 typedef int * ac__type_sizeof_;
37290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37297 rm -f conftest.$ac_objext
37298 if { (ac_try="$ac_compile"
37299 case "(($ac_try" in
37300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37301 *) ac_try_echo=$ac_try;;
37303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37304 (eval "$ac_compile") 2>conftest.er1
37306 grep -v '^ *+' conftest.er1 >conftest.err
37308 cat conftest.err >&5
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); } && {
37311 test -z "$ac_c_werror_flag" ||
37312 test ! -s conftest.err
37313 } && test -s conftest.$ac_objext; then
37314 ac_lo=$ac_mid; break
37316 echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37319 ac_hi=`expr '(' $ac_mid ')' - 1`
37320 if test $ac_mid -le $ac_hi; then
37324 ac_mid=`expr 2 '*' $ac_mid`
37327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37330 echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37340 # Binary search between lo and hi bounds.
37341 while test "x$ac_lo" != "x$ac_hi"; do
37342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37343 cat >conftest.$ac_ext <<_ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h. */
37349 $ac_includes_default
37350 typedef int * ac__type_sizeof_;
37354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37361 rm -f conftest.$ac_objext
37362 if { (ac_try="$ac_compile"
37363 case "(($ac_try" in
37364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37365 *) ac_try_echo=$ac_try;;
37367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37368 (eval "$ac_compile") 2>conftest.er1
37370 grep -v '^ *+' conftest.er1 >conftest.err
37372 cat conftest.err >&5
37373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374 (exit $ac_status); } && {
37375 test -z "$ac_c_werror_flag" ||
37376 test ! -s conftest.err
37377 } && test -s conftest.$ac_objext; then
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 ac_lo=`expr '(' $ac_mid ')' + 1`
37386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37389 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37390 '') if test "$ac_cv_type_int_p" = yes; then
37391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37392 See \`config.log' for more details." >&5
37393 echo "$as_me: error: cannot compute sizeof (int *)
37394 See \`config.log' for more details." >&2;}
37395 { (exit 77); exit 77; }; }
37397 ac_cv_sizeof_int_p=0
37401 cat >conftest.$ac_ext <<_ACEOF
37404 cat confdefs.h >>conftest.$ac_ext
37405 cat >>conftest.$ac_ext <<_ACEOF
37406 /* end confdefs.h. */
37407 $ac_includes_default
37408 typedef int * ac__type_sizeof_;
37409 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37410 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37412 #include <stdlib.h>
37417 FILE *f = fopen ("conftest.val", "w");
37420 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37422 long int i = longval ();
37423 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37425 fprintf (f, "%ld\n", i);
37429 unsigned long int i = ulongval ();
37430 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37432 fprintf (f, "%lu\n", i);
37434 return ferror (f) || fclose (f) != 0;
37440 rm -f conftest$ac_exeext
37441 if { (ac_try="$ac_link"
37442 case "(($ac_try" in
37443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37444 *) ac_try_echo=$ac_try;;
37446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37447 (eval "$ac_link") 2>&5
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37451 { (case "(($ac_try" in
37452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37453 *) ac_try_echo=$ac_try;;
37455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37456 (eval "$ac_try") 2>&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_cv_sizeof_int_p=`cat conftest.val`
37462 echo "$as_me: program exited with status $ac_status" >&5
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37466 ( exit $ac_status )
37467 if test "$ac_cv_type_int_p" = yes; then
37468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37469 See \`config.log' for more details." >&5
37470 echo "$as_me: error: cannot compute sizeof (int *)
37471 See \`config.log' for more details." >&2;}
37472 { (exit 77); exit 77; }; }
37474 ac_cv_sizeof_int_p=0
37477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37481 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37482 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37486 cat >>confdefs.h <<_ACEOF
37487 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37492 { echo "$as_me:$LINENO: checking for u_int type" >&5
37493 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37494 if test "${ac_cv_have_u_int+set}" = set; then
37495 echo $ECHO_N "(cached) $ECHO_C" >&6
37498 cat >conftest.$ac_ext <<_ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h. */
37505 #include <sys/types.h>
37517 rm -f conftest.$ac_objext
37518 if { (ac_try="$ac_compile"
37519 case "(($ac_try" in
37520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37521 *) ac_try_echo=$ac_try;;
37523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37524 (eval "$ac_compile") 2>conftest.er1
37526 grep -v '^ *+' conftest.er1 >conftest.err
37528 cat conftest.err >&5
37529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530 (exit $ac_status); } && {
37531 test -z "$ac_c_werror_flag" ||
37532 test ! -s conftest.err
37533 } && test -s conftest.$ac_objext; then
37535 ac_cv_have_u_int="yes"
37538 echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37542 ac_cv_have_u_int="no"
37547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37551 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37552 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37553 if test "x$ac_cv_have_u_int" = "xyes" ; then
37554 cat >>confdefs.h <<\_ACEOF
37555 #define HAVE_U_INT 1
37561 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37562 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37563 if test "${ac_cv_have_intmax_t+set}" = set; then
37564 echo $ECHO_N "(cached) $ECHO_C" >&6
37567 cat >conftest.$ac_ext <<_ACEOF
37570 cat confdefs.h >>conftest.$ac_ext
37571 cat >>conftest.$ac_ext <<_ACEOF
37572 /* end confdefs.h. */
37574 #include <sys/types.h>
37586 rm -f conftest.$ac_objext
37587 if { (ac_try="$ac_compile"
37588 case "(($ac_try" in
37589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37590 *) ac_try_echo=$ac_try;;
37592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37593 (eval "$ac_compile") 2>conftest.er1
37595 grep -v '^ *+' conftest.er1 >conftest.err
37597 cat conftest.err >&5
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } && {
37600 test -z "$ac_c_werror_flag" ||
37601 test ! -s conftest.err
37602 } && test -s conftest.$ac_objext; then
37604 ac_cv_have_intmax_t="yes"
37607 echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37611 cat >conftest.$ac_ext <<_ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h. */
37618 #include <stdint.h>
37630 rm -f conftest.$ac_objext
37631 if { (ac_try="$ac_compile"
37632 case "(($ac_try" in
37633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634 *) ac_try_echo=$ac_try;;
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637 (eval "$ac_compile") 2>conftest.er1
37639 grep -v '^ *+' conftest.er1 >conftest.err
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } && {
37644 test -z "$ac_c_werror_flag" ||
37645 test ! -s conftest.err
37646 } && test -s conftest.$ac_objext; then
37648 ac_cv_have_intmax_t="yes"
37651 echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37655 ac_cv_have_intmax_t="no"
37660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37669 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37670 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37671 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37672 cat >>confdefs.h <<\_ACEOF
37673 #define HAVE_INTMAX_T 1
37679 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37680 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37681 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37685 cat >conftest.$ac_ext <<_ACEOF
37688 cat confdefs.h >>conftest.$ac_ext
37689 cat >>conftest.$ac_ext <<_ACEOF
37690 /* end confdefs.h. */
37692 #include <sys/types.h>
37698 u_intmax_t a; a = 1;
37704 rm -f conftest.$ac_objext
37705 if { (ac_try="$ac_compile"
37706 case "(($ac_try" in
37707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37708 *) ac_try_echo=$ac_try;;
37710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37711 (eval "$ac_compile") 2>conftest.er1
37713 grep -v '^ *+' conftest.er1 >conftest.err
37715 cat conftest.err >&5
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); } && {
37718 test -z "$ac_c_werror_flag" ||
37719 test ! -s conftest.err
37720 } && test -s conftest.$ac_objext; then
37722 ac_cv_have_u_intmax_t="yes"
37725 echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37729 cat >conftest.$ac_ext <<_ACEOF
37732 cat confdefs.h >>conftest.$ac_ext
37733 cat >>conftest.$ac_ext <<_ACEOF
37734 /* end confdefs.h. */
37736 #include <stdint.h>
37742 u_intmax_t a; a = 1;
37748 rm -f conftest.$ac_objext
37749 if { (ac_try="$ac_compile"
37750 case "(($ac_try" in
37751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37752 *) ac_try_echo=$ac_try;;
37754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37755 (eval "$ac_compile") 2>conftest.er1
37757 grep -v '^ *+' conftest.er1 >conftest.err
37759 cat conftest.err >&5
37760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761 (exit $ac_status); } && {
37762 test -z "$ac_c_werror_flag" ||
37763 test ! -s conftest.err
37764 } && test -s conftest.$ac_objext; then
37766 ac_cv_have_u_intmax_t="yes"
37769 echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37773 ac_cv_have_u_intmax_t="no"
37778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37788 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37789 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37790 cat >>confdefs.h <<\_ACEOF
37791 #define HAVE_U_INTMAX_T 1
37797 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37798 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37799 if test "${ac_cv_have_intxx_t+set}" = set; then
37800 echo $ECHO_N "(cached) $ECHO_C" >&6
37803 cat >conftest.$ac_ext <<_ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h. */
37810 #include <sys/types.h>
37816 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37822 rm -f conftest.$ac_objext
37823 if { (ac_try="$ac_compile"
37824 case "(($ac_try" in
37825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37826 *) ac_try_echo=$ac_try;;
37828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37829 (eval "$ac_compile") 2>conftest.er1
37831 grep -v '^ *+' conftest.er1 >conftest.err
37833 cat conftest.err >&5
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); } && {
37836 test -z "$ac_c_werror_flag" ||
37837 test ! -s conftest.err
37838 } && test -s conftest.$ac_objext; then
37840 ac_cv_have_intxx_t="yes"
37843 echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37847 ac_cv_have_intxx_t="no"
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37856 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37857 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37858 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37859 cat >>confdefs.h <<\_ACEOF
37860 #define HAVE_INTXX_T 1
37866 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37867 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37868 if test "${ac_cv_have_int64_t+set}" = set; then
37869 echo $ECHO_N "(cached) $ECHO_C" >&6
37872 cat >conftest.$ac_ext <<_ACEOF
37875 cat confdefs.h >>conftest.$ac_ext
37876 cat >>conftest.$ac_ext <<_ACEOF
37877 /* end confdefs.h. */
37879 #include <sys/types.h>
37891 rm -f conftest.$ac_objext
37892 if { (ac_try="$ac_compile"
37893 case "(($ac_try" in
37894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37895 *) ac_try_echo=$ac_try;;
37897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37898 (eval "$ac_compile") 2>conftest.er1
37900 grep -v '^ *+' conftest.er1 >conftest.err
37902 cat conftest.err >&5
37903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904 (exit $ac_status); } && {
37905 test -z "$ac_c_werror_flag" ||
37906 test ! -s conftest.err
37907 } && test -s conftest.$ac_objext; then
37909 ac_cv_have_int64_t="yes"
37912 echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37916 ac_cv_have_int64_t="no"
37921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37925 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37926 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37927 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37928 cat >>confdefs.h <<\_ACEOF
37929 #define HAVE_INT64_T 1
37935 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37936 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37937 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37938 echo $ECHO_N "(cached) $ECHO_C" >&6
37941 cat >conftest.$ac_ext <<_ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h. */
37948 #include <sys/types.h>
37954 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37960 rm -f conftest.$ac_objext
37961 if { (ac_try="$ac_compile"
37962 case "(($ac_try" in
37963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37964 *) ac_try_echo=$ac_try;;
37966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37967 (eval "$ac_compile") 2>conftest.er1
37969 grep -v '^ *+' conftest.er1 >conftest.err
37971 cat conftest.err >&5
37972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973 (exit $ac_status); } && {
37974 test -z "$ac_c_werror_flag" ||
37975 test ! -s conftest.err
37976 } && test -s conftest.$ac_objext; then
37978 ac_cv_have_u_intxx_t="yes"
37981 echo "$as_me: failed program was:" >&5
37982 sed 's/^/| /' conftest.$ac_ext >&5
37985 ac_cv_have_u_intxx_t="no"
37990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37994 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37995 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37996 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37997 cat >>confdefs.h <<\_ACEOF
37998 #define HAVE_U_INTXX_T 1
38004 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
38005 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
38006 if test "${ac_cv_have_u_int64_t+set}" = set; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38010 cat >conftest.$ac_ext <<_ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h. */
38017 #include <sys/types.h>
38023 u_int64_t a; a = 1;
38029 rm -f conftest.$ac_objext
38030 if { (ac_try="$ac_compile"
38031 case "(($ac_try" in
38032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38033 *) ac_try_echo=$ac_try;;
38035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38036 (eval "$ac_compile") 2>conftest.er1
38038 grep -v '^ *+' conftest.er1 >conftest.err
38040 cat conftest.err >&5
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); } && {
38043 test -z "$ac_c_werror_flag" ||
38044 test ! -s conftest.err
38045 } && test -s conftest.$ac_objext; then
38047 ac_cv_have_u_int64_t="yes"
38050 echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38054 ac_cv_have_u_int64_t="no"
38059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38063 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38064 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38065 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38066 cat >>confdefs.h <<\_ACEOF
38067 #define HAVE_U_INT64_T 1
38073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38074 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38076 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38077 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38078 cat >conftest.$ac_ext <<_ACEOF
38081 cat confdefs.h >>conftest.$ac_ext
38082 cat >>conftest.$ac_ext <<_ACEOF
38083 /* end confdefs.h. */
38085 #include <sys/bitypes.h>
38091 int8_t a; int16_t b; int32_t c;
38092 u_int8_t e; u_int16_t f; u_int32_t g;
38093 a = b = c = e = f = g = 1;
38099 rm -f conftest.$ac_objext
38100 if { (ac_try="$ac_compile"
38101 case "(($ac_try" in
38102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38103 *) ac_try_echo=$ac_try;;
38105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38106 (eval "$ac_compile") 2>conftest.er1
38108 grep -v '^ *+' conftest.er1 >conftest.err
38110 cat conftest.err >&5
38111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112 (exit $ac_status); } && {
38113 test -z "$ac_c_werror_flag" ||
38114 test ! -s conftest.err
38115 } && test -s conftest.$ac_objext; then
38117 cat >>confdefs.h <<\_ACEOF
38118 #define HAVE_U_INTXX_T 1
38121 cat >>confdefs.h <<\_ACEOF
38122 #define HAVE_INTXX_T 1
38125 cat >>confdefs.h <<\_ACEOF
38126 #define HAVE_SYS_BITYPES_H 1
38129 { echo "$as_me:$LINENO: result: yes" >&5
38130 echo "${ECHO_T}yes" >&6; }
38133 echo "$as_me: failed program was:" >&5
38134 sed 's/^/| /' conftest.$ac_ext >&5
38137 { echo "$as_me:$LINENO: result: no" >&5
38138 echo "${ECHO_T}no" >&6; }
38143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38146 if test -z "$have_u_intxx_t" ; then
38147 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38148 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38149 if test "${ac_cv_have_uintxx_t+set}" = set; then
38150 echo $ECHO_N "(cached) $ECHO_C" >&6
38153 cat >conftest.$ac_ext <<_ACEOF
38156 cat confdefs.h >>conftest.$ac_ext
38157 cat >>conftest.$ac_ext <<_ACEOF
38158 /* end confdefs.h. */
38160 #include <sys/types.h>
38166 uint8_t a; uint16_t b;
38167 uint32_t c; a = b = c = 1;
38173 rm -f conftest.$ac_objext
38174 if { (ac_try="$ac_compile"
38175 case "(($ac_try" in
38176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38177 *) ac_try_echo=$ac_try;;
38179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38180 (eval "$ac_compile") 2>conftest.er1
38182 grep -v '^ *+' conftest.er1 >conftest.err
38184 cat conftest.err >&5
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); } && {
38187 test -z "$ac_c_werror_flag" ||
38188 test ! -s conftest.err
38189 } && test -s conftest.$ac_objext; then
38191 ac_cv_have_uintxx_t="yes"
38194 echo "$as_me: failed program was:" >&5
38195 sed 's/^/| /' conftest.$ac_ext >&5
38198 ac_cv_have_uintxx_t="no"
38203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38207 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38208 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38209 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38210 cat >>confdefs.h <<\_ACEOF
38211 #define HAVE_UINTXX_T 1
38217 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38218 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38220 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38221 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38222 cat >conftest.$ac_ext <<_ACEOF
38225 cat confdefs.h >>conftest.$ac_ext
38226 cat >>conftest.$ac_ext <<_ACEOF
38227 /* end confdefs.h. */
38229 #include <sys/bitypes.h>
38235 int64_t a; u_int64_t b;
38242 rm -f conftest.$ac_objext
38243 if { (ac_try="$ac_compile"
38244 case "(($ac_try" in
38245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38246 *) ac_try_echo=$ac_try;;
38248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38249 (eval "$ac_compile") 2>conftest.er1
38251 grep -v '^ *+' conftest.er1 >conftest.err
38253 cat conftest.err >&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } && {
38256 test -z "$ac_c_werror_flag" ||
38257 test ! -s conftest.err
38258 } && test -s conftest.$ac_objext; then
38260 cat >>confdefs.h <<\_ACEOF
38261 #define HAVE_U_INT64_T 1
38264 cat >>confdefs.h <<\_ACEOF
38265 #define HAVE_INT64_T 1
38268 { echo "$as_me:$LINENO: result: yes" >&5
38269 echo "${ECHO_T}yes" >&6; }
38272 echo "$as_me: failed program was:" >&5
38273 sed 's/^/| /' conftest.$ac_ext >&5
38276 { echo "$as_me:$LINENO: result: no" >&5
38277 echo "${ECHO_T}no" >&6; }
38282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38285 if (test -z "$have_uintxx_t" && \
38286 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38288 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38289 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38290 cat >conftest.$ac_ext <<_ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h. */
38297 #include <sys/bitypes.h>
38303 uint8_t a; uint16_t b;
38304 uint32_t c; a = b = c = 1;
38310 rm -f conftest.$ac_objext
38311 if { (ac_try="$ac_compile"
38312 case "(($ac_try" in
38313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314 *) ac_try_echo=$ac_try;;
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317 (eval "$ac_compile") 2>conftest.er1
38319 grep -v '^ *+' conftest.er1 >conftest.err
38321 cat conftest.err >&5
38322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323 (exit $ac_status); } && {
38324 test -z "$ac_c_werror_flag" ||
38325 test ! -s conftest.err
38326 } && test -s conftest.$ac_objext; then
38328 cat >>confdefs.h <<\_ACEOF
38329 #define HAVE_UINTXX_T 1
38332 { echo "$as_me:$LINENO: result: yes" >&5
38333 echo "${ECHO_T}yes" >&6; }
38336 echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38340 { echo "$as_me:$LINENO: result: no" >&5
38341 echo "${ECHO_T}no" >&6; }
38346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38382 echo $ECHO_N "(cached) $ECHO_C" >&6
38384 cat >conftest.$ac_ext <<_ACEOF
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h. */
38390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38392 #define $ac_func innocuous_$ac_func
38394 /* System header to define __stub macros and hopefully few prototypes,
38395 which can conflict with char $ac_func (); below.
38396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38397 <limits.h> exists even on freestanding compilers. */
38400 # include <limits.h>
38402 # include <assert.h>
38407 /* Override any GCC internal prototype to avoid an error.
38408 Use char because int might match the return type of a GCC
38409 builtin and then its argument prototype would still apply. */
38414 /* The GNU C library defines this for functions which it implements
38415 to always fail with ENOSYS. Some functions are actually named
38416 something starting with __ and the normal name is an alias. */
38417 #if defined __stub_$ac_func || defined __stub___$ac_func
38424 return $ac_func ();
38429 rm -f conftest.$ac_objext conftest$ac_exeext
38430 if { (ac_try="$ac_link"
38431 case "(($ac_try" in
38432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38433 *) ac_try_echo=$ac_try;;
38435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38436 (eval "$ac_link") 2>conftest.er1
38438 grep -v '^ *+' conftest.er1 >conftest.err
38440 cat conftest.err >&5
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); } && {
38443 test -z "$ac_c_werror_flag" ||
38444 test ! -s conftest.err
38445 } && test -s conftest$ac_exeext &&
38446 $as_test_x conftest$ac_exeext; then
38447 eval "$as_ac_var=yes"
38449 echo "$as_me: failed program was:" >&5
38450 sed 's/^/| /' conftest.$ac_ext >&5
38452 eval "$as_ac_var=no"
38455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38456 conftest$ac_exeext conftest.$ac_ext
38458 ac_res=`eval echo '${'$as_ac_var'}'`
38459 { echo "$as_me:$LINENO: result: $ac_res" >&5
38460 echo "${ECHO_T}$ac_res" >&6; }
38461 if test `eval echo '${'$as_ac_var'}'` = yes; then
38462 cat >>confdefs.h <<_ACEOF
38463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38467 echo 'configure: cannot find needed function.'; exit 1
38474 for ac_func in fchdir
38476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38480 echo $ECHO_N "(cached) $ECHO_C" >&6
38482 cat >conftest.$ac_ext <<_ACEOF
38485 cat confdefs.h >>conftest.$ac_ext
38486 cat >>conftest.$ac_ext <<_ACEOF
38487 /* end confdefs.h. */
38488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38490 #define $ac_func innocuous_$ac_func
38492 /* System header to define __stub macros and hopefully few prototypes,
38493 which can conflict with char $ac_func (); below.
38494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38495 <limits.h> exists even on freestanding compilers. */
38498 # include <limits.h>
38500 # include <assert.h>
38505 /* Override any GCC internal prototype to avoid an error.
38506 Use char because int might match the return type of a GCC
38507 builtin and then its argument prototype would still apply. */
38512 /* The GNU C library defines this for functions which it implements
38513 to always fail with ENOSYS. Some functions are actually named
38514 something starting with __ and the normal name is an alias. */
38515 #if defined __stub_$ac_func || defined __stub___$ac_func
38522 return $ac_func ();
38527 rm -f conftest.$ac_objext conftest$ac_exeext
38528 if { (ac_try="$ac_link"
38529 case "(($ac_try" in
38530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38531 *) ac_try_echo=$ac_try;;
38533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38534 (eval "$ac_link") 2>conftest.er1
38536 grep -v '^ *+' conftest.er1 >conftest.err
38538 cat conftest.err >&5
38539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540 (exit $ac_status); } && {
38541 test -z "$ac_c_werror_flag" ||
38542 test ! -s conftest.err
38543 } && test -s conftest$ac_exeext &&
38544 $as_test_x conftest$ac_exeext; then
38545 eval "$as_ac_var=yes"
38547 echo "$as_me: failed program was:" >&5
38548 sed 's/^/| /' conftest.$ac_ext >&5
38550 eval "$as_ac_var=no"
38553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38554 conftest$ac_exeext conftest.$ac_ext
38556 ac_res=`eval echo '${'$as_ac_var'}'`
38557 { echo "$as_me:$LINENO: result: $ac_res" >&5
38558 echo "${ECHO_T}$ac_res" >&6; }
38559 if test `eval echo '${'$as_ac_var'}'` = yes; then
38560 cat >>confdefs.h <<_ACEOF
38561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38563 cat >>confdefs.h <<\_ACEOF
38564 #define HAVE_FCHDIR 1
38571 for ac_func in strtoll
38573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38577 echo $ECHO_N "(cached) $ECHO_C" >&6
38579 cat >conftest.$ac_ext <<_ACEOF
38582 cat confdefs.h >>conftest.$ac_ext
38583 cat >>conftest.$ac_ext <<_ACEOF
38584 /* end confdefs.h. */
38585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38587 #define $ac_func innocuous_$ac_func
38589 /* System header to define __stub macros and hopefully few prototypes,
38590 which can conflict with char $ac_func (); below.
38591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38592 <limits.h> exists even on freestanding compilers. */
38595 # include <limits.h>
38597 # include <assert.h>
38602 /* Override any GCC internal prototype to avoid an error.
38603 Use char because int might match the return type of a GCC
38604 builtin and then its argument prototype would still apply. */
38609 /* The GNU C library defines this for functions which it implements
38610 to always fail with ENOSYS. Some functions are actually named
38611 something starting with __ and the normal name is an alias. */
38612 #if defined __stub_$ac_func || defined __stub___$ac_func
38619 return $ac_func ();
38624 rm -f conftest.$ac_objext conftest$ac_exeext
38625 if { (ac_try="$ac_link"
38626 case "(($ac_try" in
38627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38628 *) ac_try_echo=$ac_try;;
38630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38631 (eval "$ac_link") 2>conftest.er1
38633 grep -v '^ *+' conftest.er1 >conftest.err
38635 cat conftest.err >&5
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); } && {
38638 test -z "$ac_c_werror_flag" ||
38639 test ! -s conftest.err
38640 } && test -s conftest$ac_exeext &&
38641 $as_test_x conftest$ac_exeext; then
38642 eval "$as_ac_var=yes"
38644 echo "$as_me: failed program was:" >&5
38645 sed 's/^/| /' conftest.$ac_ext >&5
38647 eval "$as_ac_var=no"
38650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38651 conftest$ac_exeext conftest.$ac_ext
38653 ac_res=`eval echo '${'$as_ac_var'}'`
38654 { echo "$as_me:$LINENO: result: $ac_res" >&5
38655 echo "${ECHO_T}$ac_res" >&6; }
38656 if test `eval echo '${'$as_ac_var'}'` = yes; then
38657 cat >>confdefs.h <<_ACEOF
38658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38660 cat >>confdefs.h <<\_ACEOF
38661 #define HAVE_STRTOLL 1
38668 for ac_func in posix_fadvise
38670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38674 echo $ECHO_N "(cached) $ECHO_C" >&6
38676 cat >conftest.$ac_ext <<_ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h. */
38682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38684 #define $ac_func innocuous_$ac_func
38686 /* System header to define __stub macros and hopefully few prototypes,
38687 which can conflict with char $ac_func (); below.
38688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38689 <limits.h> exists even on freestanding compilers. */
38692 # include <limits.h>
38694 # include <assert.h>
38699 /* Override any GCC internal prototype to avoid an error.
38700 Use char because int might match the return type of a GCC
38701 builtin and then its argument prototype would still apply. */
38706 /* The GNU C library defines this for functions which it implements
38707 to always fail with ENOSYS. Some functions are actually named
38708 something starting with __ and the normal name is an alias. */
38709 #if defined __stub_$ac_func || defined __stub___$ac_func
38716 return $ac_func ();
38721 rm -f conftest.$ac_objext conftest$ac_exeext
38722 if { (ac_try="$ac_link"
38723 case "(($ac_try" in
38724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38725 *) ac_try_echo=$ac_try;;
38727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38728 (eval "$ac_link") 2>conftest.er1
38730 grep -v '^ *+' conftest.er1 >conftest.err
38732 cat conftest.err >&5
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); } && {
38735 test -z "$ac_c_werror_flag" ||
38736 test ! -s conftest.err
38737 } && test -s conftest$ac_exeext &&
38738 $as_test_x conftest$ac_exeext; then
38739 eval "$as_ac_var=yes"
38741 echo "$as_me: failed program was:" >&5
38742 sed 's/^/| /' conftest.$ac_ext >&5
38744 eval "$as_ac_var=no"
38747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38748 conftest$ac_exeext conftest.$ac_ext
38750 ac_res=`eval echo '${'$as_ac_var'}'`
38751 { echo "$as_me:$LINENO: result: $ac_res" >&5
38752 echo "${ECHO_T}$ac_res" >&6; }
38753 if test `eval echo '${'$as_ac_var'}'` = yes; then
38754 cat >>confdefs.h <<_ACEOF
38755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38762 for ac_func in fdatasync
38764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38768 echo $ECHO_N "(cached) $ECHO_C" >&6
38770 cat >conftest.$ac_ext <<_ACEOF
38773 cat confdefs.h >>conftest.$ac_ext
38774 cat >>conftest.$ac_ext <<_ACEOF
38775 /* end confdefs.h. */
38776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38778 #define $ac_func innocuous_$ac_func
38780 /* System header to define __stub macros and hopefully few prototypes,
38781 which can conflict with char $ac_func (); below.
38782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783 <limits.h> exists even on freestanding compilers. */
38786 # include <limits.h>
38788 # include <assert.h>
38793 /* Override any GCC internal prototype to avoid an error.
38794 Use char because int might match the return type of a GCC
38795 builtin and then its argument prototype would still apply. */
38800 /* The GNU C library defines this for functions which it implements
38801 to always fail with ENOSYS. Some functions are actually named
38802 something starting with __ and the normal name is an alias. */
38803 #if defined __stub_$ac_func || defined __stub___$ac_func
38810 return $ac_func ();
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (ac_try="$ac_link"
38817 case "(($ac_try" in
38818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38819 *) ac_try_echo=$ac_try;;
38821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38822 (eval "$ac_link") 2>conftest.er1
38824 grep -v '^ *+' conftest.er1 >conftest.err
38826 cat conftest.err >&5
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); } && {
38829 test -z "$ac_c_werror_flag" ||
38830 test ! -s conftest.err
38831 } && test -s conftest$ac_exeext &&
38832 $as_test_x conftest$ac_exeext; then
38833 eval "$as_ac_var=yes"
38835 echo "$as_me: failed program was:" >&5
38836 sed 's/^/| /' conftest.$ac_ext >&5
38838 eval "$as_ac_var=no"
38841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38842 conftest$ac_exeext conftest.$ac_ext
38844 ac_res=`eval echo '${'$as_ac_var'}'`
38845 { echo "$as_me:$LINENO: result: $ac_res" >&5
38846 echo "${ECHO_T}$ac_res" >&6; }
38847 if test `eval echo '${'$as_ac_var'}'` = yes; then
38848 cat >>confdefs.h <<_ACEOF
38849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38857 for ac_func in chflags
38859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38863 echo $ECHO_N "(cached) $ECHO_C" >&6
38865 cat >conftest.$ac_ext <<_ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h. */
38871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38873 #define $ac_func innocuous_$ac_func
38875 /* System header to define __stub macros and hopefully few prototypes,
38876 which can conflict with char $ac_func (); below.
38877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38878 <limits.h> exists even on freestanding compilers. */
38881 # include <limits.h>
38883 # include <assert.h>
38888 /* Override any GCC internal prototype to avoid an error.
38889 Use char because int might match the return type of a GCC
38890 builtin and then its argument prototype would still apply. */
38895 /* The GNU C library defines this for functions which it implements
38896 to always fail with ENOSYS. Some functions are actually named
38897 something starting with __ and the normal name is an alias. */
38898 #if defined __stub_$ac_func || defined __stub___$ac_func
38905 return $ac_func ();
38910 rm -f conftest.$ac_objext conftest$ac_exeext
38911 if { (ac_try="$ac_link"
38912 case "(($ac_try" in
38913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38914 *) ac_try_echo=$ac_try;;
38916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38917 (eval "$ac_link") 2>conftest.er1
38919 grep -v '^ *+' conftest.er1 >conftest.err
38921 cat conftest.err >&5
38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923 (exit $ac_status); } && {
38924 test -z "$ac_c_werror_flag" ||
38925 test ! -s conftest.err
38926 } && test -s conftest$ac_exeext &&
38927 $as_test_x conftest$ac_exeext; then
38928 eval "$as_ac_var=yes"
38930 echo "$as_me: failed program was:" >&5
38931 sed 's/^/| /' conftest.$ac_ext >&5
38933 eval "$as_ac_var=no"
38936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38937 conftest$ac_exeext conftest.$ac_ext
38939 ac_res=`eval echo '${'$as_ac_var'}'`
38940 { echo "$as_me:$LINENO: result: $ac_res" >&5
38941 echo "${ECHO_T}$ac_res" >&6; }
38942 if test `eval echo '${'$as_ac_var'}'` = yes; then
38943 cat >>confdefs.h <<_ACEOF
38944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38955 for ac_func in snprintf vsnprintf gethostid fseeko
38957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38961 echo $ECHO_N "(cached) $ECHO_C" >&6
38963 cat >conftest.$ac_ext <<_ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h. */
38969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38971 #define $ac_func innocuous_$ac_func
38973 /* System header to define __stub macros and hopefully few prototypes,
38974 which can conflict with char $ac_func (); below.
38975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38976 <limits.h> exists even on freestanding compilers. */
38979 # include <limits.h>
38981 # include <assert.h>
38986 /* Override any GCC internal prototype to avoid an error.
38987 Use char because int might match the return type of a GCC
38988 builtin and then its argument prototype would still apply. */
38993 /* The GNU C library defines this for functions which it implements
38994 to always fail with ENOSYS. Some functions are actually named
38995 something starting with __ and the normal name is an alias. */
38996 #if defined __stub_$ac_func || defined __stub___$ac_func
39003 return $ac_func ();
39008 rm -f conftest.$ac_objext conftest$ac_exeext
39009 if { (ac_try="$ac_link"
39010 case "(($ac_try" in
39011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39012 *) ac_try_echo=$ac_try;;
39014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39015 (eval "$ac_link") 2>conftest.er1
39017 grep -v '^ *+' conftest.er1 >conftest.err
39019 cat conftest.err >&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); } && {
39022 test -z "$ac_c_werror_flag" ||
39023 test ! -s conftest.err
39024 } && test -s conftest$ac_exeext &&
39025 $as_test_x conftest$ac_exeext; then
39026 eval "$as_ac_var=yes"
39028 echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39031 eval "$as_ac_var=no"
39034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39035 conftest$ac_exeext conftest.$ac_ext
39037 ac_res=`eval echo '${'$as_ac_var'}'`
39038 { echo "$as_me:$LINENO: result: $ac_res" >&5
39039 echo "${ECHO_T}$ac_res" >&6; }
39040 if test `eval echo '${'$as_ac_var'}'` = yes; then
39041 cat >>confdefs.h <<_ACEOF
39042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39049 { echo "$as_me:$LINENO: checking for va_copy" >&5
39050 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39051 if test "${ba_cv_va_copy+set}" = set; then
39052 echo $ECHO_N "(cached) $ECHO_C" >&6
39055 cat >conftest.$ac_ext <<_ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h. */
39062 #include <stdarg.h>
39063 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39064 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39070 call_use_va_copy(1,2,3)
39076 rm -f conftest.$ac_objext conftest$ac_exeext
39077 if { (ac_try="$ac_link"
39078 case "(($ac_try" in
39079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39080 *) ac_try_echo=$ac_try;;
39082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39083 (eval "$ac_link") 2>conftest.er1
39085 grep -v '^ *+' conftest.er1 >conftest.err
39087 cat conftest.err >&5
39088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39089 (exit $ac_status); } && {
39090 test -z "$ac_c_werror_flag" ||
39091 test ! -s conftest.err
39092 } && test -s conftest$ac_exeext &&
39093 $as_test_x conftest$ac_exeext; then
39098 echo "$as_me: failed program was:" >&5
39099 sed 's/^/| /' conftest.$ac_ext >&5
39107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39108 conftest$ac_exeext conftest.$ac_ext
39112 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39113 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39114 test $ba_cv_va_copy = yes &&
39115 cat >>confdefs.h <<\_ACEOF
39116 #define HAVE_VA_COPY 1
39124 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39130 echo $ECHO_N "(cached) $ECHO_C" >&6
39132 cat >conftest.$ac_ext <<_ACEOF
39135 cat confdefs.h >>conftest.$ac_ext
39136 cat >>conftest.$ac_ext <<_ACEOF
39137 /* end confdefs.h. */
39138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39140 #define $ac_func innocuous_$ac_func
39142 /* System header to define __stub macros and hopefully few prototypes,
39143 which can conflict with char $ac_func (); below.
39144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39145 <limits.h> exists even on freestanding compilers. */
39148 # include <limits.h>
39150 # include <assert.h>
39155 /* Override any GCC internal prototype to avoid an error.
39156 Use char because int might match the return type of a GCC
39157 builtin and then its argument prototype would still apply. */
39162 /* The GNU C library defines this for functions which it implements
39163 to always fail with ENOSYS. Some functions are actually named
39164 something starting with __ and the normal name is an alias. */
39165 #if defined __stub_$ac_func || defined __stub___$ac_func
39172 return $ac_func ();
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181 *) ac_try_echo=$ac_try;;
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184 (eval "$ac_link") 2>conftest.er1
39186 grep -v '^ *+' conftest.er1 >conftest.err
39188 cat conftest.err >&5
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); } && {
39191 test -z "$ac_c_werror_flag" ||
39192 test ! -s conftest.err
39193 } && test -s conftest$ac_exeext &&
39194 $as_test_x conftest$ac_exeext; then
39195 eval "$as_ac_var=yes"
39197 echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39200 eval "$as_ac_var=no"
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204 conftest$ac_exeext conftest.$ac_ext
39206 ac_res=`eval echo '${'$as_ac_var'}'`
39207 { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_var'}'` = yes; then
39210 cat >>confdefs.h <<_ACEOF
39211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39218 # If resolver functions are not in libc check for -lnsl or -lresolv.
39219 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39220 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39221 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39222 echo $ECHO_N "(cached) $ECHO_C" >&6
39224 cat >conftest.$ac_ext <<_ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h. */
39230 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39232 #define gethostbyname_r innocuous_gethostbyname_r
39234 /* System header to define __stub macros and hopefully few prototypes,
39235 which can conflict with char gethostbyname_r (); below.
39236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39237 <limits.h> exists even on freestanding compilers. */
39240 # include <limits.h>
39242 # include <assert.h>
39245 #undef gethostbyname_r
39247 /* Override any GCC internal prototype to avoid an error.
39248 Use char because int might match the return type of a GCC
39249 builtin and then its argument prototype would still apply. */
39253 char gethostbyname_r ();
39254 /* The GNU C library defines this for functions which it implements
39255 to always fail with ENOSYS. Some functions are actually named
39256 something starting with __ and the normal name is an alias. */
39257 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39264 return gethostbyname_r ();
39269 rm -f conftest.$ac_objext conftest$ac_exeext
39270 if { (ac_try="$ac_link"
39271 case "(($ac_try" in
39272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39273 *) ac_try_echo=$ac_try;;
39275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39276 (eval "$ac_link") 2>conftest.er1
39278 grep -v '^ *+' conftest.er1 >conftest.err
39280 cat conftest.err >&5
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); } && {
39283 test -z "$ac_c_werror_flag" ||
39284 test ! -s conftest.err
39285 } && test -s conftest$ac_exeext &&
39286 $as_test_x conftest$ac_exeext; then
39287 ac_cv_func_gethostbyname_r=yes
39289 echo "$as_me: failed program was:" >&5
39290 sed 's/^/| /' conftest.$ac_ext >&5
39292 ac_cv_func_gethostbyname_r=no
39295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39296 conftest$ac_exeext conftest.$ac_ext
39298 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39299 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39300 if test $ac_cv_func_gethostbyname_r = yes; then
39301 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39302 echo "${ECHO_T}using libc's resolver" >&6; }
39305 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39306 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39307 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39308 echo $ECHO_N "(cached) $ECHO_C" >&6
39310 ac_check_lib_save_LIBS=$LIBS
39312 cat >conftest.$ac_ext <<_ACEOF
39315 cat confdefs.h >>conftest.$ac_ext
39316 cat >>conftest.$ac_ext <<_ACEOF
39317 /* end confdefs.h. */
39319 /* Override any GCC internal prototype to avoid an error.
39320 Use char because int might match the return type of a GCC
39321 builtin and then its argument prototype would still apply. */
39325 char gethostbyname_r ();
39329 return gethostbyname_r ();
39334 rm -f conftest.$ac_objext conftest$ac_exeext
39335 if { (ac_try="$ac_link"
39336 case "(($ac_try" in
39337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39338 *) ac_try_echo=$ac_try;;
39340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39341 (eval "$ac_link") 2>conftest.er1
39343 grep -v '^ *+' conftest.er1 >conftest.err
39345 cat conftest.err >&5
39346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39347 (exit $ac_status); } && {
39348 test -z "$ac_c_werror_flag" ||
39349 test ! -s conftest.err
39350 } && test -s conftest$ac_exeext &&
39351 $as_test_x conftest$ac_exeext; then
39352 ac_cv_lib_nsl_gethostbyname_r=yes
39354 echo "$as_me: failed program was:" >&5
39355 sed 's/^/| /' conftest.$ac_ext >&5
39357 ac_cv_lib_nsl_gethostbyname_r=no
39360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39361 conftest$ac_exeext conftest.$ac_ext
39362 LIBS=$ac_check_lib_save_LIBS
39364 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39365 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39366 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39367 cat >>confdefs.h <<_ACEOF
39368 #define HAVE_LIBNSL 1
39376 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39377 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39378 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39379 echo $ECHO_N "(cached) $ECHO_C" >&6
39381 ac_check_lib_save_LIBS=$LIBS
39382 LIBS="-lresolv $LIBS"
39383 cat >conftest.$ac_ext <<_ACEOF
39386 cat confdefs.h >>conftest.$ac_ext
39387 cat >>conftest.$ac_ext <<_ACEOF
39388 /* end confdefs.h. */
39390 /* Override any GCC internal prototype to avoid an error.
39391 Use char because int might match the return type of a GCC
39392 builtin and then its argument prototype would still apply. */
39396 char gethostbyname_r ();
39400 return gethostbyname_r ();
39405 rm -f conftest.$ac_objext conftest$ac_exeext
39406 if { (ac_try="$ac_link"
39407 case "(($ac_try" in
39408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39409 *) ac_try_echo=$ac_try;;
39411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39412 (eval "$ac_link") 2>conftest.er1
39414 grep -v '^ *+' conftest.er1 >conftest.err
39416 cat conftest.err >&5
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); } && {
39419 test -z "$ac_c_werror_flag" ||
39420 test ! -s conftest.err
39421 } && test -s conftest$ac_exeext &&
39422 $as_test_x conftest$ac_exeext; then
39423 ac_cv_lib_resolv_gethostbyname_r=yes
39425 echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39428 ac_cv_lib_resolv_gethostbyname_r=no
39431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39432 conftest$ac_exeext conftest.$ac_ext
39433 LIBS=$ac_check_lib_save_LIBS
39435 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39436 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39437 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39438 cat >>confdefs.h <<_ACEOF
39439 #define HAVE_LIBRESOLV 1
39442 LIBS="-lresolv $LIBS"
39450 for ac_func in inet_pton
39452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39456 echo $ECHO_N "(cached) $ECHO_C" >&6
39458 cat >conftest.$ac_ext <<_ACEOF
39461 cat confdefs.h >>conftest.$ac_ext
39462 cat >>conftest.$ac_ext <<_ACEOF
39463 /* end confdefs.h. */
39464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39466 #define $ac_func innocuous_$ac_func
39468 /* System header to define __stub macros and hopefully few prototypes,
39469 which can conflict with char $ac_func (); below.
39470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39471 <limits.h> exists even on freestanding compilers. */
39474 # include <limits.h>
39476 # include <assert.h>
39481 /* Override any GCC internal prototype to avoid an error.
39482 Use char because int might match the return type of a GCC
39483 builtin and then its argument prototype would still apply. */
39488 /* The GNU C library defines this for functions which it implements
39489 to always fail with ENOSYS. Some functions are actually named
39490 something starting with __ and the normal name is an alias. */
39491 #if defined __stub_$ac_func || defined __stub___$ac_func
39498 return $ac_func ();
39503 rm -f conftest.$ac_objext conftest$ac_exeext
39504 if { (ac_try="$ac_link"
39505 case "(($ac_try" in
39506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39507 *) ac_try_echo=$ac_try;;
39509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39510 (eval "$ac_link") 2>conftest.er1
39512 grep -v '^ *+' conftest.er1 >conftest.err
39514 cat conftest.err >&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } && {
39517 test -z "$ac_c_werror_flag" ||
39518 test ! -s conftest.err
39519 } && test -s conftest$ac_exeext &&
39520 $as_test_x conftest$ac_exeext; then
39521 eval "$as_ac_var=yes"
39523 echo "$as_me: failed program was:" >&5
39524 sed 's/^/| /' conftest.$ac_ext >&5
39526 eval "$as_ac_var=no"
39529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39530 conftest$ac_exeext conftest.$ac_ext
39532 ac_res=`eval echo '${'$as_ac_var'}'`
39533 { echo "$as_me:$LINENO: result: $ac_res" >&5
39534 echo "${ECHO_T}$ac_res" >&6; }
39535 if test `eval echo '${'$as_ac_var'}'` = yes; then
39536 cat >>confdefs.h <<_ACEOF
39537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39539 cat >>confdefs.h <<\_ACEOF
39540 #define HAVE_INET_PTON 1
39547 for ac_func in inet_ntop
39549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39553 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 cat >conftest.$ac_ext <<_ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h. */
39561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39563 #define $ac_func innocuous_$ac_func
39565 /* System header to define __stub macros and hopefully few prototypes,
39566 which can conflict with char $ac_func (); below.
39567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39568 <limits.h> exists even on freestanding compilers. */
39571 # include <limits.h>
39573 # include <assert.h>
39578 /* Override any GCC internal prototype to avoid an error.
39579 Use char because int might match the return type of a GCC
39580 builtin and then its argument prototype would still apply. */
39585 /* The GNU C library defines this for functions which it implements
39586 to always fail with ENOSYS. Some functions are actually named
39587 something starting with __ and the normal name is an alias. */
39588 #if defined __stub_$ac_func || defined __stub___$ac_func
39595 return $ac_func ();
39600 rm -f conftest.$ac_objext conftest$ac_exeext
39601 if { (ac_try="$ac_link"
39602 case "(($ac_try" in
39603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39604 *) ac_try_echo=$ac_try;;
39606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39607 (eval "$ac_link") 2>conftest.er1
39609 grep -v '^ *+' conftest.er1 >conftest.err
39611 cat conftest.err >&5
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); } && {
39614 test -z "$ac_c_werror_flag" ||
39615 test ! -s conftest.err
39616 } && test -s conftest$ac_exeext &&
39617 $as_test_x conftest$ac_exeext; then
39618 eval "$as_ac_var=yes"
39620 echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39623 eval "$as_ac_var=no"
39626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39627 conftest$ac_exeext conftest.$ac_ext
39629 ac_res=`eval echo '${'$as_ac_var'}'`
39630 { echo "$as_me:$LINENO: result: $ac_res" >&5
39631 echo "${ECHO_T}$ac_res" >&6; }
39632 if test `eval echo '${'$as_ac_var'}'` = yes; then
39633 cat >>confdefs.h <<_ACEOF
39634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39636 cat >>confdefs.h <<\_ACEOF
39637 #define HAVE_INET_NTOP 1
39644 for ac_func in gethostbyname2
39646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39650 echo $ECHO_N "(cached) $ECHO_C" >&6
39652 cat >conftest.$ac_ext <<_ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h. */
39658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39660 #define $ac_func innocuous_$ac_func
39662 /* System header to define __stub macros and hopefully few prototypes,
39663 which can conflict with char $ac_func (); below.
39664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39665 <limits.h> exists even on freestanding compilers. */
39668 # include <limits.h>
39670 # include <assert.h>
39675 /* Override any GCC internal prototype to avoid an error.
39676 Use char because int might match the return type of a GCC
39677 builtin and then its argument prototype would still apply. */
39682 /* The GNU C library defines this for functions which it implements
39683 to always fail with ENOSYS. Some functions are actually named
39684 something starting with __ and the normal name is an alias. */
39685 #if defined __stub_$ac_func || defined __stub___$ac_func
39692 return $ac_func ();
39697 rm -f conftest.$ac_objext conftest$ac_exeext
39698 if { (ac_try="$ac_link"
39699 case "(($ac_try" in
39700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39701 *) ac_try_echo=$ac_try;;
39703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39704 (eval "$ac_link") 2>conftest.er1
39706 grep -v '^ *+' conftest.er1 >conftest.err
39708 cat conftest.err >&5
39709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710 (exit $ac_status); } && {
39711 test -z "$ac_c_werror_flag" ||
39712 test ! -s conftest.err
39713 } && test -s conftest$ac_exeext &&
39714 $as_test_x conftest$ac_exeext; then
39715 eval "$as_ac_var=yes"
39717 echo "$as_me: failed program was:" >&5
39718 sed 's/^/| /' conftest.$ac_ext >&5
39720 eval "$as_ac_var=no"
39723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39724 conftest$ac_exeext conftest.$ac_ext
39726 ac_res=`eval echo '${'$as_ac_var'}'`
39727 { echo "$as_me:$LINENO: result: $ac_res" >&5
39728 echo "${ECHO_T}$ac_res" >&6; }
39729 if test `eval echo '${'$as_ac_var'}'` = yes; then
39730 cat >>confdefs.h <<_ACEOF
39731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39733 cat >>confdefs.h <<\_ACEOF
39734 #define HAVE_GETHOSTBYNAME2 1
39741 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39742 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39743 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39744 echo $ECHO_N "(cached) $ECHO_C" >&6
39747 cat >conftest.$ac_ext <<_ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h. */
39754 #include <sys/socket.h>
39760 struct sockaddr s; s.sa_len;
39766 rm -f conftest.$ac_objext
39767 if { (ac_try="$ac_compile"
39768 case "(($ac_try" in
39769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39770 *) ac_try_echo=$ac_try;;
39772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39773 (eval "$ac_compile") 2>conftest.er1
39775 grep -v '^ *+' conftest.er1 >conftest.err
39777 cat conftest.err >&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); } && {
39780 test -z "$ac_c_werror_flag" ||
39781 test ! -s conftest.err
39782 } && test -s conftest.$ac_objext; then
39784 ac_cv_struct_sockaddr_sa_len=yes
39787 echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39790 ac_cv_struct_sockaddr_sa_len=no
39795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39799 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39800 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39802 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39804 cat >>confdefs.h <<\_ACEOF
39805 #define HAVE_SA_LEN 1
39811 for ac_func in strftime
39813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39817 echo $ECHO_N "(cached) $ECHO_C" >&6
39819 cat >conftest.$ac_ext <<_ACEOF
39822 cat confdefs.h >>conftest.$ac_ext
39823 cat >>conftest.$ac_ext <<_ACEOF
39824 /* end confdefs.h. */
39825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39827 #define $ac_func innocuous_$ac_func
39829 /* System header to define __stub macros and hopefully few prototypes,
39830 which can conflict with char $ac_func (); below.
39831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39832 <limits.h> exists even on freestanding compilers. */
39835 # include <limits.h>
39837 # include <assert.h>
39842 /* Override any GCC internal prototype to avoid an error.
39843 Use char because int might match the return type of a GCC
39844 builtin and then its argument prototype would still apply. */
39849 /* The GNU C library defines this for functions which it implements
39850 to always fail with ENOSYS. Some functions are actually named
39851 something starting with __ and the normal name is an alias. */
39852 #if defined __stub_$ac_func || defined __stub___$ac_func
39859 return $ac_func ();
39864 rm -f conftest.$ac_objext conftest$ac_exeext
39865 if { (ac_try="$ac_link"
39866 case "(($ac_try" in
39867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39868 *) ac_try_echo=$ac_try;;
39870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39871 (eval "$ac_link") 2>conftest.er1
39873 grep -v '^ *+' conftest.er1 >conftest.err
39875 cat conftest.err >&5
39876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39877 (exit $ac_status); } && {
39878 test -z "$ac_c_werror_flag" ||
39879 test ! -s conftest.err
39880 } && test -s conftest$ac_exeext &&
39881 $as_test_x conftest$ac_exeext; then
39882 eval "$as_ac_var=yes"
39884 echo "$as_me: failed program was:" >&5
39885 sed 's/^/| /' conftest.$ac_ext >&5
39887 eval "$as_ac_var=no"
39890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39891 conftest$ac_exeext conftest.$ac_ext
39893 ac_res=`eval echo '${'$as_ac_var'}'`
39894 { echo "$as_me:$LINENO: result: $ac_res" >&5
39895 echo "${ECHO_T}$ac_res" >&6; }
39896 if test `eval echo '${'$as_ac_var'}'` = yes; then
39897 cat >>confdefs.h <<_ACEOF
39898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39902 # strftime is in -lintl on SCO UNIX.
39903 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39904 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39905 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39906 echo $ECHO_N "(cached) $ECHO_C" >&6
39908 ac_check_lib_save_LIBS=$LIBS
39909 LIBS="-lintl $LIBS"
39910 cat >conftest.$ac_ext <<_ACEOF
39913 cat confdefs.h >>conftest.$ac_ext
39914 cat >>conftest.$ac_ext <<_ACEOF
39915 /* end confdefs.h. */
39917 /* Override any GCC internal prototype to avoid an error.
39918 Use char because int might match the return type of a GCC
39919 builtin and then its argument prototype would still apply. */
39927 return strftime ();
39932 rm -f conftest.$ac_objext conftest$ac_exeext
39933 if { (ac_try="$ac_link"
39934 case "(($ac_try" in
39935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39936 *) ac_try_echo=$ac_try;;
39938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39939 (eval "$ac_link") 2>conftest.er1
39941 grep -v '^ *+' conftest.er1 >conftest.err
39943 cat conftest.err >&5
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); } && {
39946 test -z "$ac_c_werror_flag" ||
39947 test ! -s conftest.err
39948 } && test -s conftest$ac_exeext &&
39949 $as_test_x conftest$ac_exeext; then
39950 ac_cv_lib_intl_strftime=yes
39952 echo "$as_me: failed program was:" >&5
39953 sed 's/^/| /' conftest.$ac_ext >&5
39955 ac_cv_lib_intl_strftime=no
39958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39959 conftest$ac_exeext conftest.$ac_ext
39960 LIBS=$ac_check_lib_save_LIBS
39962 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39963 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39964 if test $ac_cv_lib_intl_strftime = yes; then
39965 cat >>confdefs.h <<\_ACEOF
39966 #define HAVE_STRFTIME 1
39969 LIBS="-lintl $LIBS"
39976 for ac_func in vprintf
39978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39982 echo $ECHO_N "(cached) $ECHO_C" >&6
39984 cat >conftest.$ac_ext <<_ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h. */
39990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39992 #define $ac_func innocuous_$ac_func
39994 /* System header to define __stub macros and hopefully few prototypes,
39995 which can conflict with char $ac_func (); below.
39996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39997 <limits.h> exists even on freestanding compilers. */
40000 # include <limits.h>
40002 # include <assert.h>
40007 /* Override any GCC internal prototype to avoid an error.
40008 Use char because int might match the return type of a GCC
40009 builtin and then its argument prototype would still apply. */
40014 /* The GNU C library defines this for functions which it implements
40015 to always fail with ENOSYS. Some functions are actually named
40016 something starting with __ and the normal name is an alias. */
40017 #if defined __stub_$ac_func || defined __stub___$ac_func
40024 return $ac_func ();
40029 rm -f conftest.$ac_objext conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033 *) ac_try_echo=$ac_try;;
40035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40036 (eval "$ac_link") 2>conftest.er1
40038 grep -v '^ *+' conftest.er1 >conftest.err
40040 cat conftest.err >&5
40041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042 (exit $ac_status); } && {
40043 test -z "$ac_c_werror_flag" ||
40044 test ! -s conftest.err
40045 } && test -s conftest$ac_exeext &&
40046 $as_test_x conftest$ac_exeext; then
40047 eval "$as_ac_var=yes"
40049 echo "$as_me: failed program was:" >&5
40050 sed 's/^/| /' conftest.$ac_ext >&5
40052 eval "$as_ac_var=no"
40055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40056 conftest$ac_exeext conftest.$ac_ext
40058 ac_res=`eval echo '${'$as_ac_var'}'`
40059 { echo "$as_me:$LINENO: result: $ac_res" >&5
40060 echo "${ECHO_T}$ac_res" >&6; }
40061 if test `eval echo '${'$as_ac_var'}'` = yes; then
40062 cat >>confdefs.h <<_ACEOF
40063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40066 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40067 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40068 if test "${ac_cv_func__doprnt+set}" = set; then
40069 echo $ECHO_N "(cached) $ECHO_C" >&6
40071 cat >conftest.$ac_ext <<_ACEOF
40074 cat confdefs.h >>conftest.$ac_ext
40075 cat >>conftest.$ac_ext <<_ACEOF
40076 /* end confdefs.h. */
40077 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40079 #define _doprnt innocuous__doprnt
40081 /* System header to define __stub macros and hopefully few prototypes,
40082 which can conflict with char _doprnt (); below.
40083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40084 <limits.h> exists even on freestanding compilers. */
40087 # include <limits.h>
40089 # include <assert.h>
40094 /* Override any GCC internal prototype to avoid an error.
40095 Use char because int might match the return type of a GCC
40096 builtin and then its argument prototype would still apply. */
40101 /* The GNU C library defines this for functions which it implements
40102 to always fail with ENOSYS. Some functions are actually named
40103 something starting with __ and the normal name is an alias. */
40104 #if defined __stub__doprnt || defined __stub____doprnt
40116 rm -f conftest.$ac_objext conftest$ac_exeext
40117 if { (ac_try="$ac_link"
40118 case "(($ac_try" in
40119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40120 *) ac_try_echo=$ac_try;;
40122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40123 (eval "$ac_link") 2>conftest.er1
40125 grep -v '^ *+' conftest.er1 >conftest.err
40127 cat conftest.err >&5
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); } && {
40130 test -z "$ac_c_werror_flag" ||
40131 test ! -s conftest.err
40132 } && test -s conftest$ac_exeext &&
40133 $as_test_x conftest$ac_exeext; then
40134 ac_cv_func__doprnt=yes
40136 echo "$as_me: failed program was:" >&5
40137 sed 's/^/| /' conftest.$ac_ext >&5
40139 ac_cv_func__doprnt=no
40142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40143 conftest$ac_exeext conftest.$ac_ext
40145 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40146 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40147 if test $ac_cv_func__doprnt = yes; then
40149 cat >>confdefs.h <<\_ACEOF
40150 #define HAVE_DOPRNT 1
40159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40160 # for constant arguments. Useless!
40161 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40162 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40163 if test "${ac_cv_working_alloca_h+set}" = set; then
40164 echo $ECHO_N "(cached) $ECHO_C" >&6
40166 cat >conftest.$ac_ext <<_ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h. */
40172 #include <alloca.h>
40176 char *p = (char *) alloca (2 * sizeof (int));
40182 rm -f conftest.$ac_objext conftest$ac_exeext
40183 if { (ac_try="$ac_link"
40184 case "(($ac_try" in
40185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40186 *) ac_try_echo=$ac_try;;
40188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40189 (eval "$ac_link") 2>conftest.er1
40191 grep -v '^ *+' conftest.er1 >conftest.err
40193 cat conftest.err >&5
40194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195 (exit $ac_status); } && {
40196 test -z "$ac_c_werror_flag" ||
40197 test ! -s conftest.err
40198 } && test -s conftest$ac_exeext &&
40199 $as_test_x conftest$ac_exeext; then
40200 ac_cv_working_alloca_h=yes
40202 echo "$as_me: failed program was:" >&5
40203 sed 's/^/| /' conftest.$ac_ext >&5
40205 ac_cv_working_alloca_h=no
40208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40209 conftest$ac_exeext conftest.$ac_ext
40211 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40212 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40213 if test $ac_cv_working_alloca_h = yes; then
40215 cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_ALLOCA_H 1
40221 { echo "$as_me:$LINENO: checking for alloca" >&5
40222 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40223 if test "${ac_cv_func_alloca_works+set}" = set; then
40224 echo $ECHO_N "(cached) $ECHO_C" >&6
40226 cat >conftest.$ac_ext <<_ACEOF
40229 cat confdefs.h >>conftest.$ac_ext
40230 cat >>conftest.$ac_ext <<_ACEOF
40231 /* end confdefs.h. */
40233 # define alloca __builtin_alloca
40236 # include <malloc.h>
40237 # define alloca _alloca
40239 # ifdef HAVE_ALLOCA_H
40240 # include <alloca.h>
40245 # ifndef alloca /* predefined by HP cc +Olibcalls */
40256 char *p = (char *) alloca (1);
40262 rm -f conftest.$ac_objext conftest$ac_exeext
40263 if { (ac_try="$ac_link"
40264 case "(($ac_try" in
40265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40266 *) ac_try_echo=$ac_try;;
40268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40269 (eval "$ac_link") 2>conftest.er1
40271 grep -v '^ *+' conftest.er1 >conftest.err
40273 cat conftest.err >&5
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); } && {
40276 test -z "$ac_c_werror_flag" ||
40277 test ! -s conftest.err
40278 } && test -s conftest$ac_exeext &&
40279 $as_test_x conftest$ac_exeext; then
40280 ac_cv_func_alloca_works=yes
40282 echo "$as_me: failed program was:" >&5
40283 sed 's/^/| /' conftest.$ac_ext >&5
40285 ac_cv_func_alloca_works=no
40288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40289 conftest$ac_exeext conftest.$ac_ext
40291 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40292 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40294 if test $ac_cv_func_alloca_works = yes; then
40296 cat >>confdefs.h <<\_ACEOF
40297 #define HAVE_ALLOCA 1
40301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40302 # that cause trouble. Some versions do not even contain alloca or
40303 # contain a buggy version. If you still want to use their alloca,
40304 # use ar to extract alloca.o from them instead of compiling alloca.c.
40306 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40308 cat >>confdefs.h <<\_ACEOF
40313 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40314 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40315 if test "${ac_cv_os_cray+set}" = set; then
40316 echo $ECHO_N "(cached) $ECHO_C" >&6
40318 cat >conftest.$ac_ext <<_ACEOF
40321 cat confdefs.h >>conftest.$ac_ext
40322 cat >>conftest.$ac_ext <<_ACEOF
40323 /* end confdefs.h. */
40324 #if defined CRAY && ! defined CRAY2
40331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40332 $EGREP "webecray" >/dev/null 2>&1; then
40340 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40341 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40342 if test $ac_cv_os_cray = yes; then
40343 for ac_func in _getb67 GETB67 getb67; do
40344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40348 echo $ECHO_N "(cached) $ECHO_C" >&6
40350 cat >conftest.$ac_ext <<_ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h. */
40356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40358 #define $ac_func innocuous_$ac_func
40360 /* System header to define __stub macros and hopefully few prototypes,
40361 which can conflict with char $ac_func (); below.
40362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363 <limits.h> exists even on freestanding compilers. */
40366 # include <limits.h>
40368 # include <assert.h>
40373 /* Override any GCC internal prototype to avoid an error.
40374 Use char because int might match the return type of a GCC
40375 builtin and then its argument prototype would still apply. */
40380 /* The GNU C library defines this for functions which it implements
40381 to always fail with ENOSYS. Some functions are actually named
40382 something starting with __ and the normal name is an alias. */
40383 #if defined __stub_$ac_func || defined __stub___$ac_func
40390 return $ac_func ();
40395 rm -f conftest.$ac_objext conftest$ac_exeext
40396 if { (ac_try="$ac_link"
40397 case "(($ac_try" in
40398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40399 *) ac_try_echo=$ac_try;;
40401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40402 (eval "$ac_link") 2>conftest.er1
40404 grep -v '^ *+' conftest.er1 >conftest.err
40406 cat conftest.err >&5
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); } && {
40409 test -z "$ac_c_werror_flag" ||
40410 test ! -s conftest.err
40411 } && test -s conftest$ac_exeext &&
40412 $as_test_x conftest$ac_exeext; then
40413 eval "$as_ac_var=yes"
40415 echo "$as_me: failed program was:" >&5
40416 sed 's/^/| /' conftest.$ac_ext >&5
40418 eval "$as_ac_var=no"
40421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40422 conftest$ac_exeext conftest.$ac_ext
40424 ac_res=`eval echo '${'$as_ac_var'}'`
40425 { echo "$as_me:$LINENO: result: $ac_res" >&5
40426 echo "${ECHO_T}$ac_res" >&6; }
40427 if test `eval echo '${'$as_ac_var'}'` = yes; then
40429 cat >>confdefs.h <<_ACEOF
40430 #define CRAY_STACKSEG_END $ac_func
40439 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40440 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40441 if test "${ac_cv_c_stack_direction+set}" = set; then
40442 echo $ECHO_N "(cached) $ECHO_C" >&6
40444 if test "$cross_compiling" = yes; then
40445 ac_cv_c_stack_direction=0
40447 cat >conftest.$ac_ext <<_ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h. */
40453 $ac_includes_default
40455 find_stack_direction ()
40457 static char *addr = 0;
40462 return find_stack_direction ();
40465 return (&dummy > addr) ? 1 : -1;
40471 return find_stack_direction () < 0;
40474 rm -f conftest$ac_exeext
40475 if { (ac_try="$ac_link"
40476 case "(($ac_try" in
40477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40478 *) ac_try_echo=$ac_try;;
40480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40481 (eval "$ac_link") 2>&5
40483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40485 { (case "(($ac_try" in
40486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487 *) ac_try_echo=$ac_try;;
40489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40490 (eval "$ac_try") 2>&5
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); }; }; then
40494 ac_cv_c_stack_direction=1
40496 echo "$as_me: program exited with status $ac_status" >&5
40497 echo "$as_me: failed program was:" >&5
40498 sed 's/^/| /' conftest.$ac_ext >&5
40500 ( exit $ac_status )
40501 ac_cv_c_stack_direction=-1
40503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40508 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40509 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40511 cat >>confdefs.h <<_ACEOF
40512 #define STACK_DIRECTION $ac_cv_c_stack_direction
40518 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40519 # -lseq on Dynix/PTX, -lgen on Unixware.
40520 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40521 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40522 if test "${ac_cv_search_getmntent+set}" = set; then
40523 echo $ECHO_N "(cached) $ECHO_C" >&6
40525 ac_func_search_save_LIBS=$LIBS
40526 cat >conftest.$ac_ext <<_ACEOF
40529 cat confdefs.h >>conftest.$ac_ext
40530 cat >>conftest.$ac_ext <<_ACEOF
40531 /* end confdefs.h. */
40533 /* Override any GCC internal prototype to avoid an error.
40534 Use char because int might match the return type of a GCC
40535 builtin and then its argument prototype would still apply. */
40543 return getmntent ();
40548 for ac_lib in '' sun seq gen; do
40549 if test -z "$ac_lib"; then
40550 ac_res="none required"
40553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40555 rm -f conftest.$ac_objext conftest$ac_exeext
40556 if { (ac_try="$ac_link"
40557 case "(($ac_try" in
40558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40559 *) ac_try_echo=$ac_try;;
40561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40562 (eval "$ac_link") 2>conftest.er1
40564 grep -v '^ *+' conftest.er1 >conftest.err
40566 cat conftest.err >&5
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); } && {
40569 test -z "$ac_c_werror_flag" ||
40570 test ! -s conftest.err
40571 } && test -s conftest$ac_exeext &&
40572 $as_test_x conftest$ac_exeext; then
40573 ac_cv_search_getmntent=$ac_res
40575 echo "$as_me: failed program was:" >&5
40576 sed 's/^/| /' conftest.$ac_ext >&5
40581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40583 if test "${ac_cv_search_getmntent+set}" = set; then
40587 if test "${ac_cv_search_getmntent+set}" = set; then
40590 ac_cv_search_getmntent=no
40592 rm conftest.$ac_ext
40593 LIBS=$ac_func_search_save_LIBS
40595 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40596 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40597 ac_res=$ac_cv_search_getmntent
40598 if test "$ac_res" != no; then
40599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40600 ac_cv_func_getmntent=yes
40602 cat >>confdefs.h <<\_ACEOF
40603 #define HAVE_GETMNTENT 1
40607 ac_cv_func_getmntent=no
40612 for ac_func in getmntinfo
40614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40618 echo $ECHO_N "(cached) $ECHO_C" >&6
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40628 #define $ac_func innocuous_$ac_func
40630 /* System header to define __stub macros and hopefully few prototypes,
40631 which can conflict with char $ac_func (); below.
40632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40633 <limits.h> exists even on freestanding compilers. */
40636 # include <limits.h>
40638 # include <assert.h>
40643 /* Override any GCC internal prototype to avoid an error.
40644 Use char because int might match the return type of a GCC
40645 builtin and then its argument prototype would still apply. */
40650 /* The GNU C library defines this for functions which it implements
40651 to always fail with ENOSYS. Some functions are actually named
40652 something starting with __ and the normal name is an alias. */
40653 #if defined __stub_$ac_func || defined __stub___$ac_func
40660 return $ac_func ();
40665 rm -f conftest.$ac_objext conftest$ac_exeext
40666 if { (ac_try="$ac_link"
40667 case "(($ac_try" in
40668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40669 *) ac_try_echo=$ac_try;;
40671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40672 (eval "$ac_link") 2>conftest.er1
40674 grep -v '^ *+' conftest.er1 >conftest.err
40676 cat conftest.err >&5
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); } && {
40679 test -z "$ac_c_werror_flag" ||
40680 test ! -s conftest.err
40681 } && test -s conftest$ac_exeext &&
40682 $as_test_x conftest$ac_exeext; then
40683 eval "$as_ac_var=yes"
40685 echo "$as_me: failed program was:" >&5
40686 sed 's/^/| /' conftest.$ac_ext >&5
40688 eval "$as_ac_var=no"
40691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40692 conftest$ac_exeext conftest.$ac_ext
40694 ac_res=`eval echo '${'$as_ac_var'}'`
40695 { echo "$as_me:$LINENO: result: $ac_res" >&5
40696 echo "${ECHO_T}$ac_res" >&6; }
40697 if test `eval echo '${'$as_ac_var'}'` = yes; then
40698 cat >>confdefs.h <<_ACEOF
40699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40701 cat >>confdefs.h <<\_ACEOF
40702 #define HAVE_GETMNTINFO 1
40708 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40709 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40710 if test "${ac_cv_func_closedir_void+set}" = set; then
40711 echo $ECHO_N "(cached) $ECHO_C" >&6
40713 if test "$cross_compiling" = yes; then
40714 ac_cv_func_closedir_void=yes
40716 cat >conftest.$ac_ext <<_ACEOF
40719 cat confdefs.h >>conftest.$ac_ext
40720 cat >>conftest.$ac_ext <<_ACEOF
40721 /* end confdefs.h. */
40722 $ac_includes_default
40723 #include <$ac_header_dirent>
40724 #ifndef __cplusplus
40731 return closedir (opendir (".")) != 0;
40736 rm -f conftest$ac_exeext
40737 if { (ac_try="$ac_link"
40738 case "(($ac_try" in
40739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40740 *) ac_try_echo=$ac_try;;
40742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40743 (eval "$ac_link") 2>&5
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40747 { (case "(($ac_try" in
40748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40749 *) ac_try_echo=$ac_try;;
40751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40752 (eval "$ac_try") 2>&5
40754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755 (exit $ac_status); }; }; then
40756 ac_cv_func_closedir_void=no
40758 echo "$as_me: program exited with status $ac_status" >&5
40759 echo "$as_me: failed program was:" >&5
40760 sed 's/^/| /' conftest.$ac_ext >&5
40762 ( exit $ac_status )
40763 ac_cv_func_closedir_void=yes
40765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40770 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40771 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40772 if test $ac_cv_func_closedir_void = yes; then
40774 cat >>confdefs.h <<\_ACEOF
40775 #define CLOSEDIR_VOID 1
40780 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40781 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40782 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40783 echo $ECHO_N "(cached) $ECHO_C" >&6
40785 if test "$cross_compiling" = yes; then
40786 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40787 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40788 { (exit 1); exit 1; }; }
40790 cat >conftest.$ac_ext <<_ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h. */
40796 $ac_includes_default
40800 /* If this system has a BSD-style setpgrp which takes arguments,
40801 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40802 exit successfully. */
40803 return setpgrp (1,1) != -1;
40808 rm -f conftest$ac_exeext
40809 if { (ac_try="$ac_link"
40810 case "(($ac_try" in
40811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40812 *) ac_try_echo=$ac_try;;
40814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40815 (eval "$ac_link") 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40819 { (case "(($ac_try" in
40820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40821 *) ac_try_echo=$ac_try;;
40823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40824 (eval "$ac_try") 2>&5
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); }; }; then
40828 ac_cv_func_setpgrp_void=no
40830 echo "$as_me: program exited with status $ac_status" >&5
40831 echo "$as_me: failed program was:" >&5
40832 sed 's/^/| /' conftest.$ac_ext >&5
40834 ( exit $ac_status )
40835 ac_cv_func_setpgrp_void=yes
40837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40842 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40843 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40844 if test $ac_cv_func_setpgrp_void = yes; then
40846 cat >>confdefs.h <<\_ACEOF
40847 #define SETPGRP_VOID 1
40851 # AC_FUNC_FNMATCH dnl use local version
40853 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40854 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40855 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40856 echo $ECHO_N "(cached) $ECHO_C" >&6
40858 ac_check_lib_save_LIBS=$LIBS
40859 LIBS="-lintl $LIBS"
40860 cat >conftest.$ac_ext <<_ACEOF
40863 cat confdefs.h >>conftest.$ac_ext
40864 cat >>conftest.$ac_ext <<_ACEOF
40865 /* end confdefs.h. */
40867 /* Override any GCC internal prototype to avoid an error.
40868 Use char because int might match the return type of a GCC
40869 builtin and then its argument prototype would still apply. */
40882 rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (ac_try="$ac_link"
40884 case "(($ac_try" in
40885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40886 *) ac_try_echo=$ac_try;;
40888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40889 (eval "$ac_link") 2>conftest.er1
40891 grep -v '^ *+' conftest.er1 >conftest.err
40893 cat conftest.err >&5
40894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40895 (exit $ac_status); } && {
40896 test -z "$ac_c_werror_flag" ||
40897 test ! -s conftest.err
40898 } && test -s conftest$ac_exeext &&
40899 $as_test_x conftest$ac_exeext; then
40900 ac_cv_lib_intl_gettext=yes
40902 echo "$as_me: failed program was:" >&5
40903 sed 's/^/| /' conftest.$ac_ext >&5
40905 ac_cv_lib_intl_gettext=no
40908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40909 conftest$ac_exeext conftest.$ac_ext
40910 LIBS=$ac_check_lib_save_LIBS
40912 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40913 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40914 if test $ac_cv_lib_intl_gettext = yes; then
40915 LIBS="$LIBS -lintl"
40920 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40921 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40922 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40923 echo $ECHO_N "(cached) $ECHO_C" >&6
40925 ac_check_lib_save_LIBS=$LIBS
40927 cat >conftest.$ac_ext <<_ACEOF
40930 cat confdefs.h >>conftest.$ac_ext
40931 cat >>conftest.$ac_ext <<_ACEOF
40932 /* end confdefs.h. */
40934 /* Override any GCC internal prototype to avoid an error.
40935 Use char because int might match the return type of a GCC
40936 builtin and then its argument prototype would still apply. */
40944 return getpwnam ();
40949 rm -f conftest.$ac_objext conftest$ac_exeext
40950 if { (ac_try="$ac_link"
40951 case "(($ac_try" in
40952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40953 *) ac_try_echo=$ac_try;;
40955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40956 (eval "$ac_link") 2>conftest.er1
40958 grep -v '^ *+' conftest.er1 >conftest.err
40960 cat conftest.err >&5
40961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962 (exit $ac_status); } && {
40963 test -z "$ac_c_werror_flag" ||
40964 test ! -s conftest.err
40965 } && test -s conftest$ac_exeext &&
40966 $as_test_x conftest$ac_exeext; then
40967 ac_cv_lib_sun_getpwnam=yes
40969 echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40972 ac_cv_lib_sun_getpwnam=no
40975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40976 conftest$ac_exeext conftest.$ac_ext
40977 LIBS=$ac_check_lib_save_LIBS
40979 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40980 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40981 if test $ac_cv_lib_sun_getpwnam = yes; then
40982 cat >>confdefs.h <<_ACEOF
40983 #define HAVE_LIBSUN 1
40992 for ac_header in zlib.h
40994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40999 echo $ECHO_N "(cached) $ECHO_C" >&6
41001 ac_res=`eval echo '${'$as_ac_Header'}'`
41002 { echo "$as_me:$LINENO: result: $ac_res" >&5
41003 echo "${ECHO_T}$ac_res" >&6; }
41005 # Is the header compilable?
41006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41008 cat >conftest.$ac_ext <<_ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h. */
41014 $ac_includes_default
41015 #include <$ac_header>
41017 rm -f conftest.$ac_objext
41018 if { (ac_try="$ac_compile"
41019 case "(($ac_try" in
41020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41021 *) ac_try_echo=$ac_try;;
41023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41024 (eval "$ac_compile") 2>conftest.er1
41026 grep -v '^ *+' conftest.er1 >conftest.err
41028 cat conftest.err >&5
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); } && {
41031 test -z "$ac_c_werror_flag" ||
41032 test ! -s conftest.err
41033 } && test -s conftest.$ac_objext; then
41034 ac_header_compiler=yes
41036 echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41039 ac_header_compiler=no
41042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41044 echo "${ECHO_T}$ac_header_compiler" >&6; }
41046 # Is the header present?
41047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41049 cat >conftest.$ac_ext <<_ACEOF
41052 cat confdefs.h >>conftest.$ac_ext
41053 cat >>conftest.$ac_ext <<_ACEOF
41054 /* end confdefs.h. */
41055 #include <$ac_header>
41057 if { (ac_try="$ac_cpp conftest.$ac_ext"
41058 case "(($ac_try" in
41059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060 *) ac_try_echo=$ac_try;;
41062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41065 grep -v '^ *+' conftest.er1 >conftest.err
41067 cat conftest.err >&5
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); } >/dev/null && {
41070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41071 test ! -s conftest.err
41073 ac_header_preproc=yes
41075 echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41078 ac_header_preproc=no
41081 rm -f conftest.err conftest.$ac_ext
41082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41083 echo "${ECHO_T}$ac_header_preproc" >&6; }
41085 # So? What about this header?
41086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41092 ac_header_preproc=yes
41095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41113 echo $ECHO_N "(cached) $ECHO_C" >&6
41115 eval "$as_ac_Header=\$ac_header_preproc"
41117 ac_res=`eval echo '${'$as_ac_Header'}'`
41118 { echo "$as_me:$LINENO: result: $ac_res" >&5
41119 echo "${ECHO_T}$ac_res" >&6; }
41122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41123 cat >>confdefs.h <<_ACEOF
41124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41131 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41132 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41133 if test "${ac_cv_lib_z_deflate+set}" = set; then
41134 echo $ECHO_N "(cached) $ECHO_C" >&6
41136 ac_check_lib_save_LIBS=$LIBS
41138 cat >conftest.$ac_ext <<_ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h. */
41145 /* Override any GCC internal prototype to avoid an error.
41146 Use char because int might match the return type of a GCC
41147 builtin and then its argument prototype would still apply. */
41160 rm -f conftest.$ac_objext conftest$ac_exeext
41161 if { (ac_try="$ac_link"
41162 case "(($ac_try" in
41163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41164 *) ac_try_echo=$ac_try;;
41166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41167 (eval "$ac_link") 2>conftest.er1
41169 grep -v '^ *+' conftest.er1 >conftest.err
41171 cat conftest.err >&5
41172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); } && {
41174 test -z "$ac_c_werror_flag" ||
41175 test ! -s conftest.err
41176 } && test -s conftest$ac_exeext &&
41177 $as_test_x conftest$ac_exeext; then
41178 ac_cv_lib_z_deflate=yes
41180 echo "$as_me: failed program was:" >&5
41181 sed 's/^/| /' conftest.$ac_ext >&5
41183 ac_cv_lib_z_deflate=no
41186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41187 conftest$ac_exeext conftest.$ac_ext
41188 LIBS=$ac_check_lib_save_LIBS
41190 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41191 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41192 if test $ac_cv_lib_z_deflate = yes; then
41197 if test x$ZLIBS = x-lz; then
41198 cat >>confdefs.h <<\_ACEOF
41199 #define HAVE_LIBZ 1
41209 # Check whether --enable-afs was given.
41210 if test "${enable_afs+set}" = set; then
41211 enableval=$enable_afs;
41212 if test x$enableval = xyes; then
41214 elif test x$enableval = xno; then
41223 if test x$support_afs = xyes -o x$support_afs = xauto; then
41225 # Check whether --with-afsdir was given.
41226 if test "${with_afsdir+set}" = set; then
41227 withval=$with_afsdir; with_afsdir=$withval
41232 if test x$with_afsdir = x; then
41233 for root in /usr /usr/local; do
41234 if test -d ${root}/include/afs/ ; then
41235 with_afsdir=${root}
41241 AFS_CFLAGS="-I${with_afsdir}/include"
41243 saved_CFLAGS="${CFLAGS}"
41244 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
41247 for ac_header in afs/stds.h
41249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41254 echo $ECHO_N "(cached) $ECHO_C" >&6
41256 ac_res=`eval echo '${'$as_ac_Header'}'`
41257 { echo "$as_me:$LINENO: result: $ac_res" >&5
41258 echo "${ECHO_T}$ac_res" >&6; }
41260 # Is the header compilable?
41261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41263 cat >conftest.$ac_ext <<_ACEOF
41266 cat confdefs.h >>conftest.$ac_ext
41267 cat >>conftest.$ac_ext <<_ACEOF
41268 /* end confdefs.h. */
41269 $ac_includes_default
41270 #include <$ac_header>
41272 rm -f conftest.$ac_objext
41273 if { (ac_try="$ac_compile"
41274 case "(($ac_try" in
41275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41276 *) ac_try_echo=$ac_try;;
41278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41279 (eval "$ac_compile") 2>conftest.er1
41281 grep -v '^ *+' conftest.er1 >conftest.err
41283 cat conftest.err >&5
41284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41285 (exit $ac_status); } && {
41286 test -z "$ac_c_werror_flag" ||
41287 test ! -s conftest.err
41288 } && test -s conftest.$ac_objext; then
41289 ac_header_compiler=yes
41291 echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41294 ac_header_compiler=no
41297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41299 echo "${ECHO_T}$ac_header_compiler" >&6; }
41301 # Is the header present?
41302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41304 cat >conftest.$ac_ext <<_ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h. */
41310 #include <$ac_header>
41312 if { (ac_try="$ac_cpp conftest.$ac_ext"
41313 case "(($ac_try" in
41314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41315 *) ac_try_echo=$ac_try;;
41317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41320 grep -v '^ *+' conftest.er1 >conftest.err
41322 cat conftest.err >&5
41323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); } >/dev/null && {
41325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41326 test ! -s conftest.err
41328 ac_header_preproc=yes
41330 echo "$as_me: failed program was:" >&5
41331 sed 's/^/| /' conftest.$ac_ext >&5
41333 ac_header_preproc=no
41336 rm -f conftest.err conftest.$ac_ext
41337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41338 echo "${ECHO_T}$ac_header_preproc" >&6; }
41340 # So? What about this header?
41341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41347 ac_header_preproc=yes
41350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41368 echo $ECHO_N "(cached) $ECHO_C" >&6
41370 eval "$as_ac_Header=\$ac_header_preproc"
41372 ac_res=`eval echo '${'$as_ac_Header'}'`
41373 { echo "$as_me:$LINENO: result: $ac_res" >&5
41374 echo "${ECHO_T}$ac_res" >&6; }
41377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41378 cat >>confdefs.h <<_ACEOF
41379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41387 CFLAGS="${saved_CFLAGS}"
41389 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
41391 for arch_type in .a .so
41393 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
41395 if test $pkg = 0; then
41397 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
41403 if test x$support_afs = xyes -a $have_afs != yes; then
41404 { { echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
41405 please either load the afs libraries or rerun configure without --enable-afs" >&5
41406 echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
41407 please either load the afs libraries or rerun configure without --enable-afs" >&2;}
41408 { (exit 1); exit 1; }; }
41410 if test $have_afs = yes; then
41412 cat >>confdefs.h <<\_ACEOF
41417 cat >>confdefs.h <<\_ACEOF
41418 #define HAVE_AFS_ACL 1
41427 cat >>confdefs.h <<\_ACEOF
41428 #define AFS_CFLAGS 1
41431 cat >>confdefs.h <<\_ACEOF
41437 # Check whether --enable-acl was given.
41438 if test "${enable_acl+set}" = set; then
41439 enableval=$enable_acl;
41440 if test x$enableval = xyes; then
41442 elif test x$enableval = xno; then
41451 have_extended_acl=no
41452 if test x$support_acl = xyes -o x$support_acl = xauto; then
41453 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41454 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41455 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41456 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41457 echo $ECHO_N "(cached) $ECHO_C" >&6
41459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41460 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41462 # Is the header compilable?
41463 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41464 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41465 cat >conftest.$ac_ext <<_ACEOF
41468 cat confdefs.h >>conftest.$ac_ext
41469 cat >>conftest.$ac_ext <<_ACEOF
41470 /* end confdefs.h. */
41471 $ac_includes_default
41472 #include <sys/acl.h>
41474 rm -f conftest.$ac_objext
41475 if { (ac_try="$ac_compile"
41476 case "(($ac_try" in
41477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41478 *) ac_try_echo=$ac_try;;
41480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41481 (eval "$ac_compile") 2>conftest.er1
41483 grep -v '^ *+' conftest.er1 >conftest.err
41485 cat conftest.err >&5
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); } && {
41488 test -z "$ac_c_werror_flag" ||
41489 test ! -s conftest.err
41490 } && test -s conftest.$ac_objext; then
41491 ac_header_compiler=yes
41493 echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41496 ac_header_compiler=no
41499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41501 echo "${ECHO_T}$ac_header_compiler" >&6; }
41503 # Is the header present?
41504 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41505 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41506 cat >conftest.$ac_ext <<_ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h. */
41512 #include <sys/acl.h>
41514 if { (ac_try="$ac_cpp conftest.$ac_ext"
41515 case "(($ac_try" in
41516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41517 *) ac_try_echo=$ac_try;;
41519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41522 grep -v '^ *+' conftest.er1 >conftest.err
41524 cat conftest.err >&5
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); } >/dev/null && {
41527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41528 test ! -s conftest.err
41530 ac_header_preproc=yes
41532 echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41535 ac_header_preproc=no
41538 rm -f conftest.err conftest.$ac_ext
41539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41540 echo "${ECHO_T}$ac_header_preproc" >&6; }
41542 # So? What about this header?
41543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41545 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41546 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41547 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41548 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41549 ac_header_preproc=yes
41552 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41553 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41554 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41555 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41556 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41557 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41558 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41559 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41560 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41561 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41562 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41563 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41567 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41568 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41569 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41570 echo $ECHO_N "(cached) $ECHO_C" >&6
41572 ac_cv_header_sys_acl_h=$ac_header_preproc
41574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41575 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41578 if test $ac_cv_header_sys_acl_h = yes; then
41580 cat >>confdefs.h <<\_ACEOF
41581 #define HAVE_SYS_ACL_H 1
41587 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41588 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41589 if test "${ac_cv_func_acl_get_file+set}" = set; then
41590 echo $ECHO_N "(cached) $ECHO_C" >&6
41592 cat >conftest.$ac_ext <<_ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h. */
41598 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41600 #define acl_get_file innocuous_acl_get_file
41602 /* System header to define __stub macros and hopefully few prototypes,
41603 which can conflict with char acl_get_file (); below.
41604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41605 <limits.h> exists even on freestanding compilers. */
41608 # include <limits.h>
41610 # include <assert.h>
41613 #undef acl_get_file
41615 /* Override any GCC internal prototype to avoid an error.
41616 Use char because int might match the return type of a GCC
41617 builtin and then its argument prototype would still apply. */
41621 char acl_get_file ();
41622 /* The GNU C library defines this for functions which it implements
41623 to always fail with ENOSYS. Some functions are actually named
41624 something starting with __ and the normal name is an alias. */
41625 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41632 return acl_get_file ();
41637 rm -f conftest.$ac_objext conftest$ac_exeext
41638 if { (ac_try="$ac_link"
41639 case "(($ac_try" in
41640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41641 *) ac_try_echo=$ac_try;;
41643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41644 (eval "$ac_link") 2>conftest.er1
41646 grep -v '^ *+' conftest.er1 >conftest.err
41648 cat conftest.err >&5
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); } && {
41651 test -z "$ac_c_werror_flag" ||
41652 test ! -s conftest.err
41653 } && test -s conftest$ac_exeext &&
41654 $as_test_x conftest$ac_exeext; then
41655 ac_cv_func_acl_get_file=yes
41657 echo "$as_me: failed program was:" >&5
41658 sed 's/^/| /' conftest.$ac_ext >&5
41660 ac_cv_func_acl_get_file=no
41663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41664 conftest$ac_exeext conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41667 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41668 if test $ac_cv_func_acl_get_file = yes; then
41674 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41675 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41676 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41677 echo $ECHO_N "(cached) $ECHO_C" >&6
41679 ac_check_lib_save_LIBS=$LIBS
41681 cat >conftest.$ac_ext <<_ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h. */
41688 /* Override any GCC internal prototype to avoid an error.
41689 Use char because int might match the return type of a GCC
41690 builtin and then its argument prototype would still apply. */
41694 char acl_get_file ();
41698 return acl_get_file ();
41703 rm -f conftest.$ac_objext conftest$ac_exeext
41704 if { (ac_try="$ac_link"
41705 case "(($ac_try" in
41706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41707 *) ac_try_echo=$ac_try;;
41709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41710 (eval "$ac_link") 2>conftest.er1
41712 grep -v '^ *+' conftest.er1 >conftest.err
41714 cat conftest.err >&5
41715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716 (exit $ac_status); } && {
41717 test -z "$ac_c_werror_flag" ||
41718 test ! -s conftest.err
41719 } && test -s conftest$ac_exeext &&
41720 $as_test_x conftest$ac_exeext; then
41721 ac_cv_lib_acl_acl_get_file=yes
41723 echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41726 ac_cv_lib_acl_acl_get_file=no
41729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41730 conftest$ac_exeext conftest.$ac_ext
41731 LIBS=$ac_check_lib_save_LIBS
41733 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41734 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41735 if test $ac_cv_lib_acl_acl_get_file = yes; then
41738 if test $have_afs = yes; then
41739 if test -d /usr/lib64/; then
41740 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
41742 FDLIBS="-L/usr/lib -lacl $FDLIBS"
41745 FDLIBS="-lacl $FDLIBS"
41750 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41751 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41752 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41753 echo $ECHO_N "(cached) $ECHO_C" >&6
41755 ac_check_lib_save_LIBS=$LIBS
41756 LIBS="-lpacl $LIBS"
41757 cat >conftest.$ac_ext <<_ACEOF
41760 cat confdefs.h >>conftest.$ac_ext
41761 cat >>conftest.$ac_ext <<_ACEOF
41762 /* end confdefs.h. */
41764 /* Override any GCC internal prototype to avoid an error.
41765 Use char because int might match the return type of a GCC
41766 builtin and then its argument prototype would still apply. */
41770 char acl_get_file ();
41774 return acl_get_file ();
41779 rm -f conftest.$ac_objext conftest$ac_exeext
41780 if { (ac_try="$ac_link"
41781 case "(($ac_try" in
41782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41783 *) ac_try_echo=$ac_try;;
41785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41786 (eval "$ac_link") 2>conftest.er1
41788 grep -v '^ *+' conftest.er1 >conftest.err
41790 cat conftest.err >&5
41791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41792 (exit $ac_status); } && {
41793 test -z "$ac_c_werror_flag" ||
41794 test ! -s conftest.err
41795 } && test -s conftest$ac_exeext &&
41796 $as_test_x conftest$ac_exeext; then
41797 ac_cv_lib_pacl_acl_get_file=yes
41799 echo "$as_me: failed program was:" >&5
41800 sed 's/^/| /' conftest.$ac_ext >&5
41802 ac_cv_lib_pacl_acl_get_file=no
41805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41806 conftest$ac_exeext conftest.$ac_ext
41807 LIBS=$ac_check_lib_save_LIBS
41809 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41810 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41811 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41814 FDLIBS="-lpacl $FDLIBS"
41818 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41819 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41820 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41821 echo $ECHO_N "(cached) $ECHO_C" >&6
41823 ac_check_lib_save_LIBS=$LIBS
41825 cat >conftest.$ac_ext <<_ACEOF
41828 cat confdefs.h >>conftest.$ac_ext
41829 cat >>conftest.$ac_ext <<_ACEOF
41830 /* end confdefs.h. */
41832 /* Override any GCC internal prototype to avoid an error.
41833 Use char because int might match the return type of a GCC
41834 builtin and then its argument prototype would still apply. */
41842 return acltotext ();
41847 rm -f conftest.$ac_objext conftest$ac_exeext
41848 if { (ac_try="$ac_link"
41849 case "(($ac_try" in
41850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41851 *) ac_try_echo=$ac_try;;
41853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41854 (eval "$ac_link") 2>conftest.er1
41856 grep -v '^ *+' conftest.er1 >conftest.err
41858 cat conftest.err >&5
41859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860 (exit $ac_status); } && {
41861 test -z "$ac_c_werror_flag" ||
41862 test ! -s conftest.err
41863 } && test -s conftest$ac_exeext &&
41864 $as_test_x conftest$ac_exeext; then
41865 ac_cv_lib_sec_acltotext=yes
41867 echo "$as_me: failed program was:" >&5
41868 sed 's/^/| /' conftest.$ac_ext >&5
41870 ac_cv_lib_sec_acltotext=no
41873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41874 conftest$ac_exeext conftest.$ac_ext
41875 LIBS=$ac_check_lib_save_LIBS
41877 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41878 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41879 if test $ac_cv_lib_sec_acltotext = yes; then
41882 FDLIBS="-lsec $FDLIBS"
41884 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41885 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41886 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41887 echo $ECHO_N "(cached) $ECHO_C" >&6
41889 ac_check_lib_save_LIBS=$LIBS
41891 cat >conftest.$ac_ext <<_ACEOF
41894 cat confdefs.h >>conftest.$ac_ext
41895 cat >>conftest.$ac_ext <<_ACEOF
41896 /* end confdefs.h. */
41898 /* Override any GCC internal prototype to avoid an error.
41899 Use char because int might match the return type of a GCC
41900 builtin and then its argument prototype would still apply. */
41904 char acl_totext ();
41908 return acl_totext ();
41913 rm -f conftest.$ac_objext conftest$ac_exeext
41914 if { (ac_try="$ac_link"
41915 case "(($ac_try" in
41916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41917 *) ac_try_echo=$ac_try;;
41919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41920 (eval "$ac_link") 2>conftest.er1
41922 grep -v '^ *+' conftest.er1 >conftest.err
41924 cat conftest.err >&5
41925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926 (exit $ac_status); } && {
41927 test -z "$ac_c_werror_flag" ||
41928 test ! -s conftest.err
41929 } && test -s conftest$ac_exeext &&
41930 $as_test_x conftest$ac_exeext; then
41931 ac_cv_lib_sec_acl_totext=yes
41933 echo "$as_me: failed program was:" >&5
41934 sed 's/^/| /' conftest.$ac_ext >&5
41936 ac_cv_lib_sec_acl_totext=no
41939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41940 conftest$ac_exeext conftest.$ac_ext
41941 LIBS=$ac_check_lib_save_LIBS
41943 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41944 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41945 if test $ac_cv_lib_sec_acl_totext = yes; then
41947 have_extended_acl=yes
41969 if test x$support_acl = xyes -a $have_acl != yes; then
41970 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41971 please either load the acl libraries or rerun configure without --enable-acl" >&5
41972 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41973 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41974 { (exit 1); exit 1; }; }
41976 if test $have_acl = yes; then
41978 cat >>confdefs.h <<\_ACEOF
41984 if test $have_extended_acl = yes; then
41986 cat >>confdefs.h <<\_ACEOF
41987 #define HAVE_EXTENDED_ACL 1
41995 # Check whether --enable-xattr was given.
41996 if test "${enable_xattr+set}" = set; then
41997 enableval=$enable_xattr;
41998 if test x$enableval = xyes; then
42000 elif test x$enableval = xno; then
42009 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42010 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42011 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42012 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42013 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42014 echo $ECHO_N "(cached) $ECHO_C" >&6
42016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42017 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42019 # Is the header compilable?
42020 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42021 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
42022 cat >conftest.$ac_ext <<_ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h. */
42028 $ac_includes_default
42029 #include <sys/extattr.h>
42031 rm -f conftest.$ac_objext
42032 if { (ac_try="$ac_compile"
42033 case "(($ac_try" in
42034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42035 *) ac_try_echo=$ac_try;;
42037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42038 (eval "$ac_compile") 2>conftest.er1
42040 grep -v '^ *+' conftest.er1 >conftest.err
42042 cat conftest.err >&5
42043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044 (exit $ac_status); } && {
42045 test -z "$ac_c_werror_flag" ||
42046 test ! -s conftest.err
42047 } && test -s conftest.$ac_objext; then
42048 ac_header_compiler=yes
42050 echo "$as_me: failed program was:" >&5
42051 sed 's/^/| /' conftest.$ac_ext >&5
42053 ac_header_compiler=no
42056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42058 echo "${ECHO_T}$ac_header_compiler" >&6; }
42060 # Is the header present?
42061 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42062 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
42063 cat >conftest.$ac_ext <<_ACEOF
42066 cat confdefs.h >>conftest.$ac_ext
42067 cat >>conftest.$ac_ext <<_ACEOF
42068 /* end confdefs.h. */
42069 #include <sys/extattr.h>
42071 if { (ac_try="$ac_cpp conftest.$ac_ext"
42072 case "(($ac_try" in
42073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42074 *) ac_try_echo=$ac_try;;
42076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42079 grep -v '^ *+' conftest.er1 >conftest.err
42081 cat conftest.err >&5
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); } >/dev/null && {
42084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42085 test ! -s conftest.err
42087 ac_header_preproc=yes
42089 echo "$as_me: failed program was:" >&5
42090 sed 's/^/| /' conftest.$ac_ext >&5
42092 ac_header_preproc=no
42095 rm -f conftest.err conftest.$ac_ext
42096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42097 echo "${ECHO_T}$ac_header_preproc" >&6; }
42099 # So? What about this header?
42100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42102 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42103 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42104 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
42105 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
42106 ac_header_preproc=yes
42109 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
42110 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
42111 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
42112 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
42113 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
42114 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
42115 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
42116 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42117 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
42118 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
42119 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
42120 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
42124 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42125 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42126 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42127 echo $ECHO_N "(cached) $ECHO_C" >&6
42129 ac_cv_header_sys_extattr_h=$ac_header_preproc
42131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42132 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42135 if test $ac_cv_header_sys_extattr_h = yes; then
42137 cat >>confdefs.h <<\_ACEOF
42138 #define HAVE_SYS_EXTATTR_H 1
42144 if test "${ac_cv_header_libutil_h+set}" = set; then
42145 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42146 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42147 if test "${ac_cv_header_libutil_h+set}" = set; then
42148 echo $ECHO_N "(cached) $ECHO_C" >&6
42150 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42151 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42153 # Is the header compilable?
42154 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
42155 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
42156 cat >conftest.$ac_ext <<_ACEOF
42159 cat confdefs.h >>conftest.$ac_ext
42160 cat >>conftest.$ac_ext <<_ACEOF
42161 /* end confdefs.h. */
42162 $ac_includes_default
42163 #include <libutil.h>
42165 rm -f conftest.$ac_objext
42166 if { (ac_try="$ac_compile"
42167 case "(($ac_try" in
42168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42169 *) ac_try_echo=$ac_try;;
42171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42172 (eval "$ac_compile") 2>conftest.er1
42174 grep -v '^ *+' conftest.er1 >conftest.err
42176 cat conftest.err >&5
42177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 (exit $ac_status); } && {
42179 test -z "$ac_c_werror_flag" ||
42180 test ! -s conftest.err
42181 } && test -s conftest.$ac_objext; then
42182 ac_header_compiler=yes
42184 echo "$as_me: failed program was:" >&5
42185 sed 's/^/| /' conftest.$ac_ext >&5
42187 ac_header_compiler=no
42190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42192 echo "${ECHO_T}$ac_header_compiler" >&6; }
42194 # Is the header present?
42195 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
42196 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
42197 cat >conftest.$ac_ext <<_ACEOF
42200 cat confdefs.h >>conftest.$ac_ext
42201 cat >>conftest.$ac_ext <<_ACEOF
42202 /* end confdefs.h. */
42203 #include <libutil.h>
42205 if { (ac_try="$ac_cpp conftest.$ac_ext"
42206 case "(($ac_try" in
42207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42208 *) ac_try_echo=$ac_try;;
42210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42213 grep -v '^ *+' conftest.er1 >conftest.err
42215 cat conftest.err >&5
42216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); } >/dev/null && {
42218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42219 test ! -s conftest.err
42221 ac_header_preproc=yes
42223 echo "$as_me: failed program was:" >&5
42224 sed 's/^/| /' conftest.$ac_ext >&5
42226 ac_header_preproc=no
42229 rm -f conftest.err conftest.$ac_ext
42230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42231 echo "${ECHO_T}$ac_header_preproc" >&6; }
42233 # So? What about this header?
42234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42236 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
42237 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42238 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
42239 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
42240 ac_header_preproc=yes
42243 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
42244 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
42245 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
42246 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
42247 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
42248 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
42249 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
42250 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
42251 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
42252 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
42253 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
42254 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
42258 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42259 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42260 if test "${ac_cv_header_libutil_h+set}" = set; then
42261 echo $ECHO_N "(cached) $ECHO_C" >&6
42263 ac_cv_header_libutil_h=$ac_header_preproc
42265 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42266 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42269 if test $ac_cv_header_libutil_h = yes; then
42271 cat >>confdefs.h <<\_ACEOF
42272 #define HAVE_LIBUTIL_H 1
42281 for ac_func in extattr_get_link extattr_set_link extattr_list_link
42283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42287 echo $ECHO_N "(cached) $ECHO_C" >&6
42289 cat >conftest.$ac_ext <<_ACEOF
42292 cat confdefs.h >>conftest.$ac_ext
42293 cat >>conftest.$ac_ext <<_ACEOF
42294 /* end confdefs.h. */
42295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42297 #define $ac_func innocuous_$ac_func
42299 /* System header to define __stub macros and hopefully few prototypes,
42300 which can conflict with char $ac_func (); below.
42301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42302 <limits.h> exists even on freestanding compilers. */
42305 # include <limits.h>
42307 # include <assert.h>
42312 /* Override any GCC internal prototype to avoid an error.
42313 Use char because int might match the return type of a GCC
42314 builtin and then its argument prototype would still apply. */
42319 /* The GNU C library defines this for functions which it implements
42320 to always fail with ENOSYS. Some functions are actually named
42321 something starting with __ and the normal name is an alias. */
42322 #if defined __stub_$ac_func || defined __stub___$ac_func
42329 return $ac_func ();
42334 rm -f conftest.$ac_objext conftest$ac_exeext
42335 if { (ac_try="$ac_link"
42336 case "(($ac_try" in
42337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42338 *) ac_try_echo=$ac_try;;
42340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42341 (eval "$ac_link") 2>conftest.er1
42343 grep -v '^ *+' conftest.er1 >conftest.err
42345 cat conftest.err >&5
42346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42347 (exit $ac_status); } && {
42348 test -z "$ac_c_werror_flag" ||
42349 test ! -s conftest.err
42350 } && test -s conftest$ac_exeext &&
42351 $as_test_x conftest$ac_exeext; then
42352 eval "$as_ac_var=yes"
42354 echo "$as_me: failed program was:" >&5
42355 sed 's/^/| /' conftest.$ac_ext >&5
42357 eval "$as_ac_var=no"
42360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42361 conftest$ac_exeext conftest.$ac_ext
42363 ac_res=`eval echo '${'$as_ac_var'}'`
42364 { echo "$as_me:$LINENO: result: $ac_res" >&5
42365 echo "${ECHO_T}$ac_res" >&6; }
42366 if test `eval echo '${'$as_ac_var'}'` = yes; then
42367 cat >>confdefs.h <<_ACEOF
42368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_EXTATTR_GET_LINK 1
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_EXTATTR_SET_LINK 1
42383 cat >>confdefs.h <<\_ACEOF
42384 #define HAVE_EXTATTR_LIST_LINK 1
42393 if test $have_xattr = no; then
42397 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42403 echo $ECHO_N "(cached) $ECHO_C" >&6
42405 cat >conftest.$ac_ext <<_ACEOF
42408 cat confdefs.h >>conftest.$ac_ext
42409 cat >>conftest.$ac_ext <<_ACEOF
42410 /* end confdefs.h. */
42411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42413 #define $ac_func innocuous_$ac_func
42415 /* System header to define __stub macros and hopefully few prototypes,
42416 which can conflict with char $ac_func (); below.
42417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42418 <limits.h> exists even on freestanding compilers. */
42421 # include <limits.h>
42423 # include <assert.h>
42428 /* Override any GCC internal prototype to avoid an error.
42429 Use char because int might match the return type of a GCC
42430 builtin and then its argument prototype would still apply. */
42435 /* The GNU C library defines this for functions which it implements
42436 to always fail with ENOSYS. Some functions are actually named
42437 something starting with __ and the normal name is an alias. */
42438 #if defined __stub_$ac_func || defined __stub___$ac_func
42445 return $ac_func ();
42450 rm -f conftest.$ac_objext conftest$ac_exeext
42451 if { (ac_try="$ac_link"
42452 case "(($ac_try" in
42453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42454 *) ac_try_echo=$ac_try;;
42456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42457 (eval "$ac_link") 2>conftest.er1
42459 grep -v '^ *+' conftest.er1 >conftest.err
42461 cat conftest.err >&5
42462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463 (exit $ac_status); } && {
42464 test -z "$ac_c_werror_flag" ||
42465 test ! -s conftest.err
42466 } && test -s conftest$ac_exeext &&
42467 $as_test_x conftest$ac_exeext; then
42468 eval "$as_ac_var=yes"
42470 echo "$as_me: failed program was:" >&5
42471 sed 's/^/| /' conftest.$ac_ext >&5
42473 eval "$as_ac_var=no"
42476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42477 conftest$ac_exeext conftest.$ac_ext
42479 ac_res=`eval echo '${'$as_ac_var'}'`
42480 { echo "$as_me:$LINENO: result: $ac_res" >&5
42481 echo "${ECHO_T}$ac_res" >&6; }
42482 if test `eval echo '${'$as_ac_var'}'` = yes; then
42483 cat >>confdefs.h <<_ACEOF
42484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42489 cat >>confdefs.h <<\_ACEOF
42490 #define HAVE_EXTATTR_GET_FILE 1
42494 cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_EXTATTR_SET_FILE 1
42499 cat >>confdefs.h <<\_ACEOF
42500 #define HAVE_EXTATTR_LIST_FILE 1
42510 if test $have_xattr = yes; then
42511 have_extattr_string_in_libc=no
42514 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42520 echo $ECHO_N "(cached) $ECHO_C" >&6
42522 cat >conftest.$ac_ext <<_ACEOF
42525 cat confdefs.h >>conftest.$ac_ext
42526 cat >>conftest.$ac_ext <<_ACEOF
42527 /* end confdefs.h. */
42528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42530 #define $ac_func innocuous_$ac_func
42532 /* System header to define __stub macros and hopefully few prototypes,
42533 which can conflict with char $ac_func (); below.
42534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42535 <limits.h> exists even on freestanding compilers. */
42538 # include <limits.h>
42540 # include <assert.h>
42545 /* Override any GCC internal prototype to avoid an error.
42546 Use char because int might match the return type of a GCC
42547 builtin and then its argument prototype would still apply. */
42552 /* The GNU C library defines this for functions which it implements
42553 to always fail with ENOSYS. Some functions are actually named
42554 something starting with __ and the normal name is an alias. */
42555 #if defined __stub_$ac_func || defined __stub___$ac_func
42562 return $ac_func ();
42567 rm -f conftest.$ac_objext conftest$ac_exeext
42568 if { (ac_try="$ac_link"
42569 case "(($ac_try" in
42570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571 *) ac_try_echo=$ac_try;;
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574 (eval "$ac_link") 2>conftest.er1
42576 grep -v '^ *+' conftest.er1 >conftest.err
42578 cat conftest.err >&5
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); } && {
42581 test -z "$ac_c_werror_flag" ||
42582 test ! -s conftest.err
42583 } && test -s conftest$ac_exeext &&
42584 $as_test_x conftest$ac_exeext; then
42585 eval "$as_ac_var=yes"
42587 echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42590 eval "$as_ac_var=no"
42593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42594 conftest$ac_exeext conftest.$ac_ext
42596 ac_res=`eval echo '${'$as_ac_var'}'`
42597 { echo "$as_me:$LINENO: result: $ac_res" >&5
42598 echo "${ECHO_T}$ac_res" >&6; }
42599 if test `eval echo '${'$as_ac_var'}'` = yes; then
42600 cat >>confdefs.h <<_ACEOF
42601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42604 have_extattr_string_in_libc=yes
42606 cat >>confdefs.h <<\_ACEOF
42607 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42611 cat >>confdefs.h <<\_ACEOF
42612 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42621 if test $have_extattr_string_in_libc = no; then
42622 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42623 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42624 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42625 echo $ECHO_N "(cached) $ECHO_C" >&6
42627 ac_check_lib_save_LIBS=$LIBS
42628 LIBS="-lutil $LIBS"
42629 cat >conftest.$ac_ext <<_ACEOF
42632 cat confdefs.h >>conftest.$ac_ext
42633 cat >>conftest.$ac_ext <<_ACEOF
42634 /* end confdefs.h. */
42636 /* Override any GCC internal prototype to avoid an error.
42637 Use char because int might match the return type of a GCC
42638 builtin and then its argument prototype would still apply. */
42642 char extattr_namespace_to_string extattr_string_to_namespace ();
42646 return extattr_namespace_to_string extattr_string_to_namespace ();
42651 rm -f conftest.$ac_objext conftest$ac_exeext
42652 if { (ac_try="$ac_link"
42653 case "(($ac_try" in
42654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42655 *) ac_try_echo=$ac_try;;
42657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42658 (eval "$ac_link") 2>conftest.er1
42660 grep -v '^ *+' conftest.er1 >conftest.err
42662 cat conftest.err >&5
42663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664 (exit $ac_status); } && {
42665 test -z "$ac_c_werror_flag" ||
42666 test ! -s conftest.err
42667 } && test -s conftest$ac_exeext &&
42668 $as_test_x conftest$ac_exeext; then
42669 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42671 echo "$as_me: failed program was:" >&5
42672 sed 's/^/| /' conftest.$ac_ext >&5
42674 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42678 conftest$ac_exeext conftest.$ac_ext
42679 LIBS=$ac_check_lib_save_LIBS
42681 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42682 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42683 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42686 cat >>confdefs.h <<\_ACEOF
42687 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42691 cat >>confdefs.h <<\_ACEOF
42692 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42695 FDLIBS="-lutil $FDLIBS"
42703 if test $have_xattr = no; then
42704 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42705 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42706 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42707 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42708 echo $ECHO_N "(cached) $ECHO_C" >&6
42710 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42711 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42713 # Is the header compilable?
42714 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42715 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42716 cat >conftest.$ac_ext <<_ACEOF
42719 cat confdefs.h >>conftest.$ac_ext
42720 cat >>conftest.$ac_ext <<_ACEOF
42721 /* end confdefs.h. */
42722 $ac_includes_default
42723 #include <sys/xattr.h>
42725 rm -f conftest.$ac_objext
42726 if { (ac_try="$ac_compile"
42727 case "(($ac_try" in
42728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42729 *) ac_try_echo=$ac_try;;
42731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42732 (eval "$ac_compile") 2>conftest.er1
42734 grep -v '^ *+' conftest.er1 >conftest.err
42736 cat conftest.err >&5
42737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738 (exit $ac_status); } && {
42739 test -z "$ac_c_werror_flag" ||
42740 test ! -s conftest.err
42741 } && test -s conftest.$ac_objext; then
42742 ac_header_compiler=yes
42744 echo "$as_me: failed program was:" >&5
42745 sed 's/^/| /' conftest.$ac_ext >&5
42747 ac_header_compiler=no
42750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42752 echo "${ECHO_T}$ac_header_compiler" >&6; }
42754 # Is the header present?
42755 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42756 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42757 cat >conftest.$ac_ext <<_ACEOF
42760 cat confdefs.h >>conftest.$ac_ext
42761 cat >>conftest.$ac_ext <<_ACEOF
42762 /* end confdefs.h. */
42763 #include <sys/xattr.h>
42765 if { (ac_try="$ac_cpp conftest.$ac_ext"
42766 case "(($ac_try" in
42767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42768 *) ac_try_echo=$ac_try;;
42770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42773 grep -v '^ *+' conftest.er1 >conftest.err
42775 cat conftest.err >&5
42776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777 (exit $ac_status); } >/dev/null && {
42778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42779 test ! -s conftest.err
42781 ac_header_preproc=yes
42783 echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42786 ac_header_preproc=no
42789 rm -f conftest.err conftest.$ac_ext
42790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42791 echo "${ECHO_T}$ac_header_preproc" >&6; }
42793 # So? What about this header?
42794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42796 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42797 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42798 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42799 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42800 ac_header_preproc=yes
42803 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42804 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42805 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42806 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42807 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42808 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42809 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42810 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42811 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42812 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42813 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42814 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42818 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42819 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42820 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42821 echo $ECHO_N "(cached) $ECHO_C" >&6
42823 ac_cv_header_sys_xattr_h=$ac_header_preproc
42825 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42826 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42829 if test $ac_cv_header_sys_xattr_h = yes; then
42831 cat >>confdefs.h <<\_ACEOF
42832 #define HAVE_SYS_XATTR_H 1
42841 for ac_func in llistxattr lgetxattr lsetxattr
42843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42847 echo $ECHO_N "(cached) $ECHO_C" >&6
42849 cat >conftest.$ac_ext <<_ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h. */
42855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42857 #define $ac_func innocuous_$ac_func
42859 /* System header to define __stub macros and hopefully few prototypes,
42860 which can conflict with char $ac_func (); below.
42861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42862 <limits.h> exists even on freestanding compilers. */
42865 # include <limits.h>
42867 # include <assert.h>
42872 /* Override any GCC internal prototype to avoid an error.
42873 Use char because int might match the return type of a GCC
42874 builtin and then its argument prototype would still apply. */
42879 /* The GNU C library defines this for functions which it implements
42880 to always fail with ENOSYS. Some functions are actually named
42881 something starting with __ and the normal name is an alias. */
42882 #if defined __stub_$ac_func || defined __stub___$ac_func
42889 return $ac_func ();
42894 rm -f conftest.$ac_objext conftest$ac_exeext
42895 if { (ac_try="$ac_link"
42896 case "(($ac_try" in
42897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42898 *) ac_try_echo=$ac_try;;
42900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42901 (eval "$ac_link") 2>conftest.er1
42903 grep -v '^ *+' conftest.er1 >conftest.err
42905 cat conftest.err >&5
42906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907 (exit $ac_status); } && {
42908 test -z "$ac_c_werror_flag" ||
42909 test ! -s conftest.err
42910 } && test -s conftest$ac_exeext &&
42911 $as_test_x conftest$ac_exeext; then
42912 eval "$as_ac_var=yes"
42914 echo "$as_me: failed program was:" >&5
42915 sed 's/^/| /' conftest.$ac_ext >&5
42917 eval "$as_ac_var=no"
42920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42921 conftest$ac_exeext conftest.$ac_ext
42923 ac_res=`eval echo '${'$as_ac_var'}'`
42924 { echo "$as_me:$LINENO: result: $ac_res" >&5
42925 echo "${ECHO_T}$ac_res" >&6; }
42926 if test `eval echo '${'$as_ac_var'}'` = yes; then
42927 cat >>confdefs.h <<_ACEOF
42928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42933 cat >>confdefs.h <<\_ACEOF
42934 #define HAVE_LLISTXATTR 1
42938 cat >>confdefs.h <<\_ACEOF
42939 #define HAVE_LGETXATTR 1
42943 cat >>confdefs.h <<\_ACEOF
42944 #define HAVE_LSETXATTR 1
42953 if test $have_xattr = no; then
42957 for ac_func in listxattr getxattr setxattr
42959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42963 echo $ECHO_N "(cached) $ECHO_C" >&6
42965 cat >conftest.$ac_ext <<_ACEOF
42968 cat confdefs.h >>conftest.$ac_ext
42969 cat >>conftest.$ac_ext <<_ACEOF
42970 /* end confdefs.h. */
42971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42973 #define $ac_func innocuous_$ac_func
42975 /* System header to define __stub macros and hopefully few prototypes,
42976 which can conflict with char $ac_func (); below.
42977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42978 <limits.h> exists even on freestanding compilers. */
42981 # include <limits.h>
42983 # include <assert.h>
42988 /* Override any GCC internal prototype to avoid an error.
42989 Use char because int might match the return type of a GCC
42990 builtin and then its argument prototype would still apply. */
42995 /* The GNU C library defines this for functions which it implements
42996 to always fail with ENOSYS. Some functions are actually named
42997 something starting with __ and the normal name is an alias. */
42998 #if defined __stub_$ac_func || defined __stub___$ac_func
43005 return $ac_func ();
43010 rm -f conftest.$ac_objext conftest$ac_exeext
43011 if { (ac_try="$ac_link"
43012 case "(($ac_try" in
43013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43014 *) ac_try_echo=$ac_try;;
43016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43017 (eval "$ac_link") 2>conftest.er1
43019 grep -v '^ *+' conftest.er1 >conftest.err
43021 cat conftest.err >&5
43022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023 (exit $ac_status); } && {
43024 test -z "$ac_c_werror_flag" ||
43025 test ! -s conftest.err
43026 } && test -s conftest$ac_exeext &&
43027 $as_test_x conftest$ac_exeext; then
43028 eval "$as_ac_var=yes"
43030 echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43033 eval "$as_ac_var=no"
43036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43037 conftest$ac_exeext conftest.$ac_ext
43039 ac_res=`eval echo '${'$as_ac_var'}'`
43040 { echo "$as_me:$LINENO: result: $ac_res" >&5
43041 echo "${ECHO_T}$ac_res" >&6; }
43042 if test `eval echo '${'$as_ac_var'}'` = yes; then
43043 cat >>confdefs.h <<_ACEOF
43044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43049 cat >>confdefs.h <<\_ACEOF
43050 #define HAVE_LISTXATTR 1
43054 cat >>confdefs.h <<\_ACEOF
43055 #define HAVE_GETXATTR 1
43059 cat >>confdefs.h <<\_ACEOF
43060 #define HAVE_SETXATTR 1
43071 if test $have_xattr = no; then
43072 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43073 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43074 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43075 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43076 echo $ECHO_N "(cached) $ECHO_C" >&6
43078 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43079 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43081 # Is the header compilable?
43082 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
43083 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
43084 cat >conftest.$ac_ext <<_ACEOF
43087 cat confdefs.h >>conftest.$ac_ext
43088 cat >>conftest.$ac_ext <<_ACEOF
43089 /* end confdefs.h. */
43090 $ac_includes_default
43091 #include <sys/attr.h>
43093 rm -f conftest.$ac_objext
43094 if { (ac_try="$ac_compile"
43095 case "(($ac_try" in
43096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43097 *) ac_try_echo=$ac_try;;
43099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43100 (eval "$ac_compile") 2>conftest.er1
43102 grep -v '^ *+' conftest.er1 >conftest.err
43104 cat conftest.err >&5
43105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106 (exit $ac_status); } && {
43107 test -z "$ac_c_werror_flag" ||
43108 test ! -s conftest.err
43109 } && test -s conftest.$ac_objext; then
43110 ac_header_compiler=yes
43112 echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43115 ac_header_compiler=no
43118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43120 echo "${ECHO_T}$ac_header_compiler" >&6; }
43122 # Is the header present?
43123 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
43124 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
43125 cat >conftest.$ac_ext <<_ACEOF
43128 cat confdefs.h >>conftest.$ac_ext
43129 cat >>conftest.$ac_ext <<_ACEOF
43130 /* end confdefs.h. */
43131 #include <sys/attr.h>
43133 if { (ac_try="$ac_cpp conftest.$ac_ext"
43134 case "(($ac_try" in
43135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43136 *) ac_try_echo=$ac_try;;
43138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43141 grep -v '^ *+' conftest.er1 >conftest.err
43143 cat conftest.err >&5
43144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145 (exit $ac_status); } >/dev/null && {
43146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43147 test ! -s conftest.err
43149 ac_header_preproc=yes
43151 echo "$as_me: failed program was:" >&5
43152 sed 's/^/| /' conftest.$ac_ext >&5
43154 ac_header_preproc=no
43157 rm -f conftest.err conftest.$ac_ext
43158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43159 echo "${ECHO_T}$ac_header_preproc" >&6; }
43161 # So? What about this header?
43162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43164 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43165 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43166 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
43167 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
43168 ac_header_preproc=yes
43171 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
43172 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
43173 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
43174 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
43175 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
43176 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
43177 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
43178 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43179 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
43180 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
43181 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
43182 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
43186 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43187 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43188 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43189 echo $ECHO_N "(cached) $ECHO_C" >&6
43191 ac_cv_header_sys_attr_h=$ac_header_preproc
43193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43194 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43197 if test $ac_cv_header_sys_attr_h = yes; then
43199 cat >>confdefs.h <<\_ACEOF
43200 #define HAVE_SYS_ATTR_H 1
43206 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43207 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43208 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43209 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43210 echo $ECHO_N "(cached) $ECHO_C" >&6
43212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43213 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43215 # Is the header compilable?
43216 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
43217 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
43218 cat >conftest.$ac_ext <<_ACEOF
43221 cat confdefs.h >>conftest.$ac_ext
43222 cat >>conftest.$ac_ext <<_ACEOF
43223 /* end confdefs.h. */
43224 $ac_includes_default
43225 #include <sys/nvpair.h>
43227 rm -f conftest.$ac_objext
43228 if { (ac_try="$ac_compile"
43229 case "(($ac_try" in
43230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43231 *) ac_try_echo=$ac_try;;
43233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43234 (eval "$ac_compile") 2>conftest.er1
43236 grep -v '^ *+' conftest.er1 >conftest.err
43238 cat conftest.err >&5
43239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240 (exit $ac_status); } && {
43241 test -z "$ac_c_werror_flag" ||
43242 test ! -s conftest.err
43243 } && test -s conftest.$ac_objext; then
43244 ac_header_compiler=yes
43246 echo "$as_me: failed program was:" >&5
43247 sed 's/^/| /' conftest.$ac_ext >&5
43249 ac_header_compiler=no
43252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43254 echo "${ECHO_T}$ac_header_compiler" >&6; }
43256 # Is the header present?
43257 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
43258 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
43259 cat >conftest.$ac_ext <<_ACEOF
43262 cat confdefs.h >>conftest.$ac_ext
43263 cat >>conftest.$ac_ext <<_ACEOF
43264 /* end confdefs.h. */
43265 #include <sys/nvpair.h>
43267 if { (ac_try="$ac_cpp conftest.$ac_ext"
43268 case "(($ac_try" in
43269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43270 *) ac_try_echo=$ac_try;;
43272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43275 grep -v '^ *+' conftest.er1 >conftest.err
43277 cat conftest.err >&5
43278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43279 (exit $ac_status); } >/dev/null && {
43280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43281 test ! -s conftest.err
43283 ac_header_preproc=yes
43285 echo "$as_me: failed program was:" >&5
43286 sed 's/^/| /' conftest.$ac_ext >&5
43288 ac_header_preproc=no
43291 rm -f conftest.err conftest.$ac_ext
43292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43293 echo "${ECHO_T}$ac_header_preproc" >&6; }
43295 # So? What about this header?
43296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43298 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
43299 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43300 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
43301 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
43302 ac_header_preproc=yes
43305 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
43306 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
43307 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
43308 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
43309 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
43310 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
43311 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
43312 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
43313 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
43314 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
43315 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
43316 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
43320 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43321 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43322 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43323 echo $ECHO_N "(cached) $ECHO_C" >&6
43325 ac_cv_header_sys_nvpair_h=$ac_header_preproc
43327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43328 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43331 if test $ac_cv_header_sys_nvpair_h = yes; then
43333 cat >>confdefs.h <<\_ACEOF
43334 #define HAVE_SYS_NVPAIR_H 1
43340 if test "${ac_cv_header_attr_h+set}" = set; then
43341 { echo "$as_me:$LINENO: checking for attr.h" >&5
43342 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43343 if test "${ac_cv_header_attr_h+set}" = set; then
43344 echo $ECHO_N "(cached) $ECHO_C" >&6
43346 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43347 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43349 # Is the header compilable?
43350 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43351 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43352 cat >conftest.$ac_ext <<_ACEOF
43355 cat confdefs.h >>conftest.$ac_ext
43356 cat >>conftest.$ac_ext <<_ACEOF
43357 /* end confdefs.h. */
43358 $ac_includes_default
43361 rm -f conftest.$ac_objext
43362 if { (ac_try="$ac_compile"
43363 case "(($ac_try" in
43364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43365 *) ac_try_echo=$ac_try;;
43367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43368 (eval "$ac_compile") 2>conftest.er1
43370 grep -v '^ *+' conftest.er1 >conftest.err
43372 cat conftest.err >&5
43373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43374 (exit $ac_status); } && {
43375 test -z "$ac_c_werror_flag" ||
43376 test ! -s conftest.err
43377 } && test -s conftest.$ac_objext; then
43378 ac_header_compiler=yes
43380 echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43383 ac_header_compiler=no
43386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43388 echo "${ECHO_T}$ac_header_compiler" >&6; }
43390 # Is the header present?
43391 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43392 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43393 cat >conftest.$ac_ext <<_ACEOF
43396 cat confdefs.h >>conftest.$ac_ext
43397 cat >>conftest.$ac_ext <<_ACEOF
43398 /* end confdefs.h. */
43401 if { (ac_try="$ac_cpp conftest.$ac_ext"
43402 case "(($ac_try" in
43403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43404 *) ac_try_echo=$ac_try;;
43406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43409 grep -v '^ *+' conftest.er1 >conftest.err
43411 cat conftest.err >&5
43412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413 (exit $ac_status); } >/dev/null && {
43414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43415 test ! -s conftest.err
43417 ac_header_preproc=yes
43419 echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43422 ac_header_preproc=no
43425 rm -f conftest.err conftest.$ac_ext
43426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43427 echo "${ECHO_T}$ac_header_preproc" >&6; }
43429 # So? What about this header?
43430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43432 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43433 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43434 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43435 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43436 ac_header_preproc=yes
43439 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43440 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43441 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
43442 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
43443 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43444 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43445 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
43446 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43447 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43448 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43449 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43450 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43454 { echo "$as_me:$LINENO: checking for attr.h" >&5
43455 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43456 if test "${ac_cv_header_attr_h+set}" = set; then
43457 echo $ECHO_N "(cached) $ECHO_C" >&6
43459 ac_cv_header_attr_h=$ac_header_preproc
43461 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43462 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43465 if test $ac_cv_header_attr_h = yes; then
43467 cat >>confdefs.h <<\_ACEOF
43468 #define HAVE_ATTR_H 1
43480 for ac_func in openat fstatat unlinkat fchownat futimesat
43482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43486 echo $ECHO_N "(cached) $ECHO_C" >&6
43488 cat >conftest.$ac_ext <<_ACEOF
43491 cat confdefs.h >>conftest.$ac_ext
43492 cat >>conftest.$ac_ext <<_ACEOF
43493 /* end confdefs.h. */
43494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43496 #define $ac_func innocuous_$ac_func
43498 /* System header to define __stub macros and hopefully few prototypes,
43499 which can conflict with char $ac_func (); below.
43500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43501 <limits.h> exists even on freestanding compilers. */
43504 # include <limits.h>
43506 # include <assert.h>
43511 /* Override any GCC internal prototype to avoid an error.
43512 Use char because int might match the return type of a GCC
43513 builtin and then its argument prototype would still apply. */
43518 /* The GNU C library defines this for functions which it implements
43519 to always fail with ENOSYS. Some functions are actually named
43520 something starting with __ and the normal name is an alias. */
43521 #if defined __stub_$ac_func || defined __stub___$ac_func
43528 return $ac_func ();
43533 rm -f conftest.$ac_objext conftest$ac_exeext
43534 if { (ac_try="$ac_link"
43535 case "(($ac_try" in
43536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43537 *) ac_try_echo=$ac_try;;
43539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43540 (eval "$ac_link") 2>conftest.er1
43542 grep -v '^ *+' conftest.er1 >conftest.err
43544 cat conftest.err >&5
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); } && {
43547 test -z "$ac_c_werror_flag" ||
43548 test ! -s conftest.err
43549 } && test -s conftest$ac_exeext &&
43550 $as_test_x conftest$ac_exeext; then
43551 eval "$as_ac_var=yes"
43553 echo "$as_me: failed program was:" >&5
43554 sed 's/^/| /' conftest.$ac_ext >&5
43556 eval "$as_ac_var=no"
43559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43560 conftest$ac_exeext conftest.$ac_ext
43562 ac_res=`eval echo '${'$as_ac_var'}'`
43563 { echo "$as_me:$LINENO: result: $ac_res" >&5
43564 echo "${ECHO_T}$ac_res" >&6; }
43565 if test `eval echo '${'$as_ac_var'}'` = yes; then
43566 cat >>confdefs.h <<_ACEOF
43567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43572 cat >>confdefs.h <<\_ACEOF
43573 #define HAVE_OPENAT 1
43577 cat >>confdefs.h <<\_ACEOF
43578 #define HAVE_FSTATAT 1
43582 cat >>confdefs.h <<\_ACEOF
43583 #define HAVE_UNLINKAT 1
43587 cat >>confdefs.h <<\_ACEOF
43588 #define HAVE_FCHOWNAT 1
43592 cat >>confdefs.h <<\_ACEOF
43593 #define HAVE_FUTIMESAT 1
43602 if test $have_xattr = yes; then
43603 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43604 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43605 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43606 echo $ECHO_N "(cached) $ECHO_C" >&6
43608 ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lnvpair $LIBS"
43610 cat >conftest.$ac_ext <<_ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h. */
43617 /* Override any GCC internal prototype to avoid an error.
43618 Use char because int might match the return type of a GCC
43619 builtin and then its argument prototype would still apply. */
43623 char nvlist_next_nvpair ();
43627 return nvlist_next_nvpair ();
43632 rm -f conftest.$ac_objext conftest$ac_exeext
43633 if { (ac_try="$ac_link"
43634 case "(($ac_try" in
43635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43636 *) ac_try_echo=$ac_try;;
43638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43639 (eval "$ac_link") 2>conftest.er1
43641 grep -v '^ *+' conftest.er1 >conftest.err
43643 cat conftest.err >&5
43644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43645 (exit $ac_status); } && {
43646 test -z "$ac_c_werror_flag" ||
43647 test ! -s conftest.err
43648 } && test -s conftest$ac_exeext &&
43649 $as_test_x conftest$ac_exeext; then
43650 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43652 echo "$as_me: failed program was:" >&5
43653 sed 's/^/| /' conftest.$ac_ext >&5
43655 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43659 conftest$ac_exeext conftest.$ac_ext
43660 LIBS=$ac_check_lib_save_LIBS
43662 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43663 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43664 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43667 cat >>confdefs.h <<\_ACEOF
43668 #define HAVE_NVLIST_NEXT_NVPAIR 1
43671 FDLIBS="-lnvpair $FDLIBS"
43679 if test x$support_xattr = xyes -a $have_xattr != yes; then
43680 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43681 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43682 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43683 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43684 { (exit 1); exit 1; }; }
43686 if test $have_xattr = yes; then
43688 cat >>confdefs.h <<\_ACEOF
43689 #define HAVE_XATTR 1
43697 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43698 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43699 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43700 echo $ECHO_N "(cached) $ECHO_C" >&6
43702 ac_check_lib_save_LIBS=$LIBS
43703 LIBS="-lpthread $LIBS"
43704 cat >conftest.$ac_ext <<_ACEOF
43707 cat confdefs.h >>conftest.$ac_ext
43708 cat >>conftest.$ac_ext <<_ACEOF
43709 /* end confdefs.h. */
43711 /* Override any GCC internal prototype to avoid an error.
43712 Use char because int might match the return type of a GCC
43713 builtin and then its argument prototype would still apply. */
43717 char pthread_create ();
43721 return pthread_create ();
43726 rm -f conftest.$ac_objext conftest$ac_exeext
43727 if { (ac_try="$ac_link"
43728 case "(($ac_try" in
43729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43730 *) ac_try_echo=$ac_try;;
43732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43733 (eval "$ac_link") 2>conftest.er1
43735 grep -v '^ *+' conftest.er1 >conftest.err
43737 cat conftest.err >&5
43738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739 (exit $ac_status); } && {
43740 test -z "$ac_c_werror_flag" ||
43741 test ! -s conftest.err
43742 } && test -s conftest$ac_exeext &&
43743 $as_test_x conftest$ac_exeext; then
43744 ac_cv_lib_pthread_pthread_create=yes
43746 echo "$as_me: failed program was:" >&5
43747 sed 's/^/| /' conftest.$ac_ext >&5
43749 ac_cv_lib_pthread_pthread_create=no
43752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43753 conftest$ac_exeext conftest.$ac_ext
43754 LIBS=$ac_check_lib_save_LIBS
43756 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43757 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43758 if test $ac_cv_lib_pthread_pthread_create = yes; then
43759 PTHREAD_LIB="-lpthread"
43762 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43763 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43764 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43765 echo $ECHO_N "(cached) $ECHO_C" >&6
43767 ac_check_lib_save_LIBS=$LIBS
43768 LIBS="-lpthreads $LIBS"
43769 cat >conftest.$ac_ext <<_ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h. */
43776 /* Override any GCC internal prototype to avoid an error.
43777 Use char because int might match the return type of a GCC
43778 builtin and then its argument prototype would still apply. */
43782 char pthread_create ();
43786 return pthread_create ();
43791 rm -f conftest.$ac_objext conftest$ac_exeext
43792 if { (ac_try="$ac_link"
43793 case "(($ac_try" in
43794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43795 *) ac_try_echo=$ac_try;;
43797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43798 (eval "$ac_link") 2>conftest.er1
43800 grep -v '^ *+' conftest.er1 >conftest.err
43802 cat conftest.err >&5
43803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804 (exit $ac_status); } && {
43805 test -z "$ac_c_werror_flag" ||
43806 test ! -s conftest.err
43807 } && test -s conftest$ac_exeext &&
43808 $as_test_x conftest$ac_exeext; then
43809 ac_cv_lib_pthreads_pthread_create=yes
43811 echo "$as_me: failed program was:" >&5
43812 sed 's/^/| /' conftest.$ac_ext >&5
43814 ac_cv_lib_pthreads_pthread_create=no
43817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43818 conftest$ac_exeext conftest.$ac_ext
43819 LIBS=$ac_check_lib_save_LIBS
43821 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43822 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43823 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43824 PTHREAD_LIB="-lpthreads"
43827 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43830 echo $ECHO_N "(cached) $ECHO_C" >&6
43832 ac_check_lib_save_LIBS=$LIBS
43834 cat >conftest.$ac_ext <<_ACEOF
43837 cat confdefs.h >>conftest.$ac_ext
43838 cat >>conftest.$ac_ext <<_ACEOF
43839 /* end confdefs.h. */
43841 /* Override any GCC internal prototype to avoid an error.
43842 Use char because int might match the return type of a GCC
43843 builtin and then its argument prototype would still apply. */
43847 char pthread_create ();
43851 return pthread_create ();
43856 rm -f conftest.$ac_objext conftest$ac_exeext
43857 if { (ac_try="$ac_link"
43858 case "(($ac_try" in
43859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43860 *) ac_try_echo=$ac_try;;
43862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43863 (eval "$ac_link") 2>conftest.er1
43865 grep -v '^ *+' conftest.er1 >conftest.err
43867 cat conftest.err >&5
43868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43869 (exit $ac_status); } && {
43870 test -z "$ac_c_werror_flag" ||
43871 test ! -s conftest.err
43872 } && test -s conftest$ac_exeext &&
43873 $as_test_x conftest$ac_exeext; then
43874 ac_cv_lib_c_r_pthread_create=yes
43876 echo "$as_me: failed program was:" >&5
43877 sed 's/^/| /' conftest.$ac_ext >&5
43879 ac_cv_lib_c_r_pthread_create=no
43882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43883 conftest$ac_exeext conftest.$ac_ext
43884 LIBS=$ac_check_lib_save_LIBS
43886 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43888 if test $ac_cv_lib_c_r_pthread_create = yes; then
43889 PTHREAD_LIB="-lc_r"
43892 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43893 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43894 if test "${ac_cv_func_pthread_create+set}" = set; then
43895 echo $ECHO_N "(cached) $ECHO_C" >&6
43897 cat >conftest.$ac_ext <<_ACEOF
43900 cat confdefs.h >>conftest.$ac_ext
43901 cat >>conftest.$ac_ext <<_ACEOF
43902 /* end confdefs.h. */
43903 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43905 #define pthread_create innocuous_pthread_create
43907 /* System header to define __stub macros and hopefully few prototypes,
43908 which can conflict with char pthread_create (); below.
43909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43910 <limits.h> exists even on freestanding compilers. */
43913 # include <limits.h>
43915 # include <assert.h>
43918 #undef pthread_create
43920 /* Override any GCC internal prototype to avoid an error.
43921 Use char because int might match the return type of a GCC
43922 builtin and then its argument prototype would still apply. */
43926 char pthread_create ();
43927 /* The GNU C library defines this for functions which it implements
43928 to always fail with ENOSYS. Some functions are actually named
43929 something starting with __ and the normal name is an alias. */
43930 #if defined __stub_pthread_create || defined __stub___pthread_create
43937 return pthread_create ();
43942 rm -f conftest.$ac_objext conftest$ac_exeext
43943 if { (ac_try="$ac_link"
43944 case "(($ac_try" in
43945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43946 *) ac_try_echo=$ac_try;;
43948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43949 (eval "$ac_link") 2>conftest.er1
43951 grep -v '^ *+' conftest.er1 >conftest.err
43953 cat conftest.err >&5
43954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43955 (exit $ac_status); } && {
43956 test -z "$ac_c_werror_flag" ||
43957 test ! -s conftest.err
43958 } && test -s conftest$ac_exeext &&
43959 $as_test_x conftest$ac_exeext; then
43960 ac_cv_func_pthread_create=yes
43962 echo "$as_me: failed program was:" >&5
43963 sed 's/^/| /' conftest.$ac_ext >&5
43965 ac_cv_func_pthread_create=no
43968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43969 conftest$ac_exeext conftest.$ac_ext
43971 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43972 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43989 for ac_header in sys/prctl.h sys/capability.h
43991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43996 echo $ECHO_N "(cached) $ECHO_C" >&6
43998 ac_res=`eval echo '${'$as_ac_Header'}'`
43999 { echo "$as_me:$LINENO: result: $ac_res" >&5
44000 echo "${ECHO_T}$ac_res" >&6; }
44002 # Is the header compilable?
44003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44005 cat >conftest.$ac_ext <<_ACEOF
44008 cat confdefs.h >>conftest.$ac_ext
44009 cat >>conftest.$ac_ext <<_ACEOF
44010 /* end confdefs.h. */
44011 $ac_includes_default
44012 #include <$ac_header>
44014 rm -f conftest.$ac_objext
44015 if { (ac_try="$ac_compile"
44016 case "(($ac_try" in
44017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44018 *) ac_try_echo=$ac_try;;
44020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44021 (eval "$ac_compile") 2>conftest.er1
44023 grep -v '^ *+' conftest.er1 >conftest.err
44025 cat conftest.err >&5
44026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44027 (exit $ac_status); } && {
44028 test -z "$ac_c_werror_flag" ||
44029 test ! -s conftest.err
44030 } && test -s conftest.$ac_objext; then
44031 ac_header_compiler=yes
44033 echo "$as_me: failed program was:" >&5
44034 sed 's/^/| /' conftest.$ac_ext >&5
44036 ac_header_compiler=no
44039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44041 echo "${ECHO_T}$ac_header_compiler" >&6; }
44043 # Is the header present?
44044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44046 cat >conftest.$ac_ext <<_ACEOF
44049 cat confdefs.h >>conftest.$ac_ext
44050 cat >>conftest.$ac_ext <<_ACEOF
44051 /* end confdefs.h. */
44052 #include <$ac_header>
44054 if { (ac_try="$ac_cpp conftest.$ac_ext"
44055 case "(($ac_try" in
44056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44057 *) ac_try_echo=$ac_try;;
44059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44062 grep -v '^ *+' conftest.er1 >conftest.err
44064 cat conftest.err >&5
44065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066 (exit $ac_status); } >/dev/null && {
44067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44068 test ! -s conftest.err
44070 ac_header_preproc=yes
44072 echo "$as_me: failed program was:" >&5
44073 sed 's/^/| /' conftest.$ac_ext >&5
44075 ac_header_preproc=no
44078 rm -f conftest.err conftest.$ac_ext
44079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44080 echo "${ECHO_T}$ac_header_preproc" >&6; }
44082 # So? What about this header?
44083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44089 ac_header_preproc=yes
44092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44110 echo $ECHO_N "(cached) $ECHO_C" >&6
44112 eval "$as_ac_Header=\$ac_header_preproc"
44114 ac_res=`eval echo '${'$as_ac_Header'}'`
44115 { echo "$as_me:$LINENO: result: $ac_res" >&5
44116 echo "${ECHO_T}$ac_res" >&6; }
44119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44120 cat >>confdefs.h <<_ACEOF
44121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44130 for ac_func in prctl setreuid
44132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44136 echo $ECHO_N "(cached) $ECHO_C" >&6
44138 cat >conftest.$ac_ext <<_ACEOF
44141 cat confdefs.h >>conftest.$ac_ext
44142 cat >>conftest.$ac_ext <<_ACEOF
44143 /* end confdefs.h. */
44144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44146 #define $ac_func innocuous_$ac_func
44148 /* System header to define __stub macros and hopefully few prototypes,
44149 which can conflict with char $ac_func (); below.
44150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44151 <limits.h> exists even on freestanding compilers. */
44154 # include <limits.h>
44156 # include <assert.h>
44161 /* Override any GCC internal prototype to avoid an error.
44162 Use char because int might match the return type of a GCC
44163 builtin and then its argument prototype would still apply. */
44168 /* The GNU C library defines this for functions which it implements
44169 to always fail with ENOSYS. Some functions are actually named
44170 something starting with __ and the normal name is an alias. */
44171 #if defined __stub_$ac_func || defined __stub___$ac_func
44178 return $ac_func ();
44183 rm -f conftest.$ac_objext conftest$ac_exeext
44184 if { (ac_try="$ac_link"
44185 case "(($ac_try" in
44186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44187 *) ac_try_echo=$ac_try;;
44189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44190 (eval "$ac_link") 2>conftest.er1
44192 grep -v '^ *+' conftest.er1 >conftest.err
44194 cat conftest.err >&5
44195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44196 (exit $ac_status); } && {
44197 test -z "$ac_c_werror_flag" ||
44198 test ! -s conftest.err
44199 } && test -s conftest$ac_exeext &&
44200 $as_test_x conftest$ac_exeext; then
44201 eval "$as_ac_var=yes"
44203 echo "$as_me: failed program was:" >&5
44204 sed 's/^/| /' conftest.$ac_ext >&5
44206 eval "$as_ac_var=no"
44209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44210 conftest$ac_exeext conftest.$ac_ext
44212 ac_res=`eval echo '${'$as_ac_var'}'`
44213 { echo "$as_me:$LINENO: result: $ac_res" >&5
44214 echo "${ECHO_T}$ac_res" >&6; }
44215 if test `eval echo '${'$as_ac_var'}'` = yes; then
44216 cat >>confdefs.h <<_ACEOF
44217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44223 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
44224 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
44225 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
44226 echo $ECHO_N "(cached) $ECHO_C" >&6
44228 ac_check_lib_save_LIBS=$LIBS
44230 cat >conftest.$ac_ext <<_ACEOF
44233 cat confdefs.h >>conftest.$ac_ext
44234 cat >>conftest.$ac_ext <<_ACEOF
44235 /* end confdefs.h. */
44237 /* Override any GCC internal prototype to avoid an error.
44238 Use char because int might match the return type of a GCC
44239 builtin and then its argument prototype would still apply. */
44243 char cap_set_proc ();
44247 return cap_set_proc ();
44252 rm -f conftest.$ac_objext conftest$ac_exeext
44253 if { (ac_try="$ac_link"
44254 case "(($ac_try" in
44255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44256 *) ac_try_echo=$ac_try;;
44258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44259 (eval "$ac_link") 2>conftest.er1
44261 grep -v '^ *+' conftest.er1 >conftest.err
44263 cat conftest.err >&5
44264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); } && {
44266 test -z "$ac_c_werror_flag" ||
44267 test ! -s conftest.err
44268 } && test -s conftest$ac_exeext &&
44269 $as_test_x conftest$ac_exeext; then
44270 ac_cv_lib_cap_cap_set_proc=yes
44272 echo "$as_me: failed program was:" >&5
44273 sed 's/^/| /' conftest.$ac_ext >&5
44275 ac_cv_lib_cap_cap_set_proc=no
44278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44279 conftest$ac_exeext conftest.$ac_ext
44280 LIBS=$ac_check_lib_save_LIBS
44282 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
44283 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
44284 if test $ac_cv_lib_cap_cap_set_proc = yes; then
44290 if test x$CAP_LIBS = x-lcap; then
44292 cat >>confdefs.h <<\_ACEOF
44293 #define HAVE_LIBCAP 1
44300 cat >>confdefs.h <<\_ACEOF
44305 CFLAGS=${CFLAGS--O}
44307 if test x$have_gcc = xyes ; then
44308 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44309 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44311 LDFLAGS=${LDFLAGS--O}
44312 DB_LIBS="${SQL_LFLAGS}"
44313 CPPFLAGS="$CPPFLAGS"
44340 PFILES="platforms/Makefile"
44345 hostname=`uname -n | cut -d '.' -f 1`
44346 if test x${hostname} = x ; then
44347 hostname="localhost"
44349 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44350 if test ! $? = 0; then
44351 hostname="localhost"
44354 case "$DISTNAME" in
44357 PSCMD="ps -e -o pid,comm"
44358 PFILES="${PFILES} \
44359 platforms/aix/Makefile"
44360 TAPEDRIVE="/dev/rmt0.1"
44364 PTHREAD_LIB="-lpthread -lexc"
44365 if test "${CC}" = "gcc" ; then
44372 TAPEDRIVE="/dev/nrmt0"
44375 DISTVER=`uname -a |awk '{print $3}'`
44376 TAPEDRIVE="/dev/nrmt0"
44377 PTHREAD_LIB="-pthread"
44378 CFLAGS="${CFLAGS} -pthread"
44379 PSCMD="ps -ax -o pid,command"
44382 PFILES="${PFILES} \
44383 platforms/bsdi/Makefile \
44384 platforms/bsdi/bacula-fd \
44385 platforms/bsdi/bacula-sd \
44386 platforms/bsdi/bacula-dir"
44387 largefile_support="yes"
44390 DISTVER=`uname -a |awk '{print $3}'`
44391 TAPEDRIVE="/dev/nrst0"
44393 WCFLAGS="-mwindows"
44394 WLDFLAGS="-mwindows"
44398 TAPEDRIVE="/dev/nst0"
44399 PSCMD="ps -e -o pid,command"
44401 PFILES="${PFILES} \
44402 platforms/darwin/Makefile"
44406 TAPEDRIVE="/dev/nst0"
44407 PSCMD="ps -e -o pid,command"
44409 PFILES="${PFILES} \
44410 platforms/osx/Makefile"
44413 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44416 DISTVER=`cat /etc/debian_version`
44417 if test -f /etc/lsb-release ; then
44419 if test "x$DISTRIB_ID" != "x" ; then
44420 DISTNAME=$DISTRIB_ID
44422 if test "x$DISTRIB_RELEASE" != "x" ; then
44423 DISTVER=$DISTRIB_RELEASE
44426 if test "$DISTNAME" = "Ubuntu" ; then
44429 TAPEDRIVE="/dev/nst0"
44430 PSCMD="ps -e -o pid,command"
44431 if test "$DISTNAME" = "ubuntu" ; then
44432 PFILES="${PFILES} \
44433 platforms/ubuntu/Makefile \
44434 platforms/ubuntu/bacula-fd \
44435 platforms/ubuntu/bacula-sd \
44436 platforms/ubuntu/bacula-dir"
44438 PFILES="${PFILES} \
44439 platforms/debian/Makefile \
44440 platforms/debian/bacula-fd \
44441 platforms/debian/bacula-sd \
44442 platforms/debian/bacula-dir"
44446 DISTVER=`uname -a |awk '{print $3}'`
44447 VER=`echo $DISTVER | cut -c 1`
44448 if test x$VER = x4 ; then
44449 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44450 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44454 TAPEDRIVE="/dev/nrsa0"
44455 PSCMD="ps -ax -o pid,command"
44456 PFILES="${PFILES} \
44457 platforms/freebsd/Makefile \
44458 platforms/freebsd/bacula-fd \
44459 platforms/freebsd/bacula-sd \
44460 platforms/freebsd/bacula-dir"
44461 largefile_support="yes"
44464 PSCMD="UNIX95=1; ps -e -o pid,comm"
44465 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44467 TAPEDRIVE="/dev/rmt/0hnb"
44468 PTHREAD_LIB="-lpthread"
44469 cat >>confdefs.h <<\_ACEOF
44470 #define _INCLUDE_LONGLONG 1
44476 TAPEDRIVE="/dev/rmt/0cbn"
44477 PSCMD="ps -e -o pid,comm"
44478 PFILES="${PFILES} \
44479 platforms/irix/Makefile \
44480 platforms/irix/bacula-fd \
44481 platforms/irix/bacula-sd \
44482 platforms/irix/bacula-dir"
44485 DISTVER=`uname -a |awk '{print $3}'`
44488 TAPEDRIVE="/dev/nrst0"
44489 PSCMD="ps -ax -o pid,command"
44490 PTHREAD_LIB="-pthread"
44491 CFLAGS="${CFLAGS} -pthread"
44494 DISTVER=`uname -a |awk '{print $3}'`
44497 TAPEDRIVE="/dev/nrst0"
44498 PSCMD="ps -ax -o pid,command"
44499 PTHREAD_LIB="-pthread"
44500 CFLAGS="${CFLAGS} -pthread"
44501 PFILES="${PFILES} \
44502 platforms/openbsd/Makefile \
44503 platforms/openbsd/bacula-fd \
44504 platforms/openbsd/bacula-sd \
44505 platforms/openbsd/bacula-dir"
44508 if test -f /etc/whitebox-release ; then
44509 f=/etc/whitebox-release
44511 f=/etc/redhat-release
44513 if test `cat $f | grep release |\
44514 cut -f 3 -d ' '`x = "Enterprise"x ; then
44515 DISTVER="Enterprise "`cat $f | grep release |\
44518 DISTVER=`cat /etc/redhat-release | grep release |\
44521 TAPEDRIVE="/dev/nst0"
44522 PSCMD="ps -e -o pid,command"
44523 PFILES="${PFILES} \
44524 platforms/redhat/Makefile \
44525 platforms/redhat/bacula-fd \
44526 platforms/redhat/bacula-sd \
44527 platforms/redhat/bacula-dir
44531 DISTVER=`cat /etc/mandrake-release | grep release |\
44533 TAPEDRIVE="/dev/nst0"
44534 PSCMD="ps -e -o pid,command"
44535 PFILES="${PFILES} \
44536 platforms/mandrake/Makefile \
44537 platforms/mandrake/bacula-fd \
44538 platforms/mandrake/bacula-sd \
44539 platforms/mandrake/bacula-dir \
44543 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44544 TAPEDRIVE="/dev/nst0"
44545 PSCMD="ps -e -o pid,command"
44546 PFILES="${PFILES} \
44547 platforms/gentoo/Makefile \
44548 platforms/gentoo/bacula-init \
44549 platforms/gentoo/bacula-fd \
44550 platforms/gentoo/bacula-sd \
44551 platforms/gentoo/bacula-dir"
44554 DISTVER=`cat /etc/slackware-version`
44555 TAPEDRIVE="/dev/nst0"
44556 PSCMD="ps -e -o pid,command"
44557 PFILES="${PFILES} \
44558 platforms/slackware/Makefile \
44559 platforms/slackware/rc.bacula-fd \
44560 platforms/slackware/rc.bacula-sd \
44561 platforms/slackware/rc.bacula-dir\
44562 platforms/slackware/functions.bacula"
44566 TAPEDRIVE="/dev/rmt/0cbn"
44567 PSCMD="ps -e -o pid,comm"
44568 PFILES="${PFILES} \
44569 platforms/solaris/Makefile \
44570 platforms/solaris/bacula-fd \
44571 platforms/solaris/bacula-sd \
44572 platforms/solaris/bacula-dir"
44573 if test x$DISTVER = x5.6 ; then
44574 cat >>confdefs.h <<\_ACEOF
44575 #define HAVE_OLD_SOCKOPT 1
44579 LIBS="$LIBS -lresolv -lrt"
44582 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44584 TAPEDRIVE="/dev/nst0"
44585 PSCMD="ps -e -o pid,command"
44586 PFILES="${PFILES} \
44587 platforms/suse/Makefile \
44588 platforms/suse/bacula-fd \
44589 platforms/suse/bacula-sd \
44590 platforms/suse/bacula-dir \
44591 platforms/suse/bacula"
44596 TAPEDRIVE="/dev/nst0"
44597 PSCMD="ps -e -o pid,command"
44598 PFILES="${PFILES} \
44599 platforms/suse/Makefile \
44600 platforms/suse/bacula-fd \
44601 platforms/suse/bacula-sd \
44602 platforms/suse/bacula-dir"
44606 TAPEDRIVE="/dev/nst0"
44609 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44615 LIBS="$PTHREAD_LIB $LIBS"
44617 cat >>confdefs.h <<_ACEOF
44621 cat >>confdefs.h <<_ACEOF
44632 MCOMMON=./autoconf/Make.common
44635 if test "x${subsysdir}" = "x${sbindir}" ; then
44638 echo "You have set both --sbindir and --with-subsys-dir"
44639 echo " equal to: ${subsysdir} "
44640 echo "This is not permitted. Please reconfigure."
44642 echo "Aborting configuration ..."
44648 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/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 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.pl 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_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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44650 ac_config_commands="$ac_config_commands default"
44652 cat >confcache <<\_ACEOF
44653 # This file is a shell script that caches the results of configure
44654 # tests run on this system so they can be shared between configure
44655 # scripts and configure runs, see configure's option --config-cache.
44656 # It is not useful on other systems. If it contains results you don't
44657 # want to keep, you may remove or edit it.
44659 # config.status only pays attention to the cache file if you give it
44660 # the --recheck option to rerun configure.
44662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44664 # following values.
44668 # The following way of writing the cache mishandles newlines in values,
44669 # but we know of no workaround that is simple, portable, and efficient.
44670 # So, we kill variables containing newlines.
44671 # Ultrix sh set writes to stderr and can't be redirected directly,
44672 # and sets the high bit in the cache file unless we assign to the vars.
44674 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44675 eval ac_val=\$$ac_var
44679 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44683 _ | IFS | as_nl) ;; #(
44684 *) $as_unset $ac_var ;;
44690 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44691 *${as_nl}ac_space=\ *)
44692 # `set' does not quote correctly, so add quotes (double-quote
44693 # substitution turns \\\\ into \\, and sed turns \\ into \).
44696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44699 # `set' quotes correctly as required by POSIX, so do not add quotes.
44700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44714 if test -w "$cache_file"; then
44715 test "x$cache_file" != "x/dev/null" &&
44716 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44717 echo "$as_me: updating cache $cache_file" >&6;}
44718 cat confcache >$cache_file
44720 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44721 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44727 # Let make expand exec_prefix.
44728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44730 DEFS=-DHAVE_CONFIG_H
44734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44735 # 1. Remove the extension, and $U if already installed.
44736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44737 ac_i=`echo "$ac_i" | sed "$ac_script"`
44738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44739 # will be set to the directory where LIBOBJS objects are built.
44740 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44741 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44743 LIBOBJS=$ac_libobjs
44745 LTLIBOBJS=$ac_ltlibobjs
44749 : ${CONFIG_STATUS=./config.status}
44750 ac_clean_files_save=$ac_clean_files
44751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44754 cat >$CONFIG_STATUS <<_ACEOF
44756 # Generated by $as_me.
44757 # Run this file to recreate the current configuration.
44758 # Compiler output produced by configure, useful for debugging
44759 # configure, is in config.log if it exists.
44762 ac_cs_recheck=false
44764 SHELL=\${CONFIG_SHELL-$SHELL}
44767 cat >>$CONFIG_STATUS <<\_ACEOF
44768 ## --------------------- ##
44769 ## M4sh Initialization. ##
44770 ## --------------------- ##
44772 # Be more Bourne compatible
44773 DUALCASE=1; export DUALCASE # for MKS sh
44774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44778 # is contrary to our usage. Disable this feature.
44779 alias -g '${1+"$@"}'='"$@"'
44780 setopt NO_GLOB_SUBST
44782 case `(set -o) 2>/dev/null` in
44783 *posix*) set -o posix ;;
44792 # Avoid depending upon Character Ranges.
44793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44796 as_cr_digits='0123456789'
44797 as_cr_alnum=$as_cr_Letters$as_cr_digits
44799 # The user is always right.
44800 if test "${PATH_SEPARATOR+set}" != set; then
44801 echo "#! /bin/sh" >conf$$.sh
44802 echo "exit 0" >>conf$$.sh
44804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44812 # Support unset when possible.
44813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44821 # We need space, tab and new line, in precisely that order. Quoting is
44822 # there to prevent editors from complaining about space-tab.
44823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44824 # splitting by setting IFS to empty value.)
44829 # Find who we are. Look in the path if we contain no directory separator.
44831 *[\\/]* ) as_myself=$0 ;;
44832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44833 for as_dir in $PATH
44836 test -z "$as_dir" && as_dir=.
44837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44843 # We did not find ourselves, most probably we were run as `sh COMMAND'
44844 # in which case we are not to be found in the path.
44845 if test "x$as_myself" = x; then
44848 if test ! -f "$as_myself"; then
44849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44850 { (exit 1); exit 1; }
44853 # Work around bugs in pre-3.0 UWIN ksh.
44854 for as_var in ENV MAIL MAILPATH
44855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44865 LC_TELEPHONE LC_TIME
44867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44868 eval $as_var=C; export $as_var
44870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44874 # Required to use basename.
44875 if expr a : '\(a\)' >/dev/null 2>&1 &&
44876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44883 as_basename=basename
44889 # Name of the executable.
44890 as_me=`$as_basename -- "$0" ||
44891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44892 X"$0" : 'X\(//\)$' \| \
44893 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44895 sed '/^.*\/\([^/][^/]*\)\/*$/{
44914 as_lineno_1=$LINENO
44915 as_lineno_2=$LINENO
44916 test "x$as_lineno_1" != "x$as_lineno_2" &&
44917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44920 # uniformly replaced by the line number. The first 'sed' inserts a
44921 # line-number line after each line using $LINENO; the second 'sed'
44922 # does the real work. The second script uses 'N' to pair each
44923 # line-number line with the line containing $LINENO, and appends
44924 # trailing '-' during substitution so that $LINENO is not a special
44925 # case at line end.
44926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44927 # scripts with optimization help from Paolo Bonzini. Blame Lee
44928 # E. McMahon (1931-1989) for sed's syntax. :-)
44940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44943 ' >$as_me.lineno &&
44944 chmod +x "$as_me.lineno" ||
44945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44946 { (exit 1); exit 1; }; }
44948 # Don't try to exec as it changes $[0], causing all sort of problems
44949 # (the dirname of $[0] is not the place where we might find the
44950 # original and so on. Autoconf is especially sensitive to this).
44951 . "./$as_me.lineno"
44952 # Exit status is that of the last command.
44957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44963 ECHO_C= ECHO_N= ECHO_T=
44964 case `echo -n x` in
44966 case `echo 'x\c'` in
44967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44974 if expr a : '\(a\)' >/dev/null 2>&1 &&
44975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44981 rm -f conf$$ conf$$.exe conf$$.file
44982 if test -d conf$$.dir; then
44983 rm -f conf$$.dir/conf$$.file
44989 if ln -s conf$$.file conf$$ 2>/dev/null; then
44991 # ... but there are two gotchas:
44992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44994 # In both cases, we have to default to `cp -p'.
44995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44997 elif ln conf$$.file conf$$ 2>/dev/null; then
45002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45003 rmdir conf$$.dir 2>/dev/null
45005 if mkdir -p . 2>/dev/null; then
45008 test -d ./-p && rmdir ./-p
45012 if test -x / >/dev/null 2>&1; then
45013 as_test_x='test -x'
45015 if ls -dL / >/dev/null 2>&1; then
45022 if test -d "$1"; then
45028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45029 ???[sx]*):;;*)false;;esac;fi
45033 as_executable_p=$as_test_x
45035 # Sed expression to map a string onto a valid CPP name.
45036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45038 # Sed expression to map a string onto a valid variable name.
45039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45044 # Save the log message, to keep $[0] and so on meaningful, and to
45045 # report actual input values of CONFIG_FILES etc. instead of their
45046 # values after options handling.
45048 This file was extended by $as_me, which was
45049 generated by GNU Autoconf 2.61. Invocation command line was
45051 CONFIG_FILES = $CONFIG_FILES
45052 CONFIG_HEADERS = $CONFIG_HEADERS
45053 CONFIG_LINKS = $CONFIG_LINKS
45054 CONFIG_COMMANDS = $CONFIG_COMMANDS
45057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45062 cat >>$CONFIG_STATUS <<_ACEOF
45063 # Files that config.status was made for.
45064 config_files="$ac_config_files"
45065 config_headers="$ac_config_headers"
45066 config_commands="$ac_config_commands"
45070 cat >>$CONFIG_STATUS <<\_ACEOF
45072 \`$as_me' instantiates files from templates according to the
45073 current configuration.
45075 Usage: $0 [OPTIONS] [FILE]...
45077 -h, --help print this help, then exit
45078 -V, --version print version number and configuration settings, then exit
45079 -q, --quiet do not print progress messages
45080 -d, --debug don't remove temporary files
45081 --recheck update $as_me by reconfiguring in the same conditions
45082 --file=FILE[:TEMPLATE]
45083 instantiate the configuration file FILE
45084 --header=FILE[:TEMPLATE]
45085 instantiate the configuration header FILE
45087 Configuration files:
45090 Configuration headers:
45093 Configuration commands:
45096 Report bugs to <bug-autoconf@gnu.org>."
45099 cat >>$CONFIG_STATUS <<_ACEOF
45102 configured by $0, generated by GNU Autoconf 2.61,
45103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45105 Copyright (C) 2006 Free Software Foundation, Inc.
45106 This config.status script is free software; the Free Software Foundation
45107 gives unlimited permission to copy, distribute and modify it."
45114 cat >>$CONFIG_STATUS <<\_ACEOF
45115 # If no file are specified by the user, then we need to provide default
45116 # value. By we need to know if files were specified by the user.
45122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45134 # Handling of the options.
45135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45138 echo "$ac_cs_version"; exit ;;
45139 --debug | --debu | --deb | --de | --d | -d )
45141 --file | --fil | --fi | --f )
45143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45144 ac_need_defaults=false;;
45145 --header | --heade | --head | --hea )
45147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45148 ac_need_defaults=false;;
45150 # Conflict between --help and --header
45151 { echo "$as_me: error: ambiguous option: $1
45152 Try \`$0 --help' for more information." >&2
45153 { (exit 1); exit 1; }; };;
45154 --help | --hel | -h )
45155 echo "$ac_cs_usage"; exit ;;
45156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45160 # This is an error.
45161 -*) { echo "$as_me: error: unrecognized option: $1
45162 Try \`$0 --help' for more information." >&2
45163 { (exit 1); exit 1; }; } ;;
45165 *) ac_config_targets="$ac_config_targets $1"
45166 ac_need_defaults=false ;;
45172 ac_configure_extra_args=
45174 if $ac_cs_silent; then
45176 ac_configure_extra_args="$ac_configure_extra_args --silent"
45180 cat >>$CONFIG_STATUS <<_ACEOF
45181 if \$ac_cs_recheck; then
45182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45183 CONFIG_SHELL=$SHELL
45184 export CONFIG_SHELL
45185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45189 cat >>$CONFIG_STATUS <<\_ACEOF
45193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45194 ## Running $as_me. ##
45200 cat >>$CONFIG_STATUS <<_ACEOF
45206 # The HP-UX ksh and POSIX shell print the target directory to stdout
45207 # if CDPATH is set.
45208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45210 sed_quote_subst='$sed_quote_subst'
45211 double_quote_subst='$double_quote_subst'
45212 delay_variable_subst='$delay_variable_subst'
45213 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45214 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45215 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45216 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45217 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45218 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45219 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45220 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45221 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45222 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45223 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45224 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45225 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45226 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45227 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45228 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45229 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45230 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45231 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45232 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45233 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45234 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45235 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45236 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45237 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45238 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45239 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45240 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45241 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45242 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45243 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45244 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45245 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45246 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45247 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45248 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45249 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45250 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45251 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45252 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45253 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45254 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45255 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45257 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
45258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45269 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45270 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45271 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45272 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45273 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45274 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45275 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45276 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45277 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45278 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45279 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45280 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45281 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45282 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45283 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45284 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45285 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45286 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45287 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45288 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45289 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45290 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45291 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45292 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45293 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45294 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45295 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45296 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45297 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45298 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45299 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45300 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45301 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45302 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45303 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45304 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45305 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45306 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45307 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45308 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45309 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45310 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45311 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45312 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45313 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45314 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45315 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45316 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45317 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45318 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45319 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45320 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45321 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45322 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45323 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45324 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45325 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45326 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45327 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45328 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45329 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45330 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45331 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45332 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45333 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45334 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45335 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45336 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45337 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45338 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45339 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45340 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45341 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45342 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45343 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45344 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45345 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45346 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45347 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45348 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45349 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45350 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45351 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45352 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45353 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45354 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45355 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45356 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45357 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45358 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45359 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45360 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45361 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45362 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45363 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45364 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45365 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45366 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45367 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45368 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45369 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45370 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45371 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45372 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45373 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45374 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45375 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45376 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45377 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45378 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45379 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45380 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45381 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45382 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45383 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45386 LTCFLAGS='$LTCFLAGS'
45387 compiler='$compiler_DEFAULT'
45389 # Quote evaled strings.
45401 deplibs_check_method \
45410 lt_cv_sys_global_symbol_pipe \
45411 lt_cv_sys_global_symbol_to_cdecl \
45412 lt_cv_sys_global_symbol_to_c_name_address \
45413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45416 lt_prog_compiler_no_builtin_flag \
45417 lt_prog_compiler_wl \
45418 lt_prog_compiler_pic \
45419 lt_prog_compiler_static \
45420 lt_cv_prog_compiler_c_o \
45428 export_dynamic_flag_spec \
45429 whole_archive_flag_spec \
45430 compiler_needs_object \
45432 allow_undefined_flag \
45433 no_undefined_flag \
45434 hardcode_libdir_flag_spec \
45435 hardcode_libdir_flag_spec_ld \
45436 hardcode_libdir_separator \
45441 variables_saved_for_relink \
45443 library_names_spec \
45448 compiler_lib_search_dirs \
45453 compiler_lib_search_path \
45456 lt_prog_compiler_no_builtin_flag_CXX \
45457 lt_prog_compiler_wl_CXX \
45458 lt_prog_compiler_pic_CXX \
45459 lt_prog_compiler_static_CXX \
45460 lt_cv_prog_compiler_c_o_CXX \
45461 export_dynamic_flag_spec_CXX \
45462 whole_archive_flag_spec_CXX \
45463 compiler_needs_object_CXX \
45465 allow_undefined_flag_CXX \
45466 no_undefined_flag_CXX \
45467 hardcode_libdir_flag_spec_CXX \
45468 hardcode_libdir_flag_spec_ld_CXX \
45469 hardcode_libdir_separator_CXX \
45470 fix_srcfile_path_CXX \
45471 exclude_expsyms_CXX \
45472 include_expsyms_CXX \
45473 file_list_spec_CXX \
45474 compiler_lib_search_dirs_CXX \
45475 predep_objects_CXX \
45476 postdep_objects_CXX \
45479 compiler_lib_search_path_CXX; do
45480 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45481 *[\\\\\\\`\\"\\\$]*)
45482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45490 # Double-quote double-evaled strings.
45491 for var in reload_cmds \
45492 old_postinstall_cmds \
45493 old_postuninstall_cmds \
45495 extract_expsyms_cmds \
45496 old_archive_from_new_cmds \
45497 old_archive_from_expsyms_cmds \
45499 archive_expsym_cmds \
45501 module_expsym_cmds \
45502 export_symbols_cmds \
45505 postuninstall_cmds \
45507 sys_lib_search_path_spec \
45508 sys_lib_dlsearch_path_spec \
45509 old_archive_cmds_CXX \
45510 old_archive_from_new_cmds_CXX \
45511 old_archive_from_expsyms_cmds_CXX \
45513 archive_expsym_cmds_CXX \
45515 module_expsym_cmds_CXX \
45516 export_symbols_cmds_CXX \
45517 prelink_cmds_CXX; do
45518 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45519 *[\\\\\\\`\\"\\\$]*)
45520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45528 # Fix-up fallback echo if it was mangled by the above quoting rules.
45530 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45534 ac_aux_dir='$ac_aux_dir'
45535 xsi_shell='$xsi_shell'
45536 lt_shell_append='$lt_shell_append'
45538 # See if we are running on zsh, and set the options which allow our
45539 # commands through without removal of \ escapes INIT.
45540 if test -n "\${ZSH_VERSION+set}" ; then
45541 setopt NO_GLOB_SUBST
45547 TIMESTAMP='$TIMESTAMP'
45555 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45556 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45558 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45559 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45560 LINGUAS="${LINGUAS-%UNSET%}"
45565 cat >>$CONFIG_STATUS <<\_ACEOF
45567 # Handling of arguments.
45568 for ac_config_target in $ac_config_targets
45570 case $ac_config_target in
45571 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45573 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45574 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45576 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45577 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45578 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45579 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45580 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45581 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45582 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45583 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45584 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45585 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45586 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45587 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45588 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45589 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45590 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45591 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45592 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45593 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45594 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45595 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45596 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45597 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45598 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45599 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45600 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45601 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45602 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45603 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45604 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45605 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45606 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45607 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45608 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45609 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45610 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45611 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45612 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45613 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45614 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45615 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45616 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45617 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45618 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45619 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45620 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45621 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45622 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45623 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45624 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45625 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45626 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45627 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45628 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45629 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45630 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45631 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45632 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45633 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45634 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45635 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45636 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45637 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45638 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45639 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45640 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45641 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45642 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45643 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45644 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45645 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45646 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45647 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45648 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45649 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45650 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45651 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45652 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45653 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45654 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45655 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45656 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45657 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45658 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45659 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45660 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45661 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45662 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45663 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45664 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45665 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45666 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45667 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45668 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45669 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45670 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45671 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45672 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45673 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45674 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45675 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45676 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45677 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45678 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45679 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45680 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45681 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45682 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45684 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45686 { (exit 1); exit 1; }; };;
45691 # If the user did not use the arguments to specify the items to instantiate,
45692 # then the envvar interface is used. Set only those that are not.
45693 # We use the long form for the default assignment because of an extremely
45694 # bizarre bug on SunOS 4.1.3.
45695 if $ac_need_defaults; then
45696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45701 # Have a temporary directory for convenience. Make it in the build tree
45702 # simply because there is no reason against having it here, and in addition,
45703 # creating and moving files from /tmp can sometimes cause problems.
45704 # Hook for its removal unless debugging.
45705 # Note that there is a small window in which the directory will not be cleaned:
45706 # after its creation but before its name has been assigned to `$tmp'.
45710 trap 'exit_status=$?
45711 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45713 trap '{ (exit 1); exit 1; }' 1 2 13 15
45715 # Create a (secure) tmp directory for tmp files.
45718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45719 test -n "$tmp" && test -d "$tmp"
45722 tmp=./conf$$-$RANDOM
45723 (umask 077 && mkdir "$tmp")
45726 echo "$me: cannot create a temporary directory in ." >&2
45727 { (exit 1); exit 1; }
45731 # Set up the sed scripts for CONFIG_FILES section.
45734 # No need to generate the scripts if there are no CONFIG_FILES.
45735 # This happens for instance when ./config.status config.h
45736 if test -n "$CONFIG_FILES"; then
45740 # Create sed commands to just substitute file output variables.
45742 # Remaining file output variables are in a fragment that also has non-file
45748 for ac_last_try in false false false false false :; do
45749 cat >conf$$subs.sed <<_ACEOF
45750 SHELL!$SHELL$ac_delim
45751 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45752 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45753 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45754 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45755 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45756 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45757 exec_prefix!$exec_prefix$ac_delim
45758 prefix!$prefix$ac_delim
45759 program_transform_name!$program_transform_name$ac_delim
45760 bindir!$bindir$ac_delim
45761 sbindir!$sbindir$ac_delim
45762 libexecdir!$libexecdir$ac_delim
45763 datarootdir!$datarootdir$ac_delim
45764 datadir!$datadir$ac_delim
45765 sysconfdir!$sysconfdir$ac_delim
45766 sharedstatedir!$sharedstatedir$ac_delim
45767 localstatedir!$localstatedir$ac_delim
45768 includedir!$includedir$ac_delim
45769 oldincludedir!$oldincludedir$ac_delim
45770 docdir!$docdir$ac_delim
45771 infodir!$infodir$ac_delim
45772 htmldir!$htmldir$ac_delim
45773 dvidir!$dvidir$ac_delim
45774 pdfdir!$pdfdir$ac_delim
45775 psdir!$psdir$ac_delim
45776 libdir!$libdir$ac_delim
45777 localedir!$localedir$ac_delim
45778 mandir!$mandir$ac_delim
45779 DEFS!$DEFS$ac_delim
45780 ECHO_C!$ECHO_C$ac_delim
45781 ECHO_N!$ECHO_N$ac_delim
45782 ECHO_T!$ECHO_T$ac_delim
45783 LIBS!$LIBS$ac_delim
45784 build_alias!$build_alias$ac_delim
45785 host_alias!$host_alias$ac_delim
45786 target_alias!$target_alias$ac_delim
45787 BUILD_DIR!$BUILD_DIR$ac_delim
45788 TOP_DIR!$TOP_DIR$ac_delim
45789 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45790 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45791 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45792 TRUEPRG!$TRUEPRG$ac_delim
45793 FALSEPRG!$FALSEPRG$ac_delim
45794 VERSION!$VERSION$ac_delim
45795 DATE!$DATE$ac_delim
45796 LSMDATE!$LSMDATE$ac_delim
45797 BACULA!$BACULA$ac_delim
45798 post_host!$post_host$ac_delim
45799 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45800 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45801 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45802 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45803 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45804 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45805 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45806 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45807 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45808 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45809 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45810 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45811 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45812 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45813 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45815 CFLAGS!$CFLAGS$ac_delim
45816 LDFLAGS!$LDFLAGS$ac_delim
45817 CPPFLAGS!$CPPFLAGS$ac_delim
45818 ac_ct_CC!$ac_ct_CC$ac_delim
45819 EXEEXT!$EXEEXT$ac_delim
45820 OBJEXT!$OBJEXT$ac_delim
45822 CXXFLAGS!$CXXFLAGS$ac_delim
45823 ac_ct_CXX!$ac_ct_CXX$ac_delim
45825 GREP!$GREP$ac_delim
45826 EGREP!$EGREP$ac_delim
45827 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45828 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45829 INSTALL_DATA!$INSTALL_DATA$ac_delim
45831 REMOVE!$REMOVE$ac_delim
45834 ECHO!$ECHO$ac_delim
45838 OPENSSL!$OPENSSL$ac_delim
45841 MKISOFS!$MKISOFS$ac_delim
45842 PYTHON!$PYTHON$ac_delim
45843 GROWISOFS!$GROWISOFS$ac_delim
45846 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45848 elif $ac_last_try; then
45849 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45851 { (exit 1); exit 1; }; }
45853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45858 if test -n "$ac_eof"; then
45859 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45860 ac_eof=`expr $ac_eof + 1`
45863 cat >>$CONFIG_STATUS <<_ACEOF
45864 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45866 /^[ ]*@MCOMMON@[ ]*$/{
45872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45873 s/^/s,@/; s/!/@,|#_!!_#|/
45876 s/'"$ac_delim"'$/,g/; t
45878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45879 ' >>$CONFIG_STATUS <conf$$subs.sed
45880 rm -f conf$$subs.sed
45881 cat >>$CONFIG_STATUS <<_ACEOF
45887 for ac_last_try in false false false false false :; do
45888 cat >conf$$subs.sed <<_ACEOF
45889 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45890 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45891 PKGCONFIG!$PKGCONFIG$ac_delim
45892 QMAKE!$QMAKE$ac_delim
45893 GMAKE!$GMAKE$ac_delim
45894 WXCONFIG!$WXCONFIG$ac_delim
45895 WXFLAGS!$WXFLAGS$ac_delim
45896 CDRECORD!$CDRECORD$ac_delim
45897 PIDOF!$PIDOF$ac_delim
45899 ARFLAGS!$ARFLAGS$ac_delim
45900 MAKE_SHELL!$MAKE_SHELL$ac_delim
45901 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45902 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45903 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45904 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45905 LIBTOOL!$LIBTOOL$ac_delim
45906 build!$build$ac_delim
45907 build_cpu!$build_cpu$ac_delim
45908 build_vendor!$build_vendor$ac_delim
45909 build_os!$build_os$ac_delim
45910 host!$host$ac_delim
45911 host_cpu!$host_cpu$ac_delim
45912 host_vendor!$host_vendor$ac_delim
45913 host_os!$host_os$ac_delim
45914 FGREP!$FGREP$ac_delim
45916 DUMPBIN!$DUMPBIN$ac_delim
45917 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45919 LN_S!$LN_S$ac_delim
45920 OBJDUMP!$OBJDUMP$ac_delim
45921 STRIP!$STRIP$ac_delim
45922 RANLIB!$RANLIB$ac_delim
45923 lt_ECHO!$lt_ECHO$ac_delim
45924 DSYMUTIL!$DSYMUTIL$ac_delim
45925 NMEDIT!$NMEDIT$ac_delim
45926 LIPO!$LIPO$ac_delim
45927 OTOOL!$OTOOL$ac_delim
45928 OTOOL64!$OTOOL64$ac_delim
45929 CXXCPP!$CXXCPP$ac_delim
45930 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45931 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45932 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45933 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45934 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45935 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45936 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45937 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45938 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45939 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45940 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45941 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45942 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45943 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45944 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45945 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45946 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45947 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45948 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45949 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45950 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45951 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45952 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45953 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45954 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45955 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45956 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45957 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45958 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45959 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45960 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45961 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45962 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45963 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45964 SET_MAKE!$SET_MAKE$ac_delim
45965 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45966 USE_NLS!$USE_NLS$ac_delim
45967 MSGFMT!$MSGFMT$ac_delim
45968 GMSGFMT!$GMSGFMT$ac_delim
45969 XGETTEXT!$XGETTEXT$ac_delim
45970 MSGMERGE!$MSGMERGE$ac_delim
45971 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45972 LIBICONV!$LIBICONV$ac_delim
45973 LTLIBICONV!$LTLIBICONV$ac_delim
45974 INTLLIBS!$INTLLIBS$ac_delim
45975 LIBINTL!$LIBINTL$ac_delim
45976 LTLIBINTL!$LTLIBINTL$ac_delim
45977 POSUB!$POSUB$ac_delim
45978 GLIBC2!$GLIBC2$ac_delim
45979 ALLOCA!$ALLOCA$ac_delim
45980 GLIBC21!$GLIBC21$ac_delim
45981 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45982 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45983 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45984 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45985 INTLBISON!$INTLBISON$ac_delim
45988 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45990 elif $ac_last_try; then
45991 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45992 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45993 { (exit 1); exit 1; }; }
45995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45999 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46000 if test -n "$ac_eof"; then
46001 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46002 ac_eof=`expr $ac_eof + 1`
46005 cat >>$CONFIG_STATUS <<_ACEOF
46006 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46010 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46011 s/^/s,@/; s/!/@,|#_!!_#|/
46014 s/'"$ac_delim"'$/,g/; t
46016 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46017 ' >>$CONFIG_STATUS <conf$$subs.sed
46018 rm -f conf$$subs.sed
46019 cat >>$CONFIG_STATUS <<_ACEOF
46025 for ac_last_try in false false false false false :; do
46026 cat >conf$$subs.sed <<_ACEOF
46027 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
46028 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
46029 CATOBJEXT!$CATOBJEXT$ac_delim
46030 DATADIRNAME!$DATADIRNAME$ac_delim
46031 INSTOBJEXT!$INSTOBJEXT$ac_delim
46032 GENCAT!$GENCAT$ac_delim
46033 INTLOBJS!$INTLOBJS$ac_delim
46034 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
46035 BAT_DIR!$BAT_DIR$ac_delim
46036 QWT_INC!$QWT_INC$ac_delim
46037 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
46038 QWT_LIB!$QWT_LIB$ac_delim
46040 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
46041 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
46042 WX_DIR!$WX_DIR$ac_delim
46043 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
46044 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
46045 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
46046 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
46047 STATIC_FD!$STATIC_FD$ac_delim
46048 STATIC_SD!$STATIC_SD$ac_delim
46049 STATIC_DIR!$STATIC_DIR$ac_delim
46050 STATIC_CONS!$STATIC_CONS$ac_delim
46051 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
46052 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
46053 ALL_DIRS!$ALL_DIRS$ac_delim
46054 DIRD_DIR!$DIRD_DIR$ac_delim
46055 DIR_TOOLS!$DIR_TOOLS$ac_delim
46056 STORED_DIR!$STORED_DIR$ac_delim
46057 CONS_INC!$CONS_INC$ac_delim
46058 CONS_OBJ!$CONS_OBJ$ac_delim
46059 CONS_SRC!$CONS_SRC$ac_delim
46060 CONS_LIBS!$CONS_LIBS$ac_delim
46061 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
46062 READLINE_SRC!$READLINE_SRC$ac_delim
46063 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
46064 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
46065 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
46066 OPENSSL_INC!$OPENSSL_INC$ac_delim
46067 working_dir!$working_dir$ac_delim
46068 archivedir!$archivedir$ac_delim
46069 basename!$basename$ac_delim
46070 hostname!$hostname$ac_delim
46071 scriptdir!$scriptdir$ac_delim
46072 bsrdir!$bsrdir$ac_delim
46073 logdir!$logdir$ac_delim
46074 plugindir!$plugindir$ac_delim
46075 dump_email!$dump_email$ac_delim
46076 job_email!$job_email$ac_delim
46077 smtp_host!$smtp_host$ac_delim
46078 piddir!$piddir$ac_delim
46079 subsysdir!$subsysdir$ac_delim
46080 baseport!$baseport$ac_delim
46081 dir_port!$dir_port$ac_delim
46082 fd_port!$fd_port$ac_delim
46083 sd_port!$sd_port$ac_delim
46084 dir_password!$dir_password$ac_delim
46085 fd_password!$fd_password$ac_delim
46086 sd_password!$sd_password$ac_delim
46087 mon_dir_password!$mon_dir_password$ac_delim
46088 mon_fd_password!$mon_fd_password$ac_delim
46089 mon_sd_password!$mon_sd_password$ac_delim
46090 db_name!$db_name$ac_delim
46091 db_user!$db_user$ac_delim
46092 db_password!$db_password$ac_delim
46093 db_port!$db_port$ac_delim
46094 dir_user!$dir_user$ac_delim
46095 dir_group!$dir_group$ac_delim
46096 sd_user!$sd_user$ac_delim
46097 sd_group!$sd_group$ac_delim
46098 fd_user!$fd_user$ac_delim
46099 fd_group!$fd_group$ac_delim
46100 SBINPERM!$SBINPERM$ac_delim
46101 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
46102 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
46103 SQL_BINDIR!$SQL_BINDIR$ac_delim
46104 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
46105 uncomment_dbi!$uncomment_dbi$ac_delim
46106 DB_PROG!$DB_PROG$ac_delim
46107 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
46108 cats!$cats$ac_delim
46109 DB_TYPE!$DB_TYPE$ac_delim
46110 GETCONF!$GETCONF$ac_delim
46111 XMKMF!$XMKMF$ac_delim
46112 X_CFLAGS!$X_CFLAGS$ac_delim
46113 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
46114 X_LIBS!$X_LIBS$ac_delim
46115 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
46116 LIBOBJS!$LIBOBJS$ac_delim
46117 ZLIBS!$ZLIBS$ac_delim
46118 AFS_CFLAGS!$AFS_CFLAGS$ac_delim
46119 AFS_LIBS!$AFS_LIBS$ac_delim
46120 CAP_LIBS!$CAP_LIBS$ac_delim
46121 FDLIBS!$FDLIBS$ac_delim
46122 DEBUG!$DEBUG$ac_delim
46123 DINCLUDE!$DINCLUDE$ac_delim
46126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46128 elif $ac_last_try; then
46129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46131 { (exit 1); exit 1; }; }
46133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46138 if test -n "$ac_eof"; then
46139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46140 ac_eof=`expr $ac_eof + 1`
46143 cat >>$CONFIG_STATUS <<_ACEOF
46144 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
46145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46149 s/^/s,@/; s/!/@,|#_!!_#|/
46152 s/'"$ac_delim"'$/,g/; t
46154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46155 ' >>$CONFIG_STATUS <conf$$subs.sed
46156 rm -f conf$$subs.sed
46157 cat >>$CONFIG_STATUS <<_ACEOF
46163 for ac_last_try in false false false false false :; do
46164 cat >conf$$subs.sed <<_ACEOF
46165 DLIB!$DLIB$ac_delim
46166 DB_LIBS!$DB_LIBS$ac_delim
46167 WCFLAGS!$WCFLAGS$ac_delim
46168 WLDFLAGS!$WLDFLAGS$ac_delim
46169 WRAPLIBS!$WRAPLIBS$ac_delim
46170 OBJLIST!$OBJLIST$ac_delim
46171 TAPEDRIVE!$TAPEDRIVE$ac_delim
46172 PSCMD!$PSCMD$ac_delim
46173 WIN32!$WIN32$ac_delim
46174 MACOSX!$MACOSX$ac_delim
46175 DISTNAME!$DISTNAME$ac_delim
46176 DISTVER!$DISTVER$ac_delim
46177 LTLIBOBJS!$LTLIBOBJS$ac_delim
46180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
46182 elif $ac_last_try; then
46183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46185 { (exit 1); exit 1; }; }
46187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46192 if test -n "$ac_eof"; then
46193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46194 ac_eof=`expr $ac_eof + 1`
46197 cat >>$CONFIG_STATUS <<_ACEOF
46198 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
46199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46203 s/^/s,@/; s/!/@,|#_!!_#|/
46206 s/'"$ac_delim"'$/,g/; t
46208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46209 ' >>$CONFIG_STATUS <conf$$subs.sed
46210 rm -f conf$$subs.sed
46211 cat >>$CONFIG_STATUS <<_ACEOF
46218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46220 # trailing colons and then remove the whole line if VPATH becomes empty
46221 # (actually we leave an empty line to preserve line numbers).
46222 if test "x$srcdir" = x.; then
46223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46224 s/:*\$(srcdir):*/:/
46225 s/:*\${srcdir}:*/:/
46227 s/^\([^=]*=[ ]*\):*/\1/
46233 cat >>$CONFIG_STATUS <<\_ACEOF
46234 fi # test -n "$CONFIG_FILES"
46237 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
46240 :[FHLC]) ac_mode=$ac_tag; continue;;
46242 case $ac_mode$ac_tag in
46244 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46246 { (exit 1); exit 1; }; };;
46247 :[FH]-) ac_tag=-:-;;
46248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46265 -) ac_f="$tmp/stdin";;
46266 *) # Look for the file first in the build tree, then in the source tree
46267 # (if the path is not absolute). The absolute path cannot be DOS-style,
46268 # because $ac_f cannot contain `:'.
46272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46274 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46276 { (exit 1); exit 1; }; };;
46278 ac_file_inputs="$ac_file_inputs $ac_f"
46281 # Let's still pretend it is `configure' which instantiates (i.e., don't
46282 # use $as_me), people would be surprised to read:
46283 # /* config.h. Generated by config.status. */
46284 configure_input="Generated from "`IFS=:
46285 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46286 if test x"$ac_file" != x-; then
46287 configure_input="$ac_file. $configure_input"
46288 { echo "$as_me:$LINENO: creating $ac_file" >&5
46289 echo "$as_me: creating $ac_file" >&6;}
46293 *:-:* | *:-) cat >"$tmp/stdin";;
46298 ac_dir=`$as_dirname -- "$ac_file" ||
46299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46300 X"$ac_file" : 'X\(//\)[^/]' \| \
46301 X"$ac_file" : 'X\(//\)$' \| \
46302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46308 /^X\(\/\/\)[^/].*/{
46323 -*) as_dir=./$as_dir;;
46325 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46329 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46330 *) as_qdir=$as_dir;;
46332 as_dirs="'$as_qdir' $as_dirs"
46333 as_dir=`$as_dirname -- "$as_dir" ||
46334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46335 X"$as_dir" : 'X\(//\)[^/]' \| \
46336 X"$as_dir" : 'X\(//\)$' \| \
46337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46343 /^X\(\/\/\)[^/].*/{
46356 test -d "$as_dir" && break
46358 test -z "$as_dirs" || eval "mkdir $as_dirs"
46359 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46361 { (exit 1); exit 1; }; }; }
46365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46368 # A ".." for each directory in $ac_dir_suffix.
46369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46370 case $ac_top_builddir_sub in
46371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46375 ac_abs_top_builddir=$ac_pwd
46376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46377 # for backward compatibility:
46378 ac_top_builddir=$ac_top_build_prefix
46381 .) # We are building in place.
46383 ac_top_srcdir=$ac_top_builddir_sub
46384 ac_abs_top_srcdir=$ac_pwd ;;
46385 [\\/]* | ?:[\\/]* ) # Absolute name.
46386 ac_srcdir=$srcdir$ac_dir_suffix;
46387 ac_top_srcdir=$srcdir
46388 ac_abs_top_srcdir=$srcdir ;;
46389 *) # Relative name.
46390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46391 ac_top_srcdir=$ac_top_build_prefix$srcdir
46392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46409 cat >>$CONFIG_STATUS <<\_ACEOF
46410 # If the template does not know about datarootdir, expand it.
46411 # FIXME: This hack should be removed a few years after 2.60.
46412 ac_datarootdir_hack=; ac_datarootdir_seen=
46414 case `sed -n '/datarootdir/ {
46423 ' $ac_file_inputs` in
46424 *datarootdir*) ac_datarootdir_seen=yes;;
46425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46426 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46429 cat >>$CONFIG_STATUS <<_ACEOF
46430 ac_datarootdir_hack='
46431 s&@datadir@&$datadir&g
46432 s&@docdir@&$docdir&g
46433 s&@infodir@&$infodir&g
46434 s&@localedir@&$localedir&g
46435 s&@mandir@&$mandir&g
46436 s&\\\${datarootdir}&$datarootdir&g' ;;
46440 # Neutralize VPATH when `$srcdir' = `.'.
46441 # Shell code in configure.ac might set extrasub.
46442 # FIXME: do we really want to maintain this feature?
46443 cat >>$CONFIG_STATUS <<_ACEOF
46447 cat >>$CONFIG_STATUS <<\_ACEOF
46449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46450 s&@configure_input@&$configure_input&;t t
46451 s&@top_builddir@&$ac_top_builddir_sub&;t t
46452 s&@srcdir@&$ac_srcdir&;t t
46453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46454 s&@top_srcdir@&$ac_top_srcdir&;t t
46455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46456 s&@builddir@&$ac_builddir&;t t
46457 s&@abs_builddir@&$ac_abs_builddir&;t t
46458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46459 s&@INSTALL@&$ac_INSTALL&;t t
46460 $ac_datarootdir_hack
46461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
46463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46467 which seems to be undefined. Please make sure it is defined." >&5
46468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46469 which seems to be undefined. Please make sure it is defined." >&2;}
46473 -) cat "$tmp/out"; rm -f "$tmp/out";;
46474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46483 # Transform confdefs.h into a sed script `conftest.defines', that
46484 # substitutes the proper values into config.h.in to produce config.h.
46485 rm -f conftest.defines conftest.tail
46486 # First, append a space to every undef/define line, to ease matching.
46487 echo 's/$/ /' >conftest.defines
46488 # Then, protect against being on the right side of a sed subst, or in
46489 # an unquoted here document, in config.status. If some macros were
46490 # called several times there might be several #defines for the same
46491 # symbol, which is useless. But do not sort them, since the last
46492 # AC_DEFINE must be honored.
46493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46496 # PARAMS is the parameter list in the macro definition--in most cases, it's
46497 # just an empty string.
46498 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
46499 ac_dB='\\)[ (].*,\\1define\\2'
46507 s/^[ ]*#[ ]*define[ ][ ]*//
46512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46514 ' >>conftest.defines
46516 # Remove the space that was appended to ease matching.
46517 # Then replace #undef with comments. This is necessary, for
46518 # example, in the case of _POSIX_SOURCE, which is predefined and required
46519 # on some systems where configure will not decide to define it.
46520 # (The regexp can be short, since the line contains either #define or #undef.)
46522 s,^[ #]*u.*,/* & */,' >>conftest.defines
46524 # Break up conftest.defines:
46525 ac_max_sed_lines=50
46527 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46528 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46529 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46531 ac_in='$ac_file_inputs'
46532 ac_out='"$tmp/out1"'
46533 ac_nxt='"$tmp/out2"'
46537 # Write a here document:
46538 cat >>$CONFIG_STATUS <<_ACEOF
46539 # First, check the format of the line:
46540 cat >"\$tmp/defines.sed" <<\\CEOF
46541 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46542 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46551 grep . conftest.tail >/dev/null || break
46552 rm -f conftest.defines
46553 mv conftest.tail conftest.defines
46555 rm -f conftest.defines conftest.tail
46557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46558 cat >>$CONFIG_STATUS <<\_ACEOF
46559 if test x"$ac_file" != x-; then
46560 echo "/* $configure_input */" >"$tmp/config.h"
46561 cat "$ac_result" >>"$tmp/config.h"
46562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46564 echo "$as_me: $ac_file is unchanged" >&6;}
46567 mv "$tmp/config.h" $ac_file
46570 echo "/* $configure_input */"
46576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46577 echo "$as_me: executing $ac_file commands" >&6;}
46582 case $ac_file$ac_mode in
46585 # See if we are running on zsh, and set the options which allow our
46586 # commands through without removal of \ escapes.
46587 if test -n "${ZSH_VERSION+set}" ; then
46588 setopt NO_GLOB_SUBST
46591 cfgfile="${ofile}T"
46592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46595 cat <<_LT_EOF >> "$cfgfile"
46598 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46599 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46604 # 2006, 2007, 2008 Free Software Foundation, Inc.
46605 # Written by Gordon Matzigkeit, 1996
46607 # This file is part of GNU Libtool.
46609 # GNU Libtool is free software; you can redistribute it and/or
46610 # modify it under the terms of the GNU General Public License as
46611 # published by the Free Software Foundation; either version 2 of
46612 # the License, or (at your option) any later version.
46614 # As a special exception to the GNU General Public License,
46615 # if you distribute this file as part of a program or library that
46616 # is built using GNU Libtool, you may include this file under the
46617 # same distribution terms that you use for the rest of that program.
46619 # GNU Libtool is distributed in the hope that it will be useful,
46620 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46622 # GNU General Public License for more details.
46624 # You should have received a copy of the GNU General Public License
46625 # along with GNU Libtool; see the file COPYING. If not, a copy
46626 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46627 # obtained by writing to the Free Software Foundation, Inc.,
46628 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46631 # The names of the tagged configurations supported by this script.
46632 available_tags="CXX "
46634 # ### BEGIN LIBTOOL CONFIG
46636 # Which release of libtool.m4 was used?
46637 macro_version=$macro_version
46638 macro_revision=$macro_revision
46640 # Whether or not to build shared libraries.
46641 build_libtool_libs=$enable_shared
46643 # Whether or not to build static libraries.
46644 build_old_libs=$enable_static
46646 # What type of objects to build.
46649 # Whether or not to optimize for fast installation.
46650 fast_install=$enable_fast_install
46653 host_alias=$host_alias
46657 # The build system.
46658 build_alias=$build_alias
46662 # A sed program that does not truncate output.
46665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46666 Xsed="\$SED -e 1s/^X//"
46668 # A grep program that handles long lines.
46674 # A literal string matcher.
46677 # A BSD- or MS-compatible name lister.
46680 # Whether we need soft or hard links.
46683 # What is the maximum length of a command?
46684 max_cmd_len=$max_cmd_len
46686 # Object file suffix (normally "o").
46689 # Executable file suffix (normally "").
46692 # whether the shell understands "unset".
46695 # turn spaces into newlines.
46698 # turn newlines into spaces.
46701 # How to create reloadable object files.
46702 reload_flag=$lt_reload_flag
46703 reload_cmds=$lt_reload_cmds
46705 # An object symbol dumper.
46706 OBJDUMP=$lt_OBJDUMP
46708 # Method to check whether dependent libraries are shared objects.
46709 deplibs_check_method=$lt_deplibs_check_method
46711 # Command to use when deplibs_check_method == "file_magic".
46712 file_magic_cmd=$lt_file_magic_cmd
46716 AR_FLAGS=$lt_AR_FLAGS
46718 # A symbol stripping program.
46721 # Commands used to install an old-style archive.
46723 old_postinstall_cmds=$lt_old_postinstall_cmds
46724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46729 # LTCC compiler flags.
46730 LTCFLAGS=$lt_CFLAGS
46732 # Take the output of nm and produce a listing of raw symbols and C names.
46733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46735 # Transform the output of nm in a proper C declaration.
46736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46738 # Transform the output of nm in a C name address pair.
46739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46741 # Transform the output of nm in a C name address pair when lib prefix is needed.
46742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46744 # The name of the directory that contains temporary libtool files.
46747 # Shell to use when invoking shell scripts.
46750 # An echo program that does not interpret backslashes.
46753 # Used to examine libraries when file_magic_cmd begins with "file".
46754 MAGIC_CMD=$MAGIC_CMD
46756 # Must we lock files when doing compilation?
46757 need_locks=$lt_need_locks
46759 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46760 DSYMUTIL=$lt_DSYMUTIL
46762 # Tool to change global to local symbols on Mac OS X.
46765 # Tool to manipulate fat objects and archives on Mac OS X.
46768 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46771 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46772 OTOOL64=$lt_OTOOL64
46774 # Old archive suffix (normally "a").
46777 # Shared library suffix (normally ".so").
46778 shrext_cmds=$lt_shrext_cmds
46780 # The commands to extract the exported symbol list from a shared archive.
46781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46783 # Variables whose values should be saved in libtool wrapper scripts and
46784 # restored at link time.
46785 variables_saved_for_relink=$lt_variables_saved_for_relink
46787 # Do we need the "lib" prefix for modules?
46788 need_lib_prefix=$need_lib_prefix
46790 # Do we need a version for libraries?
46791 need_version=$need_version
46793 # Library versioning type.
46794 version_type=$version_type
46796 # Shared library runtime path variable.
46797 runpath_var=$runpath_var
46799 # Shared library path variable.
46800 shlibpath_var=$shlibpath_var
46802 # Is shlibpath searched before the hard-coded library search path?
46803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46805 # Format of library name prefix.
46806 libname_spec=$lt_libname_spec
46808 # List of archive names. First name is the real one, the rest are links.
46809 # The last name is the one that the linker finds with -lNAME
46810 library_names_spec=$lt_library_names_spec
46812 # The coded name of the library, if different from the real name.
46813 soname_spec=$lt_soname_spec
46815 # Command to use after installation of a shared archive.
46816 postinstall_cmds=$lt_postinstall_cmds
46818 # Command to use after uninstallation of a shared archive.
46819 postuninstall_cmds=$lt_postuninstall_cmds
46821 # Commands used to finish a libtool library installation in a directory.
46822 finish_cmds=$lt_finish_cmds
46824 # As "finish_cmds", except a single script fragment to be evaled but
46826 finish_eval=$lt_finish_eval
46828 # Whether we should hardcode library paths into libraries.
46829 hardcode_into_libs=$hardcode_into_libs
46831 # Compile-time system search path for libraries.
46832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46834 # Run-time system search path for libraries.
46835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46837 # Whether dlopen is supported.
46838 dlopen_support=$enable_dlopen
46840 # Whether dlopen of programs is supported.
46841 dlopen_self=$enable_dlopen_self
46843 # Whether dlopen of statically linked programs is supported.
46844 dlopen_self_static=$enable_dlopen_self_static
46846 # Commands to strip libraries.
46847 old_striplib=$lt_old_striplib
46848 striplib=$lt_striplib
46851 # The linker used to build libraries.
46854 # Commands used to build an old-style archive.
46855 old_archive_cmds=$lt_old_archive_cmds
46857 # A language specific compiler.
46860 # Is the compiler the GNU compiler?
46863 # Compiler flag to turn off builtin functions.
46864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46866 # How to pass a linker flag through the compiler.
46867 wl=$lt_lt_prog_compiler_wl
46869 # Additional compiler flags for building library objects.
46870 pic_flag=$lt_lt_prog_compiler_pic
46872 # Compiler flag to prevent dynamic linking.
46873 link_static_flag=$lt_lt_prog_compiler_static
46875 # Does compiler simultaneously support -c and -o options?
46876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46878 # Whether or not to add -lc for building shared libraries.
46879 build_libtool_need_lc=$archive_cmds_need_lc
46881 # Whether or not to disallow shared libs when runtime libs are static.
46882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46884 # Compiler flag to allow reflexive dlopens.
46885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46887 # Compiler flag to generate shared objects directly from archives.
46888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46890 # Whether the compiler copes with passing no objects directly.
46891 compiler_needs_object=$lt_compiler_needs_object
46893 # Create an old-style archive from a shared archive.
46894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46896 # Create a temporary old-style archive to link instead of a shared archive.
46897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46899 # Commands used to build a shared archive.
46900 archive_cmds=$lt_archive_cmds
46901 archive_expsym_cmds=$lt_archive_expsym_cmds
46903 # Commands used to build a loadable module if different from building
46904 # a shared archive.
46905 module_cmds=$lt_module_cmds
46906 module_expsym_cmds=$lt_module_expsym_cmds
46908 # Whether we are building with GNU ld or not.
46909 with_gnu_ld=$lt_with_gnu_ld
46911 # Flag that allows shared libraries with undefined symbols to be built.
46912 allow_undefined_flag=$lt_allow_undefined_flag
46914 # Flag that enforces no undefined symbols.
46915 no_undefined_flag=$lt_no_undefined_flag
46917 # Flag to hardcode \$libdir into a binary during linking.
46918 # This must work even if \$libdir does not exist
46919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46921 # If ld is used when linking, flag to hardcode \$libdir into a binary
46922 # during linking. This must work even if \$libdir does not exist.
46923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46925 # Whether we need a single "-rpath" flag with a separated argument.
46926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46929 # DIR into the resulting binary.
46930 hardcode_direct=$hardcode_direct
46932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46933 # DIR into the resulting binary and the resulting library dependency is
46934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46935 # library is relocated.
46936 hardcode_direct_absolute=$hardcode_direct_absolute
46938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46939 # into the resulting binary.
46940 hardcode_minus_L=$hardcode_minus_L
46942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46943 # into the resulting binary.
46944 hardcode_shlibpath_var=$hardcode_shlibpath_var
46946 # Set to "yes" if building a shared library automatically hardcodes DIR
46947 # into the library and all subsequent libraries and executables linked
46949 hardcode_automatic=$hardcode_automatic
46951 # Set to yes if linker adds runtime paths of dependent libraries
46952 # to runtime path list.
46953 inherit_rpath=$inherit_rpath
46955 # Whether libtool must link a program against all its dependency libraries.
46956 link_all_deplibs=$link_all_deplibs
46958 # Fix the shell variable \$srcfile for the compiler.
46959 fix_srcfile_path=$lt_fix_srcfile_path
46961 # Set to "yes" if exported symbols are required.
46962 always_export_symbols=$always_export_symbols
46964 # The commands to list exported symbols.
46965 export_symbols_cmds=$lt_export_symbols_cmds
46967 # Symbols that should not be listed in the preloaded symbols.
46968 exclude_expsyms=$lt_exclude_expsyms
46970 # Symbols that must always be exported.
46971 include_expsyms=$lt_include_expsyms
46973 # Commands necessary for linking programs (against libraries) with templates.
46974 prelink_cmds=$lt_prelink_cmds
46976 # Specify filename containing input files.
46977 file_list_spec=$lt_file_list_spec
46979 # How to hardcode a shared library path into an executable.
46980 hardcode_action=$hardcode_action
46982 # The directories searched by this compiler when creating a shared library.
46983 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46985 # Dependencies to place before and after the objects being linked to
46986 # create a shared library.
46987 predep_objects=$lt_predep_objects
46988 postdep_objects=$lt_postdep_objects
46989 predeps=$lt_predeps
46990 postdeps=$lt_postdeps
46992 # The library search path used internally by the compiler when linking
46993 # a shared library.
46994 compiler_lib_search_path=$lt_compiler_lib_search_path
46996 # ### END LIBTOOL CONFIG
47002 cat <<\_LT_EOF >> "$cfgfile"
47003 # AIX sometimes has problems with the GCC collect2 program. For some
47004 # reason, if we set the COLLECT_NAMES environment variable, the problems
47005 # vanish in a puff of smoke.
47006 if test "X${COLLECT_NAMES+set}" != Xset; then
47008 export COLLECT_NAMES
47015 ltmain="$ac_aux_dir/ltmain.sh"
47018 # We use sed instead of cat because bash on DJGPP gets confused if
47019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47020 # text mode, it properly converts lines to CR/LF. This bash problem
47021 # is reportedly fixed, but why not run on old versions too?
47022 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47023 || (rm -f "$cfgfile"; exit 1)
47027 cat << \_LT_EOF >> "$cfgfile"
47029 # func_dirname file append nondir_replacement
47030 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47031 # otherwise set result to NONDIR_REPLACEMENT.
47035 */*) func_dirname_result="${1%/*}${2}" ;;
47036 * ) func_dirname_result="${3}" ;;
47040 # func_basename file
47043 func_basename_result="${1##*/}"
47046 # func_dirname_and_basename file append nondir_replacement
47047 # perform func_basename and func_dirname in a single function
47049 # dirname: Compute the dirname of FILE. If nonempty,
47050 # add APPEND to the result, otherwise set result
47051 # to NONDIR_REPLACEMENT.
47052 # value returned in "$func_dirname_result"
47053 # basename: Compute filename of FILE.
47054 # value retuned in "$func_basename_result"
47055 # Implementation must be kept synchronized with func_dirname
47056 # and func_basename. For efficiency, we do not delegate to
47057 # those functions but instead duplicate the functionality here.
47058 func_dirname_and_basename ()
47061 */*) func_dirname_result="${1%/*}${2}" ;;
47062 * ) func_dirname_result="${3}" ;;
47064 func_basename_result="${1##*/}"
47067 # func_stripname prefix suffix name
47068 # strip PREFIX and SUFFIX off of NAME.
47069 # PREFIX and SUFFIX must not contain globbing or regex special
47070 # characters, hashes, percent signs, but SUFFIX may contain a leading
47071 # dot (in which case that matches only a dot).
47074 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47075 # positional parameters, so assign one to ordinary parameter first.
47076 func_stripname_result=${3}
47077 func_stripname_result=${func_stripname_result#"${1}"}
47078 func_stripname_result=${func_stripname_result%"${2}"}
47084 func_opt_split_opt=${1%%=*}
47085 func_opt_split_arg=${1#*=}
47092 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47093 *) func_lo2o_result=${1} ;;
47097 # func_xform libobj-or-source
47100 func_xform_result=${1%.*}.lo
47103 # func_arith arithmetic-term...
47106 func_arith_result=$(( $* ))
47110 # STRING may not start with a hyphen.
47113 func_len_result=${#1}
47118 *) # Bourne compatible functions.
47119 cat << \_LT_EOF >> "$cfgfile"
47121 # func_dirname file append nondir_replacement
47122 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47123 # otherwise set result to NONDIR_REPLACEMENT.
47126 # Extract subdirectory from the argument.
47127 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47128 if test "X$func_dirname_result" = "X${1}"; then
47129 func_dirname_result="${3}"
47131 func_dirname_result="$func_dirname_result${2}"
47135 # func_basename file
47138 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47142 # func_stripname prefix suffix name
47143 # strip PREFIX and SUFFIX off of NAME.
47144 # PREFIX and SUFFIX must not contain globbing or regex special
47145 # characters, hashes, percent signs, but SUFFIX may contain a leading
47146 # dot (in which case that matches only a dot).
47147 # func_strip_suffix prefix name
47151 .*) func_stripname_result=`$ECHO "X${3}" \
47152 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47153 *) func_stripname_result=`$ECHO "X${3}" \
47154 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47160 my_sed_long_arg='1s/^-[^=]*=//'
47165 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47166 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47172 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47175 # func_xform libobj-or-source
47178 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47181 # func_arith arithmetic-term...
47184 func_arith_result=`expr "$@"`
47188 # STRING may not start with a hyphen.
47191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47197 case $lt_shell_append in
47199 cat << \_LT_EOF >> "$cfgfile"
47201 # func_append var value
47202 # Append VALUE to the end of shell variable VAR.
47210 cat << \_LT_EOF >> "$cfgfile"
47212 # func_append var value
47213 # Append VALUE to the end of shell variable VAR.
47224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47225 || (rm -f "$cfgfile"; exit 1)
47227 mv -f "$cfgfile" "$ofile" ||
47228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47232 cat <<_LT_EOF >> "$ofile"
47234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47236 # The linker used to build libraries.
47239 # Commands used to build an old-style archive.
47240 old_archive_cmds=$lt_old_archive_cmds_CXX
47242 # A language specific compiler.
47243 CC=$lt_compiler_CXX
47245 # Is the compiler the GNU compiler?
47248 # Compiler flag to turn off builtin functions.
47249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
47251 # How to pass a linker flag through the compiler.
47252 wl=$lt_lt_prog_compiler_wl_CXX
47254 # Additional compiler flags for building library objects.
47255 pic_flag=$lt_lt_prog_compiler_pic_CXX
47257 # Compiler flag to prevent dynamic linking.
47258 link_static_flag=$lt_lt_prog_compiler_static_CXX
47260 # Does compiler simultaneously support -c and -o options?
47261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
47263 # Whether or not to add -lc for building shared libraries.
47264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
47266 # Whether or not to disallow shared libs when runtime libs are static.
47267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
47269 # Compiler flag to allow reflexive dlopens.
47270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
47272 # Compiler flag to generate shared objects directly from archives.
47273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
47275 # Whether the compiler copes with passing no objects directly.
47276 compiler_needs_object=$lt_compiler_needs_object_CXX
47278 # Create an old-style archive from a shared archive.
47279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
47281 # Create a temporary old-style archive to link instead of a shared archive.
47282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
47284 # Commands used to build a shared archive.
47285 archive_cmds=$lt_archive_cmds_CXX
47286 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
47288 # Commands used to build a loadable module if different from building
47289 # a shared archive.
47290 module_cmds=$lt_module_cmds_CXX
47291 module_expsym_cmds=$lt_module_expsym_cmds_CXX
47293 # Whether we are building with GNU ld or not.
47294 with_gnu_ld=$lt_with_gnu_ld_CXX
47296 # Flag that allows shared libraries with undefined symbols to be built.
47297 allow_undefined_flag=$lt_allow_undefined_flag_CXX
47299 # Flag that enforces no undefined symbols.
47300 no_undefined_flag=$lt_no_undefined_flag_CXX
47302 # Flag to hardcode \$libdir into a binary during linking.
47303 # This must work even if \$libdir does not exist
47304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
47306 # If ld is used when linking, flag to hardcode \$libdir into a binary
47307 # during linking. This must work even if \$libdir does not exist.
47308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
47310 # Whether we need a single "-rpath" flag with a separated argument.
47311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
47313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47314 # DIR into the resulting binary.
47315 hardcode_direct=$hardcode_direct_CXX
47317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47318 # DIR into the resulting binary and the resulting library dependency is
47319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47320 # library is relocated.
47321 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
47323 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47324 # into the resulting binary.
47325 hardcode_minus_L=$hardcode_minus_L_CXX
47327 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47328 # into the resulting binary.
47329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
47331 # Set to "yes" if building a shared library automatically hardcodes DIR
47332 # into the library and all subsequent libraries and executables linked
47334 hardcode_automatic=$hardcode_automatic_CXX
47336 # Set to yes if linker adds runtime paths of dependent libraries
47337 # to runtime path list.
47338 inherit_rpath=$inherit_rpath_CXX
47340 # Whether libtool must link a program against all its dependency libraries.
47341 link_all_deplibs=$link_all_deplibs_CXX
47343 # Fix the shell variable \$srcfile for the compiler.
47344 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47346 # Set to "yes" if exported symbols are required.
47347 always_export_symbols=$always_export_symbols_CXX
47349 # The commands to list exported symbols.
47350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47352 # Symbols that should not be listed in the preloaded symbols.
47353 exclude_expsyms=$lt_exclude_expsyms_CXX
47355 # Symbols that must always be exported.
47356 include_expsyms=$lt_include_expsyms_CXX
47358 # Commands necessary for linking programs (against libraries) with templates.
47359 prelink_cmds=$lt_prelink_cmds_CXX
47361 # Specify filename containing input files.
47362 file_list_spec=$lt_file_list_spec_CXX
47364 # How to hardcode a shared library path into an executable.
47365 hardcode_action=$hardcode_action_CXX
47367 # The directories searched by this compiler when creating a shared library.
47368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47370 # Dependencies to place before and after the objects being linked to
47371 # create a shared library.
47372 predep_objects=$lt_predep_objects_CXX
47373 postdep_objects=$lt_postdep_objects_CXX
47374 predeps=$lt_predeps_CXX
47375 postdeps=$lt_postdeps_CXX
47377 # The library search path used internally by the compiler when linking
47378 # a shared library.
47379 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47381 # ### END LIBTOOL TAG CONFIG: CXX
47386 for ac_file in $CONFIG_FILES; do
47387 # Support "outfile[:infile[:infile...]]"
47389 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47391 # PO directories have a Makefile.in generated from Makefile.in.in.
47392 case "$ac_file" in */Makefile.in)
47393 # Adjust a relative srcdir.
47394 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47395 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47396 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47397 # In autoconf-2.13 it is called $ac_given_srcdir.
47398 # In autoconf-2.50 it is called $srcdir.
47399 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47400 case "$ac_given_srcdir" in
47401 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47402 /*) top_srcdir="$ac_given_srcdir" ;;
47403 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
47405 # Treat a directory as a PO directory if and only if it has a
47406 # POTFILES.in file. This allows packages to have multiple PO
47407 # directories under different names or in different locations.
47408 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47409 rm -f "$ac_dir/POTFILES"
47410 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47411 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47412 POMAKEFILEDEPS="POTFILES.in"
47413 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47414 # on $ac_dir but don't depend on user-specified configuration
47416 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47417 # The LINGUAS file contains the set of available languages.
47418 if test -n "$OBSOLETE_ALL_LINGUAS"; then
47419 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47421 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47422 # Hide the ALL_LINGUAS assigment from automake.
47423 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47424 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47426 # The set of available languages was given in configure.in.
47427 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47430 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47431 # Compute UPDATEPOFILES
47432 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47433 # Compute DUMMYPOFILES
47434 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47436 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47437 case "$ac_given_srcdir" in
47439 *) srcdirpre='$(srcdir)/' ;;
47445 for lang in $ALL_LINGUAS; do
47446 POFILES="$POFILES $srcdirpre$lang.po"
47447 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47448 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47449 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47451 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47452 # environment variable.
47454 if test -n "$ALL_LINGUAS"; then
47455 for presentlang in $ALL_LINGUAS; do
47457 if test "%UNSET%" != "$LINGUAS"; then
47458 desiredlanguages="$LINGUAS"
47460 desiredlanguages="$ALL_LINGUAS"
47462 for desiredlang in $desiredlanguages; do
47463 # Use the presentlang catalog if desiredlang is
47464 # a. equal to presentlang, or
47465 # b. a variant of presentlang (because in this case,
47466 # presentlang can be used as a fallback for messages
47467 # which are not translated in the desiredlang catalog).
47468 case "$desiredlang" in
47469 "$presentlang"*) useit=yes;;
47472 if test $useit = yes; then
47473 INST_LINGUAS="$INST_LINGUAS $presentlang"
47478 if test -n "$INST_LINGUAS"; then
47479 for lang in $INST_LINGUAS; do
47480 CATALOGS="$CATALOGS $lang.gmo"
47483 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47484 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"
47485 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47486 if test -f "$f"; then
47488 *.orig | *.bak | *~) ;;
47489 *) cat "$f" >> "$ac_dir/Makefile" ;;
47504 { (exit 0); exit 0; }
47506 chmod +x $CONFIG_STATUS
47507 ac_clean_files=$ac_clean_files_save
47510 # configure is writing to config.log, and then calls config.status.
47511 # config.status does its own redirection, appending to config.log.
47512 # Unfortunately, on DOS this fails, as config.log is still kept open
47513 # by configure, so config.status won't be able to write to it; its
47514 # output is simply discarded. So we exec the FD to /dev/null,
47515 # effectively closing config.log, so it can be properly (re)opened and
47516 # appended to by config.status. When coming back to configure, we
47517 # need to make the FD available again.
47518 if test "$no_create" != yes; then
47520 ac_config_status_args=
47521 test "$silent" = yes &&
47522 ac_config_status_args="$ac_config_status_args --quiet"
47524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47527 # would make configure fail if this is the last instruction.
47528 $ac_cs_success || { (exit 1); exit 1; }
47532 if test "${support_bat}" = "yes" ; then
47533 if test "x$QMAKE" = "xnone"; then
47534 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47535 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47536 { (exit 1); exit 1; }; }
47541 echo "Creating bat Makefile"
47546 ${MAKE:-make} clean
47550 if test X"$GCC" = "Xyes" ; then
47551 echo "Doing make of dependencies"
47552 ${MAKE:-make} depend
47556 chmod 755 install_conf_file build-depkgs-qt-console
47560 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47561 chmod 755 dvd-handler dvd-simulator
47562 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47566 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
47567 chmod 755 $c/update_postgresql_tables_10_to_11
47571 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
47572 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
47574 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
47575 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
47577 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
47578 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
47580 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
47581 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
47583 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
47584 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47586 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47587 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47590 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
47591 chmod 755 $c/sqlite
47594 chmod 755 src/win32/build-depkgs-mingw32
47596 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47597 largefile_support="yes"
47600 if test X"$GCC" = "Xyes" ; then
47601 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47602 if test "x${CCVERSION}" = "x" ; then
47603 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47605 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47606 if test x"${CXXVERSION}" = x ; then
47607 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47611 # clean up any old junk
47615 ${MAKE:-make} clean
47617 if test "x${db_type}" = "xInternal" ; then
47620 echo "You have not specified either --enable-client-only or one of the"
47621 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47622 echo " This is not permitted. Please reconfigure."
47624 echo "Aborting the configuration ..."
47631 Configuration on `date`:
47633 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47634 Bacula version: ${BACULA} ${VERSION} (${DATE})
47635 Source code location: ${srcdir}
47636 Install binaries: ${sbindir}
47637 Install libraries: ${libdir}
47638 Install config files: ${sysconfdir}
47639 Scripts directory: ${scriptdir}
47640 Archive directory: ${archivedir}
47641 Working directory: ${working_dir}
47642 PID directory: ${piddir}
47643 Subsys directory: ${subsysdir}
47644 Man directory: ${mandir}
47645 Data directory: ${datarootdir}
47646 Plugin directory: ${plugindir}
47647 C Compiler: ${CC} ${CCVERSION}
47648 C++ Compiler: ${CXX} ${CXXVERSION}
47649 Compiler flags: ${WCFLAGS} ${CFLAGS}
47650 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47652 Statically Linked Tools: ${support_static_tools}
47653 Statically Linked FD: ${support_static_fd}
47654 Statically Linked SD: ${support_static_sd}
47655 Statically Linked DIR: ${support_static_dir}
47656 Statically Linked CONS: ${support_static_cons}
47657 Database type: ${db_type}
47658 Database port: ${db_port}
47659 Database lib: ${DB_LIBS}
47660 Database name: ${db_name}
47661 Database user: ${db_user}
47663 Job Output Email: ${job_email}
47664 Traceback Email: ${dump_email}
47665 SMTP Host Address: ${smtp_host}
47667 Director Port: ${dir_port}
47668 File daemon Port: ${fd_port}
47669 Storage daemon Port: ${sd_port}
47671 Director User: ${dir_user}
47672 Director Group: ${dir_group}
47673 Storage Daemon User: ${sd_user}
47674 Storage DaemonGroup: ${sd_group}
47675 File Daemon User: ${fd_user}
47676 File Daemon Group: ${fd_group}
47678 SQL binaries Directory ${SQL_BINDIR}
47680 Large file support: $largefile_support
47681 Bacula conio support: ${got_conio} ${CONS_LIBS}
47682 readline support: ${got_readline} ${PRTREADLINE_SRC}
47683 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47684 TLS support: ${support_tls}
47685 Encryption support: ${support_crypto}
47686 ZLIB support: ${have_zlib}
47687 enable-smartalloc: ${support_smartalloc}
47688 enable-lockmgr: ${support_lockmgr}
47689 bat support: ${support_bat}
47690 enable-gnome: ${support_gnome} ${gnome_version}
47691 enable-bwx-console: ${support_wx_console} ${wx_version}
47692 enable-tray-monitor: ${support_tray_monitor}
47693 client-only: ${build_client_only}
47694 build-dird: ${build_dird}
47695 build-stored: ${build_stored}
47696 Plugin support: ${have_plugins}
47697 AFS support: ${have_afs}
47698 ACL support: ${have_acl}
47699 XATTR support: ${have_xattr}
47700 Python support: ${support_python} ${PYTHON_LIBS}
47701 Batch insert enabled: ${support_batch_insert}
47705 # create a small shell script useful for support with
47706 # configure options and config.out info
47707 cat > scripts/bacula_config << EOF
47710 $ $0 $ac_configure_args
47712 cat config.out >> scripts/bacula_config
47713 echo __EOC__ >> scripts/bacula_config
47714 chmod 755 scripts/bacula_config
47718 # Display a warning message if postgresql client lib is <= 8.1
47719 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47720 -a x$support_batch_insert = xyes
47722 echo "WARNING: Your PostgreSQL client library is too old to detect "
47723 echo " if it was compiled with --enable-thread-safety, consider to"
47724 echo " upgrade it in order to avoid problems with Batch insert mode"