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
819 LIBBACFIND_LT_RELEASE
893 DEFAULT_SHARED_OBJECT_TYPE
894 LIBTOOL_INSTALL_TARGET
895 LIBTOOL_UNINSTALL_TARGET
899 INCLUDE_INSTALL_TARGET
900 INCLUDE_UNINSTALL_TARGET
912 HAVE_FREEBSD_OS_FALSE
916 HAVE_OPENBSD_OS_FALSE
947 BUILD_INCLUDED_LIBINTL
954 INTL_LIBTOOL_SUFFIX_PREFIX
963 TRAY_MONITOR_CPPFLAGS
1057 ac_subst_files='MCOMMON'
1058 ac_precious_vars='build_alias
1076 # Initialize some variables set by options.
1078 ac_init_version=false
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1088 program_transform_name=s,x,x,
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1134 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147 bindir=$ac_optarg ;;
1149 -build | --build | --buil | --bui | --bu)
1150 ac_prev=build_alias ;;
1151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152 build_alias=$ac_optarg ;;
1154 -cache-file | --cache-file | --cache-fil | --cache-fi \
1155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156 ac_prev=cache_file ;;
1157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159 cache_file=$ac_optarg ;;
1161 --config-cache | -C)
1162 cache_file=config.cache ;;
1164 -datadir | --datadir | --datadi | --datad)
1166 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167 datadir=$ac_optarg ;;
1169 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170 | --dataroo | --dataro | --datar)
1171 ac_prev=datarootdir ;;
1172 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174 datarootdir=$ac_optarg ;;
1176 -disable-* | --disable-*)
1177 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183 eval enable_$ac_feature=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1202 eval enable_$ac_feature=\$ac_optarg ;;
1204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206 | --exec | --exe | --ex)
1207 ac_prev=exec_prefix ;;
1208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210 | --exec=* | --exe=* | --ex=*)
1211 exec_prefix=$ac_optarg ;;
1213 -gas | --gas | --ga | --g)
1214 # Obsolete; use --with-gas.
1217 -help | --help | --hel | --he | -h)
1218 ac_init_help=long ;;
1219 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220 ac_init_help=recursive ;;
1221 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222 ac_init_help=short ;;
1224 -host | --host | --hos | --ho)
1225 ac_prev=host_alias ;;
1226 -host=* | --host=* | --hos=* | --ho=*)
1227 host_alias=$ac_optarg ;;
1229 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1231 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1233 htmldir=$ac_optarg ;;
1235 -includedir | --includedir | --includedi | --included | --include \
1236 | --includ | --inclu | --incl | --inc)
1237 ac_prev=includedir ;;
1238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239 | --includ=* | --inclu=* | --incl=* | --inc=*)
1240 includedir=$ac_optarg ;;
1242 -infodir | --infodir | --infodi | --infod | --info | --inf)
1244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245 infodir=$ac_optarg ;;
1247 -libdir | --libdir | --libdi | --libd)
1249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250 libdir=$ac_optarg ;;
1252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253 | --libexe | --libex | --libe)
1254 ac_prev=libexecdir ;;
1255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256 | --libexe=* | --libex=* | --libe=*)
1257 libexecdir=$ac_optarg ;;
1259 -localedir | --localedir | --localedi | --localed | --locale)
1260 ac_prev=localedir ;;
1261 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262 localedir=$ac_optarg ;;
1264 -localstatedir | --localstatedir | --localstatedi | --localstated \
1265 | --localstate | --localstat | --localsta | --localst | --locals)
1266 ac_prev=localstatedir ;;
1267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269 localstatedir=$ac_optarg ;;
1271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274 mandir=$ac_optarg ;;
1276 -nfp | --nfp | --nf)
1277 # Obsolete; use --without-fp.
1280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281 | --no-cr | --no-c | -n)
1284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290 | --oldin | --oldi | --old | --ol | --o)
1291 ac_prev=oldincludedir ;;
1292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295 oldincludedir=$ac_optarg ;;
1297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300 prefix=$ac_optarg ;;
1302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303 | --program-pre | --program-pr | --program-p)
1304 ac_prev=program_prefix ;;
1305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307 program_prefix=$ac_optarg ;;
1309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310 | --program-suf | --program-su | --program-s)
1311 ac_prev=program_suffix ;;
1312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314 program_suffix=$ac_optarg ;;
1316 -program-transform-name | --program-transform-name \
1317 | --program-transform-nam | --program-transform-na \
1318 | --program-transform-n | --program-transform- \
1319 | --program-transform | --program-transfor \
1320 | --program-transfo | --program-transf \
1321 | --program-trans | --program-tran \
1322 | --progr-tra | --program-tr | --program-t)
1323 ac_prev=program_transform_name ;;
1324 -program-transform-name=* | --program-transform-name=* \
1325 | --program-transform-nam=* | --program-transform-na=* \
1326 | --program-transform-n=* | --program-transform-=* \
1327 | --program-transform=* | --program-transfor=* \
1328 | --program-transfo=* | --program-transf=* \
1329 | --program-trans=* | --program-tran=* \
1330 | --progr-tra=* | --program-tr=* | --program-t=*)
1331 program_transform_name=$ac_optarg ;;
1333 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1335 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336 pdfdir=$ac_optarg ;;
1338 -psdir | --psdir | --psdi | --psd | --ps)
1340 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344 | -silent | --silent | --silen | --sile | --sil)
1347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1351 sbindir=$ac_optarg ;;
1353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355 | --sharedst | --shareds | --shared | --share | --shar \
1357 ac_prev=sharedstatedir ;;
1358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1362 sharedstatedir=$ac_optarg ;;
1364 -site | --site | --sit)
1366 -site=* | --site=* | --sit=*)
1369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372 srcdir=$ac_optarg ;;
1374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375 | --syscon | --sysco | --sysc | --sys | --sy)
1376 ac_prev=sysconfdir ;;
1377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379 sysconfdir=$ac_optarg ;;
1381 -target | --target | --targe | --targ | --tar | --ta | --t)
1382 ac_prev=target_alias ;;
1383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384 target_alias=$ac_optarg ;;
1386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1389 -version | --version | --versio | --versi | --vers | -V)
1390 ac_init_version=: ;;
1393 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=\$ac_optarg ;;
1401 -without-* | --without-*)
1402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1411 # Obsolete; use --with-x.
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1428 -*) { echo "$as_me: error: unrecognized option: $ac_option
1429 Try \`$0 --help' for more information." >&2
1430 { (exit 1); exit 1; }; }
1434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1438 { (exit 1); exit 1; }; }
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1443 # FIXME: should be removed in autoconf 3.0.
1444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 { echo "$as_me: error: missing argument to $ac_option" >&2
1456 { (exit 1); exit 1; }; }
1459 # Be sure to have absolute directory names.
1460 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val=\$$ac_var
1467 [\\/$]* | ?:[\\/]* ) continue;;
1468 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1471 { (exit 1); exit 1; }; }
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1479 target=$target_alias
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483 if test "x$build_alias" = x; then
1484 cross_compiling=maybe
1485 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486 If a cross compiler is detected then cross compile mode will be used." >&2
1487 elif test "x$build_alias" != "x$host_alias"; then
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495 test "$silent" = yes && exec 6>/dev/null
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501 { echo "$as_me: error: Working directory cannot be determined" >&2
1502 { (exit 1); exit 1; }; }
1503 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504 { echo "$as_me: error: pwd does not report name of working directory" >&2
1505 { (exit 1); exit 1; }; }
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510 ac_srcdir_defaulted=yes
1511 # Try the directory containing this script, then the parent directory.
1512 ac_confdir=`$as_dirname -- "$0" ||
1513 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514 X"$0" : 'X\(//\)[^/]' \| \
1515 X"$0" : 'X\(//\)$' \| \
1516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1540 ac_srcdir_defaulted=no
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1544 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1545 { (exit 1); exit 1; }; }
1547 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1550 { (exit 1); exit 1; }; }
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 for ac_var in $ac_precious_vars; do
1563 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_${ac_var}_value=\$${ac_var}
1565 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1576 \`configure' configures this package to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1634 --x-includes=DIR X include files are in DIR
1635 --x-libraries=DIR X library files are in DIR
1638 --build=BUILD configure for building on BUILD [guessed]
1639 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1643 if test -n "$ac_init_help"; then
1648 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1649 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1650 --enable-libtool enable building using GNU libtool [default=yes]
1651 --enable-shared[=PKGS] build shared libraries [default=yes]
1652 --enable-static[=PKGS] build static libraries [default=no]
1653 --enable-fast-install[=PKGS]
1654 optimize for fast installation [default=yes]
1655 --disable-libtool-lock avoid locking (might break parallel builds)
1656 --enable-includes enable installing of include files [default=no]
1657 --disable-nls do not use Native Language Support
1658 --disable-rpath do not hardcode runtime library paths
1659 --enable-gnome enable build of bgnome-console GUI [default=no]
1660 --enable-bat enable build of bat Qt4 GUI [default=no]
1661 --enable-bwx-console enable build of wxWidgets console [default=no]
1662 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1664 --enable-smartalloc enable smartalloc debugging support [default=no]
1665 --enable-lockmgr enable lock manager support [default=no]
1666 --enable-static-tools enable static tape tools [default=no]
1667 --enable-static-fd enable static File daemon [default=no]
1668 --enable-static-sd enable static Storage daemon [default=no]
1669 --enable-static-dir enable static Director [default=no]
1670 --enable-static-cons enable static Console [default=no]
1671 --enable-client-only build client (File daemon) only [default=no]
1672 --enable-build-dird enable building of dird (Director) [default=yes]
1673 --enable-build-stored enable building of stored (Storage daemon)
1675 --disable-conio disable conio support [default=no]
1676 --enable-ipv6 enable ipv6 support [default=yes]
1677 --disable-readline disable readline support [default=yes]
1678 --enable-batch-insert enable the DB batch insert code [default=no]
1679 --disable-largefile omit support for large files
1680 --disable-afs disable afs support [default=auto]
1681 --disable-acl disable acl support [default=auto]
1682 --disable-xattr disable xattr support [default=auto]
1685 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1686 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1687 --with-pic try to use only PIC/non-PIC objects [default=use
1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1690 --with-gnu-ld assume the C compiler uses GNU ld default=no
1691 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1692 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1693 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1694 --without-libintl-prefix don't search for libintl in includedir and libdir
1695 --with-included-gettext use the GNU gettext library included here
1696 --with-readline[=DIR] specify readline library directory
1697 --with-python[=DIR] Include Python support. DIR is the Python base
1698 install directory, default is to search through a
1699 number of common places for the Python files.
1700 --with-tcp-wrappers[=DIR]
1701 enable tcpwrappers support
1702 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1703 --with-working-dir=PATH specify path of Bacula working directory
1704 --with-archivedir=PATH specify path of SD archive directory
1705 --with-basename=RESNAME specify base resource name for daemons
1706 --with-hostname=RESNAME specify host name for daemons
1707 --with-scriptdir=PATH specify path of Bacula scripts directory
1708 --with-bsrdir=PATH specify path of Bacula bsrs directory
1709 --with-logdir=PATH specify path of Bacula logs directory
1710 --with-plugindir=PATH specify path of Bacula plugins directory
1711 --with-dump-email=EMAIL dump email address
1712 --with-job-email=EMAIL job output email address
1713 --with-smtp-host=HOST SMTP mail host address
1714 --with-pid-dir=PATH specify location of Bacula pid files
1715 --with-subsys-dir=PATH specify location of Bacula subsys file
1716 --with-baseport=PORT specify base port address for daemons
1717 --with-dir-password=PASSWORD
1718 specify Director's password
1719 --with-fd-password=PASSWORD
1720 specify Client's password
1721 --with-sd-password=PASSWORD
1722 specify Storage daemon's password
1723 --with-mon-dir-password=PASSWORD
1724 specify Director's password used by the monitor
1725 --with-mon-fd-password=PASSWORD
1726 specify Client's password used by the monitor
1727 --with-mon-sd-password=PASSWORD
1728 specify Storage daemon's password used by the
1730 --with-db-name=DBNAME specify database name [default=bacula]
1731 --with-db-user=UNAME specify database user [default=bacula]
1732 --with-db-password=PWD specify database password [default=*none*]
1733 --with-db-port=DBPORT specify a database port [default=null]
1734 --with-dir-user=USER specify user for Director daemon
1735 --with-dir-group=GROUP specify group for Director daemon
1736 --with-sd-user=USER specify user for Storage daemon
1737 --with-sd-group=GROUP specify group for Storage daemon
1738 --with-fd-user=USER specify user for File daemon
1739 --with-fd-group=GROUP specify group for File daemon
1740 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1741 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1742 base install directory, [default=/usr/local/pgsql]
1743 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1744 directory, default is to search through a number of
1745 common places for the MySQL files.
1746 --with-embedded-mysql[=DIR]
1747 Include MySQL support. DIR is the MySQL base install
1748 directory, default is to search through a number of
1749 common places for the MySQL files.
1750 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1751 install directory, default is to search through a
1752 number of common places for the Ingres files.
1753 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1754 install directory, default is to search through a
1755 number of common places for the SQLite3 files.
1756 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1757 directory, default is to search through a number of
1758 common places for the DBI files.
1759 --with-dbi-driver[=DRIVER]
1760 Suport for DBI driver. DRIVER is the one DBI driver
1761 like Mysql, Postgresql, others. Default is to not
1762 configure any driver.
1763 --with-x use the X Window System
1764 --with-afsdir[=DIR] Directory holding AFS includes/libs
1766 Some influential environment variables:
1767 CC C compiler command
1768 CFLAGS C compiler flags
1769 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1770 nonstandard directory <lib dir>
1771 LIBS libraries to pass to the linker, e.g. -l<library>
1772 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1773 you have headers in a nonstandard directory <include dir>
1774 CXX C++ compiler command
1775 CXXFLAGS C++ compiler flags
1777 WXCONFIG wx-config command. On some systems, you must set it to
1778 wx-config-2.6 to use wxWidgets 2.6.
1779 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1780 CXXCPP C++ preprocessor
1781 XMKMF Path to xmkmf, Makefile generator for X Window System
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1790 if test "$ac_init_help" = "recursive"; then
1791 # If there are subdirs, report their specific --help.
1792 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1793 test -d "$ac_dir" || continue
1797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1800 # A ".." for each directory in $ac_dir_suffix.
1801 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1802 case $ac_top_builddir_sub in
1803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1807 ac_abs_top_builddir=$ac_pwd
1808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809 # for backward compatibility:
1810 ac_top_builddir=$ac_top_build_prefix
1813 .) # We are building in place.
1815 ac_top_srcdir=$ac_top_builddir_sub
1816 ac_abs_top_srcdir=$ac_pwd ;;
1817 [\\/]* | ?:[\\/]* ) # Absolute name.
1818 ac_srcdir=$srcdir$ac_dir_suffix;
1819 ac_top_srcdir=$srcdir
1820 ac_abs_top_srcdir=$srcdir ;;
1822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823 ac_top_srcdir=$ac_top_build_prefix$srcdir
1824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1828 cd "$ac_dir" || { ac_status=$?; continue; }
1829 # Check for guested configure.
1830 if test -f "$ac_srcdir/configure.gnu"; then
1832 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1833 elif test -f "$ac_srcdir/configure"; then
1835 $SHELL "$ac_srcdir/configure" --help=recursive
1837 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1839 cd "$ac_pwd" || { ac_status=$?; break; }
1843 test -n "$ac_init_help" && exit $ac_status
1844 if $ac_init_version; then
1847 generated by GNU Autoconf 2.61
1849 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1850 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1851 This configure script is free software; the Free Software Foundation
1852 gives unlimited permission to copy, distribute and modify it.
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.61. Invocation command line was
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 echo "PATH: $as_dir"
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_must_keep_next=false
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1932 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1937 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 -* ) ac_must_keep_next=true ;;
1953 ac_configure_args="$ac_configure_args '$ac_arg'"
1958 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1959 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1985 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 *) $as_unset $ac_var ;;
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2014 for ac_var in $ac_subst_vars
2016 eval ac_val=\$$ac_var
2018 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 echo "$ac_var='\''$ac_val'\''"
2024 if test -n "$ac_subst_files"; then
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2031 for ac_var in $ac_subst_files
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 echo "$ac_var='\''$ac_val'\''"
2042 if test -s confdefs.h; then
2052 test "$ac_signal" != 0 &&
2053 echo "$as_me: caught signal $ac_signal"
2054 echo "$as_me: exit $exit_status"
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 # Predefined preprocessor variables.
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098 set x "$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2102 set x "$ac_default_prefix/share/config.site" \
2103 "$ac_default_prefix/etc/config.site"
2108 if test -r "$ac_site_file"; then
2109 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2110 echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2116 if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special
2118 # files actually), so we avoid doing that.
2119 if test -f "$cache_file"; then
2120 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2121 echo "$as_me: loading cache $cache_file" >&6;}
2123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124 *) . "./$cache_file";;
2128 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2129 echo "$as_me: creating cache $cache_file" >&6;}
2133 # Check that the precious variables saved in the cache have kept the same
2135 ac_cache_corrupted=false
2136 for ac_var in $ac_precious_vars; do
2137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138 eval ac_new_set=\$ac_env_${ac_var}_set
2139 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140 eval ac_new_val=\$ac_env_${ac_var}_value
2141 case $ac_old_set,$ac_new_set in
2143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2152 if test "x$ac_old_val" != "x$ac_new_val"; then
2153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2156 echo "$as_me: former value: $ac_old_val" >&2;}
2157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2158 echo "$as_me: current value: $ac_new_val" >&2;}
2159 ac_cache_corrupted=:
2162 # Pass precious variables to config.status.
2163 if test "$ac_new_set" = set; then
2165 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2166 *) ac_arg=$ac_var=$ac_new_val ;;
2168 case " $ac_configure_args " in
2169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2170 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2174 if $ac_cache_corrupted; then
2175 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2176 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2178 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2179 { (exit 1); exit 1; }; }
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2213 if test -f "$ac_dir/install-sh"; then
2215 ac_install_sh="$ac_aux_dir/install-sh -c"
2217 elif test -f "$ac_dir/install.sh"; then
2219 ac_install_sh="$ac_aux_dir/install.sh -c"
2221 elif test -f "$ac_dir/shtool"; then
2223 ac_install_sh="$ac_aux_dir/shtool install -c"
2227 if test -z "$ac_aux_dir"; then
2228 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2229 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2230 { (exit 1); exit 1; }; }
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2245 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2246 WIN32MAINDIR=${BUILD_DIR}
2247 WIN32TOPDIR=${TOP_DIR}
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 TRUEPRG=$ac_cv_path_TRUEPRG
2285 if test -n "$TRUEPRG"; then
2286 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2287 echo "${ECHO_T}$TRUEPRG" >&6; }
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2294 test -n "$TRUEPRG" && break
2296 test -n "$TRUEPRG" || TRUEPRG=":"
2298 for ac_prog in false
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 FALSEPRG=$ac_cv_path_FALSEPRG
2331 if test -n "$FALSEPRG"; then
2332 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2333 echo "${ECHO_T}$FALSEPRG" >&6; }
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2340 test -n "$FALSEPRG" && break
2342 test -n "$FALSEPRG" || FALSEPRG=":"
2347 if test "x$BACULA" != x; then
2348 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2350 BACULA=${BACULA:-Bacula}
2351 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2352 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2353 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2354 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2356 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2358 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2360 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2361 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2362 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2365 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2370 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2375 echo "configuring for ${BACULA} $VERSION ($DATE)"
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2423 if test -z "$ac_cv_prog_CC"; then
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_ac_ct_CC="gcc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2461 if test "x$ac_ct_CC" = x; then
2464 case $cross_compiling:$ac_tool_warned in
2466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet. If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&5
2469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2472 ac_tool_warned=yes ;;
2480 if test -z "$CC"; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="${ac_tool_prefix}cc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2521 if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected=yes
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 if test $ac_prog_rejected = yes; then
2553 # We found a bogon in the path, so make sure we never use it.
2554 set dummy $ac_cv_prog_CC
2556 if test $# != 0; then
2557 # We chose a different compiler from the bogus one.
2558 # However, it has the same basename, so the bogon will be chosen
2559 # first if we set CC to just the basename; use the full file name.
2561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 for ac_prog in cl.exe
2581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$CC"; then
2610 { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$CC" && break
2621 if test -z "$CC"; then
2623 for ac_prog in cl.exe
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_ac_ct_CC="$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655 echo "${ECHO_T}$ac_ct_CC" >&6; }
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2662 test -n "$ac_ct_CC" && break
2665 if test "x$ac_ct_CC" = x; then
2668 case $cross_compiling:$ac_tool_warned in
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet. If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned=yes ;;
2685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler --version >&5") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -v >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -V >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 ac_clean_files_save=$ac_clean_files
2741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749 # List of possible output files, starting from the most likely.
2750 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2751 # only as a last resort. b.out is created by i960 compilers.
2752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754 # The IRIX 6 linker writes into existing files which may not be
2755 # executable, retaining their permissions. Remove them first so a
2756 # subsequent execution test works.
2758 for ac_file in $ac_files
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2767 if { (ac_try="$ac_link_default"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_link_default") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2782 for ac_file in $ac_files ''
2784 test -f "$ac_file" || continue
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2789 # We found the default executable, but exeext='' is most
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2813 { echo "$as_me:$LINENO: result: $ac_file" >&5
2814 echo "${ECHO_T}$ac_file" >&6; }
2815 if test -z "$ac_file"; then
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
2826 ac_exeext=$ac_cv_exeext
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2833 # If not cross compiling, check that we can run a simple program.
2834 if test "$cross_compiling" != yes; then
2835 if { ac_try='./$ac_file'
2836 { (case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_try") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2847 if test "$cross_compiling" = maybe; then
2850 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2860 { echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6; }
2863 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2864 ac_clean_files=$ac_clean_files_save
2865 # Check that the compiler produces executables we can run. If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2868 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2869 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2870 echo "${ECHO_T}$cross_compiling" >&6; }
2872 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2873 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2874 if { (ac_try="$ac_link"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_link") 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; then
2884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2886 # work properly (i.e., refer to `conftest.exe'), while it won't with
2888 for ac_file in conftest.exe conftest conftest.*; do
2889 test -f "$ac_file" || continue
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&2;}
2902 { (exit 1); exit 1; }; }
2905 rm -f conftest$ac_cv_exeext
2906 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2907 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2909 rm -f conftest.$ac_ext
2910 EXEEXT=$ac_cv_exeext
2912 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2914 if test "${ac_cv_objext+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2932 rm -f conftest.o conftest.obj
2933 if { (ac_try="$ac_compile"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 for ac_file in conftest.o conftest.obj conftest.*; do
2944 test -f "$ac_file" || continue;
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&5
2957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2964 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2965 echo "${ECHO_T}$ac_cv_objext" >&6; }
2966 OBJEXT=$ac_cv_objext
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } && {
3005 test -z "$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3007 } && test -s conftest.$ac_objext; then
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3022 GCC=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CFLAGS=${CFLAGS+set}
3024 ac_save_CFLAGS=$CFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cc_g+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 ac_save_c_werror_flag=$ac_c_werror_flag
3031 ac_c_werror_flag=yes
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_c_werror_flag=$ac_save_c_werror_flag
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3162 if test "$ac_test_CFLAGS" = set; then
3163 CFLAGS=$ac_save_CFLAGS
3164 elif test $ac_cv_prog_cc_g = yes; then
3165 if test "$GCC" = yes; then
3171 if test "$GCC" = yes; then
3177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3179 if test "${ac_cv_prog_cc_c89+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 ac_cv_prog_cc_c89=no
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 #include <sys/types.h>
3193 #include <sys/stat.h>
3194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3195 struct buf { int x; };
3196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197 static char *e (p, i)
3203 static char *f (char * (*g) (char **, int), char **p, ...)
3208 s = g (p, va_arg (v,int));
3213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3214 function prototypes and stuff, but not '\xHH' hex character constants.
3215 These don't provoke an error unfortunately, instead are silently treated
3216 as 'x'. The following induces an error, until -std is added to get
3217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3218 array size at least. It's necessary to write '\x00'==0 to get something
3219 that's true only with -std. */
3220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223 inside strings and character constants. */
3225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3244 CC="$ac_save_CC $ac_arg"
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compile") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } && {
3259 test -z "$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
3262 ac_cv_prog_cc_c89=$ac_arg
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f core conftest.err conftest.$ac_objext
3271 test "x$ac_cv_prog_cc_c89" != "xno" && break
3273 rm -f conftest.$ac_ext
3278 case "x$ac_cv_prog_cc_c89" in
3280 { echo "$as_me:$LINENO: result: none needed" >&5
3281 echo "${ECHO_T}none needed" >&6; } ;;
3283 { echo "$as_me:$LINENO: result: unsupported" >&5
3284 echo "${ECHO_T}unsupported" >&6; } ;;
3286 CC="$CC $ac_cv_prog_cc_c89"
3287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 ac_cpp='$CXXCPP $CPPFLAGS'
3300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303 if test -z "$CXX"; then
3304 if test -n "$CCC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -n "$CXX"; then
3318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 if test -n "$CXX"; then
3339 { echo "$as_me:$LINENO: result: $CXX" >&5
3340 echo "${ECHO_T}$CXX" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3347 test -n "$CXX" && break
3350 if test -z "$CXX"; then
3352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -n "$ac_ct_CXX"; then
3362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_ac_ct_CXX="$ac_prog"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3382 if test -n "$ac_ct_CXX"; then
3383 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3386 { echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6; }
3391 test -n "$ac_ct_CXX" && break
3394 if test "x$ac_ct_CXX" = x; then
3397 case $cross_compiling:$ac_tool_warned in
3399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3400 whose name does not start with the host triplet. If you think this
3401 configuration is useful to you, please write to autoconf@gnu.org." >&5
3402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet. If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3405 ac_tool_warned=yes ;;
3413 # Provide some information about the compiler.
3414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3415 ac_compiler=`set X $ac_compile; echo $2`
3416 { (ac_try="$ac_compiler --version >&5"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compiler --version >&5") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }
3426 { (ac_try="$ac_compiler -v >&5"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compiler -v >&5") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 { (ac_try="$ac_compiler -V >&5"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compiler -V >&5") 2>&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_compile") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && {
3484 test -z "$ac_cxx_werror_flag" ||
3485 test ! -s conftest.err
3486 } && test -s conftest.$ac_objext; then
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3501 GXX=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CXXFLAGS=${CXXFLAGS+set}
3503 ac_save_CXXFLAGS=$CXXFLAGS
3504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cxx_g+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3510 ac_cxx_werror_flag=yes
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_cxx_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3545 ac_cv_prog_cxx_g=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_cxx_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_compile") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && {
3619 test -z "$ac_cxx_werror_flag" ||
3620 test ! -s conftest.err
3621 } && test -s conftest.$ac_objext; then
3622 ac_cv_prog_cxx_g=yes
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3641 if test "$ac_test_CXXFLAGS" = set; then
3642 CXXFLAGS=$ac_save_CXXFLAGS
3643 elif test $ac_cv_prog_cxx_g = yes; then
3644 if test "$GXX" = yes; then
3650 if test "$GXX" = yes; then
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 if test "x$CC" != xcc; then
3663 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3664 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3666 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3667 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3669 set dummy $CC; ac_cc=`echo $2 |
3670 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3671 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3689 # Make sure it works both with $CC and with simple cc.
3690 # We do the test twice because some compilers refuse to overwrite an
3691 # existing .o file with -o, though they will create one.
3692 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3694 if { (case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); };
3713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3714 if test "x$CC" != xcc; then
3715 # Test first that cc exists at all.
3716 if { ac_try='cc -c conftest.$ac_ext >&5'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3728 if { (case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_try") 2>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_try") 2>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); };
3750 # cc exists but doesn't like -o.
3751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3758 rm -f core conftest*
3761 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3762 { echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6; }
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3768 cat >>confdefs.h <<\_ACEOF
3769 #define NO_MINUS_C_MINUS_O 1
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3785 if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3808 # include <limits.h>
3810 # include <assert.h>
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null && {
3827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3839 rm -f conftest.err conftest.$ac_ext
3841 # OK, works on sane cases. Now check whether nonexistent headers
3842 # can be detected and how.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null && {
3864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3867 # Broken: success on invalid input.
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Passes both tests.
3878 rm -f conftest.err conftest.$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3895 { echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6; }
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3913 # include <limits.h>
3915 # include <assert.h>
3919 if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev/null && {
3932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 # Broken: fails on valid input.
3944 rm -f conftest.err conftest.$ac_ext
3946 # OK, works on sane cases. Now check whether nonexistent headers
3947 # can be detected and how.
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <ac_nonexistent.h>
3956 if { (ac_try="$ac_cpp conftest.$ac_ext"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null && {
3969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3972 # Broken: success on invalid input.
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 # Passes both tests.
3983 rm -f conftest.err conftest.$ac_ext
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then
3991 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3992 See \`config.log' for more details." >&5
3993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&2;}
3995 { (exit 1); exit 1; }; }
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4007 if test "${ac_cv_path_GREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 # Extract the first word of "grep ggrep" to use in msg output
4011 if test -z "$GREP"; then
4012 set dummy grep ggrep; ac_prog_name=$2
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in grep ggrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027 # Check for GNU ac_path_GREP and select it if it is found.
4028 # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4031 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'GREP' >> "conftest.nl"
4041 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_GREP="$ac_path_GREP"
4047 ac_path_GREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 $ac_path_GREP_found && break 3
4066 GREP="$ac_cv_path_GREP"
4067 if test -z "$GREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4074 ac_cv_path_GREP=$GREP
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4081 GREP="$ac_cv_path_GREP"
4084 { echo "$as_me:$LINENO: checking for egrep" >&5
4085 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090 then ac_cv_path_EGREP="$GREP -E"
4092 # Extract the first word of "egrep" to use in msg output
4093 if test -z "$EGREP"; then
4094 set dummy egrep; ac_prog_name=$2
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_path_EGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in egrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109 # Check for GNU ac_path_EGREP and select it if it is found.
4110 # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4113 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'EGREP' >> "conftest.nl"
4123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_EGREP="$ac_path_EGREP"
4129 ac_path_EGREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_EGREP_found && break 3
4148 EGREP="$ac_cv_path_EGREP"
4149 if test -z "$EGREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cv_path_EGREP=$EGREP
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4164 EGREP="$ac_cv_path_EGREP"
4167 if test $ac_cv_c_compiler_gnu = yes; then
4168 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4169 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_pattern="Autoconf.*'x'"
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4185 ac_cv_prog_gcc_traditional=yes
4187 ac_cv_prog_gcc_traditional=no
4192 if test $ac_cv_prog_gcc_traditional = no; then
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4204 ac_cv_prog_gcc_traditional=yes
4210 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4211 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4212 if test $ac_cv_prog_gcc_traditional = yes; then
4213 CC="$CC -traditional"
4217 BASECC=`basename $CC`
4219 if test "x$BASECC" = xgcc; then
4220 cat >>confdefs.h <<\_ACEOF
4226 # Extract the first word of "$CXX", so it can be a program name with args.
4227 set dummy $CXX; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_CXX+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4258 if test -n "$CXX"; then
4259 { echo "$as_me:$LINENO: result: $CXX" >&5
4260 echo "${ECHO_T}$CXX" >&6; }
4262 { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4267 if test ! -e $CXX; then
4268 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4269 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4270 { (exit 1); exit 1; }; }
4273 # Find a good install program. We prefer a C program (faster),
4274 # so one script is as good as another. But avoid the broken or
4275 # incompatible versions:
4276 # SysV /etc/install, /usr/sbin/install
4277 # SunOS /usr/etc/install
4278 # IRIX /sbin/install
4280 # AmigaOS /C/install, which installs bootblocks on floppy discs
4281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4284 # OS/2's system install, which has a completely different semantic
4285 # ./install, which can be erroneously created by make from ./install.sh.
4286 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4288 if test -z "$INSTALL"; then
4289 if test "${ac_cv_path_install+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 # Account for people who put trailing slashes in PATH elements.
4299 ./ | .// | /cC/* | \
4300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4304 # OSF1 and SCO ODT 3.0 have their own names for install.
4305 # Don't use installbsd from OSF since it installs stuff as root
4307 for ac_prog in ginstall scoinst install; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4310 if test $ac_prog = install &&
4311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4312 # AIX install. It has an incompatible calling convention.
4314 elif test $ac_prog = install &&
4315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4316 # program-specific install script used by HP pwplus--don't use.
4319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL=$ac_cv_path_install
4335 # As a last resort, use the slow shell script. Don't cache a
4336 # value for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the value is a relative name.
4339 INSTALL=$ac_install_sh
4342 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6; }
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4353 # Extract the first word of "mv", so it can be a program name with args.
4354 set dummy mv; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_MV+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4385 if test -n "$MV"; then
4386 { echo "$as_me:$LINENO: result: $MV" >&5
4387 echo "${ECHO_T}$MV" >&6; }
4389 { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4394 # Extract the first word of "rm", so it can be a program name with args.
4395 set dummy rm; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_REMOVE+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4425 REMOVE=$ac_cv_path_REMOVE
4426 if test -n "$REMOVE"; then
4427 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4428 echo "${ECHO_T}$REMOVE" >&6; }
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4435 # Extract the first word of "cp", so it can be a program name with args.
4436 set dummy cp; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_CP+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4467 if test -n "$CP"; then
4468 { echo "$as_me:$LINENO: result: $CP" >&5
4469 echo "${ECHO_T}$CP" >&6; }
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 # Extract the first word of "sed", so it can be a program name with args.
4477 set dummy sed; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_SED+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4508 if test -n "$SED"; then
4509 { echo "$as_me:$LINENO: result: $SED" >&5
4510 echo "${ECHO_T}$SED" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4517 # Extract the first word of "echo", so it can be a program name with args.
4518 set dummy echo; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_ECHO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4548 ECHO=$ac_cv_path_ECHO
4549 if test -n "$ECHO"; then
4550 { echo "$as_me:$LINENO: result: $ECHO" >&5
4551 echo "${ECHO_T}$ECHO" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4558 # Extract the first word of "cmp", so it can be a program name with args.
4559 set dummy cmp; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_CMP+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4590 if test -n "$CMP"; then
4591 { echo "$as_me:$LINENO: result: $CMP" >&5
4592 echo "${ECHO_T}$CMP" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4599 # Extract the first word of "tbl", so it can be a program name with args.
4600 set dummy tbl; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_TBL+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4631 if test -n "$TBL"; then
4632 { echo "$as_me:$LINENO: result: $TBL" >&5
4633 echo "${ECHO_T}$TBL" >&6; }
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4640 # Extract the first word of "ar", so it can be a program name with args.
4641 set dummy ar; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_AR+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4672 if test -n "$AR"; then
4673 { echo "$as_me:$LINENO: result: $AR" >&5
4674 echo "${ECHO_T}$AR" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 # Extract the first word of "openssl", so it can be a program name with args.
4682 set dummy openssl; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_OPENSSL+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4712 OPENSSL=$ac_cv_path_OPENSSL
4713 if test -n "$OPENSSL"; then
4714 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4715 echo "${ECHO_T}$OPENSSL" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 # Extract the first word of "mtx", so it can be a program name with args.
4723 set dummy mtx; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_MTX+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4754 if test -n "$MTX"; then
4755 { echo "$as_me:$LINENO: result: $MTX" >&5
4756 echo "${ECHO_T}$MTX" >&6; }
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4763 # Extract the first word of "dd", so it can be a program name with args.
4764 set dummy dd; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DD+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4795 if test -n "$DD"; then
4796 { echo "$as_me:$LINENO: result: $DD" >&5
4797 echo "${ECHO_T}$DD" >&6; }
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4804 # Extract the first word of "mkisofs", so it can be a program name with args.
4805 set dummy mkisofs; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_MKISOFS+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4835 MKISOFS=$ac_cv_path_MKISOFS
4836 if test -n "$MKISOFS"; then
4837 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4838 echo "${ECHO_T}$MKISOFS" >&6; }
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4845 # Extract the first word of "python", so it can be a program name with args.
4846 set dummy python; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PYTHON+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4876 PYTHON=$ac_cv_path_PYTHON
4877 if test -n "$PYTHON"; then
4878 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4879 echo "${ECHO_T}$PYTHON" >&6; }
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4886 # Extract the first word of "growisofs", so it can be a program name with args.
4887 set dummy growisofs; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4917 GROWISOFS=$ac_cv_path_GROWISOFS
4918 if test -n "$GROWISOFS"; then
4919 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4920 echo "${ECHO_T}$GROWISOFS" >&6; }
4922 { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4927 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4928 set dummy dvd+rw-mediainfo; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 case $DVDRWMEDIAINFO in
4936 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4958 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4959 if test -n "$DVDRWMEDIAINFO"; then
4960 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4961 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4963 { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4968 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4969 set dummy dvd+rw-format; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 case $DVDRWFORMAT in
4977 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4999 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5000 if test -n "$DVDRWFORMAT"; then
5001 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5002 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5004 { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5009 # Extract the first word of "pkg-config", so it can be a program name with args.
5010 set dummy pkg-config; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5040 PKGCONFIG=$ac_cv_path_PKGCONFIG
5041 if test -n "$PKGCONFIG"; then
5042 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5043 echo "${ECHO_T}$PKGCONFIG" >&6; }
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5050 # Extract the first word of "qmake", so it can be a program name with args.
5051 set dummy qmake; ac_word=$2
5052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054 if test "${ac_cv_path_QMAKE+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5081 QMAKE=$ac_cv_path_QMAKE
5082 if test -n "$QMAKE"; then
5083 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5084 echo "${ECHO_T}$QMAKE" >&6; }
5086 { echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6; }
5091 # Extract the first word of "gmake", so it can be a program name with args.
5092 set dummy gmake; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_path_GMAKE+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5122 GMAKE=$ac_cv_path_GMAKE
5123 if test -n "$GMAKE"; then
5124 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5125 echo "${ECHO_T}$GMAKE" >&6; }
5127 { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5133 if test "x$WXCONFIG" = x; then
5136 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5137 set dummy ${WXCONFIG}; ac_word=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5167 WXCONFIG=$ac_cv_path_WXCONFIG
5168 if test -n "$WXCONFIG"; then
5169 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5170 echo "${ECHO_T}$WXCONFIG" >&6; }
5172 { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5178 # Extract the first word of "cdrecord", so it can be a program name with args.
5179 set dummy cdrecord; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_CDRECORD+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5209 CDRECORD=$ac_cv_path_CDRECORD
5210 if test -n "$CDRECORD"; then
5211 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5212 echo "${ECHO_T}$CDRECORD" >&6; }
5214 { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5219 # Extract the first word of "pidof", so it can be a program name with args.
5220 set dummy pidof; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_PIDOF+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5250 PIDOF=$ac_cv_path_PIDOF
5251 if test -n "$PIDOF"; then
5252 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5253 echo "${ECHO_T}$PIDOF" >&6; }
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5260 for ac_prog in gawk mawk nawk awk
5262 # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_prog_AWK+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -n "$AWK"; then
5270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_prog_AWK="$ac_prog"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 if test -n "$AWK"; then
5291 { echo "$as_me:$LINENO: result: $AWK" >&5
5292 echo "${ECHO_T}$AWK" >&6; }
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 test -n "$AWK" && break
5302 # Some AWK programs fail, so test it and warn the user
5303 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5304 { if ((prog == $2) || (("(" prog ")") == $2) ||
5305 (("" prog "") == $2) ||
5306 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5308 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5309 The regex engine of $AWK is too broken to be used you
5310 might want to install GNU AWK.
5311 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5312 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5313 The regex engine of $AWK is too broken to be used you
5314 might want to install GNU AWK.
5315 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5316 { (exit 1); exit 1; }; }
5319 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5320 set dummy $THE_AWK; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_path_AWK+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5351 if test -n "$AWK"; then
5352 { echo "$as_me:$LINENO: result: $AWK" >&5
5353 echo "${ECHO_T}$AWK" >&6; }
5355 { echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6; }
5362 test -n "$ARFLAG" || ARFLAGS="cr"
5374 # Check whether --enable-libtool was given.
5375 if test "${enable_libtool+set}" = set; then
5376 enableval=$enable_libtool;
5377 if test x$enableval = xno; then
5386 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5387 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5392 macro_version='2.2.6'
5393 macro_revision='1.3012'
5407 ltmain="$ac_aux_dir/ltmain.sh"
5409 # Make sure we can run config.sub.
5410 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5411 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5412 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5413 { (exit 1); exit 1; }; }
5415 { echo "$as_me:$LINENO: checking build system type" >&5
5416 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5417 if test "${ac_cv_build+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_build_alias=$build_alias
5421 test "x$ac_build_alias" = x &&
5422 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5423 test "x$ac_build_alias" = x &&
5424 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5426 { (exit 1); exit 1; }; }
5427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5430 { (exit 1); exit 1; }; }
5433 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5434 echo "${ECHO_T}$ac_cv_build" >&6; }
5435 case $ac_cv_build in
5437 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5438 echo "$as_me: error: invalid value of canonical build" >&2;}
5439 { (exit 1); exit 1; }; };;
5442 ac_save_IFS=$IFS; IFS='-'
5448 # Remember, the first character of IFS is used to create $*,
5449 # except with old shells:
5452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5455 { echo "$as_me:$LINENO: checking host system type" >&5
5456 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5457 if test "${ac_cv_host+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 if test "x$host_alias" = x; then
5461 ac_cv_host=$ac_cv_build
5463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5464 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5465 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5466 { (exit 1); exit 1; }; }
5470 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5471 echo "${ECHO_T}$ac_cv_host" >&6; }
5474 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5475 echo "$as_me: error: invalid value of canonical host" >&2;}
5476 { (exit 1); exit 1; }; };;
5479 ac_save_IFS=$IFS; IFS='-'
5485 # Remember, the first character of IFS is used to create $*,
5486 # except with old shells:
5489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5492 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5493 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5494 if test "${ac_cv_path_SED+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498 for ac_i in 1 2 3 4 5 6 7; do
5499 ac_script="$ac_script$as_nl$ac_script"
5501 echo "$ac_script" | sed 99q >conftest.sed
5502 $as_unset ac_script || ac_script=
5503 # Extract the first word of "sed gsed" to use in msg output
5504 if test -z "$SED"; then
5505 set dummy sed gsed; ac_prog_name=$2
5506 if test "${ac_cv_path_SED+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_prog in sed gsed; do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520 # Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5527 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 ac_count=`expr $ac_count + 1`
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED="$ac_path_SED"
5540 ac_path_SED_max=$ac_count
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 $ac_path_SED_found && break 3
5559 SED="$ac_cv_path_SED"
5560 if test -z "$SED"; then
5561 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5563 { (exit 1); exit 1; }; }
5571 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5572 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5573 SED="$ac_cv_path_SED"
5576 test -z "$SED" && SED=sed
5577 Xsed="$SED -e 1s/^X//"
5589 { echo "$as_me:$LINENO: checking for fgrep" >&5
5590 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595 then ac_cv_path_FGREP="$GREP -F"
5597 # Extract the first word of "fgrep" to use in msg output
5598 if test -z "$FGREP"; then
5599 set dummy fgrep; ac_prog_name=$2
5600 if test "${ac_cv_path_FGREP+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 ac_path_FGREP_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5609 test -z "$as_dir" && as_dir=.
5610 for ac_prog in fgrep; do
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5613 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5614 # Check for GNU ac_path_FGREP and select it if it is found.
5615 # Check for GNU $ac_path_FGREP
5616 case `"$ac_path_FGREP" --version 2>&1` in
5618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5621 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5624 cat "conftest.in" "conftest.in" >"conftest.tmp"
5625 mv "conftest.tmp" "conftest.in"
5626 cp "conftest.in" "conftest.nl"
5627 echo 'FGREP' >> "conftest.nl"
5628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630 ac_count=`expr $ac_count + 1`
5631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5632 # Best one so far, save it but keep looking for a better one
5633 ac_cv_path_FGREP="$ac_path_FGREP"
5634 ac_path_FGREP_max=$ac_count
5636 # 10*(2^10) chars as input seems more than enough
5637 test $ac_count -gt 10 && break
5639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643 $ac_path_FGREP_found && break 3
5653 FGREP="$ac_cv_path_FGREP"
5654 if test -z "$FGREP"; then
5655 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5656 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5657 { (exit 1); exit 1; }; }
5661 ac_cv_path_FGREP=$FGREP
5667 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5668 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5669 FGREP="$ac_cv_path_FGREP"
5672 test -z "$GREP" && GREP=grep
5692 # Check whether --with-gnu-ld was given.
5693 if test "${with_gnu_ld+set}" = set; then
5694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5700 if test "$GCC" = yes; then
5701 # Check if gcc -print-prog-name=ld gives a path.
5702 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5706 # gcc leaves a trailing carriage return which upsets mingw
5707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5712 # Accept absolute paths.
5714 re_direlt='/[^/][^/]*/\.\./'
5715 # Canonicalize the pathname of ld
5716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5720 test -z "$LD" && LD="$ac_prog"
5723 # If it fails, then pretend we aren't using GCC.
5727 # If it is relative, then search for the first ld in PATH.
5731 elif test "$with_gnu_ld" = yes; then
5732 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5735 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5738 if test "${lt_cv_path_LD+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 if test -z "$LD"; then
5742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743 for ac_dir in $PATH; do
5745 test -z "$ac_dir" && ac_dir=.
5746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747 lt_cv_path_LD="$ac_dir/$ac_prog"
5748 # Check to see if the program is GNU ld. I'd rather use --version,
5749 # but apparently some variants of GNU ld only accept -v.
5750 # Break only if it was the GNU/non-GNU ld that we prefer.
5751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753 test "$with_gnu_ld" != no && break
5756 test "$with_gnu_ld" != yes && break
5763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5768 if test -n "$LD"; then
5769 { echo "$as_me:$LINENO: result: $LD" >&5
5770 echo "${ECHO_T}$LD" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5777 { (exit 1); exit 1; }; }
5778 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786 lt_cv_prog_gnu_ld=yes
5789 lt_cv_prog_gnu_ld=no
5793 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5805 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5807 if test "${lt_cv_path_NM+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if test -n "$NM"; then
5811 # Let the user override the test.
5814 lt_nm_to_check="${ac_tool_prefix}nm"
5815 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5816 lt_nm_to_check="$lt_nm_to_check nm"
5818 for lt_tmp_nm in $lt_nm_to_check; do
5819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5820 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5822 test -z "$ac_dir" && ac_dir=.
5823 tmp_nm="$ac_dir/$lt_tmp_nm"
5824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5825 # Check to see if the nm accepts a BSD-compat flag.
5826 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5827 # nm: unknown option "B" ignored
5828 # Tru64's nm complains that /dev/null is an invalid object file
5829 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5830 */dev/null* | *'Invalid file or object type'*)
5831 lt_cv_path_NM="$tmp_nm -B"
5835 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5837 lt_cv_path_NM="$tmp_nm -p"
5841 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5842 continue # so that we can try to find one that supports BSD flags
5851 : ${lt_cv_path_NM=no}
5854 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5855 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5856 if test "$lt_cv_path_NM" != "no"; then
5859 # Didn't find any BSD compatible name lister, look for dumpbin.
5860 if test -n "$ac_tool_prefix"; then
5861 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$DUMPBIN"; then
5871 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 DUMPBIN=$ac_cv_prog_DUMPBIN
5891 if test -n "$DUMPBIN"; then
5892 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5893 echo "${ECHO_T}$DUMPBIN" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 test -n "$DUMPBIN" && break
5903 if test -z "$DUMPBIN"; then
5904 ac_ct_DUMPBIN=$DUMPBIN
5905 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5907 # Extract the first word of "$ac_prog", so it can be a program name with args.
5908 set dummy $ac_prog; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 if test -n "$ac_ct_DUMPBIN"; then
5915 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5935 if test -n "$ac_ct_DUMPBIN"; then
5936 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5937 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5939 { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5944 test -n "$ac_ct_DUMPBIN" && break
5947 if test "x$ac_ct_DUMPBIN" = x; then
5950 case $cross_compiling:$ac_tool_warned in
5952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5953 whose name does not start with the host triplet. If you think this
5954 configuration is useful to you, please write to autoconf@gnu.org." >&5
5955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5956 whose name does not start with the host triplet. If you think this
5957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5958 ac_tool_warned=yes ;;
5960 DUMPBIN=$ac_ct_DUMPBIN
5965 if test "$DUMPBIN" != ":"; then
5969 test -z "$NM" && NM=nm
5976 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5977 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5978 if test "${lt_cv_nm_interface+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 lt_cv_nm_interface="BSD nm"
5982 echo "int some_variable = 0;" > conftest.$ac_ext
5983 (eval echo "\"\$as_me:5983: $ac_compile\"" >&5)
5984 (eval "$ac_compile" 2>conftest.err)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:5986: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988 cat conftest.err >&5
5989 (eval echo "\"\$as_me:5989: output\"" >&5)
5990 cat conftest.out >&5
5991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992 lt_cv_nm_interface="MS dumpbin"
5996 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5997 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5999 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6002 if test "$LN_S" = "ln -s"; then
6003 { echo "$as_me:$LINENO: result: yes" >&5
6004 echo "${ECHO_T}yes" >&6; }
6006 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6007 echo "${ECHO_T}no, using $LN_S" >&6; }
6010 # find the maximum length of command line arguments
6011 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6012 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6013 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 # On DJGPP, this test can blow up pretty badly due to problems in libc
6022 # (any single argument exceeding 2000 bytes causes a buffer overrun
6023 # during glob expansion). Even if it were fixed, the result of this
6024 # check would be larger than it should be.
6025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6029 # Under GNU Hurd, this test is not required because there is
6030 # no limit to the length of command line arguments.
6031 # Libtool will interpret -1 as no limit whatsoever
6032 lt_cv_sys_max_cmd_len=-1;
6035 cygwin* | mingw* | cegcc*)
6036 # On Win9x/ME, this test blows up -- it succeeds, but takes
6037 # about 5 minutes as the teststring grows exponentially.
6038 # Worse, since 9x/ME are not pre-emptively multitasking,
6039 # you end up with a "frozen" computer, even though with patience
6040 # the test eventually succeeds (with a max line length of 256k).
6041 # Instead, let's just punt: use the minimum linelength reported by
6042 # all of the supported platforms: 8192 (on NT/2K/XP).
6043 lt_cv_sys_max_cmd_len=8192;
6047 # On AmigaOS with pdksh, this test takes hours, literally.
6048 # So we just punt and use a minimum line length of 8192.
6049 lt_cv_sys_max_cmd_len=8192;
6052 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6053 # This has been around since 386BSD, at least. Likely further.
6054 if test -x /sbin/sysctl; then
6055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6056 elif test -x /usr/sbin/sysctl; then
6057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6061 # And add a safety zone
6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6068 lt_cv_sys_max_cmd_len=196608
6072 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6073 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6074 # nice to cause kernel panics so lets avoid the loop below.
6075 # First set a reasonable default.
6076 lt_cv_sys_max_cmd_len=16384
6078 if test -x /sbin/sysconfig; then
6079 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6080 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6085 lt_cv_sys_max_cmd_len=102400
6087 sysv5* | sco5v6* | sysv4.2uw2*)
6088 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6089 if test -n "$kargmax"; then
6090 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6092 lt_cv_sys_max_cmd_len=32768
6096 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6097 if test -n "$lt_cv_sys_max_cmd_len"; then
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6101 # Make teststring a little bigger before we do anything with it.
6102 # a 1K string should be a reasonable start.
6103 for i in 1 2 3 4 5 6 7 8 ; do
6104 teststring=$teststring$teststring
6106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107 # If test is not a shell built-in, we'll probably end up computing a
6108 # maximum length that is only half of the actual maximum length, but
6110 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6111 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6112 test $i != 17 # 1/2 MB should be enough
6115 teststring=$teststring$teststring
6117 # Only check the string length outside the loop.
6118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6120 # Add a significant safety factor because C++ compilers can tack on
6121 # massive amounts of additional arguments before passing them to the
6122 # linker. It appears as though 1/2 is a usable value.
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6130 if test -n $lt_cv_sys_max_cmd_len ; then
6131 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6132 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6134 { echo "$as_me:$LINENO: result: none" >&5
6135 echo "${ECHO_T}none" >&6; }
6137 max_cmd_len=$lt_cv_sys_max_cmd_len
6148 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6149 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6150 # Try some XSI features
6153 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6155 && eval 'test $(( 1 + 1 )) -eq 2 \
6156 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6158 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6159 echo "${ECHO_T}$xsi_shell" >&6; }
6162 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6163 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6165 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6167 && lt_shell_append=yes
6168 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6169 echo "${ECHO_T}$lt_shell_append" >&6; }
6172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6182 # test EBCDIC or ASCII
6183 case `echo X|tr X '\101'` in
6184 A) # ASCII based system
6185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6186 lt_SP2NL='tr \040 \012'
6187 lt_NL2SP='tr \015\012 \040\040'
6189 *) # EBCDIC based system
6190 lt_SP2NL='tr \100 \n'
6191 lt_NL2SP='tr \r\n \100\100'
6203 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6204 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6205 if test "${lt_cv_ld_reload_flag+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 lt_cv_ld_reload_flag='-r'
6210 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6211 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6212 reload_flag=$lt_cv_ld_reload_flag
6213 case $reload_flag in
6215 *) reload_flag=" $reload_flag" ;;
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220 if test "$GCC" = yes; then
6221 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test -n "$OBJDUMP"; then
6245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 OBJDUMP=$ac_cv_prog_OBJDUMP
6265 if test -n "$OBJDUMP"; then
6266 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6267 echo "${ECHO_T}$OBJDUMP" >&6; }
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6275 if test -z "$ac_cv_prog_OBJDUMP"; then
6276 ac_ct_OBJDUMP=$OBJDUMP
6277 # Extract the first word of "objdump", so it can be a program name with args.
6278 set dummy objdump; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 if test -n "$ac_ct_OBJDUMP"; then
6285 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305 if test -n "$ac_ct_OBJDUMP"; then
6306 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6307 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6313 if test "x$ac_ct_OBJDUMP" = x; then
6316 case $cross_compiling:$ac_tool_warned in
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet. If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6324 ac_tool_warned=yes ;;
6326 OBJDUMP=$ac_ct_OBJDUMP
6329 OBJDUMP="$ac_cv_prog_OBJDUMP"
6332 test -z "$OBJDUMP" && OBJDUMP=objdump
6342 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6343 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6344 if test "${lt_cv_deplibs_check_method+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 lt_cv_file_magic_cmd='$MAGIC_CMD'
6348 lt_cv_file_magic_test_file=
6349 lt_cv_deplibs_check_method='unknown'
6350 # Need to set the preceding variable on all platforms that support
6351 # interlibrary dependencies.
6352 # 'none' -- dependencies not supported.
6353 # `unknown' -- same as none, but documents that we really don't know.
6354 # 'pass_all' -- all dependencies passed with no checks.
6355 # 'test_compile' -- check by making test program.
6356 # 'file_magic [[regex]]' -- check by looking for files in library path
6357 # which responds to the $file_magic_cmd with a given extended regex.
6358 # If you have `file' or equivalent on your system and you're not sure
6359 # whether `pass_all' will *always* work, you probably want this one.
6363 lt_cv_deplibs_check_method=pass_all
6367 lt_cv_deplibs_check_method=pass_all
6371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372 lt_cv_file_magic_cmd='/usr/bin/file -L'
6373 lt_cv_file_magic_test_file=/shlib/libc.so
6377 # func_win32_libid is a shell function defined in ltmain.sh
6378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379 lt_cv_file_magic_cmd='func_win32_libid'
6383 # Base MSYS/MinGW do not provide the 'file' command needed by
6384 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385 # unless we find 'file', for example because we are cross-compiling.
6386 if ( file / ) >/dev/null 2>&1; then
6387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388 lt_cv_file_magic_cmd='func_win32_libid'
6390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6401 darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
6405 freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 lt_cv_deplibs_check_method=pass_all
6422 lt_cv_deplibs_check_method=pass_all
6425 hpux10.20* | hpux11*)
6426 lt_cv_file_magic_cmd=/usr/bin/file
6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6430 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6433 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]'
6434 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6438 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6444 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6448 irix5* | irix6* | nonstopux*)
6450 *-32|*"-32 ") libmagic=32-bit;;
6451 *-n32|*"-n32 ") libmagic=N32;;
6452 *-64|*"-64 ") libmagic=64-bit;;
6453 *) libmagic=never-match;;
6455 lt_cv_deplibs_check_method=pass_all
6458 # This must be Linux ELF.
6459 linux* | k*bsd*-gnu)
6460 lt_cv_deplibs_check_method=pass_all
6464 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6473 lt_cv_file_magic_cmd=/usr/bin/file
6474 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478 lt_cv_deplibs_check_method=pass_all
6482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489 osf3* | osf4* | osf5*)
6490 lt_cv_deplibs_check_method=pass_all
6494 lt_cv_deplibs_check_method=pass_all
6498 lt_cv_deplibs_check_method=pass_all
6501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6502 lt_cv_deplibs_check_method=pass_all
6506 case $host_vendor in
6508 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]'
6509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6512 lt_cv_deplibs_check_method=pass_all
6515 lt_cv_file_magic_cmd='/bin/file'
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6521 lt_cv_file_magic_test_file=/lib/libc.so
6524 lt_cv_deplibs_check_method=pass_all
6527 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6538 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6539 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6540 file_magic_cmd=$lt_cv_file_magic_cmd
6541 deplibs_check_method=$lt_cv_deplibs_check_method
6542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_prog_AR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_AR="${ac_tool_prefix}ar"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 if test -n "$AR"; then
6585 { echo "$as_me:$LINENO: result: $AR" >&5
6586 echo "${ECHO_T}$AR" >&6; }
6588 { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6594 if test -z "$ac_cv_prog_AR"; then
6596 # Extract the first word of "ar", so it can be a program name with args.
6597 set dummy ar; ac_word=$2
6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 if test -n "$ac_ct_AR"; then
6604 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_AR="ar"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624 if test -n "$ac_ct_AR"; then
6625 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626 echo "${ECHO_T}$ac_ct_AR" >&6; }
6628 { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6632 if test "x$ac_ct_AR" = x; then
6635 case $cross_compiling:$ac_tool_warned in
6637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet. If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&5
6640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet. If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643 ac_tool_warned=yes ;;
6651 test -z "$AR" && AR=ar
6652 test -z "$AR_FLAGS" && AR_FLAGS=cru
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}strip; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_STRIP+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 if test -n "$STRIP"; then
6673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 STRIP=$ac_cv_prog_STRIP
6693 if test -n "$STRIP"; then
6694 { echo "$as_me:$LINENO: result: $STRIP" >&5
6695 echo "${ECHO_T}$STRIP" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6703 if test -z "$ac_cv_prog_STRIP"; then
6705 # Extract the first word of "strip", so it can be a program name with args.
6706 set dummy strip; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 if test -n "$ac_ct_STRIP"; then
6713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_STRIP="strip"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733 if test -n "$ac_ct_STRIP"; then
6734 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6741 if test "x$ac_ct_STRIP" = x; then
6744 case $cross_compiling:$ac_tool_warned in
6746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet. If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&5
6749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6752 ac_tool_warned=yes ;;
6757 STRIP="$ac_cv_prog_STRIP"
6760 test -z "$STRIP" && STRIP=:
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_prog_RANLIB+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 if test -n "$RANLIB"; then
6776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6798 echo "${ECHO_T}$RANLIB" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807 ac_ct_RANLIB=$RANLIB
6808 # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 if test -n "$ac_ct_RANLIB"; then
6816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_ac_ct_RANLIB="ranlib"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836 if test -n "$ac_ct_RANLIB"; then
6837 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6838 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6844 if test "x$ac_ct_RANLIB" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6850 whose name does not start with the host triplet. If you think this
6851 configuration is useful to you, please write to autoconf@gnu.org." >&5
6852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet. If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6855 ac_tool_warned=yes ;;
6857 RANLIB=$ac_ct_RANLIB
6860 RANLIB="$ac_cv_prog_RANLIB"
6863 test -z "$RANLIB" && RANLIB=:
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6875 if test -n "$RANLIB"; then
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6920 # If no C compiler was specified, use CC.
6923 # If no C compiler flags were specified, use CFLAGS.
6924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6926 # Allow CC to be a program name with arguments.
6930 # Check for command to grab the raw symbol name followed by C symbol from nm.
6931 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 # These are sane defaults that work on at least a few old systems.
6938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6940 # Character class describing NM global symbol codes.
6941 symcode='[BCDEGRST]'
6943 # Regexp to match symbols that can be accessed directly from C.
6944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6946 # Define system-specific variables.
6951 cygwin* | mingw* | pw32* | cegcc*)
6952 symcode='[ABCDGISTW]'
6955 if test "$host_cpu" = ia64; then
6956 symcode='[ABCDEGRST]'
6960 symcode='[BCDEGRST]'
6963 symcode='[BCDEGQRST]'
6974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6982 # If we're using GNU nm, then use its standard symbol codes.
6983 case `$NM -V 2>&1` in
6984 *GNU* | *'with BFD'*)
6985 symcode='[ABCDGIRSTW]' ;;
6988 # Transform an extracted symbol line into a proper C declaration.
6989 # Some systems (esp. on ia64) link data and code symbols differently,
6990 # so use this general approach.
6991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6993 # Transform an extracted symbol line into symbol name and symbol address
6994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6995 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'"
6997 # Handle CRLF in mingw tool chain
7001 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7005 # Try without a prefix underscore, then with it.
7006 for ac_symprfx in "" "_"; do
7008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7009 symxfrm="\\1 $ac_symprfx\\2 \\2"
7011 # Write the raw and C identifiers.
7012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7013 # Fake it for dumpbin and say T for any non-static function
7014 # and D for any global variable.
7015 # Also find C++ and __fastcall symbols from MSVC++,
7016 # which start with @ or ?.
7017 lt_cv_sys_global_symbol_pipe="$AWK '"\
7018 " {last_section=section; section=\$ 3};"\
7019 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7020 " \$ 0!~/External *\|/{next};"\
7021 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 " {if(hide[section]) next};"\
7023 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7024 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7025 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7026 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7027 " ' prfx=^$ac_symprfx"
7029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7032 # Check to see that the pipe works correctly.
7036 cat > conftest.$ac_ext <<_LT_EOF
7041 void nm_test_func(void);
7042 void nm_test_func(void){}
7046 int main(){nm_test_var='a';nm_test_func();return(0);}
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050 (eval $ac_compile) 2>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; then
7054 # Now try to grab the symbols.
7056 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7057 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && test -s "$nlist"; then
7061 # Try sorting and uniquifying the output.
7062 if sort "$nlist" | uniq > "$nlist"T; then
7063 mv -f "$nlist"T "$nlist"
7068 # Make sure that we snagged all the symbols we need.
7069 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7070 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7071 cat <<_LT_EOF > conftest.$ac_ext
7077 # Now generate the symbol file.
7078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7080 cat <<_LT_EOF >> conftest.$ac_ext
7082 /* The mapping between symbol names and symbols. */
7087 lt__PROGRAM__LTX_preloaded_symbols[] =
7089 { "@PROGRAM@", (void *) 0 },
7091 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7092 cat <<\_LT_EOF >> conftest.$ac_ext
7096 /* This works around a problem in FreeBSD linker */
7097 #ifdef FREEBSD_WORKAROUND
7098 static const void *lt_preloaded_setup() {
7099 return lt__PROGRAM__LTX_preloaded_symbols;
7107 # Now try linking the two files.
7108 mv conftest.$ac_objext conftstm.$ac_objext
7109 lt_save_LIBS="$LIBS"
7110 lt_save_CFLAGS="$CFLAGS"
7111 LIBS="conftstm.$ac_objext"
7112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7120 LIBS="$lt_save_LIBS"
7121 CFLAGS="$lt_save_CFLAGS"
7123 echo "cannot find nm_test_func in $nlist" >&5
7126 echo "cannot find nm_test_var in $nlist" >&5
7129 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7132 echo "$progname: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 rm -rf conftest* conftst*
7137 # Do not use the global_symbol_pipe unless it works.
7138 if test "$pipe_works" = yes; then
7141 lt_cv_sys_global_symbol_pipe=
7147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7148 lt_cv_sys_global_symbol_to_cdecl=
7150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7151 { echo "$as_me:$LINENO: result: failed" >&5
7152 echo "${ECHO_T}failed" >&6; }
7154 { echo "$as_me:$LINENO: result: ok" >&5
7155 echo "${ECHO_T}ok" >&6; }
7179 # Check whether --enable-libtool-lock was given.
7180 if test "${enable_libtool_lock+set}" = set; then
7181 enableval=$enable_libtool_lock;
7184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7186 # Some flags need to be propagated to the compiler or linker for good
7190 # Find out which ABI we are using.
7191 echo 'int i;' > conftest.$ac_ext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; then
7197 case `/usr/bin/file conftest.$ac_objext` in
7209 # Find out which ABI we are using.
7210 echo '#line 7210 "configure"' > conftest.$ac_ext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; then
7216 if test "$lt_cv_prog_gnu_ld" = yes; then
7217 case `/usr/bin/file conftest.$ac_objext` in
7219 LD="${LD-ld} -melf32bsmip"
7222 LD="${LD-ld} -melf32bmipn32"
7225 LD="${LD-ld} -melf64bmip"
7229 case `/usr/bin/file conftest.$ac_objext` in
7245 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7246 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7247 # Find out which ABI we are using.
7248 echo 'int i;' > conftest.$ac_ext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; then
7254 case `/usr/bin/file conftest.o` in
7257 x86_64-*kfreebsd*-gnu)
7258 LD="${LD-ld} -m elf_i386_fbsd"
7261 LD="${LD-ld} -m elf_i386"
7263 ppc64-*linux*|powerpc64-*linux*)
7264 LD="${LD-ld} -m elf32ppclinux"
7267 LD="${LD-ld} -m elf_s390"
7270 LD="${LD-ld} -m elf32_sparc"
7276 x86_64-*kfreebsd*-gnu)
7277 LD="${LD-ld} -m elf_x86_64_fbsd"
7280 LD="${LD-ld} -m elf_x86_64"
7282 ppc*-*linux*|powerpc*-*linux*)
7283 LD="${LD-ld} -m elf64ppc"
7285 s390*-*linux*|s390*-*tpf*)
7286 LD="${LD-ld} -m elf64_s390"
7289 LD="${LD-ld} -m elf64_sparc"
7299 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7300 SAVE_CFLAGS="$CFLAGS"
7301 CFLAGS="$CFLAGS -belf"
7302 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7303 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7304 if test "${lt_cv_cc_needs_belf+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (ac_try="$ac_link"
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_link") 2>conftest.er1
7337 grep -v '^ *+' conftest.er1 >conftest.err
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest$ac_exeext &&
7345 $as_test_x conftest$ac_exeext; then
7346 lt_cv_cc_needs_belf=yes
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 lt_cv_cc_needs_belf=no
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355 conftest$ac_exeext conftest.$ac_ext
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7364 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; then
7378 case `/usr/bin/file conftest.o` in
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395 need_locks="$enable_libtool_lock"
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7431 echo "${ECHO_T}$DSYMUTIL" >&6; }
7433 { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7471 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7483 whose name does not start with the host triplet. If you think this
7484 configuration is useful to you, please write to autoconf@gnu.org." >&5
7485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7486 whose name does not start with the host triplet. If you think this
7487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7488 ac_tool_warned=yes ;;
7490 DSYMUTIL=$ac_ct_DSYMUTIL
7493 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 if test -n "$NMEDIT"; then
7505 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 NMEDIT=$ac_cv_prog_NMEDIT
7525 if test -n "$NMEDIT"; then
7526 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7527 echo "${ECHO_T}$NMEDIT" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7535 if test -z "$ac_cv_prog_NMEDIT"; then
7536 ac_ct_NMEDIT=$NMEDIT
7537 # Extract the first word of "nmedit", so it can be a program name with args.
7538 set dummy nmedit; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 if test -n "$ac_ct_NMEDIT"; then
7545 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7565 if test -n "$ac_ct_NMEDIT"; then
7566 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7567 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7573 if test "x$ac_ct_NMEDIT" = x; then
7576 case $cross_compiling:$ac_tool_warned in
7578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7579 whose name does not start with the host triplet. If you think this
7580 configuration is useful to you, please write to autoconf@gnu.org." >&5
7581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7582 whose name does not start with the host triplet. If you think this
7583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7584 ac_tool_warned=yes ;;
7586 NMEDIT=$ac_ct_NMEDIT
7589 NMEDIT="$ac_cv_prog_NMEDIT"
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_prog_LIPO+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 if test -n "$LIPO"; then
7601 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 LIPO=$ac_cv_prog_LIPO
7621 if test -n "$LIPO"; then
7622 { echo "$as_me:$LINENO: result: $LIPO" >&5
7623 echo "${ECHO_T}$LIPO" >&6; }
7625 { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7631 if test -z "$ac_cv_prog_LIPO"; then
7633 # Extract the first word of "lipo", so it can be a program name with args.
7634 set dummy lipo; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 if test -n "$ac_ct_LIPO"; then
7641 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_ac_ct_LIPO="lipo"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7661 if test -n "$ac_ct_LIPO"; then
7662 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7663 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7669 if test "x$ac_ct_LIPO" = x; then
7672 case $cross_compiling:$ac_tool_warned in
7674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7675 whose name does not start with the host triplet. If you think this
7676 configuration is useful to you, please write to autoconf@gnu.org." >&5
7677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7678 whose name does not start with the host triplet. If you think this
7679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7680 ac_tool_warned=yes ;;
7685 LIPO="$ac_cv_prog_LIPO"
7688 if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool; ac_word=$2
7691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693 if test "${ac_cv_prog_OTOOL+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 if test -n "$OTOOL"; then
7697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 OTOOL=$ac_cv_prog_OTOOL
7717 if test -n "$OTOOL"; then
7718 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7719 echo "${ECHO_T}$OTOOL" >&6; }
7721 { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7727 if test -z "$ac_cv_prog_OTOOL"; then
7729 # Extract the first word of "otool", so it can be a program name with args.
7730 set dummy otool; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 if test -n "$ac_ct_OTOOL"; then
7737 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_ac_ct_OTOOL="otool"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757 if test -n "$ac_ct_OTOOL"; then
7758 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7759 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7761 { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7765 if test "x$ac_ct_OTOOL" = x; then
7768 case $cross_compiling:$ac_tool_warned in
7770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7771 whose name does not start with the host triplet. If you think this
7772 configuration is useful to you, please write to autoconf@gnu.org." >&5
7773 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7774 whose name does not start with the host triplet. If you think this
7775 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7776 ac_tool_warned=yes ;;
7781 OTOOL="$ac_cv_prog_OTOOL"
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 if test -n "$OTOOL64"; then
7793 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 OTOOL64=$ac_cv_prog_OTOOL64
7813 if test -n "$OTOOL64"; then
7814 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7815 echo "${ECHO_T}$OTOOL64" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7823 if test -z "$ac_cv_prog_OTOOL64"; then
7824 ac_ct_OTOOL64=$OTOOL64
7825 # Extract the first word of "otool64", so it can be a program name with args.
7826 set dummy otool64; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 if test -n "$ac_ct_OTOOL64"; then
7833 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_ac_ct_OTOOL64="otool64"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7853 if test -n "$ac_ct_OTOOL64"; then
7854 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7855 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7861 if test "x$ac_ct_OTOOL64" = x; then
7864 case $cross_compiling:$ac_tool_warned in
7866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7867 whose name does not start with the host triplet. If you think this
7868 configuration is useful to you, please write to autoconf@gnu.org." >&5
7869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7870 whose name does not start with the host triplet. If you think this
7871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7872 ac_tool_warned=yes ;;
7874 OTOOL64=$ac_ct_OTOOL64
7877 OTOOL64="$ac_cv_prog_OTOOL64"
7906 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7907 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7908 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 lt_cv_apple_cc_single_mod=no
7912 if test -z "${LT_MULTI_MODULE}"; then
7913 # By default we will add the -single_module flag. You can override
7914 # by either setting the environment variable LT_MULTI_MODULE
7915 # non-empty at configure time, or by adding -multi_module to the
7917 rm -rf libconftest.dylib*
7918 echo "int foo(void){return 1;}" > conftest.c
7919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7920 -dynamiclib -Wl,-single_module conftest.c" >&5
7921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7924 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7925 lt_cv_apple_cc_single_mod=yes
7927 cat conftest.err >&5
7929 rm -rf libconftest.dylib*
7933 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7934 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7935 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7936 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7937 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 lt_cv_ld_exported_symbols_list=no
7941 save_LDFLAGS=$LDFLAGS
7942 echo "_main" > conftest.sym
7943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_link") 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest$ac_exeext &&
7976 $as_test_x conftest$ac_exeext; then
7977 lt_cv_ld_exported_symbols_list=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 lt_cv_ld_exported_symbols_list=no
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986 conftest$ac_exeext conftest.$ac_ext
7987 LDFLAGS="$save_LDFLAGS"
7990 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7991 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7993 rhapsody* | darwin1.[012])
7994 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7997 darwin*) # darwin 5.x on
7998 # if running on 10.5 or later, the deployment target defaults
7999 # to the OS version, if on x86, and 10.4, the deployment
8000 # target defaults to 10.4. Don't you love it?
8001 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8002 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8012 _lt_dar_single_mod='$single_module'
8014 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8015 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8017 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8019 if test "$DSYMUTIL" != ":"; then
8020 _lt_dsymutil='~$DSYMUTIL $lib || :'
8027 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8029 if test "${ac_cv_header_stdc+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 cat >conftest.$ac_ext <<_ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_compile") 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest.$ac_objext; then
8068 ac_cv_header_stdc=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_cv_header_stdc=no
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 if test $ac_cv_header_stdc = yes; then
8079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090 $EGREP "memchr" >/dev/null 2>&1; then
8093 ac_cv_header_stdc=no
8099 if test $ac_cv_header_stdc = yes; then
8100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "free" >/dev/null 2>&1; then
8114 ac_cv_header_stdc=no
8120 if test $ac_cv_header_stdc = yes; then
8121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122 if test "$cross_compiling" = yes; then
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8156 rm -f conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_link") 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8178 echo "$as_me: program exited with status $ac_status" >&5
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_header_stdc=no
8185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8191 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8192 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8193 if test $ac_cv_header_stdc = yes; then
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STDC_HEADERS 1
8201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212 inttypes.h stdint.h unistd.h
8214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8228 #include <$ac_header>
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 eval "$as_ac_Header=yes"
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 eval "$as_ac_Header=no"
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 ac_res=`eval echo '${'$as_ac_Header'}'`
8258 { echo "$as_me:$LINENO: result: $ac_res" >&5
8259 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 for ac_header in dlfcn.h
8273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 $ac_includes_default
8287 #include <$ac_header>
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 eval "$as_ac_Header=yes"
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 eval "$as_ac_Header=no"
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 ac_res=`eval echo '${'$as_ac_Header'}'`
8317 { echo "$as_me:$LINENO: result: $ac_res" >&5
8318 echo "${ECHO_T}$ac_res" >&6; }
8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8320 cat >>confdefs.h <<_ACEOF
8321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8331 ac_cpp='$CXXCPP $CPPFLAGS'
8332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8335 if test -z "$CXX"; then
8336 if test -n "$CCC"; then
8339 if test -n "$ac_tool_prefix"; then
8340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_prog_CXX+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test -n "$CXX"; then
8350 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 if test -n "$CXX"; then
8371 { echo "$as_me:$LINENO: result: $CXX" >&5
8372 echo "${ECHO_T}$CXX" >&6; }
8374 { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8379 test -n "$CXX" && break
8382 if test -z "$CXX"; then
8384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8386 # Extract the first word of "$ac_prog", so it can be a program name with args.
8387 set dummy $ac_prog; ac_word=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 if test -n "$ac_ct_CXX"; then
8394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_ac_ct_CXX="$ac_prog"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8414 if test -n "$ac_ct_CXX"; then
8415 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8416 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8418 { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8423 test -n "$ac_ct_CXX" && break
8426 if test "x$ac_ct_CXX" = x; then
8429 case $cross_compiling:$ac_tool_warned in
8431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8432 whose name does not start with the host triplet. If you think this
8433 configuration is useful to you, please write to autoconf@gnu.org." >&5
8434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8435 whose name does not start with the host triplet. If you think this
8436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8437 ac_tool_warned=yes ;;
8445 # Provide some information about the compiler.
8446 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8447 ac_compiler=`set X $ac_compile; echo $2`
8448 { (ac_try="$ac_compiler --version >&5"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compiler --version >&5") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }
8458 { (ac_try="$ac_compiler -v >&5"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compiler -v >&5") 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }
8468 { (ac_try="$ac_compiler -V >&5"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compiler -V >&5") 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }
8479 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8480 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_compile") 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_cxx_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest.$ac_objext; then
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8532 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8533 GXX=`test $ac_compiler_gnu = yes && echo yes`
8534 ac_test_CXXFLAGS=${CXXFLAGS+set}
8535 ac_save_CXXFLAGS=$CXXFLAGS
8536 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8537 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8538 if test "${ac_cv_prog_cxx_g+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8542 ac_cxx_werror_flag=yes
8545 cat >conftest.$ac_ext <<_ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_cxx_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_cv_prog_cxx_g=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_cxx_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_cxx_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_prog_cxx_g=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8671 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8673 if test "$ac_test_CXXFLAGS" = set; then
8674 CXXFLAGS=$ac_save_CXXFLAGS
8675 elif test $ac_cv_prog_cxx_g = yes; then
8676 if test "$GXX" = yes; then
8682 if test "$GXX" = yes; then
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8695 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8696 (test "X$CXX" != "Xg++"))) ; then
8698 ac_cpp='$CXXCPP $CPPFLAGS'
8699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8702 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8703 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8704 if test -z "$CXXCPP"; then
8705 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 # Double quotes because CXXCPP needs to be expanded
8709 for CXXCPP in "$CXX -E" "/lib/cpp"
8712 for ac_cxx_preproc_warn_flag in '' yes
8714 # Use a header file that comes with gcc, so configuring glibc
8715 # with a fresh cross-compiler works.
8716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 # <limits.h> exists even on freestanding compilers.
8718 # On the NeXT, cc -E runs the code through the compiler's parser,
8719 # not just through cpp. "Syntax error" is here to catch this case.
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8727 # include <limits.h>
8729 # include <assert.h>
8733 if { (ac_try="$ac_cpp conftest.$ac_ext"
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1 >conftest.err
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } >/dev/null && {
8746 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8747 test ! -s conftest.err
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 # Broken: fails on valid input.
8758 rm -f conftest.err conftest.$ac_ext
8760 # OK, works on sane cases. Now check whether nonexistent headers
8761 # can be detected and how.
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 #include <ac_nonexistent.h>
8770 if { (ac_try="$ac_cpp conftest.$ac_ext"
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null && {
8783 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8784 test ! -s conftest.err
8786 # Broken: success on invalid input.
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 # Passes both tests.
8797 rm -f conftest.err conftest.$ac_ext
8800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8801 rm -f conftest.err conftest.$ac_ext
8802 if $ac_preproc_ok; then
8807 ac_cv_prog_CXXCPP=$CXXCPP
8810 CXXCPP=$ac_cv_prog_CXXCPP
8812 ac_cv_prog_CXXCPP=$CXXCPP
8814 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8815 echo "${ECHO_T}$CXXCPP" >&6; }
8817 for ac_cxx_preproc_warn_flag in '' yes
8819 # Use a header file that comes with gcc, so configuring glibc
8820 # with a fresh cross-compiler works.
8821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822 # <limits.h> exists even on freestanding compilers.
8823 # On the NeXT, cc -E runs the code through the compiler's parser,
8824 # not just through cpp. "Syntax error" is here to catch this case.
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 # include <limits.h>
8834 # include <assert.h>
8838 if { (ac_try="$ac_cpp conftest.$ac_ext"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } >/dev/null && {
8851 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8852 test ! -s conftest.err
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 # Broken: fails on valid input.
8863 rm -f conftest.err conftest.$ac_ext
8865 # OK, works on sane cases. Now check whether nonexistent headers
8866 # can be detected and how.
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <ac_nonexistent.h>
8875 if { (ac_try="$ac_cpp conftest.$ac_ext"
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8883 grep -v '^ *+' conftest.er1 >conftest.err
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } >/dev/null && {
8888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8889 test ! -s conftest.err
8891 # Broken: success on invalid input.
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 # Passes both tests.
8902 rm -f conftest.err conftest.$ac_ext
8905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8906 rm -f conftest.err conftest.$ac_ext
8907 if $ac_preproc_ok; then
8910 _lt_caught_CXX_error=yes
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920 _lt_caught_CXX_error=yes
8928 # Check whether --enable-shared was given.
8929 if test "${enable_shared+set}" = set; then
8930 enableval=$enable_shared; p=${PACKAGE-default}
8932 yes) enable_shared=yes ;;
8933 no) enable_shared=no ;;
8936 # Look at the argument we got. We use all the common list separators.
8937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938 for pkg in $enableval; do
8940 if test "X$pkg" = "X$p"; then
8957 # Check whether --enable-static was given.
8958 if test "${enable_static+set}" = set; then
8959 enableval=$enable_static; p=${PACKAGE-default}
8961 yes) enable_static=yes ;;
8962 no) enable_static=no ;;
8965 # Look at the argument we got. We use all the common list separators.
8966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8967 for pkg in $enableval; do
8969 if test "X$pkg" = "X$p"; then
8998 # Check whether --with-pic was given.
8999 if test "${with_pic+set}" = set; then
9000 withval=$with_pic; pic_mode="$withval"
9006 test -z "$pic_mode" && pic_mode=default
9014 # Check whether --enable-fast-install was given.
9015 if test "${enable_fast_install+set}" = set; then
9016 enableval=$enable_fast_install; p=${PACKAGE-default}
9018 yes) enable_fast_install=yes ;;
9019 no) enable_fast_install=no ;;
9021 enable_fast_install=no
9022 # Look at the argument we got. We use all the common list separators.
9023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9024 for pkg in $enableval; do
9026 if test "X$pkg" = "X$p"; then
9027 enable_fast_install=yes
9034 enable_fast_install=yes
9047 # This can be used to rebuild libtool when needed
9048 LIBTOOL_DEPS="$ltmain"
9050 # Always use our own libtool.
9051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9077 test -z "$LN_S" && LN_S="ln -s"
9092 if test -n "${ZSH_VERSION+set}" ; then
9093 setopt NO_GLOB_SUBST
9096 { echo "$as_me:$LINENO: checking for objdir" >&5
9097 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9098 if test "${lt_cv_objdir+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 rm -f .libs 2>/dev/null
9102 mkdir .libs 2>/dev/null
9103 if test -d .libs; then
9106 # MS-DOS does not allow filenames that begin with a dot.
9109 rmdir .libs 2>/dev/null
9111 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9112 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9113 objdir=$lt_cv_objdir
9119 cat >>confdefs.h <<_ACEOF
9120 #define LT_OBJDIR "$lt_cv_objdir/"
9141 # AIX sometimes has problems with the GCC collect2 program. For some
9142 # reason, if we set the COLLECT_NAMES environment variable, the problems
9143 # vanish in a puff of smoke.
9144 if test "X${COLLECT_NAMES+set}" != Xset; then
9146 export COLLECT_NAMES
9151 # Sed substitution that helps us do robust quoting. It backslashifies
9152 # metacharacters that are still active within double-quoted strings.
9153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9155 # Same as above, but do not quote variable references.
9156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9158 # Sed substitution to delay expansion of an escaped shell variable in a
9159 # double_quote_subst'ed string.
9160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9162 # Sed substitution to delay expansion of an escaped single quote.
9163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9165 # Sed substitution to avoid accidental globbing in evaled expressions
9166 no_glob_subst='s/\*/\\\*/g'
9170 can_build_shared=yes
9172 # All known linkers require a `.a' archive for static linking (except MSVC,
9173 # which needs '.lib').
9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
9179 old_CFLAGS="$CFLAGS"
9181 # Set sane defaults for various variables
9182 test -z "$CC" && CC=cc
9183 test -z "$LTCC" && LTCC=$CC
9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9185 test -z "$LD" && LD=ld
9186 test -z "$ac_objext" && ac_objext=o
9188 for cc_temp in $compiler""; do
9190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9196 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9199 # Only perform the check for file, if the check method requires it
9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9201 case $deplibs_check_method in
9203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9204 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9205 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9206 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9214 lt_save_MAGIC_CMD="$MAGIC_CMD"
9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217 for ac_dir in $ac_dummy; do
9219 test -z "$ac_dir" && ac_dir=.
9220 if test -f $ac_dir/${ac_tool_prefix}file; then
9221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9222 if test -n "$file_magic_test_file"; then
9223 case $deplibs_check_method in
9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228 $EGREP "$file_magic_regex" > /dev/null; then
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such. This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem. Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9250 MAGIC_CMD="$lt_save_MAGIC_CMD"
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9258 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9260 { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
9269 if test -n "$ac_tool_prefix"; then
9270 { echo "$as_me:$LINENO: checking for file" >&5
9271 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9272 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9280 lt_save_MAGIC_CMD="$MAGIC_CMD"
9281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9283 for ac_dir in $ac_dummy; do
9285 test -z "$ac_dir" && ac_dir=.
9286 if test -f $ac_dir/file; then
9287 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9288 if test -n "$file_magic_test_file"; then
9289 case $deplibs_check_method in
9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9294 $EGREP "$file_magic_regex" > /dev/null; then
9299 *** Warning: the command libtool uses to detect shared libraries,
9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
9301 *** The result is that libtool may fail to recognize shared libraries
9302 *** as such. This will affect the creation of libtool libraries that
9303 *** depend on shared libraries, but programs linked with such libtool
9304 *** libraries will work regardless of this problem. Nevertheless, you
9305 *** may want to report the problem to your system manager and/or to
9306 *** bug-libtool@gnu.org
9316 MAGIC_CMD="$lt_save_MAGIC_CMD"
9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322 if test -n "$MAGIC_CMD"; then
9323 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9324 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9326 { echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6; }
9340 # Use C for the default configuration in the libtool script
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9350 # Source file extension for C test sources.
9353 # Object file extension for compiled C test sources.
9357 # Code to be used in simple compile tests
9358 lt_simple_compile_test_code="int some_variable = 0;"
9360 # Code to be used in simple link tests
9361 lt_simple_link_test_code='int main(){return(0);}'
9369 # If no C compiler was specified, use CC.
9372 # If no C compiler flags were specified, use CFLAGS.
9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9375 # Allow CC to be a program name with arguments.
9378 # Save the default compiler, since it gets overwritten when the other
9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9380 compiler_DEFAULT=$CC
9382 # save warnings/boilerplate of simple test code
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9386 _lt_compiler_boilerplate=`cat conftest.err`
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_linker_boilerplate=`cat conftest.err`
9397 ## There is no encapsulation within the following macros, do not change
9398 ## the running order or otherwise move them around unless you know exactly
9399 ## what you are doing...
9400 if test -n "$compiler"; then
9402 lt_prog_compiler_no_builtin_flag=
9404 if test "$GCC" = yes; then
9405 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 lt_cv_prog_compiler_rtti_exceptions=no
9413 ac_outfile=conftest.$ac_objext
9414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415 lt_compiler_flag="-fno-rtti -fno-exceptions"
9416 # Insert the option either (1) after the last *FLAGS variable, or
9417 # (2) before a word containing "conftest.", or (3) at the end.
9418 # Note that $ac_compile itself does not contain backslashes and begins
9419 # with a dollar sign (not a hyphen), so the echo should work correctly.
9420 # The option is referenced via a variable to avoid confusing sed.
9421 lt_compile=`echo "$ac_compile" | $SED \
9422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424 -e 's:$: $lt_compiler_flag:'`
9425 (eval echo "\"\$as_me:9425: $lt_compile\"" >&5)
9426 (eval "$lt_compile" 2>conftest.err)
9428 cat conftest.err >&5
9429 echo "$as_me:9429: \$? = $ac_status" >&5
9430 if (exit $ac_status) && test -s "$ac_outfile"; then
9431 # The compiler can only warn and ignore the option if not recognized
9432 # So say no if there are warnings other than the usual output.
9433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9436 lt_cv_prog_compiler_rtti_exceptions=yes
9442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9458 lt_prog_compiler_wl=
9459 lt_prog_compiler_pic=
9460 lt_prog_compiler_static=
9462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9465 if test "$GCC" = yes; then
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_static='-static'
9471 # All AIX code is PIC.
9472 if test "$host_cpu" = ia64; then
9473 # AIX 5 now supports IA64 processor
9474 lt_prog_compiler_static='-Bstatic'
9481 # see comment about AmigaOS4 .so support
9482 lt_prog_compiler_pic='-fPIC'
9485 # FIXME: we need at least 68020 code to build shared libraries, but
9486 # adding the `-m68020' flag to GCC prevents building anything better,
9488 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9493 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9494 # PIC is the default for these OSes.
9497 mingw* | cygwin* | pw32* | os2* | cegcc*)
9498 # This hack is so that the source file can tell whether it is being
9499 # built for inclusion in a dll (and should export symbols for example).
9500 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9501 # (--disable-auto-import) libraries
9502 lt_prog_compiler_pic='-DDLL_EXPORT'
9505 darwin* | rhapsody*)
9506 # PIC is the default on this platform
9507 # Common symbols not allowed in MH_DYLIB files
9508 lt_prog_compiler_pic='-fno-common'
9512 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9513 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9514 # sets the default TLS model and affects inlining.
9520 lt_prog_compiler_pic='-fPIC'
9526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9527 # Instead, we relocate shared libraries at runtime.
9531 # Just because we use GCC doesn't mean we suddenly get shared libraries
9532 # on systems that don't support them.
9533 lt_prog_compiler_can_build_shared=no
9538 # QNX uses GNU C++, but need to define -shared option too, otherwise
9540 lt_prog_compiler_pic='-fPIC -shared'
9544 if test -d /usr/nec; then
9545 lt_prog_compiler_pic=-Kconform_pic
9550 lt_prog_compiler_pic='-fPIC'
9554 # PORTME Check for flag to pass linker flags through the system compiler.
9557 lt_prog_compiler_wl='-Wl,'
9558 if test "$host_cpu" = ia64; then
9559 # AIX 5 now supports IA64 processor
9560 lt_prog_compiler_static='-Bstatic'
9562 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9566 mingw* | cygwin* | pw32* | os2* | cegcc*)
9567 # This hack is so that the source file can tell whether it is being
9568 # built for inclusion in a dll (and should export symbols for example).
9569 lt_prog_compiler_pic='-DDLL_EXPORT'
9572 hpux9* | hpux10* | hpux11*)
9573 lt_prog_compiler_wl='-Wl,'
9574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9581 lt_prog_compiler_pic='+Z'
9584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9585 lt_prog_compiler_static='${wl}-a ${wl}archive'
9588 irix5* | irix6* | nonstopux*)
9589 lt_prog_compiler_wl='-Wl,'
9590 # PIC (with -KPIC) is the default.
9591 lt_prog_compiler_static='-non_shared'
9594 linux* | k*bsd*-gnu)
9595 case $cc_basename in
9596 # old Intel for x86_64 which still supported -KPIC.
9598 lt_prog_compiler_wl='-Wl,'
9599 lt_prog_compiler_pic='-KPIC'
9600 lt_prog_compiler_static='-static'
9602 # icc used to be incompatible with GCC.
9603 # ICC 10 doesn't accept -KPIC any more.
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-fPIC'
9607 lt_prog_compiler_static='-static'
9609 # Lahey Fortran 8.1.
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_pic='--shared'
9613 lt_prog_compiler_static='--static'
9615 pgcc* | pgf77* | pgf90* | pgf95*)
9616 # Portland Group compilers (*not* the Pentium gcc compiler,
9617 # which looks to be a dead project)
9618 lt_prog_compiler_wl='-Wl,'
9619 lt_prog_compiler_pic='-fpic'
9620 lt_prog_compiler_static='-Bstatic'
9623 lt_prog_compiler_wl='-Wl,'
9624 # All Alpha code is PIC.
9625 lt_prog_compiler_static='-non_shared'
9628 # IBM XL C 8.0/Fortran 10.1 on PPC
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='-qpic'
9631 lt_prog_compiler_static='-qstaticlink'
9634 case `$CC -V 2>&1 | sed 5q` in
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 lt_prog_compiler_wl='-Wl,'
9642 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9645 lt_prog_compiler_wl=''
9653 lt_prog_compiler_pic='-KPIC'
9654 lt_prog_compiler_static='-Bstatic'
9658 # QNX uses GNU C++, but need to define -shared option too, otherwise
9660 lt_prog_compiler_pic='-fPIC -shared'
9663 osf3* | osf4* | osf5*)
9664 lt_prog_compiler_wl='-Wl,'
9665 # All OSF/1 code is PIC.
9666 lt_prog_compiler_static='-non_shared'
9670 lt_prog_compiler_static='-non_shared'
9674 lt_prog_compiler_pic='-KPIC'
9675 lt_prog_compiler_static='-Bstatic'
9676 case $cc_basename in
9678 lt_prog_compiler_wl='-Qoption ld ';;
9680 lt_prog_compiler_wl='-Wl,';;
9685 lt_prog_compiler_wl='-Qoption ld '
9686 lt_prog_compiler_pic='-PIC'
9687 lt_prog_compiler_static='-Bstatic'
9690 sysv4 | sysv4.2uw2* | sysv4.3*)
9691 lt_prog_compiler_wl='-Wl,'
9692 lt_prog_compiler_pic='-KPIC'
9693 lt_prog_compiler_static='-Bstatic'
9697 if test -d /usr/nec ;then
9698 lt_prog_compiler_pic='-Kconform_pic'
9699 lt_prog_compiler_static='-Bstatic'
9703 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_pic='-KPIC'
9706 lt_prog_compiler_static='-Bstatic'
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_can_build_shared=no
9715 lt_prog_compiler_pic='-pic'
9716 lt_prog_compiler_static='-Bstatic'
9720 lt_prog_compiler_can_build_shared=no
9726 # For platforms which do not support PIC, -DPIC is meaningless:
9728 lt_prog_compiler_pic=
9731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9735 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9743 # Check to make sure the PIC flag actually works.
9745 if test -n "$lt_prog_compiler_pic"; then
9746 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9748 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 lt_cv_prog_compiler_pic_works=no
9752 ac_outfile=conftest.$ac_objext
9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9755 # Insert the option either (1) after the last *FLAGS variable, or
9756 # (2) before a word containing "conftest.", or (3) at the end.
9757 # Note that $ac_compile itself does not contain backslashes and begins
9758 # with a dollar sign (not a hyphen), so the echo should work correctly.
9759 # The option is referenced via a variable to avoid confusing sed.
9760 lt_compile=`echo "$ac_compile" | $SED \
9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763 -e 's:$: $lt_compiler_flag:'`
9764 (eval echo "\"\$as_me:9764: $lt_compile\"" >&5)
9765 (eval "$lt_compile" 2>conftest.err)
9767 cat conftest.err >&5
9768 echo "$as_me:9768: \$? = $ac_status" >&5
9769 if (exit $ac_status) && test -s "$ac_outfile"; then
9770 # The compiler can only warn and ignore the option if not recognized
9771 # So say no if there are warnings other than the usual output.
9772 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9775 lt_cv_prog_compiler_pic_works=yes
9781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9782 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9785 case $lt_prog_compiler_pic in
9787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9790 lt_prog_compiler_pic=
9791 lt_prog_compiler_can_build_shared=no
9802 # Check to make sure the static flag actually works.
9804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9807 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 lt_cv_prog_compiler_static_works=no
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815 # The linker can only warn and ignore the option if not recognized
9816 # So say no if there are warnings
9817 if test -s conftest.err; then
9818 # Append any errors to the config.log.
9819 cat conftest.err 1>&5
9820 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822 if diff conftest.exp conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler_static_works=yes
9826 lt_cv_prog_compiler_static_works=yes
9830 LDFLAGS="$save_LDFLAGS"
9833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9834 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9839 lt_prog_compiler_static=
9848 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9850 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 lt_cv_prog_compiler_c_o=no
9854 $RM -r conftest 2>/dev/null
9858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9860 lt_compiler_flag="-o out/conftest2.$ac_objext"
9861 # Insert the option either (1) after the last *FLAGS variable, or
9862 # (2) before a word containing "conftest.", or (3) at the end.
9863 # Note that $ac_compile itself does not contain backslashes and begins
9864 # with a dollar sign (not a hyphen), so the echo should work correctly.
9865 lt_compile=`echo "$ac_compile" | $SED \
9866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868 -e 's:$: $lt_compiler_flag:'`
9869 (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870 (eval "$lt_compile" 2>out/conftest.err)
9872 cat out/conftest.err >&5
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9876 # The compiler can only warn and ignore the option if not recognized
9877 # So say no if there are warnings
9878 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9881 lt_cv_prog_compiler_c_o=yes
9886 # SGI C++ compiler will create directory out/ii_files/ for
9887 # template instantiation
9888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9889 $RM out/* && rmdir out
9895 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9896 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9903 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 lt_cv_prog_compiler_c_o=no
9909 $RM -r conftest 2>/dev/null
9913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915 lt_compiler_flag="-o out/conftest2.$ac_objext"
9916 # Insert the option either (1) after the last *FLAGS variable, or
9917 # (2) before a word containing "conftest.", or (3) at the end.
9918 # Note that $ac_compile itself does not contain backslashes and begins
9919 # with a dollar sign (not a hyphen), so the echo should work correctly.
9920 lt_compile=`echo "$ac_compile" | $SED \
9921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923 -e 's:$: $lt_compiler_flag:'`
9924 (eval echo "\"\$as_me:9924: $lt_compile\"" >&5)
9925 (eval "$lt_compile" 2>out/conftest.err)
9927 cat out/conftest.err >&5
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9931 # The compiler can only warn and ignore the option if not recognized
9932 # So say no if there are warnings
9933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9936 lt_cv_prog_compiler_c_o=yes
9941 # SGI C++ compiler will create directory out/ii_files/ for
9942 # template instantiation
9943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9944 $RM out/* && rmdir out
9950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9956 hard_links="nottested"
9957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9958 # do not overwrite the value of need_locks provided by the user
9959 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9965 ln conftest.a conftest.b 2>&5 || hard_links=no
9966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967 { echo "$as_me:$LINENO: result: $hard_links" >&5
9968 echo "${ECHO_T}$hard_links" >&6; }
9969 if test "$hard_links" = no; then
9970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9983 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9984 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9987 allow_undefined_flag=
9988 always_export_symbols=no
9990 archive_expsym_cmds=
9991 compiler_needs_object=no
9992 enable_shared_with_static_runtimes=no
9993 export_dynamic_flag_spec=
9994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9995 hardcode_automatic=no
9997 hardcode_direct_absolute=no
9998 hardcode_libdir_flag_spec=
9999 hardcode_libdir_flag_spec_ld=
10000 hardcode_libdir_separator=
10001 hardcode_minus_L=no
10002 hardcode_shlibpath_var=unsupported
10004 link_all_deplibs=unknown
10006 module_expsym_cmds=
10007 old_archive_from_new_cmds=
10008 old_archive_from_expsyms_cmds=
10009 thread_safe_flag_spec=
10010 whole_archive_flag_spec=
10011 # include_expsyms should be a list of space-separated symbols to be *always*
10012 # included in the symbol list
10014 # exclude_expsyms can be an extended regexp of symbols to exclude
10015 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10016 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10017 # as well as any symbol that contains `d'.
10018 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10020 # platforms (ab)use it in PIC code, but their linkers get confused if
10021 # the symbol is explicitly referenced. Since portable code cannot
10022 # rely on this symbol name, it's probably fine to never include it in
10023 # preloaded symbol tables.
10024 # Exclude shared library initialization/finalization symbols.
10025 extract_expsyms_cmds=
10028 cygwin* | mingw* | pw32* | cegcc*)
10029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10030 # When not using gcc, we currently assume that we are using
10031 # Microsoft Visual C++.
10032 if test "$GCC" != yes; then
10037 # we just hope/assume this is gcc and not c89 (= MSVC++)
10046 if test "$with_gnu_ld" = yes; then
10047 # If archive_cmds runs LD, not CC, wlarc should be empty
10050 # Set some defaults for GNU ld with shared library support. These
10051 # are reset later if shared libraries are not supported. Putting them
10052 # here allows them to be overridden if necessary.
10053 runpath_var=LD_RUN_PATH
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 export_dynamic_flag_spec='${wl}--export-dynamic'
10056 # ancient GNU ld didn't support --whole-archive et. al.
10057 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10058 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10060 whole_archive_flag_spec=
10062 supports_anon_versioning=no
10063 case `$LD -v 2>&1` in
10064 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10065 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10066 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10067 *\ 2.11.*) ;; # other 2.11 versions
10068 *) supports_anon_versioning=yes ;;
10071 # See if GNU ld supports shared libraries.
10074 # On AIX/PPC, the GNU linker is very broken
10075 if test "$host_cpu" != ia64; then
10079 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10080 *** to be unable to reliably create shared libraries on AIX.
10081 *** Therefore, libtool is disabling shared libraries support. If you
10082 *** really care for shared libraries, you may want to modify your PATH
10083 *** so that a non-GNU linker is found, and then restart.
10092 # see comment about AmigaOS4 .so support
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 archive_expsym_cmds=''
10097 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)'
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_minus_L=yes
10105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10106 allow_undefined_flag=unsupported
10107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10108 # support --undefined. This deserves some investigation. FIXME
10109 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115 cygwin* | mingw* | pw32* | cegcc*)
10116 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10117 # as there is no search path for DLLs.
10118 hardcode_libdir_flag_spec='-L$libdir'
10119 allow_undefined_flag=unsupported
10120 always_export_symbols=no
10121 enable_shared_with_static_runtimes=yes
10122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10126 # If the export-symbols file already is a .def file (1st line
10127 # is EXPORTS), use it as is; otherwise, prepend...
10128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10129 cp $export_symbols $output_objdir/$soname.def;
10131 echo EXPORTS > $output_objdir/$soname.def;
10132 cat $export_symbols >> $output_objdir/$soname.def;
10134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10142 hardcode_shlibpath_var=no
10143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10144 export_dynamic_flag_spec='${wl}-E'
10145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10146 # Instead, shared libraries are loaded at an image base (0x10000000 by
10147 # default) and relocated if they conflict, which is a slow very memory
10148 # consuming and fragmenting process. To avoid this, we pick a random,
10149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10152 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'
10155 gnu* | linux* | tpf* | k*bsd*-gnu)
10157 if test "$host_os" = linux-dietlibc; then
10158 case $cc_basename in
10159 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10162 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10163 && test "$tmp_diet" = no
10166 tmp_sharedflag='-shared'
10167 case $cc_basename,$host_cpu in
10168 pgcc*) # Portland Group C compiler
10169 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'
10170 tmp_addflag=' $pic_flag'
10172 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10173 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'
10174 tmp_addflag=' $pic_flag -Mnomain' ;;
10175 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10176 tmp_addflag=' -i_dynamic' ;;
10177 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10178 tmp_addflag=' -i_dynamic -nofor_main' ;;
10179 ifc* | ifort*) # Intel Fortran compiler
10180 tmp_addflag=' -nofor_main' ;;
10181 lf95*) # Lahey Fortran 8.1
10182 whole_archive_flag_spec=
10183 tmp_sharedflag='--shared' ;;
10184 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10185 tmp_sharedflag='-qmkshrobj'
10188 case `$CC -V 2>&1 | sed 5q` in
10189 *Sun\ C*) # Sun C 5.9
10190 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'
10191 compiler_needs_object=yes
10192 tmp_sharedflag='-G' ;;
10193 *Sun\ F*) # Sun Fortran 8.3
10194 tmp_sharedflag='-G' ;;
10196 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198 if test "x$supports_anon_versioning" = xyes; then
10199 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10200 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10201 echo "local: *; };" >> $output_objdir/$libname.ver~
10202 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10205 case $cc_basename in
10207 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10208 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10209 hardcode_libdir_flag_spec=
10210 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10211 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10212 if test "x$supports_anon_versioning" = xyes; then
10213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215 echo "local: *; };" >> $output_objdir/$libname.ver~
10216 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10227 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10241 *** create shared libraries on Solaris systems. Therefore, libtool
10242 *** is disabling shared libraries support. We urge you to upgrade GNU
10243 *** binutils to release 2.9.1 or newer. Another option is to modify
10244 *** your PATH or compiler configuration so that the native linker is
10245 *** used, and then restart.
10248 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10257 case `$LD -v 2>&1` in
10258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10263 *** reliably create shared libraries on SCO systems. Therefore, libtool
10264 *** is disabling shared libraries support. We urge you to upgrade GNU
10265 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10266 *** your PATH or compiler configuration so that the native linker is
10267 *** used, and then restart.
10272 # For security reasons, it is highly recommended that you always
10273 # use absolute paths for naming shared libraries, and exclude the
10274 # DT_RUNPATH tag from executables and libraries. But doing so
10275 # requires that you compile everything twice, which is a pain.
10276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10288 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_direct=yes
10291 hardcode_shlibpath_var=no
10295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10304 if test "$ld_shlibs" = no; then
10306 hardcode_libdir_flag_spec=
10307 export_dynamic_flag_spec=
10308 whole_archive_flag_spec=
10311 # PORTME fill in a description of your system's linker (not GNU ld)
10314 allow_undefined_flag=unsupported
10315 always_export_symbols=yes
10316 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'
10317 # Note: this linker hardcodes the directories in LIBPATH if there
10318 # are no directories specified by -L.
10319 hardcode_minus_L=yes
10320 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10321 # Neither direct hardcoding nor static linking is supported with a
10323 hardcode_direct=unsupported
10328 if test "$host_cpu" = ia64; then
10329 # On IA64, the linker does run time linking by default, so we don't
10330 # have to do anything special.
10331 aix_use_runtimelinking=no
10332 exp_sym_flag='-Bexport'
10335 # If we're using GNU nm, then we don't want the "-C" option.
10336 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10337 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10338 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'
10340 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'
10342 aix_use_runtimelinking=no
10344 # Test if we are trying to use run time linking or normal
10345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10346 # need to do runtime linking.
10347 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10348 for ld_flag in $LDFLAGS; do
10349 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10350 aix_use_runtimelinking=yes
10357 exp_sym_flag='-bexport'
10358 no_entry_flag='-bnoentry'
10361 # When large executables or shared objects are built, AIX ld can
10362 # have problems creating the table of contents. If linking a library
10363 # or program results in "error TOC overflow" add -mminimal-toc to
10364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10368 hardcode_direct=yes
10369 hardcode_direct_absolute=yes
10370 hardcode_libdir_separator=':'
10371 link_all_deplibs=yes
10372 file_list_spec='${wl}-f,'
10374 if test "$GCC" = yes; then
10375 case $host_os in aix4.[012]|aix4.[012].*)
10376 # We only want to do this on AIX 4.2 and lower, the check
10377 # below for broken collect2 doesn't work under 4.3+
10378 collect2name=`${CC} -print-prog-name=collect2`
10379 if test -f "$collect2name" &&
10380 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10382 # We have reworked collect2
10385 # We have old collect2
10386 hardcode_direct=unsupported
10387 # It fails to find uninstalled libraries when the uninstalled
10388 # path is not listed in the libpath. Setting hardcode_minus_L
10389 # to unsupported forces relinking
10390 hardcode_minus_L=yes
10391 hardcode_libdir_flag_spec='-L$libdir'
10392 hardcode_libdir_separator=
10396 shared_flag='-shared'
10397 if test "$aix_use_runtimelinking" = yes; then
10398 shared_flag="$shared_flag "'${wl}-G'
10402 if test "$host_cpu" = ia64; then
10403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10404 # chokes on -Wl,-G. The following line is correct:
10407 if test "$aix_use_runtimelinking" = yes; then
10408 shared_flag='${wl}-G'
10410 shared_flag='${wl}-bM:SRE'
10415 export_dynamic_flag_spec='${wl}-bexpall'
10416 # It seems that -bexpall does not export symbols beginning with
10417 # underscore (_), so it is better to generate a list of symbols to export.
10418 always_export_symbols=yes
10419 if test "$aix_use_runtimelinking" = yes; then
10420 # Warning - without using the other runtime loading flags (-brtl),
10421 # -berok will link without error, but may produce a broken library.
10422 allow_undefined_flag='-berok'
10423 # Determine the default libpath from the value encoded in an
10424 # empty executable.
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_link") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext &&
10457 $as_test_x conftest$ac_exeext; then
10459 lt_aix_libpath_sed='
10460 /Import File Strings/,/^$/ {
10466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10467 # Check for a 64-bit object if we didn't find anything.
10468 if test -z "$aix_libpath"; then
10469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10483 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"
10485 if test "$host_cpu" = ia64; then
10486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10487 allow_undefined_flag="-z nodefs"
10488 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"
10490 # Determine the default libpath from the value encoded in an
10491 # empty executable.
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && {
10521 test -z "$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 } && test -s conftest$ac_exeext &&
10524 $as_test_x conftest$ac_exeext; then
10526 lt_aix_libpath_sed='
10527 /Import File Strings/,/^$/ {
10533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 # Check for a 64-bit object if we didn't find anything.
10535 if test -z "$aix_libpath"; then
10536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546 conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10550 # Warning - without using the other run time loading flags,
10551 # -berok will link without error, but may produce a broken library.
10552 no_undefined_flag=' ${wl}-bernotok'
10553 allow_undefined_flag=' ${wl}-berok'
10554 # Exported symbols can be pulled into shared objects from archives
10555 whole_archive_flag_spec='$convenience'
10556 archive_cmds_need_lc=yes
10557 # This is similar to how AIX traditionally builds its shared libraries.
10558 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'
10566 # see comment about AmigaOS4 .so support
10567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10568 archive_expsym_cmds=''
10571 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)'
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_minus_L=yes
10579 export_dynamic_flag_spec=-rdynamic
10582 cygwin* | mingw* | pw32* | cegcc*)
10583 # When not using gcc, we currently assume that we are using
10584 # Microsoft Visual C++.
10585 # hardcode_libdir_flag_spec is actually meaningless, as there is
10586 # no search path for DLLs.
10587 hardcode_libdir_flag_spec=' '
10588 allow_undefined_flag=unsupported
10589 # Tell ltmain to make .lib files, not .a files.
10591 # Tell ltmain to make .dll files, not .so files.
10593 # FIXME: Setting linknames here is a bad hack.
10594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10595 # The linker will automatically build a .lib file if we build a DLL.
10596 old_archive_from_new_cmds='true'
10597 # FIXME: Should let the user specify the lib program.
10598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10599 fix_srcfile_path='`cygpath -w "$srcfile"`'
10600 enable_shared_with_static_runtimes=yes
10603 darwin* | rhapsody*)
10606 archive_cmds_need_lc=no
10608 hardcode_automatic=yes
10609 hardcode_shlibpath_var=unsupported
10610 whole_archive_flag_spec=''
10611 link_all_deplibs=yes
10612 allow_undefined_flag="$_lt_dar_allow_undefined"
10613 case $cc_basename in
10614 ifort*) _lt_dar_can_shared=yes ;;
10615 *) _lt_dar_can_shared=$GCC ;;
10617 if test "$_lt_dar_can_shared" = "yes"; then
10618 output_verbose_link_cmd=echo
10619 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10620 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10621 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}"
10622 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}"
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_libdir_flag_spec='-L$libdir'
10633 hardcode_shlibpath_var=no
10640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10641 # support. Future versions do this automatically, but an explicit c++rt0.o
10642 # does not break anything, and helps significantly (at the cost of a little
10645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10646 hardcode_libdir_flag_spec='-R$libdir'
10647 hardcode_direct=yes
10648 hardcode_shlibpath_var=no
10651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_direct=yes
10655 hardcode_minus_L=yes
10656 hardcode_shlibpath_var=no
10659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10660 freebsd* | dragonfly*)
10661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10662 hardcode_libdir_flag_spec='-R$libdir'
10663 hardcode_direct=yes
10664 hardcode_shlibpath_var=no
10668 if test "$GCC" = yes; then
10669 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'
10671 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'
10673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10674 hardcode_libdir_separator=:
10675 hardcode_direct=yes
10677 # hardcode_minus_L: Not really in the search PATH,
10678 # but as the default location of the library.
10679 hardcode_minus_L=yes
10680 export_dynamic_flag_spec='${wl}-E'
10684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10689 if test "$with_gnu_ld" = no; then
10690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10691 hardcode_libdir_flag_spec_ld='+b $libdir'
10692 hardcode_libdir_separator=:
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 export_dynamic_flag_spec='${wl}-E'
10696 # hardcode_minus_L: Not really in the search PATH,
10697 # but as the default location of the library.
10698 hardcode_minus_L=yes
10703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728 if test "$with_gnu_ld" = no; then
10729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10730 hardcode_libdir_separator=:
10735 hardcode_shlibpath_var=no
10738 hardcode_direct=yes
10739 hardcode_direct_absolute=yes
10740 export_dynamic_flag_spec='${wl}-E'
10742 # hardcode_minus_L: Not really in the search PATH,
10743 # but as the default location of the library.
10744 hardcode_minus_L=yes
10750 irix5* | irix6* | nonstopux*)
10751 if test "$GCC" = yes; then
10752 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'
10753 # Try to use the -exported_symbol ld option, if it does not
10754 # work, assume that -exports_file does not work either and
10755 # implicitly export all symbols.
10756 save_LDFLAGS="$LDFLAGS"
10757 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10758 cat >conftest.$ac_ext <<_ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext &&
10778 $as_test_x conftest$ac_exeext; then
10779 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'
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789 conftest$ac_exeext conftest.$ac_ext
10790 LDFLAGS="$save_LDFLAGS"
10792 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'
10793 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'
10795 archive_cmds_need_lc='no'
10796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797 hardcode_libdir_separator=:
10799 link_all_deplibs=yes
10803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10806 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10808 hardcode_libdir_flag_spec='-R$libdir'
10809 hardcode_direct=yes
10810 hardcode_shlibpath_var=no
10814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815 hardcode_direct=yes
10816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817 hardcode_libdir_separator=:
10818 hardcode_shlibpath_var=no
10825 if test -f /usr/libexec/ld.so; then
10826 hardcode_direct=yes
10827 hardcode_shlibpath_var=no
10828 hardcode_direct_absolute=yes
10829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10833 export_dynamic_flag_spec='${wl}-E'
10836 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_libdir_flag_spec='-R$libdir'
10841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10852 hardcode_libdir_flag_spec='-L$libdir'
10853 hardcode_minus_L=yes
10854 allow_undefined_flag=unsupported
10855 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'
10856 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10860 if test "$GCC" = yes; then
10861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10862 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'
10864 allow_undefined_flag=' -expect_unresolved \*'
10865 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'
10867 archive_cmds_need_lc='no'
10868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10869 hardcode_libdir_separator=:
10872 osf4* | osf5*) # as osf3* with the addition of -msym flag
10873 if test "$GCC" = yes; then
10874 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10875 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'
10876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10878 allow_undefined_flag=' -expect_unresolved \*'
10879 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'
10880 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~
10881 $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'
10883 # Both c and cxx compiler support -rpath directly
10884 hardcode_libdir_flag_spec='-rpath $libdir'
10886 archive_cmds_need_lc='no'
10887 hardcode_libdir_separator=:
10891 no_undefined_flag=' -z defs'
10892 if test "$GCC" = yes; then
10894 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10896 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10898 case `$CC -V 2>&1` in
10901 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10903 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10907 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913 hardcode_libdir_flag_spec='-R$libdir'
10914 hardcode_shlibpath_var=no
10916 solaris2.[0-5] | solaris2.[0-5].*) ;;
10918 # The compiler driver will combine and reorder linker options,
10919 # but understands `-z linker_flag'. GCC discards it without `$wl',
10920 # but is careful enough not to reorder.
10921 # Supported since Solaris 2.6 (maybe 2.5.1?)
10922 if test "$GCC" = yes; then
10923 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10925 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10929 link_all_deplibs=yes
10933 if test "x$host_vendor" = xsequent; then
10934 # Use $CC to link under sequent, because it throws in some extra .o
10935 # files that make .init and .fini sections work.
10936 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10938 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10940 hardcode_libdir_flag_spec='-L$libdir'
10941 hardcode_direct=yes
10942 hardcode_minus_L=yes
10943 hardcode_shlibpath_var=no
10947 case $host_vendor in
10949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_direct=yes # is this really true???
10953 ## LD is ld it makes a PLAMLIB
10954 ## CC just makes a GrossModule.
10955 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10956 reload_cmds='$CC -r -o $output$reload_objs'
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10964 runpath_var='LD_RUN_PATH'
10965 hardcode_shlibpath_var=no
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_shlibpath_var=no
10971 export_dynamic_flag_spec='-Bexport'
10975 if test -d /usr/nec; then
10976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977 hardcode_shlibpath_var=no
10978 runpath_var=LD_RUN_PATH
10979 hardcode_runpath_var=yes
10984 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10985 no_undefined_flag='${wl}-z,text'
10986 archive_cmds_need_lc=no
10987 hardcode_shlibpath_var=no
10988 runpath_var='LD_RUN_PATH'
10990 if test "$GCC" = yes; then
10991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 sysv5* | sco3.2v5* | sco5v6*)
11000 # Note: We can NOT use -z defs as we might desire, because we do not
11001 # link with -lc, and that would cause any symbols used from libc to
11002 # always be unresolved, which means just about no library would
11003 # ever link correctly. If we're not using GNU ld we use -z text
11004 # though, which does catch some bad symbols but isn't as heavy-handed
11006 no_undefined_flag='${wl}-z,text'
11007 allow_undefined_flag='${wl}-z,nodefs'
11008 archive_cmds_need_lc=no
11009 hardcode_shlibpath_var=no
11010 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11011 hardcode_libdir_separator=':'
11012 link_all_deplibs=yes
11013 export_dynamic_flag_spec='${wl}-Bexport'
11014 runpath_var='LD_RUN_PATH'
11016 if test "$GCC" = yes; then
11017 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027 hardcode_libdir_flag_spec='-L$libdir'
11028 hardcode_shlibpath_var=no
11036 if test x$host_vendor = xsni; then
11038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11039 export_dynamic_flag_spec='${wl}-Blargedynsym'
11045 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11046 echo "${ECHO_T}$ld_shlibs" >&6; }
11047 test "$ld_shlibs" = no && can_build_shared=no
11049 with_gnu_ld=$with_gnu_ld
11066 # Do we need to explicitly link libc?
11068 case "x$archive_cmds_need_lc" in
11070 # Assume -lc should be added
11071 archive_cmds_need_lc=yes
11073 if test "$enable_shared" = yes && test "$GCC" = yes; then
11074 case $archive_cmds in
11076 # FIXME: we may have to deal with multi-command sequences.
11079 # Test whether the compiler implicitly links with -lc since on some
11080 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11081 # to ld, don't add -lc before -lgcc.
11082 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088 (eval $ac_compile) 2>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } 2>conftest.err; then
11094 libobjs=conftest.$ac_objext
11096 wl=$lt_prog_compiler_wl
11097 pic_flag=$lt_prog_compiler_pic
11103 lt_save_allow_undefined_flag=$allow_undefined_flag
11104 allow_undefined_flag=
11105 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }
11111 archive_cmds_need_lc=no
11113 archive_cmds_need_lc=yes
11115 allow_undefined_flag=$lt_save_allow_undefined_flag
11117 cat conftest.err 1>&5
11120 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11121 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11284 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11285 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11287 if test "$GCC" = yes; then
11289 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11290 *) lt_awk_arg="/^libraries:/" ;;
11292 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11293 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11294 # if the path contains ";" then we assume it to be the separator
11295 # otherwise default to the standard path separator (i.e. ":") - it is
11296 # assumed that no part of a normal pathname contains ";" but that should
11297 # okay in the real world where ";" in dirpaths is itself problematic.
11298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11302 # Ok, now we have the path, separated by spaces, we can step through it
11303 # and add multilib dir if necessary.
11304 lt_tmp_lt_search_path_spec=
11305 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11306 for lt_sys_path in $lt_search_path_spec; do
11307 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11310 test -d "$lt_sys_path" && \
11311 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11314 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11315 BEGIN {RS=" "; FS="/|\n";} {
11318 for (lt_i = NF; lt_i > 0; lt_i--) {
11319 if ($lt_i != "" && $lt_i != ".") {
11320 if ($lt_i == "..") {
11323 if (lt_count == 0) {
11324 lt_foo="/" $lt_i lt_foo;
11331 if (lt_foo != "") { lt_freq[lt_foo]++; }
11332 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11334 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11338 library_names_spec=
11339 libname_spec='lib$name'
11343 postuninstall_cmds=
11347 shlibpath_overrides_runpath=unknown
11349 dynamic_linker="$host_os ld.so"
11350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11351 need_lib_prefix=unknown
11352 hardcode_into_libs=no
11354 # when you set need_version to no, make sure it does not cause -set_version
11355 # flags to be left without arguments
11356 need_version=unknown
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11362 shlibpath_var=LIBPATH
11364 # AIX 3 has no versioning support, so we append a major version to the name.
11365 soname_spec='${libname}${release}${shared_ext}$major'
11372 hardcode_into_libs=yes
11373 if test "$host_cpu" = ia64; then
11374 # AIX 5 supports IA64
11375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11376 shlibpath_var=LD_LIBRARY_PATH
11378 # With GCC up to 2.95.x, collect2 would create an import file
11379 # for dependence libraries. The import file would start with
11380 # the line `#! .'. This would cause the generated library to
11381 # depend on `.', always an invalid library. This was fixed in
11382 # development snapshots of GCC prior to 3.0.
11384 aix4 | aix4.[01] | aix4.[01].*)
11385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11387 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11390 can_build_shared=no
11394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11395 # soname into executable. Probably we can add versioning support to
11396 # collect2, so additional links can be useful in future.
11397 if test "$aix_use_runtimelinking" = yes; then
11398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11399 # instead of lib<name>.a to let people know that these are not
11400 # typical AIX shared libraries.
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 # We preserve .a as extension for shared libraries through AIX4.2
11404 # and later when we are not doing run time linking.
11405 library_names_spec='${libname}${release}.a $libname.a'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LIBPATH
11415 # Since July 2007 AmigaOS4 officially supports .so libraries.
11416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 library_names_spec='$libname.ixlibrary $libname.a'
11421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11422 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'
11428 library_names_spec='${libname}${shared_ext}'
11429 dynamic_linker="$host_os ld.so"
11430 shlibpath_var=LIBRARY_PATH
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11442 # the default ld.so.conf also contains /usr/contrib/lib and
11443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11444 # libtool to hard-code these into programs
11447 cygwin* | mingw* | pw32* | cegcc*)
11448 version_type=windows
11453 case $GCC,$host_os in
11454 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11455 library_names_spec='$libname.dll.a'
11456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457 postinstall_cmds='base_file=`basename \${file}`~
11458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11459 dldir=$destdir/`dirname \$dlpath`~
11460 test -d \$dldir || mkdir -p \$dldir~
11461 $install_prog $dir/$dlname \$dldir/$dlname~
11462 chmod a+x \$dldir/$dlname~
11463 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11464 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11467 dlpath=$dir/\$dldll~
11469 shlibpath_overrides_runpath=yes
11473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11475 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11478 # MinGW DLLs use traditional 'lib' prefix
11479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11480 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11481 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11482 # It is most probably a Windows format PATH printed by
11483 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11484 # path with ; separators, and with drive letters. We can handle the
11485 # drive letters (cygwin fileutils understands them), so leave them,
11486 # especially as we might pass files found there to a mingw objdump,
11487 # which wouldn't understand a cygwinified path. Ahh.
11488 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11494 # pw32 DLLs use 'pw' prefix rather than 'lib'
11495 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11504 dynamic_linker='Win32 ld.exe'
11505 # FIXME: first we should search . and the directory the executable is in
11509 darwin* | rhapsody*)
11510 dynamic_linker="$host_os dyld"
11511 version_type=darwin
11514 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515 soname_spec='${libname}${release}${major}$shared_ext'
11516 shlibpath_overrides_runpath=yes
11517 shlibpath_var=DYLD_LIBRARY_PATH
11518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11537 freebsd* | dragonfly*)
11538 # DragonFly does not have aout. When/if they implement a new
11539 # versioning mechanism, adjust this.
11540 if test -x /usr/bin/objformat; then
11541 objformat=`/usr/bin/objformat`
11544 freebsd[123]*) objformat=aout ;;
11545 *) objformat=elf ;;
11548 version_type=freebsd-$objformat
11549 case $version_type in
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11560 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11565 freebsd3.[01]* | freebsdelf3.[01]*)
11566 shlibpath_overrides_runpath=yes
11567 hardcode_into_libs=yes
11569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11571 shlibpath_overrides_runpath=no
11572 hardcode_into_libs=yes
11574 *) # from 4.6 on, and DragonFly
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 hardcode_into_libs=yes
11591 hpux9* | hpux10* | hpux11*)
11592 # Give a soname corresponding to the major version so that dld.sl refuses to
11593 # link against other versions.
11600 hardcode_into_libs=yes
11601 dynamic_linker="$host_os dld.so"
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 if test "X$HPUX_IA64_MODE" = X32; then
11607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615 hardcode_into_libs=yes
11616 dynamic_linker="$host_os dld.sl"
11617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 dynamic_linker="$host_os dld.sl"
11627 shlibpath_var=SHLIB_PATH
11628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11634 postinstall_cmds='chmod 555 $lib'
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11649 irix5* | irix6* | nonstopux*)
11651 nonstopux*) version_type=nonstopux ;;
11653 if test "$lt_cv_prog_gnu_ld" = yes; then
11661 soname_spec='${libname}${release}${shared_ext}$major'
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11683 hardcode_into_libs=yes
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11691 # This must be Linux ELF.
11692 linux* | k*bsd*-gnu)
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=no
11701 # Some binutils ld are patched to set DT_RUNPATH
11702 save_LDFLAGS=$LDFLAGS
11703 save_libdir=$libdir
11704 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11705 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && {
11735 test -z "$ac_c_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest$ac_exeext &&
11738 $as_test_x conftest$ac_exeext; then
11739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11740 shlibpath_overrides_runpath=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LDFLAGS=$save_LDFLAGS
11753 libdir=$save_libdir
11755 # This implies no fast_install, which is unacceptable.
11756 # Some rework will be needed to allow for fast_install
11757 # before this can be enabled.
11758 hardcode_into_libs=yes
11760 # Append ld.so.conf contents to the search path
11761 if test -f /etc/ld.so.conf; then
11762 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' ' '`
11763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11766 # We used to test for /lib/ld.so.1 and disable shared libraries on
11767 # powerpc, because MkLinux only supported shared libraries with the
11768 # GNU dynamic linker. Since this was broken with cross compilers,
11769 # most powerpc-linux boxes support dynamic linking these days and
11770 # people can always --disable-shared, the test was removed, and we
11771 # assume the GNU/Linux dynamic linker is in use.
11772 dynamic_linker='GNU/Linux ld.so'
11779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11782 dynamic_linker='NetBSD (a.out) ld.so'
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11785 soname_spec='${libname}${release}${shared_ext}$major'
11786 dynamic_linker='NetBSD ld.elf_so'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=yes
11790 hardcode_into_libs=yes
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=yes
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 soname_spec='${libname}${release}${shared_ext}$major'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=no
11808 hardcode_into_libs=yes
11809 dynamic_linker='ldqnx.so'
11814 sys_lib_dlsearch_path_spec="/usr/lib"
11816 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11818 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11819 *) need_version=no ;;
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11826 openbsd2.[89] | openbsd2.[89].*)
11827 shlibpath_overrides_runpath=no
11830 shlibpath_overrides_runpath=yes
11834 shlibpath_overrides_runpath=yes
11839 libname_spec='$name'
11842 library_names_spec='$libname${shared_ext} $libname.a'
11843 dynamic_linker='OS/2 ld.exe'
11844 shlibpath_var=LIBPATH
11847 osf3* | osf4* | osf5*)
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11855 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 soname_spec='${libname}${release}${shared_ext}$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 shlibpath_overrides_runpath=yes
11870 hardcode_into_libs=yes
11871 # ldd complains unless libraries are executable
11872 postinstall_cmds='chmod +x $lib'
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 if test "$with_gnu_ld" = yes; then
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 case $host_vendor in
11894 shlibpath_overrides_runpath=no
11896 runpath_var=LD_RUN_PATH
11904 shlibpath_overrides_runpath=no
11905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11911 if test -d /usr/nec ;then
11913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11914 soname_spec='$libname${shared_ext}.$major'
11915 shlibpath_var=LD_LIBRARY_PATH
11919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11920 version_type=freebsd-elf
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes
11927 hardcode_into_libs=yes
11928 if test "$with_gnu_ld" = yes; then
11929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11938 sys_lib_dlsearch_path_spec='/usr/lib'
11942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=no
11949 hardcode_into_libs=yes
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec='${libname}${release}${shared_ext}$major'
11956 shlibpath_var=LD_LIBRARY_PATH
11963 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11964 echo "${ECHO_T}$dynamic_linker" >&6; }
11965 test "$dynamic_linker" = no && can_build_shared=no
11967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11968 if test "$GCC" = yes; then
11969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11972 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11973 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11975 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11976 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12065 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12068 if test -n "$hardcode_libdir_flag_spec" ||
12069 test -n "$runpath_var" ||
12070 test "X$hardcode_automatic" = "Xyes" ; then
12072 # We can hardcode non-existent directories.
12073 if test "$hardcode_direct" != no &&
12074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12075 # have to relink, otherwise we might link with an installed library
12076 # when we should be linking with a yet-to-be-installed one
12077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12078 test "$hardcode_minus_L" != no; then
12079 # Linking always hardcodes the temporary library directory.
12080 hardcode_action=relink
12082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12083 hardcode_action=immediate
12086 # We cannot hardcode anything, or else we can only hardcode existing
12088 hardcode_action=unsupported
12090 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12091 echo "${ECHO_T}$hardcode_action" >&6; }
12093 if test "$hardcode_action" = relink ||
12094 test "$inherit_rpath" = yes; then
12095 # Fast installation is not supported
12096 enable_fast_install=no
12097 elif test "$shlibpath_overrides_runpath" = yes ||
12098 test "$enable_shared" = no; then
12099 # Fast installation is not necessary
12100 enable_fast_install=needless
12108 if test "x$enable_dlopen" != xyes; then
12109 enable_dlopen=unknown
12110 enable_dlopen_self=unknown
12111 enable_dlopen_self_static=unknown
12118 lt_cv_dlopen="load_add_on"
12120 lt_cv_dlopen_self=yes
12123 mingw* | pw32* | cegcc*)
12124 lt_cv_dlopen="LoadLibrary"
12129 lt_cv_dlopen="dlopen"
12134 # if libdl is installed we need to link against it
12135 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 ac_check_lib_save_LIBS=$LIBS
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
12182 ac_cv_lib_dl_dlopen=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_lib_dl_dlopen=no
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12196 if test $ac_cv_lib_dl_dlopen = yes; then
12197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12200 lt_cv_dlopen="dyld"
12202 lt_cv_dlopen_self=yes
12209 { echo "$as_me:$LINENO: checking for shl_load" >&5
12210 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12211 if test "${ac_cv_func_shl_load+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12222 #define shl_load innocuous_shl_load
12224 /* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char shl_load (); below.
12226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 <limits.h> exists even on freestanding compilers. */
12230 # include <limits.h>
12232 # include <assert.h>
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined __stub_shl_load || defined __stub___shl_load
12254 return shl_load ();
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest$ac_exeext &&
12276 $as_test_x conftest$ac_exeext; then
12277 ac_cv_func_shl_load=yes
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_func_shl_load=no
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12288 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12289 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12290 if test $ac_cv_func_shl_load = yes; then
12291 lt_cv_dlopen="shl_load"
12293 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12294 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12295 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_check_lib_save_LIBS=$LIBS
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12317 return shl_load ();
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_link") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest$ac_exeext &&
12339 $as_test_x conftest$ac_exeext; then
12340 ac_cv_lib_dld_shl_load=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_lib_dld_shl_load=no
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12354 if test $ac_cv_lib_dld_shl_load = yes; then
12355 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12357 { echo "$as_me:$LINENO: checking for dlopen" >&5
12358 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12359 if test "${ac_cv_func_dlopen+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12370 #define dlopen innocuous_dlopen
12372 /* System header to define __stub macros and hopefully few prototypes,
12373 which can conflict with char dlopen (); below.
12374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375 <limits.h> exists even on freestanding compilers. */
12378 # include <limits.h>
12380 # include <assert.h>
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12392 /* The GNU C library defines this for functions which it implements
12393 to always fail with ENOSYS. Some functions are actually named
12394 something starting with __ and the normal name is an alias. */
12395 #if defined __stub_dlopen || defined __stub___dlopen
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_link") 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } && {
12421 test -z "$ac_c_werror_flag" ||
12422 test ! -s conftest.err
12423 } && test -s conftest$ac_exeext &&
12424 $as_test_x conftest$ac_exeext; then
12425 ac_cv_func_dlopen=yes
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_cv_func_dlopen=no
12433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12434 conftest$ac_exeext conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12437 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12438 if test $ac_cv_func_dlopen = yes; then
12439 lt_cv_dlopen="dlopen"
12441 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 ac_check_lib_save_LIBS=$LIBS
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (ac_try="$ac_link"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_link") 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest$ac_exeext &&
12487 $as_test_x conftest$ac_exeext; then
12488 ac_cv_lib_dl_dlopen=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_cv_lib_dl_dlopen=no
12496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12502 if test $ac_cv_lib_dl_dlopen = yes; then
12503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12505 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lsvld $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext &&
12551 $as_test_x conftest$ac_exeext; then
12552 ac_cv_lib_svld_dlopen=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_lib_svld_dlopen=no
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12565 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12566 if test $ac_cv_lib_svld_dlopen = yes; then
12567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12569 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12570 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12571 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 ac_check_lib_save_LIBS=$LIBS
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12593 return dld_link ();
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
12616 ac_cv_lib_dld_dld_link=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_cv_lib_dld_dld_link=no
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12628 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12629 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12630 if test $ac_cv_lib_dld_dld_link = yes; then
12631 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12652 if test "x$lt_cv_dlopen" != xno; then
12658 case $lt_cv_dlopen in
12660 save_CPPFLAGS="$CPPFLAGS"
12661 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12663 save_LDFLAGS="$LDFLAGS"
12664 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12667 LIBS="$lt_cv_dlopen_libs $LIBS"
12669 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12670 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12671 if test "${lt_cv_dlopen_self+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 if test "$cross_compiling" = yes; then :
12675 lt_cv_dlopen_self=cross
12677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12678 lt_status=$lt_dlunknown
12679 cat > conftest.$ac_ext <<_LT_EOF
12680 #line 12680 "configure"
12681 #include "confdefs.h"
12690 # define LT_DLGLOBAL RTLD_GLOBAL
12693 # define LT_DLGLOBAL DL_GLOBAL
12695 # define LT_DLGLOBAL 0
12699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12700 find out it does not work in some platform. */
12701 #ifndef LT_DLLAZY_OR_NOW
12703 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12706 # define LT_DLLAZY_OR_NOW DL_LAZY
12709 # define LT_DLLAZY_OR_NOW RTLD_NOW
12712 # define LT_DLLAZY_OR_NOW DL_NOW
12714 # define LT_DLLAZY_OR_NOW 0
12721 void fnord() { int i=42;}
12724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12725 int status = $lt_dlunknown;
12729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12730 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12731 /* dlclose (self); */
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12744 (./conftest; exit; ) >&5 2>/dev/null
12746 case x$lt_status in
12747 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12748 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12749 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12752 # compilation failed
12753 lt_cv_dlopen_self=no
12760 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12761 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12763 if test "x$lt_cv_dlopen_self" = xyes; then
12764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12765 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12766 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12767 if test "${lt_cv_dlopen_self_static+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 if test "$cross_compiling" = yes; then :
12771 lt_cv_dlopen_self_static=cross
12773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12774 lt_status=$lt_dlunknown
12775 cat > conftest.$ac_ext <<_LT_EOF
12776 #line 12776 "configure"
12777 #include "confdefs.h"
12786 # define LT_DLGLOBAL RTLD_GLOBAL
12789 # define LT_DLGLOBAL DL_GLOBAL
12791 # define LT_DLGLOBAL 0
12795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12796 find out it does not work in some platform. */
12797 #ifndef LT_DLLAZY_OR_NOW
12799 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12802 # define LT_DLLAZY_OR_NOW DL_LAZY
12805 # define LT_DLLAZY_OR_NOW RTLD_NOW
12808 # define LT_DLLAZY_OR_NOW DL_NOW
12810 # define LT_DLLAZY_OR_NOW 0
12817 void fnord() { int i=42;}
12820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12821 int status = $lt_dlunknown;
12825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12826 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12827 /* dlclose (self); */
12835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12840 (./conftest; exit; ) >&5 2>/dev/null
12842 case x$lt_status in
12843 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12844 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12845 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12848 # compilation failed
12849 lt_cv_dlopen_self_static=no
12856 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12857 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12860 CPPFLAGS="$save_CPPFLAGS"
12861 LDFLAGS="$save_LDFLAGS"
12866 case $lt_cv_dlopen_self in
12867 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12868 *) enable_dlopen_self=unknown ;;
12871 case $lt_cv_dlopen_self_static in
12872 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12873 *) enable_dlopen_self_static=unknown ;;
12895 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12896 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12897 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12898 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12899 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12900 { echo "$as_me:$LINENO: result: yes" >&5
12901 echo "${ECHO_T}yes" >&6; }
12903 # FIXME - insert some real tests, host_os isn't really good enough
12906 if test -n "$STRIP" ; then
12907 striplib="$STRIP -x"
12908 old_striplib="$STRIP -S"
12909 { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12917 { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12934 # Report which library types will actually be built
12935 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12936 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12937 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12938 echo "${ECHO_T}$can_build_shared" >&6; }
12940 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12941 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12942 test "$can_build_shared" = "no" && enable_shared=no
12944 # On AIX, shared libraries and static libraries use the same namespace, and
12945 # are all built from PIC.
12948 test "$enable_shared" = yes && enable_static=no
12949 if test -n "$RANLIB"; then
12950 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12951 postinstall_cmds='$RANLIB $lib'
12956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12957 test "$enable_shared" = yes && enable_static=no
12961 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12962 echo "${ECHO_T}$enable_shared" >&6; }
12964 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12966 # Make sure either enable_shared or enable_static is yes.
12967 test "$enable_shared" = yes || enable_static=yes
12968 { echo "$as_me:$LINENO: result: $enable_static" >&5
12969 echo "${ECHO_T}$enable_static" >&6; }
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12985 ac_cpp='$CXXCPP $CPPFLAGS'
12986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12990 archive_cmds_need_lc_CXX=no
12991 allow_undefined_flag_CXX=
12992 always_export_symbols_CXX=no
12993 archive_expsym_cmds_CXX=
12994 compiler_needs_object_CXX=no
12995 export_dynamic_flag_spec_CXX=
12996 hardcode_direct_CXX=no
12997 hardcode_direct_absolute_CXX=no
12998 hardcode_libdir_flag_spec_CXX=
12999 hardcode_libdir_flag_spec_ld_CXX=
13000 hardcode_libdir_separator_CXX=
13001 hardcode_minus_L_CXX=no
13002 hardcode_shlibpath_var_CXX=unsupported
13003 hardcode_automatic_CXX=no
13004 inherit_rpath_CXX=no
13006 module_expsym_cmds_CXX=
13007 link_all_deplibs_CXX=unknown
13008 old_archive_cmds_CXX=$old_archive_cmds
13009 no_undefined_flag_CXX=
13010 whole_archive_flag_spec_CXX=
13011 enable_shared_with_static_runtimes_CXX=no
13013 # Source file extension for C++ test sources.
13016 # Object file extension for compiled C++ test sources.
13020 # No sense in running all these tests if we already determined that
13021 # the CXX compiler isn't working. Some variables (like enable_shared)
13022 # are currently assumed to apply to all compilers on this platform,
13023 # and will be corrupted by setting them based on a non-working compiler.
13024 if test "$_lt_caught_CXX_error" != yes; then
13025 # Code to be used in simple compile tests
13026 lt_simple_compile_test_code="int some_variable = 0;"
13028 # Code to be used in simple link tests
13029 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13031 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13038 # If no C compiler was specified, use CC.
13041 # If no C compiler flags were specified, use CFLAGS.
13042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13044 # Allow CC to be a program name with arguments.
13048 # save warnings/boilerplate of simple test code
13049 ac_outfile=conftest.$ac_objext
13050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13052 _lt_compiler_boilerplate=`cat conftest.err`
13055 ac_outfile=conftest.$ac_objext
13056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058 _lt_linker_boilerplate=`cat conftest.err`
13062 # Allow CC to be a program name with arguments.
13067 lt_save_with_gnu_ld=$with_gnu_ld
13068 lt_save_path_LD=$lt_cv_path_LD
13069 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13070 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13072 $as_unset lt_cv_prog_gnu_ld
13074 if test -n "${lt_cv_path_LDCXX+set}"; then
13075 lt_cv_path_LD=$lt_cv_path_LDCXX
13077 $as_unset lt_cv_path_LD
13079 test -z "${LDCXX+set}" || LD=$LDCXX
13083 for cc_temp in $compiler""; do
13085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13091 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13094 if test -n "$compiler"; then
13095 # We don't want -fno-exception when compiling C++ code, so set the
13096 # no_builtin_flag separately
13097 if test "$GXX" = yes; then
13098 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13100 lt_prog_compiler_no_builtin_flag_CXX=
13103 if test "$GXX" = yes; then
13104 # Set up default GNU C++ configuration
13108 # Check whether --with-gnu-ld was given.
13109 if test "${with_gnu_ld+set}" = set; then
13110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13116 if test "$GCC" = yes; then
13117 # Check if gcc -print-prog-name=ld gives a path.
13118 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13122 # gcc leaves a trailing carriage return which upsets mingw
13123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13128 # Accept absolute paths.
13130 re_direlt='/[^/][^/]*/\.\./'
13131 # Canonicalize the pathname of ld
13132 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13133 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13134 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13136 test -z "$LD" && LD="$ac_prog"
13139 # If it fails, then pretend we aren't using GCC.
13143 # If it is relative, then search for the first ld in PATH.
13144 with_gnu_ld=unknown
13147 elif test "$with_gnu_ld" = yes; then
13148 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13151 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13154 if test "${lt_cv_path_LD+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 if test -z "$LD"; then
13158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13159 for ac_dir in $PATH; do
13161 test -z "$ac_dir" && ac_dir=.
13162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13163 lt_cv_path_LD="$ac_dir/$ac_prog"
13164 # Check to see if the program is GNU ld. I'd rather use --version,
13165 # but apparently some variants of GNU ld only accept -v.
13166 # Break only if it was the GNU/non-GNU ld that we prefer.
13167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13168 *GNU* | *'with BFD'*)
13169 test "$with_gnu_ld" != no && break
13172 test "$with_gnu_ld" != yes && break
13179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13183 LD="$lt_cv_path_LD"
13184 if test -n "$LD"; then
13185 { echo "$as_me:$LINENO: result: $LD" >&5
13186 echo "${ECHO_T}$LD" >&6; }
13188 { echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6; }
13191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13193 { (exit 1); exit 1; }; }
13194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13200 case `$LD -v 2>&1 </dev/null` in
13201 *GNU* | *'with BFD'*)
13202 lt_cv_prog_gnu_ld=yes
13205 lt_cv_prog_gnu_ld=no
13209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13211 with_gnu_ld=$lt_cv_prog_gnu_ld
13219 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13220 # archiving commands below assume that GNU ld is being used.
13221 if test "$with_gnu_ld" = yes; then
13222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223 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'
13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13228 # If archive_cmds runs LD, not CC, wlarc should be empty
13229 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13230 # investigate it a little bit more. (MM)
13233 # ancient GNU ld didn't support --whole-archive et. al.
13234 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13235 $GREP 'no-whole-archive' > /dev/null; then
13236 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13238 whole_archive_flag_spec_CXX=
13244 # A generic and very simple default shared library creation
13245 # command for GNU C++ for the case where it uses the native
13246 # linker, instead of GNU ld. If possible, this setting should
13247 # overridden to take advantage of the native linker features on
13248 # the platform it is being used on.
13249 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13252 # Commands to make compiler produce verbose output that lists
13253 # what "hidden" libraries, object files and flags are used when
13254 # linking a shared library.
13255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13263 # PORTME: fill in a description of your system's C++ link characteristics
13264 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13269 # FIXME: insert proper C++ library support
13273 if test "$host_cpu" = ia64; then
13274 # On IA64, the linker does run time linking by default, so we don't
13275 # have to do anything special.
13276 aix_use_runtimelinking=no
13277 exp_sym_flag='-Bexport'
13280 aix_use_runtimelinking=no
13282 # Test if we are trying to use run time linking or normal
13283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13284 # need to do runtime linking.
13285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13286 for ld_flag in $LDFLAGS; do
13289 aix_use_runtimelinking=yes
13297 exp_sym_flag='-bexport'
13298 no_entry_flag='-bnoentry'
13301 # When large executables or shared objects are built, AIX ld can
13302 # have problems creating the table of contents. If linking a library
13303 # or program results in "error TOC overflow" add -mminimal-toc to
13304 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13305 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13307 archive_cmds_CXX=''
13308 hardcode_direct_CXX=yes
13309 hardcode_direct_absolute_CXX=yes
13310 hardcode_libdir_separator_CXX=':'
13311 link_all_deplibs_CXX=yes
13312 file_list_spec_CXX='${wl}-f,'
13314 if test "$GXX" = yes; then
13315 case $host_os in aix4.[012]|aix4.[012].*)
13316 # We only want to do this on AIX 4.2 and lower, the check
13317 # below for broken collect2 doesn't work under 4.3+
13318 collect2name=`${CC} -print-prog-name=collect2`
13319 if test -f "$collect2name" &&
13320 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13322 # We have reworked collect2
13325 # We have old collect2
13326 hardcode_direct_CXX=unsupported
13327 # It fails to find uninstalled libraries when the uninstalled
13328 # path is not listed in the libpath. Setting hardcode_minus_L
13329 # to unsupported forces relinking
13330 hardcode_minus_L_CXX=yes
13331 hardcode_libdir_flag_spec_CXX='-L$libdir'
13332 hardcode_libdir_separator_CXX=
13335 shared_flag='-shared'
13336 if test "$aix_use_runtimelinking" = yes; then
13337 shared_flag="$shared_flag "'${wl}-G'
13341 if test "$host_cpu" = ia64; then
13342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13343 # chokes on -Wl,-G. The following line is correct:
13346 if test "$aix_use_runtimelinking" = yes; then
13347 shared_flag='${wl}-G'
13349 shared_flag='${wl}-bM:SRE'
13354 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13355 # It seems that -bexpall does not export symbols beginning with
13356 # underscore (_), so it is better to generate a list of symbols to
13358 always_export_symbols_CXX=yes
13359 if test "$aix_use_runtimelinking" = yes; then
13360 # Warning - without using the other runtime loading flags (-brtl),
13361 # -berok will link without error, but may produce a broken library.
13362 allow_undefined_flag_CXX='-berok'
13363 # Determine the default libpath from the value encoded in an empty
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_link") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_cxx_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext &&
13397 $as_test_x conftest$ac_exeext; then
13399 lt_aix_libpath_sed='
13400 /Import File Strings/,/^$/ {
13406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 # Check for a 64-bit object if we didn't find anything.
13408 if test -z "$aix_libpath"; then
13409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13419 conftest$ac_exeext conftest.$ac_ext
13420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13422 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13424 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"
13426 if test "$host_cpu" = ia64; then
13427 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13428 allow_undefined_flag_CXX="-z nodefs"
13429 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"
13431 # Determine the default libpath from the value encoded in an
13432 # empty executable.
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (ac_try="$ac_link"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_link") 2>conftest.er1
13457 grep -v '^ *+' conftest.er1 >conftest.err
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && {
13462 test -z "$ac_cxx_werror_flag" ||
13463 test ! -s conftest.err
13464 } && test -s conftest$ac_exeext &&
13465 $as_test_x conftest$ac_exeext; then
13467 lt_aix_libpath_sed='
13468 /Import File Strings/,/^$/ {
13474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13475 # Check for a 64-bit object if we didn't find anything.
13476 if test -z "$aix_libpath"; then
13477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13487 conftest$ac_exeext conftest.$ac_ext
13488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13491 # Warning - without using the other run time loading flags,
13492 # -berok will link without error, but may produce a broken library.
13493 no_undefined_flag_CXX=' ${wl}-bernotok'
13494 allow_undefined_flag_CXX=' ${wl}-berok'
13495 # Exported symbols can be pulled into shared objects from archives
13496 whole_archive_flag_spec_CXX='$convenience'
13497 archive_cmds_need_lc_CXX=yes
13498 # This is similar to how AIX traditionally builds its shared
13500 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'
13506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13507 allow_undefined_flag_CXX=unsupported
13508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13509 # support --undefined. This deserves some investigation. FIXME
13510 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13517 case $cc_basename in
13519 # FIXME: insert proper C++ library support
13525 cygwin* | mingw* | pw32* | cegcc*)
13526 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13527 # as there is no search path for DLLs.
13528 hardcode_libdir_flag_spec_CXX='-L$libdir'
13529 allow_undefined_flag_CXX=unsupported
13530 always_export_symbols_CXX=no
13531 enable_shared_with_static_runtimes_CXX=yes
13533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13534 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'
13535 # If the export-symbols file already is a .def file (1st line
13536 # is EXPORTS), use it as is; otherwise, prepend...
13537 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13538 cp $export_symbols $output_objdir/$soname.def;
13540 echo EXPORTS > $output_objdir/$soname.def;
13541 cat $export_symbols >> $output_objdir/$soname.def;
13543 $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'
13548 darwin* | rhapsody*)
13551 archive_cmds_need_lc_CXX=no
13552 hardcode_direct_CXX=no
13553 hardcode_automatic_CXX=yes
13554 hardcode_shlibpath_var_CXX=unsupported
13555 whole_archive_flag_spec_CXX=''
13556 link_all_deplibs_CXX=yes
13557 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13558 case $cc_basename in
13559 ifort*) _lt_dar_can_shared=yes ;;
13560 *) _lt_dar_can_shared=$GCC ;;
13562 if test "$_lt_dar_can_shared" = "yes"; then
13563 output_verbose_link_cmd=echo
13564 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}"
13565 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13566 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}"
13567 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}"
13568 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13569 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}"
13570 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}"
13580 case $cc_basename in
13582 # FIXME: insert proper C++ library support
13586 # Green Hills C++ Compiler
13587 # FIXME: insert proper C++ library support
13591 # FIXME: insert proper C++ library support
13598 # C++ shared libraries reported to be fairly broken before
13604 archive_cmds_need_lc_CXX=no
13607 freebsd* | dragonfly*)
13608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13618 hardcode_libdir_separator_CXX=:
13619 export_dynamic_flag_spec_CXX='${wl}-E'
13620 hardcode_direct_CXX=yes
13621 hardcode_minus_L_CXX=yes # Not in the search PATH,
13622 # but as the default
13623 # location of the library.
13625 case $cc_basename in
13627 # FIXME: insert proper C++ library support
13631 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'
13632 # Commands to make compiler produce verbose output that lists
13633 # what "hidden" libraries, object files and flags are used when
13634 # linking a shared library.
13636 # There doesn't appear to be a way to prevent this compiler from
13637 # explicitly linking system object files so we need to strip them
13638 # from the output so that they don't get included in the library
13640 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'
13643 if test "$GXX" = yes; then
13644 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'
13646 # FIXME: insert proper C++ library support
13654 if test $with_gnu_ld = no; then
13655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13656 hardcode_libdir_separator_CXX=:
13662 export_dynamic_flag_spec_CXX='${wl}-E'
13668 hardcode_direct_CXX=no
13669 hardcode_shlibpath_var_CXX=no
13672 hardcode_direct_CXX=yes
13673 hardcode_direct_absolute_CXX=yes
13674 hardcode_minus_L_CXX=yes # Not in the search PATH,
13675 # but as the default
13676 # location of the library.
13680 case $cc_basename in
13682 # FIXME: insert proper C++ library support
13688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697 # Commands to make compiler produce verbose output that lists
13698 # what "hidden" libraries, object files and flags are used when
13699 # linking a shared library.
13701 # There doesn't appear to be a way to prevent this compiler from
13702 # explicitly linking system object files so we need to strip them
13703 # from the output so that they don't get included in the library
13705 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'
13708 if test "$GXX" = yes; then
13709 if test $with_gnu_ld = no; then
13712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718 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'
13723 # FIXME: insert proper C++ library support
13731 hardcode_direct_CXX=no
13732 hardcode_shlibpath_var_CXX=no
13733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13734 export_dynamic_flag_spec_CXX='${wl}-E'
13735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13736 # Instead, shared libraries are loaded at an image base (0x10000000 by
13737 # default) and relocated if they conflict, which is a slow very memory
13738 # consuming and fragmenting process. To avoid this, we pick a random,
13739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13741 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'
13742 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'
13745 case $cc_basename in
13748 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'
13750 # Archives containing C++ object files must be created using
13751 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13752 # necessary to make sure instantiated templates are included
13754 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13757 if test "$GXX" = yes; then
13758 if test "$with_gnu_ld" = no; then
13759 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'
13761 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'
13764 link_all_deplibs_CXX=yes
13767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768 hardcode_libdir_separator_CXX=:
13769 inherit_rpath_CXX=yes
13772 linux* | k*bsd*-gnu)
13773 case $cc_basename in
13775 # Kuck and Associates, Inc. (KAI) C++ Compiler
13777 # KCC will only create a shared library if the output file
13778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13779 # to its proper name (with version) after linking.
13780 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'
13781 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'
13782 # Commands to make compiler produce verbose output that lists
13783 # what "hidden" libraries, object files and flags are used when
13784 # linking a shared library.
13786 # There doesn't appear to be a way to prevent this compiler from
13787 # explicitly linking system object files so we need to strip them
13788 # from the output so that they don't get included in the library
13790 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'
13792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13795 # Archives containing C++ object files must be created using
13796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13802 # version 8.0 and above of icpc choke on multiply defined symbols
13803 # if we add $predep_objects and $postdep_objects, however 7.1 and
13804 # earlier do not add the objects themselves.
13805 case `$CC -V 2>&1` in
13807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808 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'
13810 *) # Version 8.0 or newer
13813 ia64*) tmp_idyn=' -i_dynamic';;
13815 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 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'
13819 archive_cmds_need_lc_CXX=no
13820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13825 # Portland Group C++ compiler
13827 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13828 prelink_cmds_CXX='tpldir=Template.dir~
13830 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13831 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13832 old_archive_cmds_CXX='tpldir=Template.dir~
13834 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13835 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13837 archive_cmds_CXX='tpldir=Template.dir~
13839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13840 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13841 archive_expsym_cmds_CXX='tpldir=Template.dir~
13843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13844 $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'
13846 *) # Version 6 will use weak symbols
13847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13848 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'
13852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13854 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'
13858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859 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'
13861 runpath_var=LD_RUN_PATH
13862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13863 hardcode_libdir_separator_CXX=:
13865 # Commands to make compiler produce verbose output that lists
13866 # what "hidden" libraries, object files and flags are used when
13867 # linking a shared library.
13869 # There doesn't appear to be a way to prevent this compiler from
13870 # explicitly linking system object files so we need to strip them
13871 # from the output so that they don't get included in the library
13873 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'
13876 # IBM XL 8.0 on PPC, with GNU ld
13877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13879 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 if test "x$supports_anon_versioning" = xyes; then
13881 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13883 echo "local: *; };" >> $output_objdir/$libname.ver~
13884 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888 case `$CC -V 2>&1 | sed 5q` in
13891 no_undefined_flag_CXX=' -zdefs'
13892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13893 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'
13894 hardcode_libdir_flag_spec_CXX='-R$libdir'
13895 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'
13896 compiler_needs_object_CXX=yes
13898 # Not sure whether something based on
13899 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13901 output_verbose_link_cmd='echo'
13903 # Archives containing C++ object files must be created using
13904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13905 # necessary to make sure instantiated templates are included
13907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13915 # FIXME: insert proper C++ library support
13920 # FIXME: insert proper C++ library support
13925 case $cc_basename in
13927 # FIXME: insert proper C++ library support
13931 # FIXME: insert proper C++ library support
13938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13941 hardcode_libdir_flag_spec_CXX='-R$libdir'
13942 hardcode_direct_CXX=yes
13943 hardcode_shlibpath_var_CXX=no
13945 # Workaround some broken pre-1.5 toolchains
13946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13954 # C++ shared libraries are fairly broken
13959 if test -f /usr/libexec/ld.so; then
13960 hardcode_direct_CXX=yes
13961 hardcode_shlibpath_var_CXX=no
13962 hardcode_direct_absolute_CXX=yes
13963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13967 export_dynamic_flag_spec_CXX='${wl}-E'
13968 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13970 output_verbose_link_cmd=echo
13976 osf3* | osf4* | osf5*)
13977 case $cc_basename in
13979 # Kuck and Associates, Inc. (KAI) C++ Compiler
13981 # KCC will only create a shared library if the output file
13982 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13983 # to its proper name (with version) after linking.
13984 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'
13986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13987 hardcode_libdir_separator_CXX=:
13989 # Archives containing C++ object files must be created using
13990 # the KAI C++ compiler.
13992 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13993 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13997 # Rational C++ 2.4.1
13998 # FIXME: insert proper C++ library support
14004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14005 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'
14006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14009 allow_undefined_flag_CXX=' -expect_unresolved \*'
14010 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'
14011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14012 echo "-hidden">> $lib.exp~
14013 $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~
14015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14019 hardcode_libdir_separator_CXX=:
14021 # Commands to make compiler produce verbose output that lists
14022 # what "hidden" libraries, object files and flags are used when
14023 # linking a shared library.
14025 # There doesn't appear to be a way to prevent this compiler from
14026 # explicitly linking system object files so we need to strip them
14027 # from the output so that they don't get included in the library
14029 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'
14032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14036 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'
14039 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'
14043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14044 hardcode_libdir_separator_CXX=:
14046 # Commands to make compiler produce verbose output that lists
14047 # what "hidden" libraries, object files and flags are used when
14048 # linking a shared library.
14049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14052 # FIXME: insert proper C++ library support
14060 # FIXME: insert proper C++ library support
14065 case $cc_basename in
14068 # FIXME: insert proper C++ library support
14073 # FIXME: insert proper C++ library support
14077 # FIXME: insert proper C++ library support
14084 case $cc_basename in
14086 # Sun C++ 4.2, 5.x and Centerline C++
14087 archive_cmds_need_lc_CXX=yes
14088 no_undefined_flag_CXX=' -zdefs'
14089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14091 $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'
14093 hardcode_libdir_flag_spec_CXX='-R$libdir'
14094 hardcode_shlibpath_var_CXX=no
14096 solaris2.[0-5] | solaris2.[0-5].*) ;;
14098 # The compiler driver will combine and reorder linker options,
14099 # but understands `-z linker_flag'.
14100 # Supported since Solaris 2.6 (maybe 2.5.1?)
14101 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14104 link_all_deplibs_CXX=yes
14106 output_verbose_link_cmd='echo'
14108 # Archives containing C++ object files must be created using
14109 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14110 # necessary to make sure instantiated templates are included
14112 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14115 # Green Hills C++ Compiler
14116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14118 # The C++ compiler must be used to create the archive.
14119 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14122 # GNU C++ compiler with Solaris linker
14123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14124 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14125 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14126 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14127 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14128 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14130 # Commands to make compiler produce verbose output that lists
14131 # what "hidden" libraries, object files and flags are used when
14132 # linking a shared library.
14133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14135 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14137 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141 # Commands to make compiler produce verbose output that lists
14142 # what "hidden" libraries, object files and flags are used when
14143 # linking a shared library.
14144 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14147 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14149 solaris2.[0-5] | solaris2.[0-5].*) ;;
14151 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14160 no_undefined_flag_CXX='${wl}-z,text'
14161 archive_cmds_need_lc_CXX=no
14162 hardcode_shlibpath_var_CXX=no
14163 runpath_var='LD_RUN_PATH'
14165 case $cc_basename in
14167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177 sysv5* | sco3.2v5* | sco5v6*)
14178 # Note: We can NOT use -z defs as we might desire, because we do not
14179 # link with -lc, and that would cause any symbols used from libc to
14180 # always be unresolved, which means just about no library would
14181 # ever link correctly. If we're not using GNU ld we use -z text
14182 # though, which does catch some bad symbols but isn't as heavy-handed
14184 no_undefined_flag_CXX='${wl}-z,text'
14185 allow_undefined_flag_CXX='${wl}-z,nodefs'
14186 archive_cmds_need_lc_CXX=no
14187 hardcode_shlibpath_var_CXX=no
14188 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14189 hardcode_libdir_separator_CXX=':'
14190 link_all_deplibs_CXX=yes
14191 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14192 runpath_var='LD_RUN_PATH'
14194 case $cc_basename in
14196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14207 case $cc_basename in
14209 # NonStop-UX NCC 3.20
14210 # FIXME: insert proper C++ library support
14214 # FIXME: insert proper C++ library support
14221 # FIXME: insert proper C++ library support
14226 # FIXME: insert proper C++ library support
14231 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14232 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14233 test "$ld_shlibs_CXX" = no && can_build_shared=no
14239 ## There is no encapsulation within the following macros, do not change
14240 ## the running order or otherwise move them around unless you know exactly
14241 ## what you are doing...
14242 # Dependencies to place before and after the object being linked:
14243 predep_objects_CXX=
14244 postdep_objects_CXX=
14247 compiler_lib_search_path_CXX=
14249 cat > conftest.$ac_ext <<_LT_EOF
14253 Foo (void) { a = 0; }
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; then
14264 # Parse the compiler output and extract the necessary
14265 # objects, libraries and library flags.
14267 # Sentinel used to keep track of whether or not we are before
14268 # the conftest object file.
14269 pre_test_object_deps_done=no
14271 for p in `eval "$output_verbose_link_cmd"`; do
14275 # Some compilers place space between "-{L,R}" and the path.
14276 # Remove the space.
14277 if test $p = "-L" ||
14278 test $p = "-R"; then
14285 if test "$pre_test_object_deps_done" = no; then
14288 # Internal compiler library paths should come after those
14289 # provided the user. The postdeps already come after the
14290 # user supplied libs so there is no need to process them.
14291 if test -z "$compiler_lib_search_path_CXX"; then
14292 compiler_lib_search_path_CXX="${prev}${p}"
14294 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14297 # The "-l" case would never come before the object being
14298 # linked, so don't bother handling this case.
14301 if test -z "$postdeps_CXX"; then
14302 postdeps_CXX="${prev}${p}"
14304 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14310 # This assumes that the test object file only shows up
14311 # once in the compiler output.
14312 if test "$p" = "conftest.$objext"; then
14313 pre_test_object_deps_done=yes
14317 if test "$pre_test_object_deps_done" = no; then
14318 if test -z "$predep_objects_CXX"; then
14319 predep_objects_CXX="$p"
14321 predep_objects_CXX="$predep_objects_CXX $p"
14324 if test -z "$postdep_objects_CXX"; then
14325 postdep_objects_CXX="$p"
14327 postdep_objects_CXX="$postdep_objects_CXX $p"
14332 *) ;; # Ignore the rest.
14340 echo "libtool.m4: error: problem compiling CXX test program"
14343 $RM -f confest.$objext
14345 # PORTME: override above test on systems where it is broken
14348 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14349 # hack all around it, let's just trust "g++" to DTRT.
14350 predep_objects_CXX=
14351 postdep_objects_CXX=
14356 case `$CC -V 2>&1 | sed 5q` in
14360 # The more standards-conforming stlport4 library is
14361 # incompatible with the Cstd library. Avoid specifying
14362 # it if it's in CXXFLAGS. Ignore libCrun as
14363 # -library=stlport4 depends on it.
14364 case " $CXX $CXXFLAGS " in
14365 *" -library=stlport4 "*)
14366 solaris_use_stlport4=yes
14370 if test "$solaris_use_stlport4" != yes; then
14371 postdeps_CXX='-library=Cstd -library=Crun'
14378 case $cc_basename in
14380 # The more standards-conforming stlport4 library is
14381 # incompatible with the Cstd library. Avoid specifying
14382 # it if it's in CXXFLAGS. Ignore libCrun as
14383 # -library=stlport4 depends on it.
14384 case " $CXX $CXXFLAGS " in
14385 *" -library=stlport4 "*)
14386 solaris_use_stlport4=yes
14390 # Adding this requires a known-good setup of shared libraries for
14391 # Sun compiler versions before 5.6, else PIC objects from an old
14392 # archive will be linked into the output, leading to subtle bugs.
14393 if test "$solaris_use_stlport4" != yes; then
14394 postdeps_CXX='-library=Cstd -library=Crun'
14402 case " $postdeps_CXX " in
14403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14405 compiler_lib_search_dirs_CXX=
14406 if test -n "${compiler_lib_search_path_CXX}"; then
14407 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14440 lt_prog_compiler_wl_CXX=
14441 lt_prog_compiler_pic_CXX=
14442 lt_prog_compiler_static_CXX=
14444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14447 # C++ specific cases for pic, static, wl, etc.
14448 if test "$GXX" = yes; then
14449 lt_prog_compiler_wl_CXX='-Wl,'
14450 lt_prog_compiler_static_CXX='-static'
14454 # All AIX code is PIC.
14455 if test "$host_cpu" = ia64; then
14456 # AIX 5 now supports IA64 processor
14457 lt_prog_compiler_static_CXX='-Bstatic'
14464 # see comment about AmigaOS4 .so support
14465 lt_prog_compiler_pic_CXX='-fPIC'
14468 # FIXME: we need at least 68020 code to build shared libraries, but
14469 # adding the `-m68020' flag to GCC prevents building anything better,
14471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14477 # PIC is the default for these OSes.
14479 mingw* | cygwin* | os2* | pw32* | cegcc*)
14480 # This hack is so that the source file can tell whether it is being
14481 # built for inclusion in a dll (and should export symbols for example).
14482 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14483 # (--disable-auto-import) libraries
14484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14486 darwin* | rhapsody*)
14487 # PIC is the default on this platform
14488 # Common symbols not allowed in MH_DYLIB files
14489 lt_prog_compiler_pic_CXX='-fno-common'
14492 # DJGPP does not support shared libraries at all
14493 lt_prog_compiler_pic_CXX=
14496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14497 # Instead, we relocate shared libraries at runtime.
14500 if test -d /usr/nec; then
14501 lt_prog_compiler_pic_CXX=-Kconform_pic
14505 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14506 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14507 # sets the default TLS model and affects inlining.
14512 lt_prog_compiler_pic_CXX='-fPIC'
14517 # QNX uses GNU C++, but need to define -shared option too, otherwise
14518 # it will coredump.
14519 lt_prog_compiler_pic_CXX='-fPIC -shared'
14522 lt_prog_compiler_pic_CXX='-fPIC'
14528 # All AIX code is PIC.
14529 if test "$host_cpu" = ia64; then
14530 # AIX 5 now supports IA64 processor
14531 lt_prog_compiler_static_CXX='-Bstatic'
14533 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14537 case $cc_basename in
14539 # Green Hills C++ Compiler
14540 # _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"
14545 case $cc_basename in
14547 lt_prog_compiler_pic_CXX='-KPIC'
14550 # Green Hills C++ Compiler
14551 lt_prog_compiler_pic_CXX='-pic'
14557 freebsd* | dragonfly*)
14558 # FreeBSD uses GNU C++
14560 hpux9* | hpux10* | hpux11*)
14561 case $cc_basename in
14563 lt_prog_compiler_wl_CXX='-Wl,'
14564 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14565 if test "$host_cpu" != ia64; then
14566 lt_prog_compiler_pic_CXX='+Z'
14570 lt_prog_compiler_wl_CXX='-Wl,'
14571 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577 lt_prog_compiler_pic_CXX='+Z'
14586 # This is c89, which is MS Visual C++ (no shared libs)
14587 # Anyone wants to do a port?
14589 irix5* | irix6* | nonstopux*)
14590 case $cc_basename in
14592 lt_prog_compiler_wl_CXX='-Wl,'
14593 lt_prog_compiler_static_CXX='-non_shared'
14594 # CC pic flag -KPIC is the default.
14600 linux* | k*bsd*-gnu)
14601 case $cc_basename in
14604 lt_prog_compiler_wl_CXX='--backend -Wl,'
14605 lt_prog_compiler_pic_CXX='-fPIC'
14608 # old Intel C++ for x86_64 which still supported -KPIC.
14609 lt_prog_compiler_wl_CXX='-Wl,'
14610 lt_prog_compiler_pic_CXX='-KPIC'
14611 lt_prog_compiler_static_CXX='-static'
14614 # Intel C++, used to be incompatible with GCC.
14615 # ICC 10 doesn't accept -KPIC any more.
14616 lt_prog_compiler_wl_CXX='-Wl,'
14617 lt_prog_compiler_pic_CXX='-fPIC'
14618 lt_prog_compiler_static_CXX='-static'
14621 # Portland Group C++ compiler
14622 lt_prog_compiler_wl_CXX='-Wl,'
14623 lt_prog_compiler_pic_CXX='-fpic'
14624 lt_prog_compiler_static_CXX='-Bstatic'
14628 # Make sure the PIC flag is empty. It appears that all Alpha
14629 # Linux and Compaq Tru64 Unix objects are PIC.
14630 lt_prog_compiler_pic_CXX=
14631 lt_prog_compiler_static_CXX='-non_shared'
14634 # IBM XL 8.0 on PPC
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 lt_prog_compiler_pic_CXX='-qpic'
14637 lt_prog_compiler_static_CXX='-qstaticlink'
14640 case `$CC -V 2>&1 | sed 5q` in
14643 lt_prog_compiler_pic_CXX='-KPIC'
14644 lt_prog_compiler_static_CXX='-Bstatic'
14645 lt_prog_compiler_wl_CXX='-Qoption ld '
14656 case $cc_basename in
14658 lt_prog_compiler_pic_CXX='-W c,exportall'
14667 # QNX uses GNU C++, but need to define -shared option too, otherwise
14668 # it will coredump.
14669 lt_prog_compiler_pic_CXX='-fPIC -shared'
14671 osf3* | osf4* | osf5*)
14672 case $cc_basename in
14674 lt_prog_compiler_wl_CXX='--backend -Wl,'
14677 # Rational C++ 2.4.1
14678 lt_prog_compiler_pic_CXX='-pic'
14681 # Digital/Compaq C++
14682 lt_prog_compiler_wl_CXX='-Wl,'
14683 # Make sure the PIC flag is empty. It appears that all Alpha
14684 # Linux and Compaq Tru64 Unix objects are PIC.
14685 lt_prog_compiler_pic_CXX=
14686 lt_prog_compiler_static_CXX='-non_shared'
14695 case $cc_basename in
14697 # Sun C++ 4.2, 5.x and Centerline C++
14698 lt_prog_compiler_pic_CXX='-KPIC'
14699 lt_prog_compiler_static_CXX='-Bstatic'
14700 lt_prog_compiler_wl_CXX='-Qoption ld '
14703 # Green Hills C++ Compiler
14704 lt_prog_compiler_pic_CXX='-PIC'
14711 case $cc_basename in
14714 lt_prog_compiler_pic_CXX='-pic'
14715 lt_prog_compiler_static_CXX='-Bstatic'
14719 lt_prog_compiler_pic_CXX='-pic'
14725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14726 case $cc_basename in
14728 lt_prog_compiler_wl_CXX='-Wl,'
14729 lt_prog_compiler_pic_CXX='-KPIC'
14730 lt_prog_compiler_static_CXX='-Bstatic'
14735 case $cc_basename in
14737 # NonStop-UX NCC 3.20
14738 lt_prog_compiler_pic_CXX='-KPIC'
14747 lt_prog_compiler_can_build_shared_CXX=no
14753 # For platforms which do not support PIC, -DPIC is meaningless:
14755 lt_prog_compiler_pic_CXX=
14758 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14767 # Check to make sure the PIC flag actually works.
14769 if test -n "$lt_prog_compiler_pic_CXX"; then
14770 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 lt_cv_prog_compiler_pic_works_CXX=no
14776 ac_outfile=conftest.$ac_objext
14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14779 # Insert the option either (1) after the last *FLAGS variable, or
14780 # (2) before a word containing "conftest.", or (3) at the end.
14781 # Note that $ac_compile itself does not contain backslashes and begins
14782 # with a dollar sign (not a hyphen), so the echo should work correctly.
14783 # The option is referenced via a variable to avoid confusing sed.
14784 lt_compile=`echo "$ac_compile" | $SED \
14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787 -e 's:$: $lt_compiler_flag:'`
14788 (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789 (eval "$lt_compile" 2>conftest.err)
14791 cat conftest.err >&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 if (exit $ac_status) && test -s "$ac_outfile"; then
14794 # The compiler can only warn and ignore the option if not recognized
14795 # So say no if there are warnings other than the usual output.
14796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_pic_works_CXX=yes
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14808 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14809 case $lt_prog_compiler_pic_CXX in
14811 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14814 lt_prog_compiler_pic_CXX=
14815 lt_prog_compiler_can_build_shared_CXX=no
14823 # Check to make sure the static flag actually works.
14825 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14828 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 lt_cv_prog_compiler_static_works_CXX=no
14832 save_LDFLAGS="$LDFLAGS"
14833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14836 # The linker can only warn and ignore the option if not recognized
14837 # So say no if there are warnings
14838 if test -s conftest.err; then
14839 # Append any errors to the config.log.
14840 cat conftest.err 1>&5
14841 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_static_works_CXX=yes
14847 lt_cv_prog_compiler_static_works_CXX=yes
14851 LDFLAGS="$save_LDFLAGS"
14854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14855 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14857 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14860 lt_prog_compiler_static_CXX=
14866 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 lt_cv_prog_compiler_c_o_CXX=no
14872 $RM -r conftest 2>/dev/null
14876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878 lt_compiler_flag="-o out/conftest2.$ac_objext"
14879 # Insert the option either (1) after the last *FLAGS variable, or
14880 # (2) before a word containing "conftest.", or (3) at the end.
14881 # Note that $ac_compile itself does not contain backslashes and begins
14882 # with a dollar sign (not a hyphen), so the echo should work correctly.
14883 lt_compile=`echo "$ac_compile" | $SED \
14884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886 -e 's:$: $lt_compiler_flag:'`
14887 (eval echo "\"\$as_me:14887: $lt_compile\"" >&5)
14888 (eval "$lt_compile" 2>out/conftest.err)
14890 cat out/conftest.err >&5
14891 echo "$as_me:14891: \$? = $ac_status" >&5
14892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14894 # The compiler can only warn and ignore the option if not recognized
14895 # So say no if there are warnings
14896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899 lt_cv_prog_compiler_c_o_CXX=yes
14904 # SGI C++ compiler will create directory out/ii_files/ for
14905 # template instantiation
14906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14907 $RM out/* && rmdir out
14913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14920 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 lt_cv_prog_compiler_c_o_CXX=no
14924 $RM -r conftest 2>/dev/null
14928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14930 lt_compiler_flag="-o out/conftest2.$ac_objext"
14931 # Insert the option either (1) after the last *FLAGS variable, or
14932 # (2) before a word containing "conftest.", or (3) at the end.
14933 # Note that $ac_compile itself does not contain backslashes and begins
14934 # with a dollar sign (not a hyphen), so the echo should work correctly.
14935 lt_compile=`echo "$ac_compile" | $SED \
14936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14938 -e 's:$: $lt_compiler_flag:'`
14939 (eval echo "\"\$as_me:14939: $lt_compile\"" >&5)
14940 (eval "$lt_compile" 2>out/conftest.err)
14942 cat out/conftest.err >&5
14943 echo "$as_me:14943: \$? = $ac_status" >&5
14944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14946 # The compiler can only warn and ignore the option if not recognized
14947 # So say no if there are warnings
14948 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14951 lt_cv_prog_compiler_c_o_CXX=yes
14956 # SGI C++ compiler will create directory out/ii_files/ for
14957 # template instantiation
14958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14959 $RM out/* && rmdir out
14965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14971 hard_links="nottested"
14972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14973 # do not overwrite the value of need_locks provided by the user
14974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14980 ln conftest.a conftest.b 2>&5 || hard_links=no
14981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14982 { echo "$as_me:$LINENO: result: $hard_links" >&5
14983 echo "${ECHO_T}$hard_links" >&6; }
14984 if test "$hard_links" = no; then
14985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15001 # If we're using GNU nm, then we don't want the "-C" option.
15002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15003 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15004 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'
15006 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'
15010 export_symbols_cmds_CXX="$ltdll_cmds"
15012 cygwin* | mingw* | cegcc*)
15013 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'
15016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15019 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15021 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15022 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15023 test "$ld_shlibs_CXX" = no && can_build_shared=no
15025 with_gnu_ld_CXX=$with_gnu_ld
15033 # Do we need to explicitly link libc?
15035 case "x$archive_cmds_need_lc_CXX" in
15037 # Assume -lc should be added
15038 archive_cmds_need_lc_CXX=yes
15040 if test "$enable_shared" = yes && test "$GCC" = yes; then
15041 case $archive_cmds_CXX in
15043 # FIXME: we may have to deal with multi-command sequences.
15046 # Test whether the compiler implicitly links with -lc since on some
15047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15048 # to ld, don't add -lc before -lgcc.
15049 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055 (eval $ac_compile) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } 2>conftest.err; then
15061 libobjs=conftest.$ac_objext
15063 wl=$lt_prog_compiler_wl_CXX
15064 pic_flag=$lt_prog_compiler_pic_CXX
15070 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15071 allow_undefined_flag_CXX=
15072 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15073 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }
15078 archive_cmds_need_lc_CXX=no
15080 archive_cmds_need_lc_CXX=yes
15082 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15084 cat conftest.err 1>&5
15087 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15088 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15158 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15161 library_names_spec=
15162 libname_spec='lib$name'
15166 postuninstall_cmds=
15170 shlibpath_overrides_runpath=unknown
15172 dynamic_linker="$host_os ld.so"
15173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15174 need_lib_prefix=unknown
15175 hardcode_into_libs=no
15177 # when you set need_version to no, make sure it does not cause -set_version
15178 # flags to be left without arguments
15179 need_version=unknown
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15185 shlibpath_var=LIBPATH
15187 # AIX 3 has no versioning support, so we append a major version to the name.
15188 soname_spec='${libname}${release}${shared_ext}$major'
15195 hardcode_into_libs=yes
15196 if test "$host_cpu" = ia64; then
15197 # AIX 5 supports IA64
15198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15199 shlibpath_var=LD_LIBRARY_PATH
15201 # With GCC up to 2.95.x, collect2 would create an import file
15202 # for dependence libraries. The import file would start with
15203 # the line `#! .'. This would cause the generated library to
15204 # depend on `.', always an invalid library. This was fixed in
15205 # development snapshots of GCC prior to 3.0.
15207 aix4 | aix4.[01] | aix4.[01].*)
15208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15213 can_build_shared=no
15217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15218 # soname into executable. Probably we can add versioning support to
15219 # collect2, so additional links can be useful in future.
15220 if test "$aix_use_runtimelinking" = yes; then
15221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15222 # instead of lib<name>.a to let people know that these are not
15223 # typical AIX shared libraries.
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 # We preserve .a as extension for shared libraries through AIX4.2
15227 # and later when we are not doing run time linking.
15228 library_names_spec='${libname}${release}.a $libname.a'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15231 shlibpath_var=LIBPATH
15238 # Since July 2007 AmigaOS4 officially supports .so libraries.
15239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 library_names_spec='$libname.ixlibrary $libname.a'
15244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15245 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'
15251 library_names_spec='${libname}${shared_ext}'
15252 dynamic_linker="$host_os ld.so"
15253 shlibpath_var=LIBRARY_PATH
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15265 # the default ld.so.conf also contains /usr/contrib/lib and
15266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15267 # libtool to hard-code these into programs
15270 cygwin* | mingw* | pw32* | cegcc*)
15271 version_type=windows
15276 case $GCC,$host_os in
15277 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15278 library_names_spec='$libname.dll.a'
15279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15280 postinstall_cmds='base_file=`basename \${file}`~
15281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15282 dldir=$destdir/`dirname \$dlpath`~
15283 test -d \$dldir || mkdir -p \$dldir~
15284 $install_prog $dir/$dlname \$dldir/$dlname~
15285 chmod a+x \$dldir/$dlname~
15286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15290 dlpath=$dir/\$dldll~
15292 shlibpath_overrides_runpath=yes
15296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15301 # MinGW DLLs use traditional 'lib' prefix
15302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15303 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15304 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15305 # It is most probably a Windows format PATH printed by
15306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15307 # path with ; separators, and with drive letters. We can handle the
15308 # drive letters (cygwin fileutils understands them), so leave them,
15309 # especially as we might pass files found there to a mingw objdump,
15310 # which wouldn't understand a cygwinified path. Ahh.
15311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15317 # pw32 DLLs use 'pw' prefix rather than 'lib'
15318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15327 dynamic_linker='Win32 ld.exe'
15328 # FIXME: first we should search . and the directory the executable is in
15332 darwin* | rhapsody*)
15333 dynamic_linker="$host_os dyld"
15334 version_type=darwin
15337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338 soname_spec='${libname}${release}${major}$shared_ext'
15339 shlibpath_overrides_runpath=yes
15340 shlibpath_var=DYLD_LIBRARY_PATH
15341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15359 freebsd* | dragonfly*)
15360 # DragonFly does not have aout. When/if they implement a new
15361 # versioning mechanism, adjust this.
15362 if test -x /usr/bin/objformat; then
15363 objformat=`/usr/bin/objformat`
15366 freebsd[123]*) objformat=aout ;;
15367 *) objformat=elf ;;
15370 version_type=freebsd-$objformat
15371 case $version_type in
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15382 shlibpath_var=LD_LIBRARY_PATH
15385 shlibpath_overrides_runpath=yes
15387 freebsd3.[01]* | freebsdelf3.[01]*)
15388 shlibpath_overrides_runpath=yes
15389 hardcode_into_libs=yes
15391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15393 shlibpath_overrides_runpath=no
15394 hardcode_into_libs=yes
15396 *) # from 4.6 on, and DragonFly
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 hardcode_into_libs=yes
15413 hpux9* | hpux10* | hpux11*)
15414 # Give a soname corresponding to the major version so that dld.sl refuses to
15415 # link against other versions.
15422 hardcode_into_libs=yes
15423 dynamic_linker="$host_os dld.so"
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 if test "X$HPUX_IA64_MODE" = X32; then
15429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15437 hardcode_into_libs=yes
15438 dynamic_linker="$host_os dld.sl"
15439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448 dynamic_linker="$host_os dld.sl"
15449 shlibpath_var=SHLIB_PATH
15450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15456 postinstall_cmds='chmod 555 $lib'
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15466 shlibpath_var=LD_LIBRARY_PATH
15467 shlibpath_overrides_runpath=no
15468 hardcode_into_libs=yes
15471 irix5* | irix6* | nonstopux*)
15473 nonstopux*) version_type=nonstopux ;;
15475 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15486 irix5* | nonstopux*)
15487 libsuff= shlibsuff=
15490 case $LD in # libtool.m4 will add one of these switches to LD
15491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15492 libsuff= shlibsuff= libmagic=32-bit;;
15493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15494 libsuff=32 shlibsuff=N32 libmagic=N32;;
15495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15497 *) libsuff= shlibsuff= libmagic=never-match;;
15501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15502 shlibpath_overrides_runpath=no
15503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15505 hardcode_into_libs=yes
15508 # No shared lib support for Linux oldld, aout, or coff.
15509 linux*oldld* | linux*aout* | linux*coff*)
15513 # This must be Linux ELF.
15514 linux* | k*bsd*-gnu)
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=no
15523 # Some binutils ld are patched to set DT_RUNPATH
15524 save_LDFLAGS=$LDFLAGS
15525 save_libdir=$libdir
15526 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15527 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (ac_try="$ac_link"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_link") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_cxx_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest$ac_exeext &&
15560 $as_test_x conftest$ac_exeext; then
15561 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15562 shlibpath_overrides_runpath=yes
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15574 LDFLAGS=$save_LDFLAGS
15575 libdir=$save_libdir
15577 # This implies no fast_install, which is unacceptable.
15578 # Some rework will be needed to allow for fast_install
15579 # before this can be enabled.
15580 hardcode_into_libs=yes
15582 # Append ld.so.conf contents to the search path
15583 if test -f /etc/ld.so.conf; then
15584 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' ' '`
15585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15588 # We used to test for /lib/ld.so.1 and disable shared libraries on
15589 # powerpc, because MkLinux only supported shared libraries with the
15590 # GNU dynamic linker. Since this was broken with cross compilers,
15591 # most powerpc-linux boxes support dynamic linking these days and
15592 # people can always --disable-shared, the test was removed, and we
15593 # assume the GNU/Linux dynamic linker is in use.
15594 dynamic_linker='GNU/Linux ld.so'
15601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15604 dynamic_linker='NetBSD (a.out) ld.so'
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 dynamic_linker='NetBSD ld.elf_so'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=yes
15612 hardcode_into_libs=yes
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=no
15630 hardcode_into_libs=yes
15631 dynamic_linker='ldqnx.so'
15636 sys_lib_dlsearch_path_spec="/usr/lib"
15638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15640 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15641 *) need_version=no ;;
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15648 openbsd2.[89] | openbsd2.[89].*)
15649 shlibpath_overrides_runpath=no
15652 shlibpath_overrides_runpath=yes
15656 shlibpath_overrides_runpath=yes
15661 libname_spec='$name'
15664 library_names_spec='$libname${shared_ext} $libname.a'
15665 dynamic_linker='OS/2 ld.exe'
15666 shlibpath_var=LIBPATH
15669 osf3* | osf4* | osf5*)
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=yes
15692 hardcode_into_libs=yes
15693 # ldd complains unless libraries are executable
15694 postinstall_cmds='chmod +x $lib'
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 if test "$with_gnu_ld" = yes; then
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 case $host_vendor in
15716 shlibpath_overrides_runpath=no
15718 runpath_var=LD_RUN_PATH
15726 shlibpath_overrides_runpath=no
15727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15733 if test -d /usr/nec ;then
15735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15736 soname_spec='$libname${shared_ext}.$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15742 version_type=freebsd-elf
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 shlibpath_overrides_runpath=yes
15749 hardcode_into_libs=yes
15750 if test "$with_gnu_ld" = yes; then
15751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15760 sys_lib_dlsearch_path_spec='/usr/lib'
15764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=no
15771 hardcode_into_libs=yes
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15786 echo "${ECHO_T}$dynamic_linker" >&6; }
15787 test "$dynamic_linker" = no && can_build_shared=no
15789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15790 if test "$GCC" = yes; then
15791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15836 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15838 hardcode_action_CXX=
15839 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15840 test -n "$runpath_var_CXX" ||
15841 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15843 # We can hardcode non-existent directories.
15844 if test "$hardcode_direct_CXX" != no &&
15845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15846 # have to relink, otherwise we might link with an installed library
15847 # when we should be linking with a yet-to-be-installed one
15848 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15849 test "$hardcode_minus_L_CXX" != no; then
15850 # Linking always hardcodes the temporary library directory.
15851 hardcode_action_CXX=relink
15853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15854 hardcode_action_CXX=immediate
15857 # We cannot hardcode anything, or else we can only hardcode existing
15859 hardcode_action_CXX=unsupported
15861 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15862 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15864 if test "$hardcode_action_CXX" = relink ||
15865 test "$inherit_rpath_CXX" = yes; then
15866 # Fast installation is not supported
15867 enable_fast_install=no
15868 elif test "$shlibpath_overrides_runpath" = yes ||
15869 test "$enable_shared" = no; then
15870 # Fast installation is not necessary
15871 enable_fast_install=needless
15880 fi # test -n "$compiler"
15886 with_gnu_ld=$lt_save_with_gnu_ld
15887 lt_cv_path_LDCXX=$lt_cv_path_LD
15888 lt_cv_path_LD=$lt_save_path_LD
15889 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15890 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15891 fi # test "$_lt_caught_CXX_error" != yes
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15911 ac_config_commands="$ac_config_commands libtool"
15916 # Only expand once:
15921 if test x$use_libtool != xno; then
15922 DEFAULT_OBJECT_TYPE=".lo"
15923 DEFAULT_ARCHIVE_TYPE=".la"
15924 DEFAULT_SHARED_OBJECT_TYPE=".la"
15925 LIBTOOL="\$(LIBTOOL)"
15926 LIBTOOL_INSTALL_TARGET="libtool-install"
15927 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15928 LIBTOOL_CLEAN_TARGET="libtool-clean"
15929 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15930 FD_PLUGIN_DIR="src/plugins/fd"
15933 DEFAULT_OBJECT_TYPE=".o"
15934 DEFAULT_ARCHIVE_TYPE=".a"
15935 DEFAULT_SHARED_OBJECT_TYPE=".so"
15936 LIBTOOL="# \$(LIBTOOL)"
15937 LIBTOOL_INSTALL_TARGET=""
15938 LIBTOOL_UNINSTALL_TARGET=""
15939 LIBTOOL_CLEAN_TARGET=""
15940 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15955 # Check whether --enable-includes was given.
15956 if test "${enable_includes+set}" = set; then
15957 enableval=$enable_includes;
15958 if test x$enableval = xyes; then
15959 install_includes=yes
15967 if test x$use_libtool != xno -a x$install_includes = xyes; then
15968 INCLUDE_INSTALL_TARGET="install-includes"
15969 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15971 INCLUDE_INSTALL_TARGET=""
15972 INCLUDE_UNINSTALL_TARGET=""
15978 { echo "$as_me:$LINENO: checking host system type" >&5
15979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15980 if test "${ac_cv_host+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 if test "x$host_alias" = x; then
15984 ac_cv_host=$ac_cv_build
15986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15989 { (exit 1); exit 1; }; }
15993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15994 echo "${ECHO_T}$ac_cv_host" >&6; }
15995 case $ac_cv_host in
15997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15998 echo "$as_me: error: invalid value of canonical host" >&2;}
15999 { (exit 1); exit 1; }; };;
16002 ac_save_IFS=$IFS; IFS='-'
16008 # Remember, the first character of IFS is used to create $*,
16009 # except with old shells:
16012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16016 *cygwin* ) CYGWIN=yes;;
16020 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16026 HAVE_SUN_OS_FALSE='#'
16028 HAVE_SUN_OS_TRUE='#'
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_SUN_OS 1
16040 HAVE_SUN_OS_FALSE='#'
16042 HAVE_SUN_OS_TRUE='#'
16047 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16053 HAVE_OSF1_OS_FALSE='#'
16055 HAVE_OSF1_OS_TRUE='#'
16056 HAVE_OSF1_OS_FALSE=
16058 cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_OSF1_OS 1
16067 HAVE_OSF1_OS_FALSE='#'
16069 HAVE_OSF1_OS_TRUE='#'
16070 HAVE_OSF1_OS_FALSE=
16074 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16080 HAVE_AIX_OS_FALSE='#'
16082 HAVE_AIX_OS_TRUE='#'
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_AIX_OS 1
16094 HAVE_AIX_OS_FALSE='#'
16096 HAVE_AIX_OS_TRUE='#'
16101 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16107 HAVE_HPUX_OS_FALSE='#'
16109 HAVE_HPUX_OS_TRUE='#'
16110 HAVE_HPUX_OS_FALSE=
16112 cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_HPUX_OS 1
16121 HAVE_HPUX_OS_FALSE='#'
16123 HAVE_HPUX_OS_TRUE='#'
16124 HAVE_HPUX_OS_FALSE=
16128 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16133 HAVE_LINUX_OS_TRUE=
16134 HAVE_LINUX_OS_FALSE='#'
16136 HAVE_LINUX_OS_TRUE='#'
16137 HAVE_LINUX_OS_FALSE=
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_LINUX_OS 1
16147 HAVE_LINUX_OS_TRUE=
16148 HAVE_LINUX_OS_FALSE='#'
16150 HAVE_LINUX_OS_TRUE='#'
16151 HAVE_LINUX_OS_FALSE=
16155 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16160 HAVE_FREEBSD_OS_TRUE=
16161 HAVE_FREEBSD_OS_FALSE='#'
16163 HAVE_FREEBSD_OS_TRUE='#'
16164 HAVE_FREEBSD_OS_FALSE=
16166 cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_FREEBSD_OS 1
16174 HAVE_FREEBSD_OS_TRUE=
16175 HAVE_FREEBSD_OS_FALSE='#'
16177 HAVE_FREEBSD_OS_TRUE='#'
16178 HAVE_FREEBSD_OS_FALSE=
16182 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16187 HAVE_NETBSD_OS_TRUE=
16188 HAVE_NETBSD_OS_FALSE='#'
16190 HAVE_NETBSD_OS_TRUE='#'
16191 HAVE_NETBSD_OS_FALSE=
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_NETBSD_OS 1
16201 HAVE_NETBSD_OS_TRUE=
16202 HAVE_NETBSD_OS_FALSE='#'
16204 HAVE_NETBSD_OS_TRUE='#'
16205 HAVE_NETBSD_OS_FALSE=
16209 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16214 HAVE_OPENBSD_OS_TRUE=
16215 HAVE_OPENBSD_OS_FALSE='#'
16217 HAVE_OPENBSD_OS_TRUE='#'
16218 HAVE_OPENBSD_OS_FALSE=
16220 cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_OPENBSD_OS 1
16228 HAVE_OPENBSD_OS_TRUE=
16229 HAVE_OPENBSD_OS_FALSE='#'
16231 HAVE_OPENBSD_OS_TRUE='#'
16232 HAVE_OPENBSD_OS_FALSE=
16236 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16242 HAVE_BSDI_OS_FALSE='#'
16244 HAVE_BSDI_OS_TRUE='#'
16245 HAVE_BSDI_OS_FALSE=
16247 cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_BSDI_OS 1
16256 HAVE_BSDI_OS_FALSE='#'
16258 HAVE_BSDI_OS_TRUE='#'
16259 HAVE_BSDI_OS_FALSE=
16263 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16269 HAVE_SGI_OS_FALSE='#'
16271 HAVE_SGI_OS_TRUE='#'
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_SGI_OS 1
16283 HAVE_SGI_OS_FALSE='#'
16285 HAVE_SGI_OS_TRUE='#'
16290 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16296 HAVE_IRIX_OS_FALSE='#'
16298 HAVE_IRIX_OS_TRUE='#'
16299 HAVE_IRIX_OS_FALSE=
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_IRIX_OS 1
16310 HAVE_IRIX_OS_FALSE='#'
16312 HAVE_IRIX_OS_TRUE='#'
16313 HAVE_IRIX_OS_FALSE=
16317 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16322 HAVE_DARWIN_OS_TRUE=
16323 HAVE_DARWIN_OS_FALSE='#'
16325 HAVE_DARWIN_OS_TRUE='#'
16326 HAVE_DARWIN_OS_FALSE=
16328 cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_DARWIN_OS 1
16336 HAVE_DARWIN_OS_TRUE=
16337 HAVE_DARWIN_OS_FALSE='#'
16339 HAVE_DARWIN_OS_TRUE='#'
16340 HAVE_DARWIN_OS_FALSE=
16345 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16346 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16347 if test "x$DISTNAME" != "x"
16349 echo "distname set to $DISTNAME"
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16377 elif test -f /etc/SuSE-release
16380 elif test -d /etc/SuSEconfig
16383 elif test -f /etc/mandrake-release
16386 elif test -f /etc/whitebox-release
16389 elif test -f /etc/redhat-release
16392 elif test -f /etc/gentoo-release
16395 elif test -f /etc/debian_version
16398 elif test -f /etc/slackware-version
16401 elif test x$host_vendor = xapple
16404 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16407 elif test -f /etc/engarde-version
16410 elif test -f /etc/arch-release
16413 elif test "$CYGWIN" = yes
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_CYGWIN 1
16423 { echo "$as_me:$LINENO: result: done" >&5
16424 echo "${ECHO_T}done" >&6; }
16427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.make <<\_ACEOF
16436 @echo '@@@%%%=$(MAKE)=@@@%%%'
16438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16440 *@@@%%%=?*=@@@%%%*)
16441 eval ac_cv_prog_make_${ac_make}_set=yes;;
16443 eval ac_cv_prog_make_${ac_make}_set=no;;
16445 rm -f conftest.make
16447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16448 { echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6; }
16452 { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454 SET_MAKE="MAKE=${MAKE-make}"
16460 if test -n "$ac_aux_dir"; then
16461 case "$ac_aux_dir" in
16462 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16463 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16466 if test -z "$MKINSTALLDIRS"; then
16467 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16472 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16474 # Check whether --enable-nls was given.
16475 if test "${enable_nls+set}" = set; then
16476 enableval=$enable_nls; USE_NLS=$enableval
16481 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16482 echo "${ECHO_T}$USE_NLS" >&6; }
16489 # Prepare PATH_SEPARATOR.
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492 echo "#! /bin/sh" >conf$$.sh
16493 echo "exit 0" >>conf$$.sh
16495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16503 # Find out how to test for executable files. Don't use a zero-byte file,
16504 # as systems may use methods other than mode bits to determine executability.
16505 cat >conf$$.file <<_ASEOF
16509 chmod +x conf$$.file
16510 if test -x conf$$.file >/dev/null 2>&1; then
16511 ac_executable_p="test -x"
16513 ac_executable_p="test -f"
16517 # Extract the first word of "msgfmt", so it can be a program name with args.
16518 set dummy msgfmt; ac_word=$2
16519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16521 if test "${ac_cv_path_MSGFMT+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16529 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16530 for ac_dir in $PATH; do
16532 test -z "$ac_dir" && ac_dir=.
16533 for ac_exec_ext in '' $ac_executable_extensions; do
16534 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16535 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16536 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16537 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16538 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16545 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16549 MSGFMT="$ac_cv_path_MSGFMT"
16550 if test "$MSGFMT" != ":"; then
16551 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16552 echo "${ECHO_T}$MSGFMT" >&6; }
16554 { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16559 set dummy gmsgfmt; ac_word=$2
16560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16585 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16589 GMSGFMT=$ac_cv_path_GMSGFMT
16590 if test -n "$GMSGFMT"; then
16591 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16592 echo "${ECHO_T}$GMSGFMT" >&6; }
16594 { echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6; }
16601 # Prepare PATH_SEPARATOR.
16602 # The user is always right.
16603 if test "${PATH_SEPARATOR+set}" != set; then
16604 echo "#! /bin/sh" >conf$$.sh
16605 echo "exit 0" >>conf$$.sh
16607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16615 # Find out how to test for executable files. Don't use a zero-byte file,
16616 # as systems may use methods other than mode bits to determine executability.
16617 cat >conf$$.file <<_ASEOF
16621 chmod +x conf$$.file
16622 if test -x conf$$.file >/dev/null 2>&1; then
16623 ac_executable_p="test -x"
16625 ac_executable_p="test -f"
16629 # Extract the first word of "xgettext", so it can be a program name with args.
16630 set dummy xgettext; ac_word=$2
16631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16633 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 case "$XGETTEXT" in
16638 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16641 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16642 for ac_dir in $PATH; do
16644 test -z "$ac_dir" && ac_dir=.
16645 for ac_exec_ext in '' $ac_executable_extensions; do
16646 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16647 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16648 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16649 (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
16650 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16657 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16661 XGETTEXT="$ac_cv_path_XGETTEXT"
16662 if test "$XGETTEXT" != ":"; then
16663 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16664 echo "${ECHO_T}$XGETTEXT" >&6; }
16666 { echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6; }
16673 # Prepare PATH_SEPARATOR.
16674 # The user is always right.
16675 if test "${PATH_SEPARATOR+set}" != set; then
16676 echo "#! /bin/sh" >conf$$.sh
16677 echo "exit 0" >>conf$$.sh
16679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16687 # Find out how to test for executable files. Don't use a zero-byte file,
16688 # as systems may use methods other than mode bits to determine executability.
16689 cat >conf$$.file <<_ASEOF
16693 chmod +x conf$$.file
16694 if test -x conf$$.file >/dev/null 2>&1; then
16695 ac_executable_p="test -x"
16697 ac_executable_p="test -f"
16701 # Extract the first word of "msgmerge", so it can be a program name with args.
16702 set dummy msgmerge; ac_word=$2
16703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 case "$MSGMERGE" in
16710 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16713 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16714 for ac_dir in $PATH; do
16716 test -z "$ac_dir" && ac_dir=.
16717 for ac_exec_ext in '' $ac_executable_extensions; do
16718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16719 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16720 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16721 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16728 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16732 MSGMERGE="$ac_cv_path_MSGMERGE"
16733 if test "$MSGMERGE" != ":"; then
16734 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16735 echo "${ECHO_T}$MSGMERGE" >&6; }
16737 { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16742 if test "$GMSGFMT" != ":"; then
16743 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16744 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16747 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16748 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16749 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16754 if test "$XGETTEXT" != ":"; then
16755 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16756 (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
16759 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16760 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16766 ac_config_commands="$ac_config_commands default-1"
16770 if test "X$prefix" = "XNONE"; then
16771 acl_final_prefix="$ac_default_prefix"
16773 acl_final_prefix="$prefix"
16775 if test "X$exec_prefix" = "XNONE"; then
16776 acl_final_exec_prefix='${prefix}'
16778 acl_final_exec_prefix="$exec_prefix"
16780 acl_save_prefix="$prefix"
16781 prefix="$acl_final_prefix"
16782 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16783 prefix="$acl_save_prefix"
16786 # Check whether --with-gnu-ld was given.
16787 if test "${with_gnu_ld+set}" = set; then
16788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16793 # Prepare PATH_SEPARATOR.
16794 # The user is always right.
16795 if test "${PATH_SEPARATOR+set}" != set; then
16796 echo "#! /bin/sh" >conf$$.sh
16797 echo "exit 0" >>conf$$.sh
16799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16807 if test "$GCC" = yes; then
16808 # Check if gcc -print-prog-name=ld gives a path.
16809 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16810 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16813 # gcc leaves a trailing carriage return which upsets mingw
16814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16819 # Accept absolute paths.
16820 [\\/]* | [A-Za-z]:[\\/]*)
16821 re_direlt='/[^/][^/]*/\.\./'
16822 # Canonicalize the path of ld
16823 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16824 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16825 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16827 test -z "$LD" && LD="$ac_prog"
16830 # If it fails, then pretend we aren't using GCC.
16834 # If it is relative, then search for the first ld in PATH.
16835 with_gnu_ld=unknown
16838 elif test "$with_gnu_ld" = yes; then
16839 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16842 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16845 if test "${acl_cv_path_LD+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 if test -z "$LD"; then
16849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16850 for ac_dir in $PATH; do
16851 test -z "$ac_dir" && ac_dir=.
16852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853 acl_cv_path_LD="$ac_dir/$ac_prog"
16854 # Check to see if the program is GNU ld. I'd rather use --version,
16855 # but apparently some GNU ld's only accept -v.
16856 # Break only if it was the GNU/non-GNU ld that we prefer.
16857 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16858 *GNU* | *'with BFD'*)
16859 test "$with_gnu_ld" != no && break ;;
16861 test "$with_gnu_ld" != yes && break ;;
16867 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16871 LD="$acl_cv_path_LD"
16872 if test -n "$LD"; then
16873 { echo "$as_me:$LINENO: result: $LD" >&5
16874 echo "${ECHO_T}$LD" >&6; }
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16881 { (exit 1); exit 1; }; }
16882 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16883 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16884 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890 acl_cv_prog_gnu_ld=yes ;;
16892 acl_cv_prog_gnu_ld=no ;;
16895 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16896 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16897 with_gnu_ld=$acl_cv_prog_gnu_ld
16902 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16903 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16904 if test "${acl_cv_rpath+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16909 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16911 rm -f ./conftest.sh
16915 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16916 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16918 libext="$acl_cv_libext"
16919 shlibext="$acl_cv_shlibext"
16920 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16921 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16922 hardcode_direct="$acl_cv_hardcode_direct"
16923 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16924 # Check whether --enable-rpath was given.
16925 if test "${enable_rpath+set}" = set; then
16926 enableval=$enable_rpath; :
16940 acl_save_prefix="$prefix"
16941 prefix="$acl_final_prefix"
16942 acl_save_exec_prefix="$exec_prefix"
16943 exec_prefix="$acl_final_exec_prefix"
16945 eval additional_includedir=\"$includedir\"
16946 eval additional_libdir=\"$libdir\"
16948 exec_prefix="$acl_save_exec_prefix"
16949 prefix="$acl_save_prefix"
16952 # Check whether --with-libiconv-prefix was given.
16953 if test "${with_libiconv_prefix+set}" = set; then
16954 withval=$with_libiconv_prefix;
16955 if test "X$withval" = "Xno"; then
16958 if test "X$withval" = "X"; then
16960 acl_save_prefix="$prefix"
16961 prefix="$acl_final_prefix"
16962 acl_save_exec_prefix="$exec_prefix"
16963 exec_prefix="$acl_final_exec_prefix"
16965 eval additional_includedir=\"$includedir\"
16966 eval additional_libdir=\"$libdir\"
16968 exec_prefix="$acl_save_exec_prefix"
16969 prefix="$acl_save_prefix"
16972 additional_includedir="$withval/include"
16973 additional_libdir="$withval/lib"
16984 names_already_handled=
16985 names_next_round='iconv '
16986 while test -n "$names_next_round"; do
16987 names_this_round="$names_next_round"
16989 for name in $names_this_round; do
16991 for n in $names_already_handled; do
16992 if test "$n" = "$name"; then
16993 already_handled=yes
16997 if test -z "$already_handled"; then
16998 names_already_handled="$names_already_handled $name"
16999 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17000 eval value=\"\$HAVE_LIB$uppername\"
17001 if test -n "$value"; then
17002 if test "$value" = yes; then
17003 eval value=\"\$LIB$uppername\"
17004 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17005 eval value=\"\$LTLIB$uppername\"
17006 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17015 if test $use_additional = yes; then
17016 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17017 found_dir="$additional_libdir"
17018 found_so="$additional_libdir/lib$name.$shlibext"
17019 if test -f "$additional_libdir/lib$name.la"; then
17020 found_la="$additional_libdir/lib$name.la"
17023 if test -f "$additional_libdir/lib$name.$libext"; then
17024 found_dir="$additional_libdir"
17025 found_a="$additional_libdir/lib$name.$libext"
17026 if test -f "$additional_libdir/lib$name.la"; then
17027 found_la="$additional_libdir/lib$name.la"
17032 if test "X$found_dir" = "X"; then
17033 for x in $LDFLAGS $LTLIBICONV; do
17035 acl_save_prefix="$prefix"
17036 prefix="$acl_final_prefix"
17037 acl_save_exec_prefix="$exec_prefix"
17038 exec_prefix="$acl_final_exec_prefix"
17040 exec_prefix="$acl_save_exec_prefix"
17041 prefix="$acl_save_prefix"
17045 dir=`echo "X$x" | sed -e 's/^X-L//'`
17046 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17048 found_so="$dir/lib$name.$shlibext"
17049 if test -f "$dir/lib$name.la"; then
17050 found_la="$dir/lib$name.la"
17053 if test -f "$dir/lib$name.$libext"; then
17055 found_a="$dir/lib$name.$libext"
17056 if test -f "$dir/lib$name.la"; then
17057 found_la="$dir/lib$name.la"
17063 if test "X$found_dir" != "X"; then
17068 if test "X$found_dir" != "X"; then
17069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17070 if test "X$found_so" != "X"; then
17071 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17075 for x in $ltrpathdirs; do
17076 if test "X$x" = "X$found_dir"; then
17081 if test -z "$haveit"; then
17082 ltrpathdirs="$ltrpathdirs $found_dir"
17084 if test "$hardcode_direct" = yes; then
17085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17087 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 for x in $rpathdirs; do
17091 if test "X$x" = "X$found_dir"; then
17096 if test -z "$haveit"; then
17097 rpathdirs="$rpathdirs $found_dir"
17101 for x in $LDFLAGS $LIBICONV; do
17103 acl_save_prefix="$prefix"
17104 prefix="$acl_final_prefix"
17105 acl_save_exec_prefix="$exec_prefix"
17106 exec_prefix="$acl_final_exec_prefix"
17108 exec_prefix="$acl_save_exec_prefix"
17109 prefix="$acl_save_prefix"
17111 if test "X$x" = "X-L$found_dir"; then
17116 if test -z "$haveit"; then
17117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17119 if test "$hardcode_minus_L" != no; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17128 if test "X$found_a" != "X"; then
17129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17134 additional_includedir=
17135 case "$found_dir" in
17137 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17138 additional_includedir="$basedir/include"
17141 if test "X$additional_includedir" != "X"; then
17142 if test "X$additional_includedir" != "X/usr/include"; then
17144 if test "X$additional_includedir" = "X/usr/local/include"; then
17145 if test -n "$GCC"; then
17147 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17151 if test -z "$haveit"; then
17152 for x in $CPPFLAGS $INCICONV; do
17154 acl_save_prefix="$prefix"
17155 prefix="$acl_final_prefix"
17156 acl_save_exec_prefix="$exec_prefix"
17157 exec_prefix="$acl_final_exec_prefix"
17159 exec_prefix="$acl_save_exec_prefix"
17160 prefix="$acl_save_prefix"
17162 if test "X$x" = "X-I$additional_includedir"; then
17167 if test -z "$haveit"; then
17168 if test -d "$additional_includedir"; then
17169 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17175 if test -n "$found_la"; then
17176 save_libdir="$libdir"
17177 case "$found_la" in
17178 */* | *\\*) . "$found_la" ;;
17179 *) . "./$found_la" ;;
17181 libdir="$save_libdir"
17182 for dep in $dependency_libs; do
17185 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17186 if test "X$additional_libdir" != "X/usr/lib"; then
17188 if test "X$additional_libdir" = "X/usr/local/lib"; then
17189 if test -n "$GCC"; then
17191 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17195 if test -z "$haveit"; then
17197 for x in $LDFLAGS $LIBICONV; do
17199 acl_save_prefix="$prefix"
17200 prefix="$acl_final_prefix"
17201 acl_save_exec_prefix="$exec_prefix"
17202 exec_prefix="$acl_final_exec_prefix"
17204 exec_prefix="$acl_save_exec_prefix"
17205 prefix="$acl_save_prefix"
17207 if test "X$x" = "X-L$additional_libdir"; then
17212 if test -z "$haveit"; then
17213 if test -d "$additional_libdir"; then
17214 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17218 for x in $LDFLAGS $LTLIBICONV; do
17220 acl_save_prefix="$prefix"
17221 prefix="$acl_final_prefix"
17222 acl_save_exec_prefix="$exec_prefix"
17223 exec_prefix="$acl_final_exec_prefix"
17225 exec_prefix="$acl_save_exec_prefix"
17226 prefix="$acl_save_prefix"
17228 if test "X$x" = "X-L$additional_libdir"; then
17233 if test -z "$haveit"; then
17234 if test -d "$additional_libdir"; then
17235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17242 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17243 if test "$enable_rpath" != no; then
17245 for x in $rpathdirs; do
17246 if test "X$x" = "X$dir"; then
17251 if test -z "$haveit"; then
17252 rpathdirs="$rpathdirs $dir"
17255 for x in $ltrpathdirs; do
17256 if test "X$x" = "X$dir"; then
17261 if test -z "$haveit"; then
17262 ltrpathdirs="$ltrpathdirs $dir"
17267 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17273 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17274 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17280 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17281 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17287 if test "X$rpathdirs" != "X"; then
17288 if test -n "$hardcode_libdir_separator"; then
17290 for found_dir in $rpathdirs; do
17291 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17293 acl_save_libdir="$libdir"
17295 eval flag=\"$hardcode_libdir_flag_spec\"
17296 libdir="$acl_save_libdir"
17297 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17299 for found_dir in $rpathdirs; do
17300 acl_save_libdir="$libdir"
17301 libdir="$found_dir"
17302 eval flag=\"$hardcode_libdir_flag_spec\"
17303 libdir="$acl_save_libdir"
17304 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308 if test "X$ltrpathdirs" != "X"; then
17309 for found_dir in $ltrpathdirs; do
17310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17331 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17332 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17333 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 gt_save_CPPFLAGS="$CPPFLAGS"
17337 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17338 gt_save_LIBS="$LIBS"
17339 LIBS="$LIBS -framework CoreFoundation"
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <CFPreferences.h>
17350 CFPreferencesCopyAppValue(NULL, NULL)
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 gt_cv_func_CFPreferencesCopyAppValue=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 gt_cv_func_CFPreferencesCopyAppValue=no
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17383 CPPFLAGS="$gt_save_CPPFLAGS"
17384 LIBS="$gt_save_LIBS"
17386 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17387 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17388 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17395 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17396 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 gt_save_CPPFLAGS="$CPPFLAGS"
17401 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17402 gt_save_LIBS="$LIBS"
17403 LIBS="$LIBS -framework CoreFoundation"
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #include <CFLocale.h>
17414 CFLocaleCopyCurrent();
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
17437 gt_cv_func_CFLocaleCopyCurrent=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 gt_cv_func_CFLocaleCopyCurrent=no
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17447 CPPFLAGS="$gt_save_CPPFLAGS"
17448 LIBS="$gt_save_LIBS"
17450 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17451 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17452 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CFLOCALECOPYCURRENT 1
17460 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17467 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17468 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17469 # Check whether --enable-nls was given.
17470 if test "${enable_nls+set}" = set; then
17471 enableval=$enable_nls; USE_NLS=$enableval
17476 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17477 echo "${ECHO_T}$USE_NLS" >&6; }
17486 if test "$USE_NLS" = "yes"; then
17487 gt_use_preinstalled_gnugettext=no
17494 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17495 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17496 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <libintl.h>
17506 extern int _nl_msg_cat_cntr;
17507 extern int *_nl_domain_bindings;
17511 bindtextdomain ("", "");
17512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest$ac_exeext &&
17534 $as_test_x conftest$ac_exeext; then
17535 gt_cv_func_gnugettext1_libc=yes
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 gt_cv_func_gnugettext1_libc=no
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17546 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17547 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17549 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17555 am_save_CPPFLAGS="$CPPFLAGS"
17557 for element in $INCICONV; do
17559 for x in $CPPFLAGS; do
17561 acl_save_prefix="$prefix"
17562 prefix="$acl_final_prefix"
17563 acl_save_exec_prefix="$exec_prefix"
17564 exec_prefix="$acl_final_exec_prefix"
17566 exec_prefix="$acl_save_exec_prefix"
17567 prefix="$acl_save_prefix"
17569 if test "X$x" = "X$element"; then
17574 if test -z "$haveit"; then
17575 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17580 { echo "$as_me:$LINENO: checking for iconv" >&5
17581 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17582 if test "${am_cv_func_iconv+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 am_cv_func_iconv="no, consider installing GNU libiconv"
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <stdlib.h>
17599 iconv_t cd = iconv_open("","");
17600 iconv(cd,NULL,NULL,NULL,NULL);
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 am_cv_func_iconv=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 if test "$am_cv_func_iconv" != yes; then
17635 am_save_LIBS="$LIBS"
17636 LIBS="$LIBS $LIBICONV"
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <stdlib.h>
17648 iconv_t cd = iconv_open("","");
17649 iconv(cd,NULL,NULL,NULL,NULL);
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest$ac_exeext &&
17672 $as_test_x conftest$ac_exeext; then
17673 am_cv_lib_iconv=yes
17674 am_cv_func_iconv=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683 conftest$ac_exeext conftest.$ac_ext
17684 LIBS="$am_save_LIBS"
17688 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17689 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17690 if test "$am_cv_func_iconv" = yes; then
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_ICONV 1
17697 if test "$am_cv_lib_iconv" = yes; then
17698 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17699 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17700 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17701 echo "${ECHO_T}$LIBICONV" >&6; }
17703 CPPFLAGS="$am_save_CPPFLAGS"
17715 acl_save_prefix="$prefix"
17716 prefix="$acl_final_prefix"
17717 acl_save_exec_prefix="$exec_prefix"
17718 exec_prefix="$acl_final_exec_prefix"
17720 eval additional_includedir=\"$includedir\"
17721 eval additional_libdir=\"$libdir\"
17723 exec_prefix="$acl_save_exec_prefix"
17724 prefix="$acl_save_prefix"
17727 # Check whether --with-libintl-prefix was given.
17728 if test "${with_libintl_prefix+set}" = set; then
17729 withval=$with_libintl_prefix;
17730 if test "X$withval" = "Xno"; then
17733 if test "X$withval" = "X"; then
17735 acl_save_prefix="$prefix"
17736 prefix="$acl_final_prefix"
17737 acl_save_exec_prefix="$exec_prefix"
17738 exec_prefix="$acl_final_exec_prefix"
17740 eval additional_includedir=\"$includedir\"
17741 eval additional_libdir=\"$libdir\"
17743 exec_prefix="$acl_save_exec_prefix"
17744 prefix="$acl_save_prefix"
17747 additional_includedir="$withval/include"
17748 additional_libdir="$withval/lib"
17759 names_already_handled=
17760 names_next_round='intl '
17761 while test -n "$names_next_round"; do
17762 names_this_round="$names_next_round"
17764 for name in $names_this_round; do
17766 for n in $names_already_handled; do
17767 if test "$n" = "$name"; then
17768 already_handled=yes
17772 if test -z "$already_handled"; then
17773 names_already_handled="$names_already_handled $name"
17774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17775 eval value=\"\$HAVE_LIB$uppername\"
17776 if test -n "$value"; then
17777 if test "$value" = yes; then
17778 eval value=\"\$LIB$uppername\"
17779 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17780 eval value=\"\$LTLIB$uppername\"
17781 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17790 if test $use_additional = yes; then
17791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17792 found_dir="$additional_libdir"
17793 found_so="$additional_libdir/lib$name.$shlibext"
17794 if test -f "$additional_libdir/lib$name.la"; then
17795 found_la="$additional_libdir/lib$name.la"
17798 if test -f "$additional_libdir/lib$name.$libext"; then
17799 found_dir="$additional_libdir"
17800 found_a="$additional_libdir/lib$name.$libext"
17801 if test -f "$additional_libdir/lib$name.la"; then
17802 found_la="$additional_libdir/lib$name.la"
17807 if test "X$found_dir" = "X"; then
17808 for x in $LDFLAGS $LTLIBINTL; do
17810 acl_save_prefix="$prefix"
17811 prefix="$acl_final_prefix"
17812 acl_save_exec_prefix="$exec_prefix"
17813 exec_prefix="$acl_final_exec_prefix"
17815 exec_prefix="$acl_save_exec_prefix"
17816 prefix="$acl_save_prefix"
17820 dir=`echo "X$x" | sed -e 's/^X-L//'`
17821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17823 found_so="$dir/lib$name.$shlibext"
17824 if test -f "$dir/lib$name.la"; then
17825 found_la="$dir/lib$name.la"
17828 if test -f "$dir/lib$name.$libext"; then
17830 found_a="$dir/lib$name.$libext"
17831 if test -f "$dir/lib$name.la"; then
17832 found_la="$dir/lib$name.la"
17838 if test "X$found_dir" != "X"; then
17843 if test "X$found_dir" != "X"; then
17844 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17845 if test "X$found_so" != "X"; then
17846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17850 for x in $ltrpathdirs; do
17851 if test "X$x" = "X$found_dir"; then
17856 if test -z "$haveit"; then
17857 ltrpathdirs="$ltrpathdirs $found_dir"
17859 if test "$hardcode_direct" = yes; then
17860 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 for x in $rpathdirs; do
17866 if test "X$x" = "X$found_dir"; then
17871 if test -z "$haveit"; then
17872 rpathdirs="$rpathdirs $found_dir"
17876 for x in $LDFLAGS $LIBINTL; do
17878 acl_save_prefix="$prefix"
17879 prefix="$acl_final_prefix"
17880 acl_save_exec_prefix="$exec_prefix"
17881 exec_prefix="$acl_final_exec_prefix"
17883 exec_prefix="$acl_save_exec_prefix"
17884 prefix="$acl_save_prefix"
17886 if test "X$x" = "X-L$found_dir"; then
17891 if test -z "$haveit"; then
17892 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17894 if test "$hardcode_minus_L" != no; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17897 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17903 if test "X$found_a" != "X"; then
17904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17906 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17909 additional_includedir=
17910 case "$found_dir" in
17912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17913 additional_includedir="$basedir/include"
17916 if test "X$additional_includedir" != "X"; then
17917 if test "X$additional_includedir" != "X/usr/include"; then
17919 if test "X$additional_includedir" = "X/usr/local/include"; then
17920 if test -n "$GCC"; then
17922 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926 if test -z "$haveit"; then
17927 for x in $CPPFLAGS $INCINTL; do
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17937 if test "X$x" = "X-I$additional_includedir"; then
17942 if test -z "$haveit"; then
17943 if test -d "$additional_includedir"; then
17944 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17950 if test -n "$found_la"; then
17951 save_libdir="$libdir"
17952 case "$found_la" in
17953 */* | *\\*) . "$found_la" ;;
17954 *) . "./$found_la" ;;
17956 libdir="$save_libdir"
17957 for dep in $dependency_libs; do
17960 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17961 if test "X$additional_libdir" != "X/usr/lib"; then
17963 if test "X$additional_libdir" = "X/usr/local/lib"; then
17964 if test -n "$GCC"; then
17966 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17970 if test -z "$haveit"; then
17972 for x in $LDFLAGS $LIBINTL; do
17974 acl_save_prefix="$prefix"
17975 prefix="$acl_final_prefix"
17976 acl_save_exec_prefix="$exec_prefix"
17977 exec_prefix="$acl_final_exec_prefix"
17979 exec_prefix="$acl_save_exec_prefix"
17980 prefix="$acl_save_prefix"
17982 if test "X$x" = "X-L$additional_libdir"; then
17987 if test -z "$haveit"; then
17988 if test -d "$additional_libdir"; then
17989 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17993 for x in $LDFLAGS $LTLIBINTL; do
17995 acl_save_prefix="$prefix"
17996 prefix="$acl_final_prefix"
17997 acl_save_exec_prefix="$exec_prefix"
17998 exec_prefix="$acl_final_exec_prefix"
18000 exec_prefix="$acl_save_exec_prefix"
18001 prefix="$acl_save_prefix"
18003 if test "X$x" = "X-L$additional_libdir"; then
18008 if test -z "$haveit"; then
18009 if test -d "$additional_libdir"; then
18010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18017 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18018 if test "$enable_rpath" != no; then
18020 for x in $rpathdirs; do
18021 if test "X$x" = "X$dir"; then
18026 if test -z "$haveit"; then
18027 rpathdirs="$rpathdirs $dir"
18030 for x in $ltrpathdirs; do
18031 if test "X$x" = "X$dir"; then
18036 if test -z "$haveit"; then
18037 ltrpathdirs="$ltrpathdirs $dir"
18042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18048 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18055 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18056 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18062 if test "X$rpathdirs" != "X"; then
18063 if test -n "$hardcode_libdir_separator"; then
18065 for found_dir in $rpathdirs; do
18066 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18068 acl_save_libdir="$libdir"
18070 eval flag=\"$hardcode_libdir_flag_spec\"
18071 libdir="$acl_save_libdir"
18072 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18074 for found_dir in $rpathdirs; do
18075 acl_save_libdir="$libdir"
18076 libdir="$found_dir"
18077 eval flag=\"$hardcode_libdir_flag_spec\"
18078 libdir="$acl_save_libdir"
18079 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083 if test "X$ltrpathdirs" != "X"; then
18084 for found_dir in $ltrpathdirs; do
18085 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18089 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18090 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18091 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 gt_save_CPPFLAGS="$CPPFLAGS"
18095 CPPFLAGS="$CPPFLAGS $INCINTL"
18096 gt_save_LIBS="$LIBS"
18097 LIBS="$LIBS $LIBINTL"
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <libintl.h>
18105 extern int _nl_msg_cat_cntr;
18110 const char *_nl_expand_alias (const char *);
18114 bindtextdomain ("", "");
18115 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_c_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest$ac_exeext &&
18137 $as_test_x conftest$ac_exeext; then
18138 gt_cv_func_gnugettext1_libintl=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 gt_cv_func_gnugettext1_libintl=no
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147 conftest$ac_exeext conftest.$ac_ext
18148 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18149 LIBS="$LIBS $LIBICONV"
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <libintl.h>
18157 extern int _nl_msg_cat_cntr;
18162 const char *_nl_expand_alias (const char *);
18166 bindtextdomain ("", "");
18167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext &&
18189 $as_test_x conftest$ac_exeext; then
18190 LIBINTL="$LIBINTL $LIBICONV"
18191 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18192 gt_cv_func_gnugettext1_libintl=yes
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18204 CPPFLAGS="$gt_save_CPPFLAGS"
18205 LIBS="$gt_save_LIBS"
18207 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18208 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18211 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18212 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18213 && test "$PACKAGE" != gettext-runtime \
18214 && test "$PACKAGE" != gettext-tools; }; then
18215 gt_use_preinstalled_gnugettext=yes
18224 if test -n "$INTL_MACOSX_LIBS"; then
18225 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18226 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18227 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18228 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18232 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18235 cat >>confdefs.h <<\_ACEOF
18236 #define ENABLE_NLS 1
18244 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18245 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18247 echo "${ECHO_T}$USE_NLS" >&6; }
18248 if test "$USE_NLS" = "yes"; then
18249 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18250 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18251 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18252 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18253 gt_source="external libintl"
18258 gt_source="included intl directory"
18260 { echo "$as_me:$LINENO: result: $gt_source" >&5
18261 echo "${ECHO_T}$gt_source" >&6; }
18264 if test "$USE_NLS" = "yes"; then
18266 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18269 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18270 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18271 echo "${ECHO_T}$LIBINTL" >&6; }
18273 for element in $INCINTL; do
18275 for x in $CPPFLAGS; do
18277 acl_save_prefix="$prefix"
18278 prefix="$acl_final_prefix"
18279 acl_save_exec_prefix="$exec_prefix"
18280 exec_prefix="$acl_final_exec_prefix"
18282 exec_prefix="$acl_save_exec_prefix"
18283 prefix="$acl_save_prefix"
18285 if test "X$x" = "X$element"; then
18290 if test -z "$haveit"; then
18291 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_GETTEXT 1
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_DCGETTEXT 1
18314 INTLLIBS="$LIBINTL"
18322 os_name=`uname -s 2>/dev/null`
18323 if test x${prefix} = xNONE ; then
18324 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325 sysconfdir=/etc/bacula
18328 if test `eval echo ${libdir}` = NONE/lib ; then
18331 os_processor=`uname -p 2>/dev/null`
18332 case ${os_processor} in
18347 if test `eval echo ${includedir}` = NONE/include ; then
18348 includedir=/usr/include
18351 if test `eval echo ${datarootdir}` = NONE/share ; then
18352 datarootdir=/usr/share
18357 if test x${exec_prefix} = xNONE ; then
18358 exec_prefix=${prefix}
18361 sysconfdir=`eval echo ${sysconfdir}`
18362 datarootdir=`eval echo ${datarootdir}`
18363 docdir=`eval echo ${docdir}`
18364 htmldir=`eval echo ${htmldir}`
18365 libdir=`eval echo ${libdir}`
18366 includedir=`eval echo ${includedir}`
18367 localedir=`eval echo ${datarootdir}/locale`
18368 cat >>confdefs.h <<_ACEOF
18369 #define SYSCONFDIR "$sysconfdir"
18372 cat >>confdefs.h <<_ACEOF
18373 #define LOCALEDIR "$localedir"
18377 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18378 sbindir=${exec_prefix}/sbin
18380 sbindir=`eval echo ${sbindir}`
18382 if test x$mandir = x'${prefix}/man' ; then
18383 mandir=/usr/share/man
18386 if test x$htmldir = x${docdir} ; then
18387 htmldir=`eval echo ${docdir}bacula/html`
18390 if test x$docdir = x'/usr/share/doc/' ; then
18391 docdir=`eval echo ${docdir}bacula`
18395 for ac_prog in msgfmt
18397 # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18401 if test "${ac_cv_path_MSGFMT+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18413 test -z "$as_dir" && as_dir=.
18414 for ac_exec_ext in '' $ac_executable_extensions; do
18415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18427 MSGFMT=$ac_cv_path_MSGFMT
18428 if test -n "$MSGFMT"; then
18429 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18430 echo "${ECHO_T}$MSGFMT" >&6; }
18432 { echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6; }
18437 test -n "$MSGFMT" && break
18439 test -n "$MSGFMT" || MSGFMT="no"
18441 if test "$MSGFMT" = "no"
18443 echo 'msgfmt program not found, disabling NLS !'
18445 USE_INCLUDED_LIBINTL=no
18448 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18449 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18450 if test "${ac_cv_gnu_library_2+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18460 #include <features.h>
18461 #ifdef __GNU_LIBRARY__
18462 #if (__GLIBC__ >= 2)
18468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18469 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18470 ac_cv_gnu_library_2=yes
18472 ac_cv_gnu_library_2=no
18479 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18480 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18482 GLIBC2="$ac_cv_gnu_library_2"
18485 if test -n "$ac_tool_prefix"; then
18486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18490 if test "${ac_cv_prog_RANLIB+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 if test -n "$RANLIB"; then
18494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18500 test -z "$as_dir" && as_dir=.
18501 for ac_exec_ext in '' $ac_executable_extensions; do
18502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18513 RANLIB=$ac_cv_prog_RANLIB
18514 if test -n "$RANLIB"; then
18515 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18516 echo "${ECHO_T}$RANLIB" >&6; }
18518 { echo "$as_me:$LINENO: result: no" >&5
18519 echo "${ECHO_T}no" >&6; }
18524 if test -z "$ac_cv_prog_RANLIB"; then
18525 ac_ct_RANLIB=$RANLIB
18526 # Extract the first word of "ranlib", so it can be a program name with args.
18527 set dummy ranlib; ac_word=$2
18528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 if test -n "$ac_ct_RANLIB"; then
18534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18540 test -z "$as_dir" && as_dir=.
18541 for ac_exec_ext in '' $ac_executable_extensions; do
18542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543 ac_cv_prog_ac_ct_RANLIB="ranlib"
18544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18554 if test -n "$ac_ct_RANLIB"; then
18555 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18558 { echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6; }
18562 if test "x$ac_ct_RANLIB" = x; then
18565 case $cross_compiling:$ac_tool_warned in
18567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18568 whose name does not start with the host triplet. If you think this
18569 configuration is useful to you, please write to autoconf@gnu.org." >&5
18570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet. If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18573 ac_tool_warned=yes ;;
18575 RANLIB=$ac_ct_RANLIB
18578 RANLIB="$ac_cv_prog_RANLIB"
18582 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18583 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18584 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lcposix $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 /* Override any GCC internal prototype to avoid an error.
18597 Use char because int might match the return type of a GCC
18598 builtin and then its argument prototype would still apply. */
18606 return strerror ();
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest$ac_exeext &&
18628 $as_test_x conftest$ac_exeext; then
18629 ac_cv_lib_cposix_strerror=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_lib_cposix_strerror=no
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638 conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18642 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18643 if test $ac_cv_lib_cposix_strerror = yes; then
18644 LIBS="$LIBS -lcposix"
18649 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18651 if test "${ac_cv_c_const+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18664 /* FIXME: Include the comments suggested by Paul. */
18665 #ifndef __cplusplus
18666 /* Ultrix mips cc rejects this. */
18667 typedef int charset[2];
18669 /* SunOS 4.1.1 cc rejects this. */
18670 char const *const *pcpcc;
18672 /* NEC SVR4.0.2 mips cc rejects this. */
18673 struct point {int x, y;};
18674 static struct point const zero = {0,0};
18675 /* AIX XL C 1.02.0.0 rejects this.
18676 It does not let you subtract one const X* pointer from another in
18677 an arm of an if-expression whose if-part is not a constant
18679 const char *g = "string";
18680 pcpcc = &g + (g ? g-g : 0);
18681 /* HPUX 7.0 cc rejects these. */
18683 ppc = (char**) pcpcc;
18684 pcpcc = (char const *const *) ppc;
18685 { /* SCO 3.2v4 cc rejects this. */
18687 char const *s = 0 ? (char *) 0 : (char const *) 0;
18692 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18693 int x[] = {25, 17};
18694 const int *foo = &x[0];
18697 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18698 typedef const int *iptr;
18702 { /* AIX XL C 1.02.0.0 rejects this saying
18703 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18704 struct s { int j; const int *ap[3]; };
18705 struct s *b; b->j = 5;
18707 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18708 const int foo = 10;
18709 if (!foo) return 0;
18711 return !cs[0] && !zero.x;
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_compile") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest.$ac_objext; then
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18746 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18747 if test $ac_cv_c_const = no; then
18749 cat >>confdefs.h <<\_ACEOF
18756 { echo "$as_me:$LINENO: checking for signed" >&5
18757 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18758 if test "${bh_cv_c_signed+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18776 rm -f conftest.$ac_objext
18777 if { (ac_try="$ac_compile"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_compile") 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } && {
18790 test -z "$ac_c_werror_flag" ||
18791 test ! -s conftest.err
18792 } && test -s conftest.$ac_objext; then
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18804 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18805 if test $bh_cv_c_signed = no; then
18807 cat >>confdefs.h <<\_ACEOF
18813 { echo "$as_me:$LINENO: checking for inline" >&5
18814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18815 if test "${ac_cv_c_inline+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 for ac_kw in inline __inline__ __inline; do
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #ifndef __cplusplus
18828 static $ac_kw foo_t static_foo () {return 0; }
18829 $ac_kw foo_t foo () {return 0; }
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_compile") 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest.$ac_objext; then
18850 ac_cv_c_inline=$ac_kw
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859 test "$ac_cv_c_inline" != no && break
18863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18867 case $ac_cv_c_inline in
18870 case $ac_cv_c_inline in
18872 *) ac_val=$ac_cv_c_inline;;
18874 cat >>confdefs.h <<_ACEOF
18875 #ifndef __cplusplus
18876 #define inline $ac_val
18882 { echo "$as_me:$LINENO: checking for off_t" >&5
18883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18884 if test "${ac_cv_type_off_t+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 $ac_includes_default
18894 typedef off_t ac__type_new_;
18898 if ((ac__type_new_ *) 0)
18900 if (sizeof (ac__type_new_))
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_compile") 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && {
18920 test -z "$ac_c_werror_flag" ||
18921 test ! -s conftest.err
18922 } && test -s conftest.$ac_objext; then
18923 ac_cv_type_off_t=yes
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_cv_type_off_t=no
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18934 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18935 if test $ac_cv_type_off_t = yes; then
18939 cat >>confdefs.h <<_ACEOF
18940 #define off_t long int
18945 { echo "$as_me:$LINENO: checking for size_t" >&5
18946 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_size_t+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 $ac_includes_default
18957 typedef size_t ac__type_new_;
18961 if ((ac__type_new_ *) 0)
18963 if (sizeof (ac__type_new_))
18969 rm -f conftest.$ac_objext
18970 if { (ac_try="$ac_compile"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_compile") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest.$ac_objext; then
18986 ac_cv_type_size_t=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_cv_type_size_t=no
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18998 if test $ac_cv_type_size_t = yes; then
19002 cat >>confdefs.h <<_ACEOF
19003 #define size_t unsigned int
19009 { echo "$as_me:$LINENO: checking for long long" >&5
19010 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19011 if test "${ac_cv_type_long_long+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 long long ll = 1LL; int i = 63;
19024 long long llmax = (long long) -1;
19025 return ll << i | ll >> i | llmax / ll | llmax % ll;
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest$ac_exeext &&
19047 $as_test_x conftest$ac_exeext; then
19048 ac_cv_type_long_long=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_cv_type_long_long=no
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057 conftest$ac_exeext conftest.$ac_ext
19059 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19060 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19061 if test $ac_cv_type_long_long = yes; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_LONG_LONG 1
19070 { echo "$as_me:$LINENO: checking for long double" >&5
19071 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19072 if test "${gt_cv_c_long_double+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 if test "$GCC" = yes; then
19076 gt_cv_c_long_double=yes
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19085 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19086 long double foo = 0.0;
19087 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19088 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_compile") 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest.$ac_objext; then
19115 gt_cv_c_long_double=yes
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 gt_cv_c_long_double=no
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19127 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19128 if test $gt_cv_c_long_double = yes; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_LONG_DOUBLE 1
19137 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19138 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19139 if test "${gt_cv_c_wchar_t+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #include <stddef.h>
19149 wchar_t foo = (wchar_t)'\0';
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_compile") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && {
19172 test -z "$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 } && test -s conftest.$ac_objext; then
19175 gt_cv_c_wchar_t=yes
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19186 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19187 if test $gt_cv_c_wchar_t = yes; then
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_WCHAR_T 1
19196 { echo "$as_me:$LINENO: checking for wint_t" >&5
19197 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19198 if test "${gt_cv_c_wint_t+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19208 wint_t foo = (wchar_t)'\0';
19217 rm -f conftest.$ac_objext
19218 if { (ac_try="$ac_compile"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_compile") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest.$ac_objext; then
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19244 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19245 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19246 if test $gt_cv_c_wint_t = yes; then
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_WINT_T 1
19255 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19256 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19257 if test "${gl_cv_header_inttypes_h+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 #include <sys/types.h>
19267 #include <inttypes.h>
19271 uintmax_t i = (uintmax_t) -1;
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 gl_cv_header_inttypes_h=yes
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 gl_cv_header_inttypes_h=no
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19304 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19305 if test $gl_cv_header_inttypes_h = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19314 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19315 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19316 if test "${gl_cv_header_stdint_h+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <sys/types.h>
19326 #include <stdint.h>
19330 uintmax_t i = (uintmax_t) -1;
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_compile") 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && {
19349 test -z "$ac_c_werror_flag" ||
19350 test ! -s conftest.err
19351 } && test -s conftest.$ac_objext; then
19352 gl_cv_header_stdint_h=yes
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 gl_cv_header_stdint_h=no
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19363 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19364 if test $gl_cv_header_stdint_h = yes; then
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_STDINT_H_WITH_UINTMAX 1
19375 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19376 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19377 if test "${gt_cv_c_intmax_t+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 #include <stddef.h>
19388 #include <stdlib.h>
19389 #if HAVE_STDINT_H_WITH_UINTMAX
19390 #include <stdint.h>
19392 #if HAVE_INTTYPES_H_WITH_UINTMAX
19393 #include <inttypes.h>
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest.$ac_objext; then
19421 gt_cv_c_intmax_t=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 gt_cv_c_intmax_t=no
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19432 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19433 if test $gt_cv_c_intmax_t = yes; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_INTMAX_T 1
19443 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19444 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19445 if test "${gt_cv_func_printf_posix+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 if test "$cross_compiling" = yes; then
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19458 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464 $EGREP "notposix" >/dev/null 2>&1; then
19465 gt_cv_func_printf_posix="guessing no"
19467 gt_cv_func_printf_posix="guessing yes"
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19481 #include <string.h>
19482 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19483 dollar expansion (possibly an autoconf bug). */
19484 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19485 static char buf[100];
19488 sprintf (buf, format, 33, 55);
19489 return (strcmp (buf, "55 33") != 0);
19492 rm -f conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 gt_cv_func_printf_posix=yes
19514 echo "$as_me: program exited with status $ac_status" >&5
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ( exit $ac_status )
19519 gt_cv_func_printf_posix=no
19521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19527 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19528 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19529 case $gt_cv_func_printf_posix in
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_POSIX_PRINTF 1
19539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19540 # for constant arguments. Useless!
19541 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19542 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19543 if test "${ac_cv_working_alloca_h+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #include <alloca.h>
19556 char *p = (char *) alloca (2 * sizeof (int));
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_link") 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } && {
19576 test -z "$ac_c_werror_flag" ||
19577 test ! -s conftest.err
19578 } && test -s conftest$ac_exeext &&
19579 $as_test_x conftest$ac_exeext; then
19580 ac_cv_working_alloca_h=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_cv_working_alloca_h=no
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589 conftest$ac_exeext conftest.$ac_ext
19591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19593 if test $ac_cv_working_alloca_h = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA_H 1
19601 { echo "$as_me:$LINENO: checking for alloca" >&5
19602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_alloca_works+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19613 # define alloca __builtin_alloca
19616 # include <malloc.h>
19617 # define alloca _alloca
19619 # ifdef HAVE_ALLOCA_H
19620 # include <alloca.h>
19625 # ifndef alloca /* predefined by HP cc +Olibcalls */
19636 char *p = (char *) alloca (1);
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 ac_cv_func_alloca_works=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_func_alloca_works=no
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19674 if test $ac_cv_func_alloca_works = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19681 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble. Some versions do not even contain alloca or
19683 # contain a buggy version. If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19686 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19688 cat >>confdefs.h <<\_ACEOF
19693 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19695 if test "${ac_cv_os_cray+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #if defined CRAY && ! defined CRAY2
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712 $EGREP "webecray" >/dev/null 2>&1; then
19720 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723 for ac_func in _getb67 GETB67 getb67; do
19724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19738 #define $ac_func innocuous_$ac_func
19740 /* System header to define __stub macros and hopefully few prototypes,
19741 which can conflict with char $ac_func (); below.
19742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743 <limits.h> exists even on freestanding compilers. */
19746 # include <limits.h>
19748 # include <assert.h>
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19760 /* The GNU C library defines this for functions which it implements
19761 to always fail with ENOSYS. Some functions are actually named
19762 something starting with __ and the normal name is an alias. */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19770 return $ac_func ();
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_link") 2>conftest.er1
19784 grep -v '^ *+' conftest.er1 >conftest.err
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && {
19789 test -z "$ac_c_werror_flag" ||
19790 test ! -s conftest.err
19791 } && test -s conftest$ac_exeext &&
19792 $as_test_x conftest$ac_exeext; then
19793 eval "$as_ac_var=yes"
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 eval "$as_ac_var=no"
19801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19802 conftest$ac_exeext conftest.$ac_ext
19804 ac_res=`eval echo '${'$as_ac_var'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_var'}'` = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define CRAY_STACKSEG_END $ac_func
19819 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19821 if test "${ac_cv_c_stack_direction+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 if test "$cross_compiling" = yes; then
19825 ac_cv_c_stack_direction=0
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833 $ac_includes_default
19835 find_stack_direction ()
19837 static char *addr = 0;
19842 return find_stack_direction ();
19845 return (&dummy > addr) ? 1 : -1;
19851 return find_stack_direction () < 0;
19854 rm -f conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_link") 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 ac_cv_c_stack_direction=1
19876 echo "$as_me: program exited with status $ac_status" >&5
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ( exit $ac_status )
19881 ac_cv_c_stack_direction=-1
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19888 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19889 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19891 cat >>confdefs.h <<_ACEOF
19892 #define STACK_DIRECTION $ac_cv_c_stack_direction
19900 for ac_header in stdlib.h unistd.h
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19913 # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 $ac_includes_default
19923 #include <$ac_header>
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest.$ac_objext; then
19942 ac_header_compiler=yes
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_header_compiler=no
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6; }
19954 # Is the header present?
19955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <$ac_header>
19965 if { (ac_try="$ac_cpp conftest.$ac_ext"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } >/dev/null && {
19978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19981 ac_header_preproc=yes
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_header_preproc=no
19989 rm -f conftest.err conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6; }
19993 # So? What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000 ac_header_preproc=yes
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 eval "$as_ac_Header=\$ac_header_preproc"
20025 ac_res=`eval echo '${'$as_ac_Header'}'`
20026 { echo "$as_me:$LINENO: result: $ac_res" >&5
20027 echo "${ECHO_T}$ac_res" >&6; }
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20040 for ac_func in getpagesize
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20056 #define $ac_func innocuous_$ac_func
20058 /* System header to define __stub macros and hopefully few prototypes,
20059 which can conflict with char $ac_func (); below.
20060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061 <limits.h> exists even on freestanding compilers. */
20064 # include <limits.h>
20066 # include <assert.h>
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20078 /* The GNU C library defines this for functions which it implements
20079 to always fail with ENOSYS. Some functions are actually named
20080 something starting with __ and the normal name is an alias. */
20081 #if defined __stub_$ac_func || defined __stub___$ac_func
20088 return $ac_func ();
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20111 eval "$as_ac_var=yes"
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 eval "$as_ac_var=no"
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123 { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 if test "$cross_compiling" = yes; then
20139 ac_cv_func_mmap_fixed_mapped=no
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152 Here is a matrix of mmap possibilities:
20153 mmap private not fixed
20154 mmap private fixed at somewhere currently unmapped
20155 mmap private fixed at somewhere already mapped
20156 mmap shared not fixed
20157 mmap shared fixed at somewhere currently unmapped
20158 mmap shared fixed at somewhere already mapped
20159 For private mappings, we should verify that changes cannot be read()
20160 back from the file, nor mmap's back from the file at a different
20161 address. (There have been systems where private was not correctly
20162 implemented like the infamous i386 svr4.0, and systems where the
20163 VM page cache was not coherent with the file system buffer cache
20164 like early versions of FreeBSD and possibly contemporary NetBSD.)
20165 For shared mappings, we should conversely verify that changes get
20166 propagated back to all the places they're supposed to be.
20168 Grep wants private fixed already mapped.
20169 The main things grep needs to know about mmap are:
20170 * does it exist and is it safe to write into the mmap'd area
20171 * how to use it (BSD variants) */
20174 #include <sys/mman.h>
20176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20180 /* This mess was copied from the GNU getpagesize.h. */
20181 #ifndef HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h. */
20183 # ifndef HAVE_SYS_PARAM_H
20184 # define HAVE_SYS_PARAM_H 1
20187 # ifdef _SC_PAGESIZE
20188 # define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 # ifdef HAVE_SYS_PARAM_H
20191 # include <sys/param.h>
20192 # ifdef EXEC_PAGESIZE
20193 # define getpagesize() EXEC_PAGESIZE
20194 # else /* no EXEC_PAGESIZE */
20196 # define getpagesize() NBPG * CLSIZE
20199 # endif /* no CLSIZE */
20200 # else /* no NBPG */
20202 # define getpagesize() NBPC
20203 # else /* no NBPC */
20205 # define getpagesize() PAGESIZE
20206 # endif /* PAGESIZE */
20207 # endif /* no NBPC */
20208 # endif /* no NBPG */
20209 # endif /* no EXEC_PAGESIZE */
20210 # else /* no HAVE_SYS_PARAM_H */
20211 # define getpagesize() 8192 /* punt totally */
20212 # endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20215 #endif /* no HAVE_GETPAGESIZE */
20220 char *data, *data2, *data3;
20224 pagesize = getpagesize ();
20226 /* First, make a file with some known garbage in it. */
20227 data = (char *) malloc (pagesize);
20230 for (i = 0; i < pagesize; ++i)
20231 *(data + i) = rand ();
20233 fd = creat ("conftest.mmap", 0600);
20236 if (write (fd, data, pagesize) != pagesize)
20240 /* Next, try to mmap the file at a fixed address which already has
20241 something else allocated at it. If we can, also make sure that
20242 we see the same garbage. */
20243 fd = open ("conftest.mmap", O_RDWR);
20246 data2 = (char *) malloc (2 * pagesize);
20249 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20253 for (i = 0; i < pagesize; ++i)
20254 if (*(data + i) != *(data2 + i))
20257 /* Finally, make sure that changes to the mapped area do not
20258 percolate back to the file as seen by read(). (This is a bug on
20259 some variants of i386 svr4.0.) */
20260 for (i = 0; i < pagesize; ++i)
20261 *(data2 + i) = *(data2 + i) + 1;
20262 data3 = (char *) malloc (pagesize);
20265 if (read (fd, data3, pagesize) != pagesize)
20267 for (i = 0; i < pagesize; ++i)
20268 if (*(data + i) != *(data3 + i))
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_mmap_fixed_mapped=yes
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20317 rm -f conftest.mmap
20320 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20332 #include <features.h>
20333 #ifdef __GNU_LIBRARY__
20334 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20342 ac_cv_gnu_library_2_1=yes
20344 ac_cv_gnu_library_2_1=no
20351 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20354 GLIBC21="$ac_cv_gnu_library_2_1"
20359 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20360 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20361 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 if test "$cross_compiling" = yes; then
20367 # Guess based on the CPU.
20368 case "$host_cpu" in
20369 alpha* | i3456786 | m68k | s390*)
20370 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20372 gt_cv_int_divbyzero_sigfpe="guessing no";;
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20383 #include <stdlib.h>
20384 #include <signal.h>
20388 sigfpe_handler (int sig)
20390 sigfpe_handler (sig) int sig;
20393 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20394 exit (sig != SIGFPE);
20404 signal (SIGFPE, sigfpe_handler);
20405 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20406 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20407 signal (SIGTRAP, sigfpe_handler);
20409 /* Linux/SPARC yields signal SIGILL. */
20410 #if defined (__sparc__) && defined (__linux__)
20411 signal (SIGILL, sigfpe_handler);
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_link") 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 gt_cv_int_divbyzero_sigfpe=yes
20442 echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ( exit $ac_status )
20447 gt_cv_int_divbyzero_sigfpe=no
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20456 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20457 case "$gt_cv_int_divbyzero_sigfpe" in
20462 cat >>confdefs.h <<_ACEOF
20463 #define INTDIV0_RAISES_SIGFPE $value
20468 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20469 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20470 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 unsigned long long ull = 1ULL; int i = 63;
20483 unsigned long long ullmax = (unsigned long long) -1;
20484 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
20507 ac_cv_type_unsigned_long_long=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_type_unsigned_long_long=no
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516 conftest$ac_exeext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20519 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20520 if test $ac_cv_type_unsigned_long_long = yes; then
20522 cat >>confdefs.h <<\_ACEOF
20523 #define HAVE_UNSIGNED_LONG_LONG 1
20531 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20533 test $ac_cv_type_unsigned_long_long = yes \
20534 && ac_type='unsigned long long' \
20535 || ac_type='unsigned long'
20537 cat >>confdefs.h <<_ACEOF
20538 #define uintmax_t $ac_type
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_UINTMAX_T 1
20550 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20551 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20552 if test "${gt_cv_header_inttypes_h+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <sys/types.h>
20563 #include <inttypes.h>
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_compile") 2>conftest.er1
20581 grep -v '^ *+' conftest.er1 >conftest.err
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest.$ac_objext; then
20589 gt_cv_header_inttypes_h=yes
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 gt_cv_header_inttypes_h=no
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20601 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20602 if test $gt_cv_header_inttypes_h = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_INTTYPES_H 1
20612 if test $gt_cv_header_inttypes_h = yes; then
20613 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20614 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20615 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 #include <inttypes.h>
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 gt_cv_inttypes_pri_broken=no
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 gt_cv_inttypes_pri_broken=yes
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20667 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20669 if test "$gt_cv_inttypes_pri_broken" = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define PRI_MACROS_BROKEN 1
20679 for ac_header in stdint.h
20681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_res=`eval echo '${'$as_ac_Header'}'`
20689 { echo "$as_me:$LINENO: result: $ac_res" >&5
20690 echo "${ECHO_T}$ac_res" >&6; }
20692 # Is the header compilable?
20693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 $ac_includes_default
20702 #include <$ac_header>
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.$ac_objext; then
20721 ac_header_compiler=yes
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_compiler=no
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20731 echo "${ECHO_T}$ac_header_compiler" >&6; }
20733 # Is the header present?
20734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <$ac_header>
20744 if { (ac_try="$ac_cpp conftest.$ac_ext"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } >/dev/null && {
20757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20760 ac_header_preproc=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_header_preproc=no
20768 rm -f conftest.err conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20770 echo "${ECHO_T}$ac_header_preproc" >&6; }
20772 # So? What about this header?
20773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20779 ac_header_preproc=yes
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 eval "$as_ac_Header=\$ac_header_preproc"
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805 { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20818 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20819 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 #include <limits.h>
20830 #include <stdint.h>
20837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20838 $EGREP "Found it" >/dev/null 2>&1; then
20843 if test -z "$result"; then
20844 if test "$cross_compiling" = yes; then
20845 # Depending upon the size, compute the lo and hi bounds.
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 #include <stddef.h>
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20872 grep -v '^ *+' conftest.er1 >conftest.err
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 #include <stddef.h>
20892 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest.$ac_objext; then
20916 ac_hi=$ac_mid; break
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_lo=`expr $ac_mid + 1`
20922 if test $ac_lo -le $ac_mid; then
20926 ac_mid=`expr 2 '*' $ac_mid + 1`
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 #include <stddef.h>
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_compile") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1 >conftest.err
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest.$ac_objext; then
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <stddef.h>
20981 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_lo=$ac_mid; break
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_hi=`expr '(' $ac_mid ')' - 1`
21011 if test $ac_mid -le $ac_hi; then
21015 ac_mid=`expr 2 '*' $ac_mid`
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 # Binary search between lo and hi bounds.
21032 while test "x$ac_lo" != "x$ac_hi"; do
21033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 #include <stddef.h>
21044 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_lo=`expr '(' $ac_mid ')' + 1`
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 ?*) res_hi=$ac_lo;;
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <stddef.h>
21090 static long int longval () { return ~(size_t)0 / 10; }
21091 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21093 #include <stdlib.h>
21098 FILE *f = fopen ("conftest.val", "w");
21101 if ((~(size_t)0 / 10) < 0)
21103 long int i = longval ();
21104 if (i != (~(size_t)0 / 10))
21106 fprintf (f, "%ld\n", i);
21110 unsigned long int i = ulongval ();
21111 if (i != (~(size_t)0 / 10))
21113 fprintf (f, "%lu\n", i);
21115 return ferror (f) || fclose (f) != 0;
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_link") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 res_hi=`cat conftest.val`
21143 echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ( exit $ac_status )
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21154 if test "$cross_compiling" = yes; then
21155 # Depending upon the size, compute the lo and hi bounds.
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <stddef.h>
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include <stddef.h>
21202 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_hi=$ac_mid; break
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_lo=`expr $ac_mid + 1`
21232 if test $ac_lo -le $ac_mid; then
21236 ac_mid=`expr 2 '*' $ac_mid + 1`
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <stddef.h>
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <stddef.h>
21291 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_lo=$ac_mid; break
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_hi=`expr '(' $ac_mid ')' - 1`
21321 if test $ac_mid -le $ac_hi; then
21325 ac_mid=`expr 2 '*' $ac_mid`
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 # Binary search between lo and hi bounds.
21342 while test "x$ac_lo" != "x$ac_hi"; do
21343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <stddef.h>
21354 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_lo=`expr '(' $ac_mid ')' + 1`
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 ?*) res_lo=$ac_lo;;
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <stddef.h>
21400 static long int longval () { return ~(size_t)0 % 10; }
21401 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21403 #include <stdlib.h>
21408 FILE *f = fopen ("conftest.val", "w");
21411 if ((~(size_t)0 % 10) < 0)
21413 long int i = longval ();
21414 if (i != (~(size_t)0 % 10))
21416 fprintf (f, "%ld\n", i);
21420 unsigned long int i = ulongval ();
21421 if (i != (~(size_t)0 % 10))
21423 fprintf (f, "%lu\n", i);
21425 return ferror (f) || fclose (f) != 0;
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_link") 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442 { (case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_try") 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 res_lo=`cat conftest.val`
21453 echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ( exit $ac_status )
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464 if test "$cross_compiling" = yes; then
21465 # Depending upon the size, compute the lo and hi bounds.
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <stddef.h>
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 #include <stddef.h>
21512 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_compile") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest.$ac_objext; then
21536 ac_hi=$ac_mid; break
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_lo=`expr $ac_mid + 1`
21542 if test $ac_lo -le $ac_mid; then
21546 ac_mid=`expr 2 '*' $ac_mid + 1`
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <stddef.h>
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21597 #include <stddef.h>
21601 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21617 grep -v '^ *+' conftest.er1 >conftest.err
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.$ac_objext; then
21625 ac_lo=$ac_mid; break
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ac_hi=`expr '(' $ac_mid ')' - 1`
21631 if test $ac_mid -le $ac_hi; then
21635 ac_mid=`expr 2 '*' $ac_mid`
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <stddef.h>
21664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_lo=`expr '(' $ac_mid ')' + 1`
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 ?*) fits_in_uint=$ac_lo;;
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <stddef.h>
21710 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21711 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21713 #include <stdlib.h>
21718 FILE *f = fopen ("conftest.val", "w");
21721 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21723 long int i = longval ();
21724 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21726 fprintf (f, "%ld\n", i);
21730 unsigned long int i = ulongval ();
21731 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21733 fprintf (f, "%lu\n", i);
21735 return ferror (f) || fclose (f) != 0;
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_link") 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752 { (case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_try") 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 fits_in_uint=`cat conftest.val`
21763 echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ( exit $ac_status )
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21774 if test "$fits_in_uint" = 1; then
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 #include <stddef.h>
21783 extern unsigned long foo;
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 if test -z "$result"; then
21821 if test "$fits_in_uint" = 1; then
21822 result="$res_hi$res_lo"U
21824 result="$res_hi$res_lo"UL
21827 result='~(size_t)0'
21830 { echo "$as_me:$LINENO: result: $result" >&5
21831 echo "${ECHO_T}$result" >&6; }
21832 if test "$result" != yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZE_MAX $result
21844 for ac_header in stdint.h
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21857 # Is the header compilable?
21858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 $ac_includes_default
21867 #include <$ac_header>
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_compile") 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && {
21883 test -z "$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 } && test -s conftest.$ac_objext; then
21886 ac_header_compiler=yes
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_compiler=no
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896 echo "${ECHO_T}$ac_header_compiler" >&6; }
21898 # Is the header present?
21899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 #include <$ac_header>
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } >/dev/null && {
21922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21925 ac_header_preproc=yes
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_header_preproc=no
21933 rm -f conftest.err conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 echo "${ECHO_T}$ac_header_preproc" >&6; }
21937 # So? What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21944 ac_header_preproc=yes
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 eval "$as_ac_Header=\$ac_header_preproc"
21969 ac_res=`eval echo '${'$as_ac_Header'}'`
21970 { echo "$as_me:$LINENO: result: $ac_res" >&5
21971 echo "${ECHO_T}$ac_res" >&6; }
21974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21975 cat >>confdefs.h <<_ACEOF
21976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21990 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef ptrdiff_t ac__type_new_;
22006 if ((ac__type_new_ *) 0)
22008 if (sizeof (ac__type_new_))
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22023 grep -v '^ *+' conftest.er1 >conftest.err
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_cv_type_ptrdiff_t=yes
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_type_ptrdiff_t=no
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22043 if test $ac_cv_type_ptrdiff_t = yes; then
22047 cat >>confdefs.h <<\_ACEOF
22048 #define ptrdiff_t long
22064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22065 stdlib.h string.h unistd.h sys/param.h
22067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 ac_res=`eval echo '${'$as_ac_Header'}'`
22075 { echo "$as_me:$LINENO: result: $ac_res" >&5
22076 echo "${ECHO_T}$ac_res" >&6; }
22078 # Is the header compilable?
22079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 $ac_includes_default
22088 #include <$ac_header>
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.$ac_objext; then
22107 ac_header_compiler=yes
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ac_header_compiler=no
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22117 echo "${ECHO_T}$ac_header_compiler" >&6; }
22119 # Is the header present?
22120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 #include <$ac_header>
22130 if { (ac_try="$ac_cpp conftest.$ac_ext"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } >/dev/null && {
22143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22146 ac_header_preproc=yes
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ac_header_preproc=no
22154 rm -f conftest.err conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22156 echo "${ECHO_T}$ac_header_preproc" >&6; }
22158 # So? What about this header?
22159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22165 ac_header_preproc=yes
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 eval "$as_ac_Header=\$ac_header_preproc"
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191 { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22228 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22229 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22246 #define $ac_func innocuous_$ac_func
22248 /* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char $ac_func (); below.
22250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251 <limits.h> exists even on freestanding compilers. */
22254 # include <limits.h>
22256 # include <assert.h>
22261 /* Override any GCC internal prototype to avoid an error.
22262 Use char because int might match the return type of a GCC
22263 builtin and then its argument prototype would still apply. */
22268 /* The GNU C library defines this for functions which it implements
22269 to always fail with ENOSYS. Some functions are actually named
22270 something starting with __ and the normal name is an alias. */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22278 return $ac_func ();
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest$ac_exeext &&
22300 $as_test_x conftest$ac_exeext; then
22301 eval "$as_ac_var=yes"
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 eval "$as_ac_var=no"
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310 conftest$ac_exeext conftest.$ac_ext
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313 { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22325 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22326 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22327 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 cat >conftest.$ac_ext <<_ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22342 char *p = (char *) _snprintf;
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_cv_have_decl__snprintf=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 ac_cv_have_decl__snprintf=no
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22377 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22378 if test $ac_cv_have_decl__snprintf = yes; then
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_DECL__SNPRINTF $gt_value
22390 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22391 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22392 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22407 char *p = (char *) _snwprintf;
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_compile") 2>conftest.er1
22423 grep -v '^ *+' conftest.er1 >conftest.err
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && {
22428 test -z "$ac_c_werror_flag" ||
22429 test ! -s conftest.err
22430 } && test -s conftest.$ac_objext; then
22431 ac_cv_have_decl__snwprintf=yes
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_cv_have_decl__snwprintf=no
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22442 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22443 if test $ac_cv_have_decl__snwprintf = yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL__SNWPRINTF $gt_value
22456 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22457 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22458 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22472 #ifndef feof_unlocked
22473 char *p = (char *) feof_unlocked;
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_compile") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest.$ac_objext; then
22497 ac_cv_have_decl_feof_unlocked=yes
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_cv_have_decl_feof_unlocked=no
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22508 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22509 if test $ac_cv_have_decl_feof_unlocked = yes; then
22515 cat >>confdefs.h <<_ACEOF
22516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22521 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22522 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22523 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 cat >conftest.$ac_ext <<_ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22537 #ifndef fgets_unlocked
22538 char *p = (char *) fgets_unlocked;
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_compile") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest.$ac_objext; then
22562 ac_cv_have_decl_fgets_unlocked=yes
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_cv_have_decl_fgets_unlocked=no
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22573 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22574 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22586 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22587 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22602 #ifndef getc_unlocked
22603 char *p = (char *) getc_unlocked;
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 ac_cv_have_decl_getc_unlocked=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_have_decl_getc_unlocked=no
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22638 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22639 if test $ac_cv_have_decl_getc_unlocked = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22651 case $gt_cv_func_printf_posix in
22652 *yes) HAVE_POSIX_PRINTF=1 ;;
22653 *) HAVE_POSIX_PRINTF=0 ;;
22656 if test "$ac_cv_func_asprintf" = yes; then
22662 if test "$ac_cv_func_snprintf" = yes; then
22668 if test "$ac_cv_func_wprintf" = yes; then
22680 am_save_CPPFLAGS="$CPPFLAGS"
22682 for element in $INCICONV; do
22684 for x in $CPPFLAGS; do
22686 acl_save_prefix="$prefix"
22687 prefix="$acl_final_prefix"
22688 acl_save_exec_prefix="$exec_prefix"
22689 exec_prefix="$acl_final_exec_prefix"
22691 exec_prefix="$acl_save_exec_prefix"
22692 prefix="$acl_save_prefix"
22694 if test "X$x" = "X$element"; then
22699 if test -z "$haveit"; then
22700 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22705 { echo "$as_me:$LINENO: checking for iconv" >&5
22706 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22707 if test "${am_cv_func_iconv+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 am_cv_func_iconv="no, consider installing GNU libiconv"
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <stdlib.h>
22724 iconv_t cd = iconv_open("","");
22725 iconv(cd,NULL,NULL,NULL,NULL);
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_link") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest$ac_exeext &&
22748 $as_test_x conftest$ac_exeext; then
22749 am_cv_func_iconv=yes
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22759 if test "$am_cv_func_iconv" != yes; then
22760 am_save_LIBS="$LIBS"
22761 LIBS="$LIBS $LIBICONV"
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <stdlib.h>
22773 iconv_t cd = iconv_open("","");
22774 iconv(cd,NULL,NULL,NULL,NULL);
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_link") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest$ac_exeext &&
22797 $as_test_x conftest$ac_exeext; then
22798 am_cv_lib_iconv=yes
22799 am_cv_func_iconv=yes
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808 conftest$ac_exeext conftest.$ac_ext
22809 LIBS="$am_save_LIBS"
22813 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22814 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22815 if test "$am_cv_func_iconv" = yes; then
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_ICONV 1
22822 if test "$am_cv_lib_iconv" = yes; then
22823 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22824 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22825 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22826 echo "${ECHO_T}$LIBICONV" >&6; }
22828 CPPFLAGS="$am_save_CPPFLAGS"
22835 if test "$am_cv_func_iconv" = yes; then
22836 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22837 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22838 if test "${am_cv_proto_iconv+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22849 #include <stdlib.h>
22855 #if defined(__STDC__) || defined(__cplusplus)
22856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_compile") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest.$ac_objext; then
22886 am_cv_proto_iconv_arg1=""
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891 am_cv_proto_iconv_arg1="const"
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 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);"
22898 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22899 { echo "$as_me:$LINENO: result: ${ac_t:-
22900 }$am_cv_proto_iconv" >&5
22901 echo "${ECHO_T}${ac_t:-
22902 }$am_cv_proto_iconv" >&6; }
22904 cat >>confdefs.h <<_ACEOF
22905 #define ICONV_CONST $am_cv_proto_iconv_arg1
22911 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${am_cv_langinfo_codeset+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <langinfo.h>
22926 char* cs = nl_langinfo(CODESET);
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>conftest.er1
22940 grep -v '^ *+' conftest.er1 >conftest.err
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest$ac_exeext &&
22948 $as_test_x conftest$ac_exeext; then
22949 am_cv_langinfo_codeset=yes
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 am_cv_langinfo_codeset=no
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22963 if test $am_cv_langinfo_codeset = yes; then
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22971 if test $ac_cv_header_locale_h = yes; then
22973 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22974 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22975 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <locale.h>
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext &&
23010 $as_test_x conftest$ac_exeext; then
23011 gt_cv_val_LC_MESSAGES=yes
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 gt_cv_val_LC_MESSAGES=no
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020 conftest$ac_exeext conftest.$ac_ext
23022 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23023 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23024 if test $gt_cv_val_LC_MESSAGES = yes; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_LC_MESSAGES 1
23034 if test -n "$INTL_MACOSX_LIBS"; then
23035 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038 for ac_prog in bison
23040 # Extract the first word of "$ac_prog", so it can be a program name with args.
23041 set dummy $ac_prog; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 if test -n "$INTLBISON"; then
23048 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23054 test -z "$as_dir" && as_dir=.
23055 for ac_exec_ext in '' $ac_executable_extensions; do
23056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23057 ac_cv_prog_INTLBISON="$ac_prog"
23058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23067 INTLBISON=$ac_cv_prog_INTLBISON
23068 if test -n "$INTLBISON"; then
23069 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23070 echo "${ECHO_T}$INTLBISON" >&6; }
23072 { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23077 test -n "$INTLBISON" && break
23080 if test -z "$INTLBISON"; then
23083 { echo "$as_me:$LINENO: checking version of bison" >&5
23084 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23085 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23086 case $ac_prog_version in
23087 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23088 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23089 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23090 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23092 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23093 echo "${ECHO_T}$ac_prog_version" >&6; }
23095 if test $ac_verc_fail = yes; then
23114 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23115 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23119 gt_save_CPPFLAGS="$CPPFLAGS"
23120 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121 gt_save_LIBS="$LIBS"
23122 LIBS="$LIBS -framework CoreFoundation"
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <CFPreferences.h>
23133 CFPreferencesCopyAppValue(NULL, NULL)
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_link") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest$ac_exeext &&
23155 $as_test_x conftest$ac_exeext; then
23156 gt_cv_func_CFPreferencesCopyAppValue=yes
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23161 gt_cv_func_CFPreferencesCopyAppValue=no
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165 conftest$ac_exeext conftest.$ac_ext
23166 CPPFLAGS="$gt_save_CPPFLAGS"
23167 LIBS="$gt_save_LIBS"
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23171 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23178 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23179 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23180 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 gt_save_CPPFLAGS="$CPPFLAGS"
23184 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23185 gt_save_LIBS="$LIBS"
23186 LIBS="$LIBS -framework CoreFoundation"
23187 cat >conftest.$ac_ext <<_ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 #include <CFLocale.h>
23197 CFLocaleCopyCurrent();
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209 (eval "$ac_link") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && {
23216 test -z "$ac_c_werror_flag" ||
23217 test ! -s conftest.err
23218 } && test -s conftest$ac_exeext &&
23219 $as_test_x conftest$ac_exeext; then
23220 gt_cv_func_CFLocaleCopyCurrent=yes
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23225 gt_cv_func_CFLocaleCopyCurrent=no
23228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23229 conftest$ac_exeext conftest.$ac_ext
23230 CPPFLAGS="$gt_save_CPPFLAGS"
23231 LIBS="$gt_save_LIBS"
23233 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23234 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23235 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_CFLOCALECOPYCURRENT 1
23243 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23244 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23250 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23251 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23252 # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then
23254 enableval=$enable_nls; USE_NLS=$enableval
23259 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 echo "${ECHO_T}$USE_NLS" >&6; }
23265 BUILD_INCLUDED_LIBINTL=no
23266 USE_INCLUDED_LIBINTL=no
23272 if test "$USE_NLS" = "yes"; then
23273 gt_use_preinstalled_gnugettext=no
23275 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23278 # Check whether --with-included-gettext was given.
23279 if test "${with_included_gettext+set}" = set; then
23280 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23282 nls_cv_force_use_gnu_gettext=no
23285 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23288 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23296 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23298 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 #include <libintl.h>
23308 extern int _nl_msg_cat_cntr;
23309 extern int *_nl_domain_bindings;
23313 bindtextdomain ("", "");
23314 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_link") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest$ac_exeext &&
23336 $as_test_x conftest$ac_exeext; then
23337 gt_cv_func_gnugettext1_libc=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 gt_cv_func_gnugettext1_libc=no
23345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23346 conftest$ac_exeext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23349 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23351 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23357 acl_save_prefix="$prefix"
23358 prefix="$acl_final_prefix"
23359 acl_save_exec_prefix="$exec_prefix"
23360 exec_prefix="$acl_final_exec_prefix"
23362 eval additional_includedir=\"$includedir\"
23363 eval additional_libdir=\"$libdir\"
23365 exec_prefix="$acl_save_exec_prefix"
23366 prefix="$acl_save_prefix"
23369 # Check whether --with-libintl-prefix was given.
23370 if test "${with_libintl_prefix+set}" = set; then
23371 withval=$with_libintl_prefix;
23372 if test "X$withval" = "Xno"; then
23375 if test "X$withval" = "X"; then
23377 acl_save_prefix="$prefix"
23378 prefix="$acl_final_prefix"
23379 acl_save_exec_prefix="$exec_prefix"
23380 exec_prefix="$acl_final_exec_prefix"
23382 eval additional_includedir=\"$includedir\"
23383 eval additional_libdir=\"$libdir\"
23385 exec_prefix="$acl_save_exec_prefix"
23386 prefix="$acl_save_prefix"
23389 additional_includedir="$withval/include"
23390 additional_libdir="$withval/lib"
23401 names_already_handled=
23402 names_next_round='intl '
23403 while test -n "$names_next_round"; do
23404 names_this_round="$names_next_round"
23406 for name in $names_this_round; do
23408 for n in $names_already_handled; do
23409 if test "$n" = "$name"; then
23410 already_handled=yes
23414 if test -z "$already_handled"; then
23415 names_already_handled="$names_already_handled $name"
23416 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23417 eval value=\"\$HAVE_LIB$uppername\"
23418 if test -n "$value"; then
23419 if test "$value" = yes; then
23420 eval value=\"\$LIB$uppername\"
23421 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23422 eval value=\"\$LTLIB$uppername\"
23423 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23432 if test $use_additional = yes; then
23433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23434 found_dir="$additional_libdir"
23435 found_so="$additional_libdir/lib$name.$shlibext"
23436 if test -f "$additional_libdir/lib$name.la"; then
23437 found_la="$additional_libdir/lib$name.la"
23440 if test -f "$additional_libdir/lib$name.$libext"; then
23441 found_dir="$additional_libdir"
23442 found_a="$additional_libdir/lib$name.$libext"
23443 if test -f "$additional_libdir/lib$name.la"; then
23444 found_la="$additional_libdir/lib$name.la"
23449 if test "X$found_dir" = "X"; then
23450 for x in $LDFLAGS $LTLIBINTL; do
23452 acl_save_prefix="$prefix"
23453 prefix="$acl_final_prefix"
23454 acl_save_exec_prefix="$exec_prefix"
23455 exec_prefix="$acl_final_exec_prefix"
23457 exec_prefix="$acl_save_exec_prefix"
23458 prefix="$acl_save_prefix"
23462 dir=`echo "X$x" | sed -e 's/^X-L//'`
23463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23465 found_so="$dir/lib$name.$shlibext"
23466 if test -f "$dir/lib$name.la"; then
23467 found_la="$dir/lib$name.la"
23470 if test -f "$dir/lib$name.$libext"; then
23472 found_a="$dir/lib$name.$libext"
23473 if test -f "$dir/lib$name.la"; then
23474 found_la="$dir/lib$name.la"
23480 if test "X$found_dir" != "X"; then
23485 if test "X$found_dir" != "X"; then
23486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23487 if test "X$found_so" != "X"; then
23488 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23492 for x in $ltrpathdirs; do
23493 if test "X$x" = "X$found_dir"; then
23498 if test -z "$haveit"; then
23499 ltrpathdirs="$ltrpathdirs $found_dir"
23501 if test "$hardcode_direct" = yes; then
23502 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507 for x in $rpathdirs; do
23508 if test "X$x" = "X$found_dir"; then
23513 if test -z "$haveit"; then
23514 rpathdirs="$rpathdirs $found_dir"
23518 for x in $LDFLAGS $LIBINTL; do
23520 acl_save_prefix="$prefix"
23521 prefix="$acl_final_prefix"
23522 acl_save_exec_prefix="$exec_prefix"
23523 exec_prefix="$acl_final_exec_prefix"
23525 exec_prefix="$acl_save_exec_prefix"
23526 prefix="$acl_save_prefix"
23528 if test "X$x" = "X-L$found_dir"; then
23533 if test -z "$haveit"; then
23534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23536 if test "$hardcode_minus_L" != no; then
23537 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23539 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23545 if test "X$found_a" != "X"; then
23546 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23551 additional_includedir=
23552 case "$found_dir" in
23554 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23555 additional_includedir="$basedir/include"
23558 if test "X$additional_includedir" != "X"; then
23559 if test "X$additional_includedir" != "X/usr/include"; then
23561 if test "X$additional_includedir" = "X/usr/local/include"; then
23562 if test -n "$GCC"; then
23564 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23568 if test -z "$haveit"; then
23569 for x in $CPPFLAGS $INCINTL; do
23571 acl_save_prefix="$prefix"
23572 prefix="$acl_final_prefix"
23573 acl_save_exec_prefix="$exec_prefix"
23574 exec_prefix="$acl_final_exec_prefix"
23576 exec_prefix="$acl_save_exec_prefix"
23577 prefix="$acl_save_prefix"
23579 if test "X$x" = "X-I$additional_includedir"; then
23584 if test -z "$haveit"; then
23585 if test -d "$additional_includedir"; then
23586 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23592 if test -n "$found_la"; then
23593 save_libdir="$libdir"
23594 case "$found_la" in
23595 */* | *\\*) . "$found_la" ;;
23596 *) . "./$found_la" ;;
23598 libdir="$save_libdir"
23599 for dep in $dependency_libs; do
23602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23603 if test "X$additional_libdir" != "X/usr/lib"; then
23605 if test "X$additional_libdir" = "X/usr/local/lib"; then
23606 if test -n "$GCC"; then
23608 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23612 if test -z "$haveit"; then
23614 for x in $LDFLAGS $LIBINTL; do
23616 acl_save_prefix="$prefix"
23617 prefix="$acl_final_prefix"
23618 acl_save_exec_prefix="$exec_prefix"
23619 exec_prefix="$acl_final_exec_prefix"
23621 exec_prefix="$acl_save_exec_prefix"
23622 prefix="$acl_save_prefix"
23624 if test "X$x" = "X-L$additional_libdir"; then
23629 if test -z "$haveit"; then
23630 if test -d "$additional_libdir"; then
23631 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23635 for x in $LDFLAGS $LTLIBINTL; do
23637 acl_save_prefix="$prefix"
23638 prefix="$acl_final_prefix"
23639 acl_save_exec_prefix="$exec_prefix"
23640 exec_prefix="$acl_final_exec_prefix"
23642 exec_prefix="$acl_save_exec_prefix"
23643 prefix="$acl_save_prefix"
23645 if test "X$x" = "X-L$additional_libdir"; then
23650 if test -z "$haveit"; then
23651 if test -d "$additional_libdir"; then
23652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23660 if test "$enable_rpath" != no; then
23662 for x in $rpathdirs; do
23663 if test "X$x" = "X$dir"; then
23668 if test -z "$haveit"; then
23669 rpathdirs="$rpathdirs $dir"
23672 for x in $ltrpathdirs; do
23673 if test "X$x" = "X$dir"; then
23678 if test -z "$haveit"; then
23679 ltrpathdirs="$ltrpathdirs $dir"
23684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23690 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23691 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23697 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23698 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23704 if test "X$rpathdirs" != "X"; then
23705 if test -n "$hardcode_libdir_separator"; then
23707 for found_dir in $rpathdirs; do
23708 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23710 acl_save_libdir="$libdir"
23712 eval flag=\"$hardcode_libdir_flag_spec\"
23713 libdir="$acl_save_libdir"
23714 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23716 for found_dir in $rpathdirs; do
23717 acl_save_libdir="$libdir"
23718 libdir="$found_dir"
23719 eval flag=\"$hardcode_libdir_flag_spec\"
23720 libdir="$acl_save_libdir"
23721 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23725 if test "X$ltrpathdirs" != "X"; then
23726 for found_dir in $ltrpathdirs; do
23727 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23731 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23733 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 gt_save_CPPFLAGS="$CPPFLAGS"
23737 CPPFLAGS="$CPPFLAGS $INCINTL"
23738 gt_save_LIBS="$LIBS"
23739 LIBS="$LIBS $LIBINTL"
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <libintl.h>
23747 extern int _nl_msg_cat_cntr;
23752 const char *_nl_expand_alias (const char *);
23756 bindtextdomain ("", "");
23757 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23762 rm -f conftest.$ac_objext conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_link") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest$ac_exeext &&
23779 $as_test_x conftest$ac_exeext; then
23780 gt_cv_func_gnugettext1_libintl=yes
23782 echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 gt_cv_func_gnugettext1_libintl=no
23788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23789 conftest$ac_exeext conftest.$ac_ext
23790 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23791 LIBS="$LIBS $LIBICONV"
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <libintl.h>
23799 extern int _nl_msg_cat_cntr;
23804 const char *_nl_expand_alias (const char *);
23808 bindtextdomain ("", "");
23809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818 *) ac_try_echo=$ac_try;;
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821 (eval "$ac_link") 2>conftest.er1
23823 grep -v '^ *+' conftest.er1 >conftest.err
23825 cat conftest.err >&5
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } && {
23828 test -z "$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23830 } && test -s conftest$ac_exeext &&
23831 $as_test_x conftest$ac_exeext; then
23832 LIBINTL="$LIBINTL $LIBICONV"
23833 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23834 gt_cv_func_gnugettext1_libintl=yes
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23844 conftest$ac_exeext conftest.$ac_ext
23846 CPPFLAGS="$gt_save_CPPFLAGS"
23847 LIBS="$gt_save_LIBS"
23849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23853 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23854 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23855 && test "$PACKAGE" != gettext-runtime \
23856 && test "$PACKAGE" != gettext-tools; }; then
23857 gt_use_preinstalled_gnugettext=yes
23865 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23866 nls_cv_use_gnu_gettext=yes
23870 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23871 BUILD_INCLUDED_LIBINTL=yes
23872 USE_INCLUDED_LIBINTL=yes
23873 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23874 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23875 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23879 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23880 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23885 if test -n "$INTL_MACOSX_LIBS"; then
23886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23887 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23889 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23896 cat >>confdefs.h <<\_ACEOF
23897 #define ENABLE_NLS 1
23905 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23906 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23907 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23908 echo "${ECHO_T}$USE_NLS" >&6; }
23909 if test "$USE_NLS" = "yes"; then
23910 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23911 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23912 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914 gt_source="external libintl"
23919 gt_source="included intl directory"
23921 { echo "$as_me:$LINENO: result: $gt_source" >&5
23922 echo "${ECHO_T}$gt_source" >&6; }
23925 if test "$USE_NLS" = "yes"; then
23927 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23928 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23929 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23930 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23931 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23932 echo "${ECHO_T}$LIBINTL" >&6; }
23934 for element in $INCINTL; do
23936 for x in $CPPFLAGS; do
23938 acl_save_prefix="$prefix"
23939 prefix="$acl_final_prefix"
23940 acl_save_exec_prefix="$exec_prefix"
23941 exec_prefix="$acl_final_exec_prefix"
23943 exec_prefix="$acl_save_exec_prefix"
23944 prefix="$acl_save_prefix"
23946 if test "X$x" = "X$element"; then
23951 if test -z "$haveit"; then
23952 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_GETTEXT 1
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_DCGETTEXT 1
23974 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23975 BUILD_INCLUDED_LIBINTL=yes
23982 nls_cv_header_intl=
23983 nls_cv_header_libgt=
23995 if test "$USE_INCLUDED_LIBINTL" = yes; then
23996 INTLOBJS="\$(GETTOBJS)"
24000 INTL_LIBTOOL_SUFFIX_PREFIX=
24004 INTLLIBS="$LIBINTL"
24016 support_postgresql=no
24019 support_smartalloc=yes
24020 support_readline=yes
24024 support_wx_console=no
24025 support_tray_monitor=no
24030 support_static_tools=no
24031 support_static_fd=no
24032 support_static_sd=no
24033 support_static_dir=no
24034 support_static_cons=no
24036 build_client_only=no
24045 # Check whether --enable-gnome was given.
24046 if test "${enable_gnome+set}" = set; then
24047 enableval=$enable_gnome;
24048 if test x$enableval = xyes; then
24057 if test x$support_gnome = xyes; then
24058 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24059 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24060 { (exit 1); exit 1; }; }
24061 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24062 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24063 { (exit 1); exit 1; }; }
24065 # AC_SUBST(GNOME_DIR)
24067 # Check whether --enable-bat was given.
24068 if test "${enable_bat+set}" = set; then
24069 enableval=$enable_bat;
24070 if test x$enableval = xyes; then
24072 cat >>confdefs.h <<\_ACEOF
24084 if test x$support_bat = xyes; then
24085 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24087 if test $pkg = 0; then
24088 BAT_DIR=src/qt-console
24090 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24091 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24092 { (exit 1); exit 1; }; }
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112 enableval=$enable_bwx_console;
24113 if test x$enableval = xyes; then
24114 support_wx_console=yes
24122 if test x$support_wx_console = xyes; then
24123 abc=`$WXCONFIG $WXFLAGS --cppflags`
24125 if test $pkg = 0; then
24126 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24132 WX_DIR="src/wx-console"
24135 echo "wx-config program not found. bwx-console disabled."
24137 support_wx_console=no
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144 enableval=$enable_tray_monitor;
24145 if test x$enableval = xyes; then
24146 support_tray_monitor=yes
24154 if test x$support_tray_monitor = xyes; then
24155 abc=`$PKGCONFIG --exists gtk+-2.0`
24157 if test $pkg = 0; then
24158 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24162 TRAY_MONITOR_DIR=src/tray-monitor
24163 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24165 if test $pkg = 0; then
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178 enableval=$enable_smartalloc;
24179 if test x$enableval = xno; then
24180 support_smartalloc=no
24187 if test x$support_smartalloc = xyes; then
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197 enableval=$enable_lockmgr;
24198 if test x$enableval = xyes; then
24199 support_lockmgr=yes
24206 if test x$support_lockmgr = xyes; then
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217 enableval=$enable_static_tools;
24218 if test x$enableval = xyes; then
24219 if test x$use_libtool = xyes; then
24220 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24221 please rerun configure with --disable-libtool" >&5
24222 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24223 please rerun configure with --disable-libtool" >&2;}
24224 { (exit 1); exit 1; }; }
24226 support_static_tools=yes
24234 if test x$support_static_tools = xyes; then
24235 TTOOL_LDFLAGS="-static"
24239 # Check whether --enable-static-fd was given.
24240 if test "${enable_static_fd+set}" = set; then
24241 enableval=$enable_static_fd;
24242 if test x$enableval = xyes; then
24243 if test x$use_libtool = xyes; then
24244 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24245 please rerun configure with --disable-libtool" >&5
24246 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24247 please rerun configure with --disable-libtool" >&2;}
24248 { (exit 1); exit 1; }; }
24250 support_static_fd=yes
24258 if test x$support_static_fd = xyes; then
24259 STATIC_FD="static-bacula-fd"
24263 # Check whether --enable-static-sd was given.
24264 if test "${enable_static_sd+set}" = set; then
24265 enableval=$enable_static_sd;
24266 if test x$enableval = xyes; then
24267 if test x$use_libtool = xyes; then
24268 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24269 please rerun configure with --disable-libtool" >&5
24270 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24271 please rerun configure with --disable-libtool" >&2;}
24272 { (exit 1); exit 1; }; }
24274 support_static_sd=yes
24282 if test x$support_static_sd = xyes; then
24283 STATIC_SD="static-bacula-sd"
24287 # Check whether --enable-static-dir was given.
24288 if test "${enable_static_dir+set}" = set; then
24289 enableval=$enable_static_dir;
24290 if test x$enableval = xyes; then
24291 if test x$use_libtool = xyes; then
24292 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24293 please rerun configure with --disable-libtool" >&5
24294 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24295 please rerun configure with --disable-libtool" >&2;}
24296 { (exit 1); exit 1; }; }
24298 support_static_dir=yes
24306 if test x$support_static_dir = xyes; then
24307 STATIC_DIR="static-bacula-dir"
24311 # Check whether --enable-static-cons was given.
24312 if test "${enable_static_cons+set}" = set; then
24313 enableval=$enable_static_cons;
24314 if test x$enableval = xyes; then
24315 if test x$use_libtool = xyes; then
24316 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24317 please rerun configure with --disable-libtool" >&5
24318 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24319 please rerun configure with --disable-libtool" >&2;}
24320 { (exit 1); exit 1; }; }
24322 support_static_cons=yes
24332 if test x$support_static_cons = xyes; then
24333 STATIC_CONS="static-bconsole"
24334 STATIC_GNOME_CONS="static-bgnome-console"
24335 STATIC_WX_CONS="static-bwx-console"
24341 # Check whether --enable-client-only was given.
24342 if test "${enable_client_only+set}" = set; then
24343 enableval=$enable_client_only;
24344 if test x$enableval = xyes; then
24345 build_client_only=yes
24353 if test x$build_client_only = xno; then
24360 # Check whether --enable-build-dird was given.
24361 if test "${enable_build_dird+set}" = set; then
24362 enableval=$enable_build_dird;
24363 if test x$enableval = xno; then
24370 if test x$build_dird = xyes; then
24371 DIRD_DIR="src/dird"
24372 DIR_TOOLS="DIRTOOLS"
24375 DIR_TOOLS="NODIRTOOLS"
24380 # Check whether --enable-build-stored was given.
24381 if test "${enable_build_stored+set}" = set; then
24382 enableval=$enable_build_stored;
24383 if test x$enableval = xno; then
24390 if test x$build_stored = xyes; then
24391 STORED_DIR="src/stored"
24397 # Check whether --enable-conio was given.
24398 if test "${enable_conio+set}" = set; then
24399 enableval=$enable_conio;
24400 if test x$enableval = xno; then
24410 # Check whether --enable-ipv6 was given.
24411 if test "${enable_ipv6+set}" = set; then
24412 enableval=$enable_ipv6;
24413 if test x$enableval = xno; then
24421 if test x$support_ipv6 = xyes; then
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 #include <sys/types.h>
24429 #include <sys/socket.h>
24430 #include <netinet/in.h>
24434 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_link") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest$ac_exeext &&
24456 $as_test_x conftest$ac_exeext; then
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466 conftest$ac_exeext conftest.$ac_ext
24469 if test x$support_ipv6 = xyes; then
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_IPV6 1
24478 if test "${ac_cv_header_curses_h+set}" = set; then
24479 { echo "$as_me:$LINENO: checking for curses.h" >&5
24480 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_curses_h+set}" = set; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24484 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24485 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24487 # Is the header compilable?
24488 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24489 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 $ac_includes_default
24497 #include <curses.h>
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24508 grep -v '^ *+' conftest.er1 >conftest.err
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24516 ac_header_compiler=yes
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 ac_header_compiler=no
24524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24526 echo "${ECHO_T}$ac_header_compiler" >&6; }
24528 # Is the header present?
24529 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24530 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537 #include <curses.h>
24539 if { (ac_try="$ac_cpp conftest.$ac_ext"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } >/dev/null && {
24552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24553 test ! -s conftest.err
24555 ac_header_preproc=yes
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 ac_header_preproc=no
24563 rm -f conftest.err conftest.$ac_ext
24564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24565 echo "${ECHO_T}$ac_header_preproc" >&6; }
24567 # So? What about this header?
24568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24570 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24571 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24573 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24574 ac_header_preproc=yes
24577 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24578 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
24580 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
24581 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24582 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
24584 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24586 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24588 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24592 { echo "$as_me:$LINENO: checking for curses.h" >&5
24593 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24594 if test "${ac_cv_header_curses_h+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 ac_cv_header_curses_h=$ac_header_preproc
24599 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24600 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24603 if test $ac_cv_header_curses_h = yes; then
24604 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24605 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lncurses $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 /* Override any GCC internal prototype to avoid an error.
24619 Use char because int might match the return type of a GCC
24620 builtin and then its argument prototype would still apply. */
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext &&
24650 $as_test_x conftest$ac_exeext; then
24651 ac_cv_lib_ncurses_tgetent=yes
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 ac_cv_lib_ncurses_tgetent=no
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24664 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24665 if test $ac_cv_lib_ncurses_tgetent = yes; then
24666 TERM_LIB="-lncurses"
24668 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24669 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24670 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-ltermcap $LIBS"
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24682 /* Override any GCC internal prototype to avoid an error.
24683 Use char because int might match the return type of a GCC
24684 builtin and then its argument prototype would still apply. */
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_link") 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest$ac_exeext &&
24714 $as_test_x conftest$ac_exeext; then
24715 ac_cv_lib_termcap_tgetent=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_cv_lib_termcap_tgetent=no
24723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24724 conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24727 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24728 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24729 if test $ac_cv_lib_termcap_tgetent = yes; then
24730 TERM_LIB="-ltermcap"
24739 for ac_header in curses.h
24741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 ac_res=`eval echo '${'$as_ac_Header'}'`
24749 { echo "$as_me:$LINENO: result: $ac_res" >&5
24750 echo "${ECHO_T}$ac_res" >&6; }
24752 # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 #include <$ac_header>
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_compile") 2>conftest.er1
24773 grep -v '^ *+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } && {
24778 test -z "$ac_c_werror_flag" ||
24779 test ! -s conftest.err
24780 } && test -s conftest.$ac_objext; then
24781 ac_header_compiler=yes
24783 echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ac_header_compiler=no
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24791 echo "${ECHO_T}$ac_header_compiler" >&6; }
24793 # Is the header present?
24794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 #include <$ac_header>
24804 if { (ac_try="$ac_cpp conftest.$ac_ext"
24805 case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
24814 cat conftest.err >&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } >/dev/null && {
24817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24820 ac_header_preproc=yes
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 ac_header_preproc=no
24828 rm -f conftest.err conftest.$ac_ext
24829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24830 echo "${ECHO_T}$ac_header_preproc" >&6; }
24832 # So? What about this header?
24833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24839 ac_header_preproc=yes
24842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 eval "$as_ac_Header=\$ac_header_preproc"
24864 ac_res=`eval echo '${'$as_ac_Header'}'`
24865 { echo "$as_me:$LINENO: result: $ac_res" >&5
24866 echo "${ECHO_T}$ac_res" >&6; }
24869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870 cat >>confdefs.h <<_ACEOF
24871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24878 if test "${ac_cv_header_term_h+set}" = set; then
24879 { echo "$as_me:$LINENO: checking for term.h" >&5
24880 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24881 if test "${ac_cv_header_term_h+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24885 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24887 # Is the header compilable?
24888 { echo "$as_me:$LINENO: checking term.h usability" >&5
24889 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_compile") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && {
24913 test -z "$ac_c_werror_flag" ||
24914 test ! -s conftest.err
24915 } && test -s conftest.$ac_objext; then
24916 ac_header_compiler=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_compiler=no
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6; }
24928 # Is the header present?
24929 { echo "$as_me:$LINENO: checking term.h presence" >&5
24930 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24939 if { (ac_try="$ac_cpp conftest.$ac_ext"
24940 case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } >/dev/null && {
24952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953 test ! -s conftest.err
24955 ac_header_preproc=yes
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_header_preproc=no
24963 rm -f conftest.err conftest.$ac_ext
24964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 echo "${ECHO_T}$ac_header_preproc" >&6; }
24967 # So? What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24970 { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24973 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24974 ac_header_preproc=yes
24977 { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24978 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
24980 echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
24981 { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24982 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24983 { echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
24984 echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
24985 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24986 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24987 { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24988 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24992 { echo "$as_me:$LINENO: checking for term.h" >&5
24993 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24994 if test "${ac_cv_header_term_h+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 ac_cv_header_term_h=$ac_header_preproc
24999 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25000 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25003 if test $ac_cv_header_term_h = yes; then
25004 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25005 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25006 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lcurses $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25018 /* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_link") 2>conftest.er1
25042 grep -v '^ *+' conftest.er1 >conftest.err
25044 cat conftest.err >&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } && {
25047 test -z "$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 } && test -s conftest$ac_exeext &&
25050 $as_test_x conftest$ac_exeext; then
25051 ac_cv_lib_curses_tgetent=yes
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_cv_lib_curses_tgetent=no
25059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25060 conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25063 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25064 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25065 if test $ac_cv_lib_curses_tgetent = yes; then
25066 TERM_LIB="-lcurses"
25080 if test x$support_conio = xyes; then
25081 if test x$TERM_LIB != x; then
25082 CONS_LIBS=$TERM_LIB
25086 support_readline=no
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_CONIO 1
25093 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100 enableval=$enable_readline;
25101 if test x$enableval = xno; then
25102 support_readline=no
25108 if test x$TERM_LIB = x ; then
25109 support_readline=no
25114 if test x$support_readline = xyes; then
25116 # Check whether --with-readline was given.
25117 if test "${with_readline+set}" = set; then
25118 withval=$with_readline;
25119 case "$with_readline" in
25124 if test -f ${with_readline}/readline.h; then
25125 CONS_INC="-I${with_readline}"
25126 CONS_LDFLAGS="-L$with_readline"
25127 elif test -f ${with_readline}/include/readline/readline.h; then
25128 CONS_INC="-I${with_readline}/include/readline"
25129 CONS_LDFLAGS="-L${with_readline}/lib"
25130 with_readline="${with_readline}/include/readline"
25132 with_readline="/usr/include/readline"
25135 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25138 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 ac_res=`eval echo '${'$as_ac_Header'}'`
25143 { echo "$as_me:$LINENO: result: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25146 # Is the header compilable?
25147 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25148 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25149 cat >conftest.$ac_ext <<_ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 $ac_includes_default
25156 #include <${with_readline}/readline.h>
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.$ac_objext; then
25175 ac_header_compiler=yes
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ac_header_compiler=no
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 echo "${ECHO_T}$ac_header_compiler" >&6; }
25187 # Is the header present?
25188 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25189 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 #include <${with_readline}/readline.h>
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25206 grep -v '^ *+' conftest.er1 >conftest.err
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } >/dev/null && {
25211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25214 ac_header_preproc=yes
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 ac_header_preproc=no
25222 rm -f conftest.err conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25224 echo "${ECHO_T}$ac_header_preproc" >&6; }
25226 # So? What about this header?
25227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25229 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25233 ac_header_preproc=yes
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25245 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25247 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25251 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25252 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25256 eval "$as_ac_Header=\$ac_header_preproc"
25258 ac_res=`eval echo '${'$as_ac_Header'}'`
25259 { echo "$as_me:$LINENO: result: $ac_res" >&5
25260 echo "${ECHO_T}$ac_res" >&6; }
25263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_READLINE 1
25270 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25276 echo "readline.h not found. readline turned off ..."
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25290 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25291 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25297 # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 #include </usr/include/readline/readline.h>
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_compile") 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && {
25323 test -z "$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 } && test -s conftest.$ac_objext; then
25326 ac_header_compiler=yes
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 ac_header_compiler=no
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25336 echo "${ECHO_T}$ac_header_compiler" >&6; }
25338 # Is the header present?
25339 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include </usr/include/readline/readline.h>
25349 if { (ac_try="$ac_cpp conftest.$ac_ext"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } >/dev/null && {
25362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25365 ac_header_preproc=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_header_preproc=no
25373 rm -f conftest.err conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25375 echo "${ECHO_T}$ac_header_preproc" >&6; }
25377 # So? What about this header?
25378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25380 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25384 ac_header_preproc=yes
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25402 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25403 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25404 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25409 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25410 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25413 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_READLINE 1
25421 CONS_INC="-I/usr/include/readline"
25422 CONS_LIBS="-lreadline $TERM_LIB"
25426 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25429 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 ac_res=`eval echo '${'$as_ac_Header'}'`
25434 { echo "$as_me:$LINENO: result: $ac_res" >&5
25435 echo "${ECHO_T}$ac_res" >&6; }
25437 # Is the header compilable?
25438 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25439 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 $ac_includes_default
25447 #include <${TOP_DIR}/depkgs/readline/readline.h>
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_compile") 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest.$ac_objext; then
25466 ac_header_compiler=yes
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25471 ac_header_compiler=no
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6; }
25478 # Is the header present?
25479 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25480 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <${TOP_DIR}/depkgs/readline/readline.h>
25489 if { (ac_try="$ac_cpp conftest.$ac_ext"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25497 grep -v '^ *+' conftest.er1 >conftest.err
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } >/dev/null && {
25502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25505 ac_header_preproc=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_header_preproc=no
25513 rm -f conftest.err conftest.$ac_ext
25514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25515 echo "${ECHO_T}$ac_header_preproc" >&6; }
25517 # So? What about this header?
25518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25520 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25524 ac_header_preproc=yes
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25533 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25535 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25536 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25537 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25538 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25542 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25543 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25545 echo $ECHO_N "(cached) $ECHO_C" >&6
25547 eval "$as_ac_Header=\$ac_header_preproc"
25549 ac_res=`eval echo '${'$as_ac_Header'}'`
25550 { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_READLINE 1
25562 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25563 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25564 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25565 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25570 echo "readline.h not found. readline turned off ..."
25597 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25598 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25599 if test "${ac_cv_header_stat_broken+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 #include <sys/types.h>
25609 #include <sys/stat.h>
25611 #if defined S_ISBLK && defined S_IFDIR
25612 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25615 #if defined S_ISBLK && defined S_IFCHR
25616 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25619 #if defined S_ISLNK && defined S_IFREG
25620 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25623 #if defined S_ISSOCK && defined S_IFREG
25624 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25645 ac_cv_header_stat_broken=no
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_cv_header_stat_broken=yes
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25656 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25657 if test $ac_cv_header_stat_broken = yes; then
25659 cat >>confdefs.h <<\_ACEOF
25660 #define STAT_MACROS_BROKEN 1
25670 ac_header_dirent=no
25671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25672 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25673 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25676 echo $ECHO_N "(cached) $ECHO_C" >&6
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 #include <sys/types.h>
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703 (eval "$ac_compile") 2>conftest.er1
25705 grep -v '^ *+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && {
25710 test -z "$ac_c_werror_flag" ||
25711 test ! -s conftest.err
25712 } && test -s conftest.$ac_objext; then
25713 eval "$as_ac_Header=yes"
25715 echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25718 eval "$as_ac_Header=no"
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 ac_res=`eval echo '${'$as_ac_Header'}'`
25724 { echo "$as_me:$LINENO: result: $ac_res" >&5
25725 echo "${ECHO_T}$ac_res" >&6; }
25726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25727 cat >>confdefs.h <<_ACEOF
25728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25731 ac_header_dirent=$ac_hdr; break
25735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25736 if test $ac_header_dirent = dirent.h; then
25737 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25739 if test "${ac_cv_search_opendir+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 ac_func_search_save_LIBS=$LIBS
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25750 /* Override any GCC internal prototype to avoid an error.
25751 Use char because int might match the return type of a GCC
25752 builtin and then its argument prototype would still apply. */
25765 for ac_lib in '' dir; do
25766 if test -z "$ac_lib"; then
25767 ac_res="none required"
25770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_link") 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } && {
25786 test -z "$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25788 } && test -s conftest$ac_exeext &&
25789 $as_test_x conftest$ac_exeext; then
25790 ac_cv_search_opendir=$ac_res
25792 echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25800 if test "${ac_cv_search_opendir+set}" = set; then
25804 if test "${ac_cv_search_opendir+set}" = set; then
25807 ac_cv_search_opendir=no
25809 rm conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25812 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25814 ac_res=$ac_cv_search_opendir
25815 if test "$ac_res" != no; then
25816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25821 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_opendir+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 ac_func_search_save_LIBS=$LIBS
25827 cat >conftest.$ac_ext <<_ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 /* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25849 for ac_lib in '' x; do
25850 if test -z "$ac_lib"; then
25851 ac_res="none required"
25854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest$ac_exeext &&
25873 $as_test_x conftest$ac_exeext; then
25874 ac_cv_search_opendir=$ac_res
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25884 if test "${ac_cv_search_opendir+set}" = set; then
25888 if test "${ac_cv_search_opendir+set}" = set; then
25891 ac_cv_search_opendir=no
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25898 ac_res=$ac_cv_search_opendir
25899 if test "$ac_res" != no; then
25900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25913 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 cat >conftest.$ac_ext <<_ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25929 #define $ac_func innocuous_$ac_func
25931 /* System header to define __stub macros and hopefully few prototypes,
25932 which can conflict with char $ac_func (); below.
25933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25934 <limits.h> exists even on freestanding compilers. */
25937 # include <limits.h>
25939 # include <assert.h>
25944 /* Override any GCC internal prototype to avoid an error.
25945 Use char because int might match the return type of a GCC
25946 builtin and then its argument prototype would still apply. */
25951 /* The GNU C library defines this for functions which it implements
25952 to always fail with ENOSYS. Some functions are actually named
25953 something starting with __ and the normal name is an alias. */
25954 #if defined __stub_$ac_func || defined __stub___$ac_func
25961 return $ac_func ();
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_link") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest$ac_exeext &&
25983 $as_test_x conftest$ac_exeext; then
25984 eval "$as_ac_var=yes"
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 eval "$as_ac_var=no"
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993 conftest$ac_exeext conftest.$ac_ext
25995 ac_res=`eval echo '${'$as_ac_var'}'`
25996 { echo "$as_me:$LINENO: result: $ac_res" >&5
25997 echo "${ECHO_T}$ac_res" >&6; }
25998 if test `eval echo '${'$as_ac_var'}'` = yes; then
25999 cat >>confdefs.h <<_ACEOF
26000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26008 for ac_func in nanosleep nl_langinfo
26010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26016 cat >conftest.$ac_ext <<_ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26024 #define $ac_func innocuous_$ac_func
26026 /* System header to define __stub macros and hopefully few prototypes,
26027 which can conflict with char $ac_func (); below.
26028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26029 <limits.h> exists even on freestanding compilers. */
26032 # include <limits.h>
26034 # include <assert.h>
26039 /* Override any GCC internal prototype to avoid an error.
26040 Use char because int might match the return type of a GCC
26041 builtin and then its argument prototype would still apply. */
26046 /* The GNU C library defines this for functions which it implements
26047 to always fail with ENOSYS. Some functions are actually named
26048 something starting with __ and the normal name is an alias. */
26049 #if defined __stub_$ac_func || defined __stub___$ac_func
26056 return $ac_func ();
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_link") 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest$ac_exeext &&
26078 $as_test_x conftest$ac_exeext; then
26079 eval "$as_ac_var=yes"
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 eval "$as_ac_var=no"
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088 conftest$ac_exeext conftest.$ac_ext
26090 ac_res=`eval echo '${'$as_ac_var'}'`
26091 { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26093 if test `eval echo '${'$as_ac_var'}'` = yes; then
26094 cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26102 for ac_header in varargs.h
26104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 ac_res=`eval echo '${'$as_ac_Header'}'`
26112 { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26115 # Is the header compilable?
26116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 $ac_includes_default
26125 #include <$ac_header>
26127 rm -f conftest.$ac_objext
26128 if { (ac_try="$ac_compile"
26129 case "(($ac_try" in
26130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_compile") 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } && {
26141 test -z "$ac_c_werror_flag" ||
26142 test ! -s conftest.err
26143 } && test -s conftest.$ac_objext; then
26144 ac_header_compiler=yes
26146 echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26149 ac_header_compiler=no
26152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6; }
26156 # Is the header present?
26157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 #include <$ac_header>
26167 if { (ac_try="$ac_cpp conftest.$ac_ext"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26175 grep -v '^ *+' conftest.er1 >conftest.err
26177 cat conftest.err >&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } >/dev/null && {
26180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26181 test ! -s conftest.err
26183 ac_header_preproc=yes
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 ac_header_preproc=no
26191 rm -f conftest.err conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26193 echo "${ECHO_T}$ac_header_preproc" >&6; }
26195 # So? What about this header?
26196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26202 ac_header_preproc=yes
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 eval "$as_ac_Header=\$ac_header_preproc"
26227 ac_res=`eval echo '${'$as_ac_Header'}'`
26228 { echo "$as_me:$LINENO: result: $ac_res" >&5
26229 echo "${ECHO_T}$ac_res" >&6; }
26232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26233 cat >>confdefs.h <<_ACEOF
26234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26243 { echo "$as_me:$LINENO: checking for Python support" >&5
26244 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26246 # Check whether --with-python was given.
26247 if test "${with_python+set}" = set; then
26248 withval=$with_python;
26251 if test "$withval" != "no"; then
26252 if test "$withval" = "yes"; then
26253 if test -e /usr/bin/python-config ; then
26254 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26255 PYTHON_LIBS=`/usr/bin/python-config --libs`
26257 for python_root in /usr /usr/local /usr/sfw; do
26258 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26259 if test -f $python_root/include/${ver}/Python.h; then
26260 PYTHON_INCDIR=-I$python_root/include/${ver}
26261 if test -d $python_root/lib64/${ver}/config; then
26262 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26264 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26271 if test x$PYTHON_INCDIR = x; then
26272 if test -f $prefix/include/Python.h; then
26273 PYTHON_INCDIR=-I$prefix/include
26274 if test -d $prefix/lib64/config; then
26275 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26277 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26280 { echo "$as_me:$LINENO: result: no" >&5
26281 echo "${ECHO_T}no" >&6; }
26282 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26283 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26284 { (exit 1); exit 1; }; }
26289 if test -e $withval/bin/python-config ; then
26290 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26291 PYTHON_LIBS=`$withval/bin/python-config --libs`
26292 elif test -f $withval/Python.h; then
26293 PYTHON_INCDIR=-I$withval
26294 PYTHON_LIBS="-L$withval/config -lpython"
26295 elif test -f $withval/include/Python.h; then
26296 PYTHON_INCDIR=-I$withval/include
26297 if test -d $withval/lib64/config; then
26298 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26300 PYTHON_LIBS="-L$withval/lib/config -lpython"
26302 elif test -f $withval/include/python/Python.h; then
26303 PYTHON_INCDIR=-I$withval/include/python
26304 if test -d $withval/lib64/python/config; then
26305 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26307 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26310 { echo "$as_me:$LINENO: result: no" >&5
26311 echo "${ECHO_T}no" >&6; }
26312 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26313 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26314 { (exit 1); exit 1; }; }
26318 cat >>confdefs.h <<\_ACEOF
26319 #define HAVE_PYTHON 1
26322 { echo "$as_me:$LINENO: result: yes" >&5
26323 echo "${ECHO_T}yes" >&6; }
26325 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26326 echo "$as_me: checking for more Python libs" >&6;}
26327 saved_LIBS="$LIBS"; LIBS=
26328 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26329 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26330 if test "${ac_cv_search_shm_open+set}" = set; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26333 ac_func_search_save_LIBS=$LIBS
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26341 /* Override any GCC internal prototype to avoid an error.
26342 Use char because int might match the return type of a GCC
26343 builtin and then its argument prototype would still apply. */
26351 return shm_open ();
26356 for ac_lib in '' rt; do
26357 if test -z "$ac_lib"; then
26358 ac_res="none required"
26361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_link") 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } && {
26377 test -z "$ac_c_werror_flag" ||
26378 test ! -s conftest.err
26379 } && test -s conftest$ac_exeext &&
26380 $as_test_x conftest$ac_exeext; then
26381 ac_cv_search_shm_open=$ac_res
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26391 if test "${ac_cv_search_shm_open+set}" = set; then
26395 if test "${ac_cv_search_shm_open+set}" = set; then
26398 ac_cv_search_shm_open=no
26400 rm conftest.$ac_ext
26401 LIBS=$ac_func_search_save_LIBS
26403 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26404 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26405 ac_res=$ac_cv_search_shm_open
26406 if test "$ac_res" != no; then
26407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26412 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26413 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26414 if test "${ac_cv_lib_util_openpty+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 ac_check_lib_save_LIBS=$LIBS
26418 LIBS="-lutil $LIBS"
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26426 /* Override any GCC internal prototype to avoid an error.
26427 Use char because int might match the return type of a GCC
26428 builtin and then its argument prototype would still apply. */
26441 rm -f conftest.$ac_objext conftest$ac_exeext
26442 if { (ac_try="$ac_link"
26443 case "(($ac_try" in
26444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445 *) ac_try_echo=$ac_try;;
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_link") 2>conftest.er1
26450 grep -v '^ *+' conftest.er1 >conftest.err
26452 cat conftest.err >&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } && {
26455 test -z "$ac_c_werror_flag" ||
26456 test ! -s conftest.err
26457 } && test -s conftest$ac_exeext &&
26458 $as_test_x conftest$ac_exeext; then
26459 ac_cv_lib_util_openpty=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_lib_util_openpty=no
26467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26468 conftest$ac_exeext conftest.$ac_ext
26469 LIBS=$ac_check_lib_save_LIBS
26471 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26472 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26473 if test $ac_cv_lib_util_openpty = yes; then
26474 cat >>confdefs.h <<_ACEOF
26475 #define HAVE_LIBUTIL 1
26478 LIBS="-lutil $LIBS"
26482 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26485 { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26491 { echo "$as_me:$LINENO: result: no" >&5
26492 echo "${ECHO_T}no" >&6; }
26500 { echo "$as_me:$LINENO: checking for socket" >&5
26501 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26502 if test "${ac_cv_func_socket+set}" = set; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 cat >conftest.$ac_ext <<_ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26513 #define socket innocuous_socket
26515 /* System header to define __stub macros and hopefully few prototypes,
26516 which can conflict with char socket (); below.
26517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26518 <limits.h> exists even on freestanding compilers. */
26521 # include <limits.h>
26523 # include <assert.h>
26528 /* Override any GCC internal prototype to avoid an error.
26529 Use char because int might match the return type of a GCC
26530 builtin and then its argument prototype would still apply. */
26535 /* The GNU C library defines this for functions which it implements
26536 to always fail with ENOSYS. Some functions are actually named
26537 something starting with __ and the normal name is an alias. */
26538 #if defined __stub_socket || defined __stub___socket
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_link") 2>conftest.er1
26559 grep -v '^ *+' conftest.er1 >conftest.err
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } && {
26564 test -z "$ac_c_werror_flag" ||
26565 test ! -s conftest.err
26566 } && test -s conftest$ac_exeext &&
26567 $as_test_x conftest$ac_exeext; then
26568 ac_cv_func_socket=yes
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26573 ac_cv_func_socket=no
26576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26577 conftest$ac_exeext conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26580 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26581 if test $ac_cv_func_socket = yes; then
26582 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26583 echo "${ECHO_T}using libc's socket" >&6; }
26586 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26587 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-lxnet $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619 *) ac_try_echo=$ac_try;;
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622 (eval "$ac_link") 2>conftest.er1
26624 grep -v '^ *+' conftest.er1 >conftest.err
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } && {
26629 test -z "$ac_c_werror_flag" ||
26630 test ! -s conftest.err
26631 } && test -s conftest$ac_exeext &&
26632 $as_test_x conftest$ac_exeext; then
26633 ac_cv_lib_xnet_socket=yes
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 ac_cv_lib_xnet_socket=no
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642 conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26647 if test $ac_cv_lib_xnet_socket = yes; then
26648 cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBXNET 1
26652 LIBS="-lxnet $LIBS"
26657 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26658 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26659 if test "${ac_cv_lib_socket_socket+set}" = set; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26662 ac_check_lib_save_LIBS=$LIBS
26663 LIBS="-lsocket $LIBS"
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26671 /* Override any GCC internal prototype to avoid an error.
26672 Use char because int might match the return type of a GCC
26673 builtin and then its argument prototype would still apply. */
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690 *) ac_try_echo=$ac_try;;
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693 (eval "$ac_link") 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } && {
26700 test -z "$ac_c_werror_flag" ||
26701 test ! -s conftest.err
26702 } && test -s conftest$ac_exeext &&
26703 $as_test_x conftest$ac_exeext; then
26704 ac_cv_lib_socket_socket=yes
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 ac_cv_lib_socket_socket=no
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713 conftest$ac_exeext conftest.$ac_ext
26714 LIBS=$ac_check_lib_save_LIBS
26716 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26717 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26718 if test $ac_cv_lib_socket_socket = yes; then
26719 cat >>confdefs.h <<_ACEOF
26720 #define HAVE_LIBSOCKET 1
26723 LIBS="-lsocket $LIBS"
26728 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26729 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_inet_socket+set}" = set; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-linet $LIBS"
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26742 /* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest$ac_exeext &&
26774 $as_test_x conftest$ac_exeext; then
26775 ac_cv_lib_inet_socket=yes
26777 echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26780 ac_cv_lib_inet_socket=no
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784 conftest$ac_exeext conftest.$ac_ext
26785 LIBS=$ac_check_lib_save_LIBS
26787 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26789 if test $ac_cv_lib_inet_socket = yes; then
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_LIBINET 1
26794 LIBS="-linet $LIBS"
26804 # Check whether --with-tcp-wrappers was given.
26805 if test "${with_tcp_wrappers+set}" = set; then
26806 withval=$with_tcp_wrappers;
26807 if test "x$withval" != "xno" ; then
26809 LIBS="$saved_LIBS -lwrap"
26810 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26811 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26812 if test "${ac_cv_search_nanosleep+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 ac_func_search_save_LIBS=$LIBS
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26823 /* Override any GCC internal prototype to avoid an error.
26824 Use char because int might match the return type of a GCC
26825 builtin and then its argument prototype would still apply. */
26833 return nanosleep ();
26838 for ac_lib in '' rt; do
26839 if test -z "$ac_lib"; then
26840 ac_res="none required"
26843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_link") 2>conftest.er1
26854 grep -v '^ *+' conftest.er1 >conftest.err
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } && {
26859 test -z "$ac_c_werror_flag" ||
26860 test ! -s conftest.err
26861 } && test -s conftest$ac_exeext &&
26862 $as_test_x conftest$ac_exeext; then
26863 ac_cv_search_nanosleep=$ac_res
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26873 if test "${ac_cv_search_nanosleep+set}" = set; then
26877 if test "${ac_cv_search_nanosleep+set}" = set; then
26880 ac_cv_search_nanosleep=no
26882 rm conftest.$ac_ext
26883 LIBS=$ac_func_search_save_LIBS
26885 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26886 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26887 ac_res=$ac_cv_search_nanosleep
26888 if test "$ac_res" != no; then
26889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26893 { echo "$as_me:$LINENO: checking for libwrap" >&5
26894 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26902 #include <sys/types.h>
26904 int deny_severity = 0;
26905 int allow_severity = 0;
26906 struct request_info *req;
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_link") 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } && {
26932 test -z "$ac_c_werror_flag" ||
26933 test ! -s conftest.err
26934 } && test -s conftest$ac_exeext &&
26935 $as_test_x conftest$ac_exeext; then
26937 { echo "$as_me:$LINENO: result: yes" >&5
26938 echo "${ECHO_T}yes" >&6; }
26940 cat >>confdefs.h <<\_ACEOF
26941 #define HAVE_LIBWRAP 1
26949 echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26953 LIBS="$saved_LIBS -lwrap -lnsl"
26954 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26962 #include <sys/types.h>
26964 int deny_severity = 0;
26965 int allow_severity = 0;
26966 struct request_info *req;
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (ac_try="$ac_link"
26980 case "(($ac_try" in
26981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982 *) ac_try_echo=$ac_try;;
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985 (eval "$ac_link") 2>conftest.er1
26987 grep -v '^ *+' conftest.er1 >conftest.err
26989 cat conftest.err >&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } && {
26992 test -z "$ac_c_werror_flag" ||
26993 test ! -s conftest.err
26994 } && test -s conftest$ac_exeext &&
26995 $as_test_x conftest$ac_exeext; then
26997 { echo "$as_me:$LINENO: result: yes" >&5
26998 echo "${ECHO_T}yes" >&6; }
27000 cat >>confdefs.h <<\_ACEOF
27001 #define HAVE_LIBWRAP 1
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27013 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27014 echo "$as_me: error: *** libwrap missing" >&2;}
27015 { (exit 1); exit 1; }; }
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021 conftest$ac_exeext conftest.$ac_ext
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027 conftest$ac_exeext conftest.$ac_ext
27034 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27035 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27037 # Check whether --with-openssl was given.
27038 if test "${with_openssl+set}" = set; then
27039 withval=$with_openssl;
27040 with_openssl_directory=${withval}
27046 if test "x$with_openssl_directory" != "xno"; then
27047 OPENSSL_LIBS="-lssl -lcrypto"
27050 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27052 # Make sure the $with_openssl_directory also makes sense
27054 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27055 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27056 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27060 saved_LIBS="${LIBS}"
27061 saved_CFLAGS="${CFLAGS}"
27062 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27063 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27072 #include <openssl/ssl.h>
27078 CRYPTO_set_id_callback(NULL);
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_link") 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest$ac_exeext &&
27101 $as_test_x conftest$ac_exeext; then
27104 support_crypto="yes"
27107 echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27112 support_crypto="no"
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118 conftest$ac_exeext conftest.$ac_ext
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27127 #include <openssl/evp.h>
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_link") 2>conftest.er1
27148 grep -v '^ *+' conftest.er1 >conftest.err
27150 cat conftest.err >&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } && {
27153 test -z "$ac_c_werror_flag" ||
27154 test ! -s conftest.err
27155 } && test -s conftest$ac_exeext &&
27156 $as_test_x conftest$ac_exeext; then
27158 ac_cv_openssl_sha2="yes"
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27165 ac_cv_openssl_sha2="no"
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171 conftest$ac_exeext conftest.$ac_ext
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27180 #include <openssl/evp.h>
27192 rm -f conftest.$ac_objext conftest$ac_exeext
27193 if { (ac_try="$ac_link"
27194 case "(($ac_try" in
27195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27196 *) ac_try_echo=$ac_try;;
27198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27199 (eval "$ac_link") 2>conftest.er1
27201 grep -v '^ *+' conftest.er1 >conftest.err
27203 cat conftest.err >&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } && {
27206 test -z "$ac_c_werror_flag" ||
27207 test ! -s conftest.err
27208 } && test -s conftest$ac_exeext &&
27209 $as_test_x conftest$ac_exeext; then
27211 ac_cv_openssl_export="no"
27214 echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27218 ac_cv_openssl_export="yes"
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224 conftest$ac_exeext conftest.$ac_ext
27226 if test "$support_tls" = "yes"; then
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_OPENSSL 1
27233 cat >>confdefs.h <<\_ACEOF
27238 cat >>confdefs.h <<\_ACEOF
27239 #define HAVE_CRYPTO 1
27244 if test "$ac_cv_openssl_sha2" = "yes"; then
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE_SHA2 1
27252 if test "$ac_cv_openssl_export" = "yes"; then
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27260 if test "$support_crypto" = "yes"; then
27261 { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27262 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27263 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 ac_check_lib_save_LIBS=$LIBS
27268 cat >conftest.$ac_ext <<_ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27275 /* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply. */
27281 char EVP_PKEY_encrypt_old ();
27285 return EVP_PKEY_encrypt_old ();
27290 rm -f conftest.$ac_objext conftest$ac_exeext
27291 if { (ac_try="$ac_link"
27292 case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297 (eval "$ac_link") 2>conftest.er1
27299 grep -v '^ *+' conftest.er1 >conftest.err
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } && {
27304 test -z "$ac_c_werror_flag" ||
27305 test ! -s conftest.err
27306 } && test -s conftest$ac_exeext &&
27307 $as_test_x conftest$ac_exeext; then
27308 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27317 conftest$ac_exeext conftest.$ac_ext
27318 LIBS=$ac_check_lib_save_LIBS
27320 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27321 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27322 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27324 cat >>confdefs.h <<\_ACEOF
27325 #define HAVE_OPENSSLv1 1
27332 LIBS="${saved_LIBS}"
27333 CFLAGS="${saved_CFLAGS}"
27336 support_crypto="no"
27340 { echo "$as_me:$LINENO: result: $support_tls" >&5
27341 echo "${ECHO_T}$support_tls" >&6; }
27343 if test "$support_tls" = "no"; then
27347 if test "$support_crypto" = "no"; then
27355 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27356 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27357 if test "${ac_cv_search_dlopen+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 ac_func_search_save_LIBS=$LIBS
27361 cat >conftest.$ac_ext <<_ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h. */
27368 /* Override any GCC internal prototype to avoid an error.
27369 Use char because int might match the return type of a GCC
27370 builtin and then its argument prototype would still apply. */
27383 for ac_lib in '' dl; do
27384 if test -z "$ac_lib"; then
27385 ac_res="none required"
27388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_link") 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } && {
27404 test -z "$ac_c_werror_flag" ||
27405 test ! -s conftest.err
27406 } && test -s conftest$ac_exeext &&
27407 $as_test_x conftest$ac_exeext; then
27408 ac_cv_search_dlopen=$ac_res
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27418 if test "${ac_cv_search_dlopen+set}" = set; then
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27425 ac_cv_search_dlopen=no
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27439 working_dir=`eval echo ${prefix}/var/bacula/working`
27441 # Check whether --with-working-dir was given.
27442 if test "${with_working_dir+set}" = set; then
27443 withval=$with_working_dir;
27444 if test "x$withval" != "xno" ; then
27445 working_dir=$withval
27456 # Check whether --with-archivedir was given.
27457 if test "${with_archivedir+set}" = set; then
27458 withval=$with_archivedir;
27459 if test "x$withval" != "xno" ; then
27460 archivedir=$withval
27469 basename=`hostname`
27471 # Check whether --with-basename was given.
27472 if test "${with_basename+set}" = set; then
27473 withval=$with_basename;
27474 if test "x$withval" != "xno" ; then
27484 hostname=`uname -n | cut -d '.' -f 1`
27485 if test x${hostname} = x ; then
27486 hostname="localhost"
27489 # Check whether --with-hostname was given.
27490 if test "${with_hostname+set}" = set; then
27491 withval=$with_hostname;
27492 if test "x$withval" != "xno" ; then
27503 scriptdir=`eval echo ${sysconfdir}`
27505 # Check whether --with-scriptdir was given.
27506 if test "${with_scriptdir+set}" = set; then
27507 withval=$with_scriptdir;
27508 if test "x$withval" != "xno" ; then
27521 # Check whether --with-bsrdir was given.
27522 if test "${with_bsrdir+set}" = set; then
27523 withval=$with_bsrdir;
27524 if test "x$withval" != "xno" ; then
27536 # Check whether --with-logdir was given.
27537 if test "${with_logdir+set}" = set; then
27538 withval=$with_logdir;
27539 if test "x$withval" != "xno" ; then
27550 # ------------------------------------------
27551 # Where to place plugindir (plugin files)
27552 # ------------------------------------------
27553 plugindir=`eval echo ${libdir}`
27555 # Check whether --with-plugindir was given.
27556 if test "${with_plugindir+set}" = set; then
27557 withval=$with_plugindir;
27558 if test "x$withval" != "xno" ; then
27568 dump_email=root@localhost
27570 # Check whether --with-dump-email was given.
27571 if test "${with_dump_email+set}" = set; then
27572 withval=$with_dump_email;
27573 if test "x$withval" != "xno" ; then
27574 dump_email=$withval
27583 job_email=root@localhost
27585 # Check whether --with-job-email was given.
27586 if test "${with_job_email+set}" = set; then
27587 withval=$with_job_email;
27588 if test "x$withval" != "xno" ; then
27598 smtp_host=localhost
27600 # Check whether --with-smtp_host was given.
27601 if test "${with_smtp_host+set}" = set; then
27602 withval=$with_smtp_host;
27603 if test "x$withval" != "xno" ; then
27615 # Check whether --with-pid-dir was given.
27616 if test "${with_pid_dir+set}" = set; then
27617 withval=$with_pid_dir;
27618 if test "x$withval" != "xno" ; then
27626 cat >>confdefs.h <<_ACEOF
27627 #define _PATH_BACULA_PIDDIR "$piddir"
27632 subsysdir=/var/run/subsys
27633 if test -d /var/run/subsys; then
27634 subsysdir=/var/run/subsys
27635 elif test -d /var/lock/subsys; then
27636 subsysdir=/var/lock/subsys
27638 subsysdir=/var/run/subsys
27641 # Check whether --with-subsys-dir was given.
27642 if test "${with_subsys_dir+set}" = set; then
27643 withval=$with_subsys_dir;
27644 if test "x$withval" != "xno" ; then
27656 # Check whether --with-baseport was given.
27657 if test "${with_baseport+set}" = set; then
27658 withval=$with_baseport;
27659 if test "x$withval" != "xno" ; then
27668 dir_port=`expr $baseport`
27669 fd_port=`expr $baseport + 1`
27670 sd_port=`expr $fd_port + 1`
27678 # Check whether --with-dir-password was given.
27679 if test "${with_dir_password+set}" = set; then
27680 withval=$with_dir_password;
27681 if test "x$withval" != "xno" ; then
27682 dir_password=$withval
27689 if test "x$dir_password" = "x" ; then
27690 if test "x$OPENSSL" = "xnone" ; then
27691 key=`autoconf/randpass 33`
27693 key=`openssl rand -base64 33`
27700 # Check whether --with-fd-password was given.
27701 if test "${with_fd_password+set}" = set; then
27702 withval=$with_fd_password;
27703 if test "x$withval" != "xno" ; then
27704 fd_password=$withval
27711 if test "x$fd_password" = "x" ; then
27712 if test "x$OPENSSL" = "xnone" ; then
27713 key=`autoconf/randpass 37`
27715 key=`openssl rand -base64 33`
27722 # Check whether --with-sd-password was given.
27723 if test "${with_sd_password+set}" = set; then
27724 withval=$with_sd_password;
27725 if test "x$withval" != "xno" ; then
27726 sd_password=$withval
27733 if test "x$sd_password" = "x" ; then
27734 if test "x$OPENSSL" = "xnone" ; then
27735 key=`autoconf/randpass 41`
27737 key=`openssl rand -base64 33`
27744 # Check whether --with-mon-dir-password was given.
27745 if test "${with_mon_dir_password+set}" = set; then
27746 withval=$with_mon_dir_password;
27747 if test "x$withval" != "xno" ; then
27748 mon_dir_password=$withval
27755 if test "x$mon_dir_password" = "x" ; then
27756 if test "x$OPENSSL" = "xnone" ; then
27757 key=`autoconf/randpass 33`
27759 key=`openssl rand -base64 33`
27761 mon_dir_password=$key
27766 # Check whether --with-mon-fd-password was given.
27767 if test "${with_mon_fd_password+set}" = set; then
27768 withval=$with_mon_fd_password;
27769 if test "x$withval" != "xno" ; then
27770 mon_fd_password=$withval
27777 if test "x$mon_fd_password" = "x" ; then
27778 if test "x$OPENSSL" = "xnone" ; then
27779 key=`autoconf/randpass 37`
27781 key=`openssl rand -base64 33`
27783 mon_fd_password=$key
27788 # Check whether --with-mon-sd-password was given.
27789 if test "${with_mon_sd_password+set}" = set; then
27790 withval=$with_mon_sd_password;
27791 if test "x$withval" != "xno" ; then
27792 mon_sd_password=$withval
27799 if test "x$mon_sd_password" = "x" ; then
27800 if test "x$OPENSSL" = "xnone" ; then
27801 key=`autoconf/randpass 41`
27803 key=`openssl rand -base64 33`
27805 mon_sd_password=$key
27817 # Check whether --with-db_name was given.
27818 if test "${with_db_name+set}" = set; then
27819 withval=$with_db_name;
27820 if test "x$withval" != "x" ; then
27831 # Check whether --with-db_user was given.
27832 if test "${with_db_user+set}" = set; then
27833 withval=$with_db_user;
27834 if test "x$withval" != "x" ; then
27845 # Check whether --with-db_password was given.
27846 if test "${with_db_password+set}" = set; then
27847 withval=$with_db_password;
27848 if test "x$withval" != "x" ; then
27849 db_password=$withval
27859 # Check whether --with-db_port was given.
27860 if test "${with_db_port+set}" = set; then
27861 withval=$with_db_port;
27862 if test "x$withval" != "x" ; then
27872 # Handle users and groups for each daemon
27876 # Check whether --with-dir_user was given.
27877 if test "${with_dir_user+set}" = set; then
27878 withval=$with_dir_user;
27879 if test "x$withval" != "x" ; then
27889 # Check whether --with-dir_group was given.
27890 if test "${with_dir_group+set}" = set; then
27891 withval=$with_dir_group;
27892 if test "x$withval" != "x" ; then
27902 # Check whether --with-sd_user was given.
27903 if test "${with_sd_user+set}" = set; then
27904 withval=$with_sd_user;
27905 if test "x$withval" != "x" ; then
27915 # Check whether --with-sd_group was given.
27916 if test "${with_sd_group+set}" = set; then
27917 withval=$with_sd_group;
27918 if test "x$withval" != "x" ; then
27928 # Check whether --with-fd_user was given.
27929 if test "${with_fd_user+set}" = set; then
27930 withval=$with_fd_user;
27931 if test "x$withval" != "x" ; then
27941 # Check whether --with-fd_group was given.
27942 if test "${with_fd_group+set}" = set; then
27943 withval=$with_fd_group;
27944 if test "x$withval" != "x" ; then
27961 # Check whether --with-sbin-perm was given.
27962 if test "${with_sbin_perm+set}" = set; then
27963 withval=$with_sbin_perm;
27964 if test "x$withval" != "x" ; then
27977 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27978 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27980 # Check whether --with-postgresql was given.
27981 if test "${with_postgresql+set}" = set; then
27982 withval=$with_postgresql;
27983 if test "$withval" != "no"; then
27984 if test "$db_found" = "yes"; then
27985 { echo "$as_me:$LINENO: result: error" >&5
27986 echo "${ECHO_T}error" >&6; }
27987 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27988 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27989 { (exit 1); exit 1; }; };
27991 if test "$withval" = "yes"; then
27992 PG_CONFIG=`which pg_config`
27993 if test -n "$PG_CONFIG";then
27994 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27995 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27996 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27997 elif test -f /usr/local/include/libpq-fe.h; then
27998 POSTGRESQL_INCDIR=/usr/local/include
27999 if test -d /usr/local/lib64; then
28000 POSTGRESQL_LIBDIR=/usr/local/lib64
28002 POSTGRESQL_LIBDIR=/usr/local/lib
28004 POSTGRESQL_BINDIR=/usr/local/bin
28005 elif test -f /usr/include/libpq-fe.h; then
28006 POSTGRESQL_INCDIR=/usr/include
28007 if test -d /usr/lib64; then
28008 POSTGRESQL_LIBDIR=/usr/lib64
28010 POSTGRESQL_LIBDIR=/usr/lib
28012 POSTGRESQL_BINDIR=/usr/bin
28013 elif test -f /usr/include/pgsql/libpq-fe.h; then
28014 POSTGRESQL_INCDIR=/usr/include/pgsql
28015 if test -d /usr/lib64/pgsql; then
28016 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28018 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28020 POSTGRESQL_BINDIR=/usr/bin
28021 elif test -f /usr/include/postgresql/libpq-fe.h; then
28022 POSTGRESQL_INCDIR=/usr/include/postgresql
28023 if test -d /usr/lib64/postgresql; then
28024 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28026 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28028 POSTGRESQL_BINDIR=/usr/bin
28030 { echo "$as_me:$LINENO: result: no" >&5
28031 echo "${ECHO_T}no" >&6; }
28032 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28033 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28034 { (exit 1); exit 1; }; }
28036 elif test -f $withval/include/libpq-fe.h; then
28037 POSTGRESQL_INCDIR=$withval/include
28038 POSTGRESQL_LIBDIR=$withval/lib
28039 POSTGRESQL_BINDIR=$withval/bin
28040 elif test -f $withval/include/postgresql/libpq-fe.h; then
28041 POSTGRESQL_INCDIR=$withval/include/postgresql
28042 if test -d $withval/lib64; then
28043 POSTGRESQL_LIBDIR=$withval/lib64
28045 POSTGRESQL_LIBDIR=$withval/lib
28047 POSTGRESQL_BINDIR=$withval/bin
28049 { echo "$as_me:$LINENO: result: no" >&5
28050 echo "${ECHO_T}no" >&6; }
28051 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28052 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28053 { (exit 1); exit 1; }; }
28055 cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_POSTGRESQL 1
28059 { echo "$as_me:$LINENO: result: yes" >&5
28060 echo "${ECHO_T}yes" >&6; }
28061 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28062 { echo "$as_me:$LINENO: checking for crypt" >&5
28063 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28064 if test "${ac_cv_func_crypt+set}" = set; then
28065 echo $ECHO_N "(cached) $ECHO_C" >&6
28067 cat >conftest.$ac_ext <<_ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28073 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28075 #define crypt innocuous_crypt
28077 /* System header to define __stub macros and hopefully few prototypes,
28078 which can conflict with char crypt (); below.
28079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28080 <limits.h> exists even on freestanding compilers. */
28083 # include <limits.h>
28085 # include <assert.h>
28090 /* Override any GCC internal prototype to avoid an error.
28091 Use char because int might match the return type of a GCC
28092 builtin and then its argument prototype would still apply. */
28097 /* The GNU C library defines this for functions which it implements
28098 to always fail with ENOSYS. Some functions are actually named
28099 something starting with __ and the normal name is an alias. */
28100 #if defined __stub_crypt || defined __stub___crypt
28112 rm -f conftest.$ac_objext conftest$ac_exeext
28113 if { (ac_try="$ac_link"
28114 case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_link") 2>conftest.er1
28121 grep -v '^ *+' conftest.er1 >conftest.err
28123 cat conftest.err >&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); } && {
28126 test -z "$ac_c_werror_flag" ||
28127 test ! -s conftest.err
28128 } && test -s conftest$ac_exeext &&
28129 $as_test_x conftest$ac_exeext; then
28130 ac_cv_func_crypt=yes
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28135 ac_cv_func_crypt=no
28138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28139 conftest$ac_exeext conftest.$ac_ext
28141 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28142 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28143 if test $ac_cv_func_crypt = yes; then
28146 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28147 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28148 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 ac_check_lib_save_LIBS=$LIBS
28152 LIBS="-lcrypt $LIBS"
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28160 /* Override any GCC internal prototype to avoid an error.
28161 Use char because int might match the return type of a GCC
28162 builtin and then its argument prototype would still apply. */
28175 rm -f conftest.$ac_objext conftest$ac_exeext
28176 if { (ac_try="$ac_link"
28177 case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_link") 2>conftest.er1
28184 grep -v '^ *+' conftest.er1 >conftest.err
28186 cat conftest.err >&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); } && {
28189 test -z "$ac_c_werror_flag" ||
28190 test ! -s conftest.err
28191 } && test -s conftest$ac_exeext &&
28192 $as_test_x conftest$ac_exeext; then
28193 ac_cv_lib_crypt_crypt=yes
28195 echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28198 ac_cv_lib_crypt_crypt=no
28201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28202 conftest$ac_exeext conftest.$ac_ext
28203 LIBS=$ac_check_lib_save_LIBS
28205 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28206 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28207 if test $ac_cv_lib_crypt_crypt = yes; then
28208 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28213 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28214 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28215 SQL_BINDIR=$POSTGRESQL_BINDIR
28216 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28219 support_postgresql=yes
28223 { echo "$as_me:$LINENO: result: no" >&5
28224 echo "${ECHO_T}no" >&6; }
28229 { echo "$as_me:$LINENO: result: no" >&5
28230 echo "${ECHO_T}no" >&6; }
28242 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28243 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28245 # Check whether --with-mysql was given.
28246 if test "${with_mysql+set}" = set; then
28247 withval=$with_mysql;
28248 if test "$withval" != "no"; then
28249 if test "$withval" = "yes"; then
28250 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28251 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28252 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28253 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28254 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28256 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28258 MYSQL_BINDIR=/usr/local/mysql/bin
28259 elif test -f /usr/include/mysql/mysql.h; then
28260 MYSQL_INCDIR=/usr/include/mysql
28261 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28262 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28263 MYSQL_LIBDIR=/usr/lib64/mysql
28264 elif test -f /usr/lib64/libmysqlclient_r.a \
28265 -o -f /usr/lib64/libmysqlclient_r.so; then
28266 MYSQL_LIBDIR=/usr/lib64
28267 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28268 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28269 MYSQL_LIBDIR=/usr/lib/mysql
28271 MYSQL_LIBDIR=/usr/lib
28273 MYSQL_BINDIR=/usr/bin
28274 elif test -f /usr/include/mysql.h; then
28275 MYSQL_INCDIR=/usr/include
28276 if test -f /usr/lib64/libmysqlclient_r.a \
28277 -o -f /usr/lib64/libmysqlclient_r.so; then
28278 MYSQL_LIBDIR=/usr/lib64
28280 MYSQL_LIBDIR=/usr/lib
28282 MYSQL_BINDIR=/usr/bin
28283 elif test -f /usr/local/include/mysql/mysql.h; then
28284 MYSQL_INCDIR=/usr/local/include/mysql
28285 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28286 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28287 MYSQL_LIBDIR=/usr/local/lib64/mysql
28289 MYSQL_LIBDIR=/usr/local/lib/mysql
28291 MYSQL_BINDIR=/usr/local/bin
28292 elif test -f /usr/local/include/mysql.h; then
28293 MYSQL_INCDIR=/usr/local/include
28294 if test -f /usr/local/lib64/libmysqlclient_r.a \
28295 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28296 MYSQL_LIBDIR=/usr/local/lib64
28298 MYSQL_LIBDIR=/usr/local/lib
28300 MYSQL_BINDIR=/usr/local/bin
28302 { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28305 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28306 { (exit 1); exit 1; }; }
28309 if test -f $withval/include/mysql/mysql.h; then
28310 MYSQL_INCDIR=$withval/include/mysql
28311 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28312 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28313 MYSQL_LIBDIR=$withval/lib64/mysql
28314 elif test -f $withval/lib64/libmysqlclient_r.a \
28315 -o -f $withval/lib64/libmysqlclient_r.so; then
28316 MYSQL_LIBDIR=$withval/lib64
28317 elif test -f $withval/lib/libmysqlclient_r.a \
28318 -o -f $withval/lib/libmysqlclient_r.so; then
28319 MYSQL_LIBDIR=$withval/lib
28321 MYSQL_LIBDIR=$withval/lib/mysql
28323 MYSQL_BINDIR=$withval/bin
28324 elif test -f $withval/include/mysql.h; then
28325 MYSQL_INCDIR=$withval/include
28326 if test -f $withval/lib64/libmysqlclient_r.a \
28327 -o -f $withval/lib64/libmysqlclient_r.so; then
28328 MYSQL_LIBDIR=$withval/lib64
28330 MYSQL_LIBDIR=$withval/lib
28332 MYSQL_BINDIR=$withval/bin
28334 { echo "$as_me:$LINENO: result: no" >&5
28335 echo "${ECHO_T}no" >&6; }
28336 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28337 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28338 { (exit 1); exit 1; }; }
28341 SQL_INCLUDE=-I$MYSQL_INCDIR
28342 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28343 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28344 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28345 cat >>confdefs.h <<\_ACEOF
28346 #define HAVE_THREAD_SAFE_MYSQL 1
28350 SQL_BINDIR=$MYSQL_BINDIR
28351 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28354 cat >>confdefs.h <<\_ACEOF
28355 #define HAVE_MYSQL 1
28358 { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28366 { echo "$as_me:$LINENO: result: no" >&5
28367 echo "${ECHO_T}no" >&6; }
28375 # Check whether --with-embedded-mysql was given.
28376 if test "${with_embedded_mysql+set}" = set; then
28377 withval=$with_embedded_mysql;
28378 if test "$withval" != "no"; then
28379 if test "$withval" = "yes"; then
28380 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28381 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28382 if test -d /usr/local/mysql/lib64/mysql; then
28383 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28385 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28387 MYSQL_BINDIR=/usr/local/mysql/bin
28388 elif test -f /usr/include/mysql/mysql.h; then
28389 MYSQL_INCDIR=/usr/include/mysql
28390 if test -d /usr/lib64/mysql; then
28391 MYSQL_LIBDIR=/usr/lib64/mysql
28393 MYSQL_LIBDIR=/usr/lib/mysql
28395 MYSQL_BINDIR=/usr/bin
28396 elif test -f /usr/include/mysql.h; then
28397 MYSQL_INCDIR=/usr/include
28398 if test -d /usr/lib64; then
28399 MYSQL_LIBDIR=/usr/lib64
28401 MYSQL_LIBDIR=/usr/lib
28403 MYSQL_BINDIR=/usr/bin
28404 elif test -f /usr/local/include/mysql/mysql.h; then
28405 MYSQL_INCDIR=/usr/local/include/mysql
28406 if test -d /usr/local/lib64/mysql; then
28407 MYSQL_LIBDIR=/usr/local/lib64/mysql
28409 MYSQL_LIBDIR=/usr/local/lib/mysql
28411 MYSQL_BINDIR=/usr/local/bin
28412 elif test -f /usr/local/include/mysql.h; then
28413 MYSQL_INCDIR=/usr/local/include
28414 if test -d /usr/local/lib64; then
28415 MYSQL_LIBDIR=/usr/local/lib64
28417 MYSQL_LIBDIR=/usr/local/lib
28419 MYSQL_BINDIR=/usr/local/bin
28421 { echo "$as_me:$LINENO: result: no" >&5
28422 echo "${ECHO_T}no" >&6; }
28423 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28424 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28425 { (exit 1); exit 1; }; }
28428 if test -f $withval/include/mysql/mysql.h; then
28429 MYSQL_INCDIR=$withval/include/mysql
28430 if test -d $withval/lib64/mysql; then
28431 MYSQL_LIBDIR=$withval/lib64/mysql
28433 MYSQL_LIBDIR=$withval/lib/mysql
28435 MYSQL_BINDIR=$withval/bin
28436 elif test -f $withval/include/mysql.h; then
28437 MYSQL_INCDIR=$withval/include
28438 if test -d $withval/lib64; then
28439 MYSQL_LIBDIR=$withval/lib64
28441 MYSQL_LIBDIR=$withval/lib
28443 MYSQL_BINDIR=$withval/bin
28445 { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28448 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28449 { (exit 1); exit 1; }; }
28452 SQL_INCLUDE=-I$MYSQL_INCDIR
28453 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28454 SQL_BINDIR=$MYSQL_BINDIR
28455 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28457 cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_MYSQL 1
28461 cat >>confdefs.h <<\_ACEOF
28462 #define HAVE_EMBEDDED_MYSQL 1
28465 { echo "$as_me:$LINENO: result: yes" >&5
28466 echo "${ECHO_T}yes" >&6; }
28473 { echo "$as_me:$LINENO: result: no" >&5
28474 echo "${ECHO_T}no" >&6; }
28490 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28491 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28493 # Check whether --with-ingres was given.
28494 if test "${with_ingres+set}" = set; then
28495 withval=$with_ingres;
28496 if test "$withval" != "no"; then
28497 if test "$withval" = "yes"; then
28498 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28499 INGRES_INCDIR=${II_SYSTEM}/files
28500 INGRES_LIBDIR=${II_SYSTEM}/lib
28501 INGRES_BINDIR=${II_SYSTEM}/bin
28502 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28503 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28504 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28505 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28507 { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28509 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28510 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28511 { (exit 1); exit 1; }; }
28514 if test -f $withval/files/eqdefc.h; then
28515 INGRES_INCDIR=$withval/files
28516 INGRES_LIBDIR=$withval/lib
28517 INGRES_BINDIR=$withval/bin
28519 { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28521 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28522 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28523 { (exit 1); exit 1; }; }
28526 SQL_INCLUDE=-I$INGRES_INCDIR
28527 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28528 SQL_BINDIR=$INGRES_BINDIR
28529 SQL_LIB=$INGRES_LIBDIR/libingres.a
28531 cat >>confdefs.h <<\_ACEOF
28532 #define HAVE_INGRES 1
28535 { echo "$as_me:$LINENO: result: yes" >&5
28536 echo "${ECHO_T}yes" >&6; }
28543 { echo "$as_me:$LINENO: result: no" >&5
28544 echo "${ECHO_T}no" >&6; }
28549 { echo "$as_me:$LINENO: result: no" >&5
28550 echo "${ECHO_T}no" >&6; }
28562 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28563 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28565 # Check whether --with-sqlite3 was given.
28566 if test "${with_sqlite3+set}" = set; then
28567 withval=$with_sqlite3;
28568 if test "$withval" != "no"; then
28569 if test "$withval" = "yes"; then
28570 if test -f /usr/local/include/sqlite3.h; then
28571 SQLITE_INCDIR=/usr/local/include
28572 if test -d /usr/local/lib64; then
28573 SQLITE_LIBDIR=/usr/local/lib64
28575 SQLITE_LIBDIR=/usr/local/lib
28577 SQLITE_BINDIR=/usr/local/bin
28578 elif test -f /usr/include/sqlite3.h; then
28579 SQLITE_INCDIR=/usr/include
28580 if test -d /usr/lib64; then
28581 SQLITE_LIBDIR=/usr/lib64
28583 SQLITE_LIBDIR=/usr/lib
28585 SQLITE_BINDIR=/usr/bin
28586 elif test -f $prefix/include/sqlite3.h; then
28587 SQLITE_INCDIR=$prefix/include
28588 if test -d $prefix/lib64; then
28589 SQLITE_LIBDIR=$prefix/lib64
28591 SQLITE_LIBDIR=$prefix/lib
28593 SQLITE_BINDIR=$prefix/bin
28595 { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28597 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28598 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28599 { (exit 1); exit 1; }; }
28602 if test -f $withval/sqlite3.h; then
28603 SQLITE_INCDIR=$withval
28604 SQLITE_LIBDIR=$withval
28605 SQLITE_BINDIR=$withval
28606 elif test -f $withval/include/sqlite3.h; then
28607 SQLITE_INCDIR=$withval/include
28608 if test -d $withval/lib64; then
28609 SQLITE_LIBDIR=$withval/lib64
28611 SQLITE_LIBDIR=$withval/lib
28613 SQLITE_BINDIR=$withval/bin
28615 { echo "$as_me:$LINENO: result: no" >&5
28616 echo "${ECHO_T}no" >&6; }
28617 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28618 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28619 { (exit 1); exit 1; }; }
28622 SQL_INCLUDE=-I$SQLITE_INCDIR
28623 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28624 SQL_BINDIR=$SQLITE_BINDIR
28625 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28627 cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_SQLITE3 1
28631 { echo "$as_me:$LINENO: result: yes" >&5
28632 echo "${ECHO_T}yes" >&6; }
28634 support_sqlite3=yes
28639 { echo "$as_me:$LINENO: result: no" >&5
28640 echo "${ECHO_T}no" >&6; }
28645 { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28656 # BA_CHECK_SQLITE_DB
28660 { echo "$as_me:$LINENO: checking for DBI support" >&5
28661 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28663 # Check whether --with-dbi was given.
28664 if test "${with_dbi+set}" = set; then
28666 if test "$withval" != "no"; then
28667 if test "$withval" = "yes"; then
28668 if test -f /usr/local/include/dbi/dbi.h; then
28669 DBI_INCDIR=/usr/local/dbi/include
28670 if test -d /usr/local/lib64; then
28671 DBI_LIBDIR=/usr/local/lib64
28673 DBI_LIBDIR=/usr/local/lib
28675 DBI_BINDIR=/usr/local/bin
28676 elif test -f /usr/include/dbi/dbi.h; then
28677 DBI_INCDIR=/usr/include
28678 if test -d /usr/lib64; then
28679 DBI_LIBDIR=/usr/lib64
28681 DBI_LIBDIR=/usr/lib
28683 DBI_BINDIR=/usr/bin
28684 elif test -f $prefix/include/dbi/dbi.h; then
28685 DBI_INCDIR=$prefix/include
28686 if test -d $prefix/lib64; then
28687 DBI_LIBDIR=$prefix/lib64
28689 DBI_LIBDIR=$prefix/lib
28691 DBI_BINDIR=$prefix/bin
28693 { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28695 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28696 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28697 { (exit 1); exit 1; }; }
28699 if test -d /usr/local/lib/dbd; then
28700 DRIVERDIR=/usr/local/lib/dbd
28701 if test -d /usr/local/lib64/dbd; then
28702 DRIVERDIR=/usr/local/lib64/dbd
28704 DRIVERDIR=/usr/local/lib/dbd
28706 elif test -d /usr/lib/dbd; then
28707 DRIVERDIR=/usr/lib/dbd
28708 if test -d /usr/lib64/dbd; then
28709 DRIVERDIR=/usr/lib64/dbd
28711 DRIVERDIR=/usr/lib/dbd
28713 elif test -d $prefix/lib/dbd; then
28714 if test -d $prefix/lib64/dbd; then
28715 DRIVERDIR=$prefix/lib64/dbd
28717 DRIVERDIR=$prefix/lib/dbd
28719 elif test -d /usr/local/lib64/dbd; then
28720 DRIVERDIR=/usr/local/lib64/dbd
28721 elif test -d /usr/lib64/dbd; then
28722 DRIVERDIR=/usr/lib64/dbd
28723 elif test -d $prefix/lib64/dbd; then
28724 DRIVERDIR=$prefix/lib64/dbd
28726 { echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6; }
28728 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28729 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28730 { (exit 1); exit 1; }; }
28733 if test -f $withval/dbi.h; then
28734 DBI_INCDIR=$withval
28735 DBI_LIBDIR=$withval
28736 DBI_BINDIR=$withval
28737 elif test -f $withval/include/dbi/dbi.h; then
28738 DBI_INCDIR=$withval/include
28739 if test -d $withval/lib64; then
28740 DBI_LIBDIR=$withval/lib64
28742 DBI_LIBDIR=$withval/lib
28744 DBI_BINDIR=$withval/bin
28746 { echo "$as_me:$LINENO: result: no" >&5
28747 echo "${ECHO_T}no" >&6; }
28748 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28749 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28750 { (exit 1); exit 1; }; }
28752 if test -d $withval/dbd; then
28753 DRIVERDIR=$withval/dbd
28754 elif test -d $withval/lib/; then
28755 if test -d $withval/lib64/dbd; then
28756 DRIVERDIR=$withval/lib64/dbd
28758 DRIVERDIR=$withval/lib/dbd
28760 elif test -d $withval/lib64/dbd; then
28761 DRIVERDIR=$withval/lib64/dbd
28763 { echo "$as_me:$LINENO: result: no" >&5
28764 echo "${ECHO_T}no" >&6; }
28765 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28766 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28767 { (exit 1); exit 1; }; }
28770 SQL_INCLUDE=-I$DBI_INCDIR
28771 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28772 SQL_BINDIR=$DBI_BINDIR
28773 SQL_LIB=$DBI_LIBDIR/libdbi.a
28774 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28777 cat >>confdefs.h <<\_ACEOF
28781 { echo "$as_me:$LINENO: result: yes" >&5
28782 echo "${ECHO_T}yes" >&6; }
28790 { echo "$as_me:$LINENO: result: no" >&5
28791 echo "${ECHO_T}no" >&6; }
28796 { echo "$as_me:$LINENO: result: no" >&5
28797 echo "${ECHO_T}no" >&6; }
28812 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28813 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28815 # Check whether --with-dbi-driver was given.
28816 if test "${with_dbi_driver+set}" = set; then
28817 withval=$with_dbi_driver;
28818 if test "$withval" != "no"; then
28822 if test -f /usr/local/mysql/bin/mysql; then
28823 SQL_BINDIR=/usr/local/mysql/bin
28824 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28825 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28826 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28828 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28830 elif test -f /usr/bin/mysql; then
28831 SQL_BINDIR=/usr/bin
28832 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28833 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28834 SQL_LIBDIR=/usr/lib64/mysql
28835 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28836 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28837 SQL_LIBDIR=/usr/lib/mysql
28839 SQL_LIBDIR=/usr/lib
28841 elif test -f /usr/local/bin/mysql; then
28842 SQL_BINDIR=/usr/local/bin
28843 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28844 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28845 SQL_LIBDIR=/usr/local/lib64/mysql
28846 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28847 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28848 SQL_LIBDIR=/usr/local/lib/mysql
28850 SQL_LIBDIR=/usr/local/lib
28852 elif test -f $withval/bin/mysql; then
28853 SQL_BINDIR=$withval/bin
28854 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28855 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28856 SQL_LIBDIR=$withval/lib64/mysql
28857 elif test -f $withval/lib64/libmysqlclient_r.a \
28858 -o -f $withval/lib64/libmysqlclient_r.so; then
28859 SQL_LIBDIR=$withval/lib64
28860 elif test -f $withval/lib/libmysqlclient_r.a \
28861 -o -f $withval/lib/libmysqlclient_r.so; then
28862 SQL_LIBDIR=$withval/lib/
28864 SQL_LIBDIR=$withval/lib/mysql
28867 { echo "$as_me:$LINENO: result: no" >&5
28868 echo "${ECHO_T}no" >&6; }
28869 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28870 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28871 { (exit 1); exit 1; }; }
28873 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28874 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28876 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28880 db_prog="postgresql"
28881 PG_CONFIG=`which pg_config`
28882 if test -n "$PG_CONFIG"; then
28883 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28884 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28885 elif test -f /usr/local/bin/psql; then
28886 SQL_BINDIR=/usr/local/bin
28887 if test -d /usr/local/lib64; then
28888 SQL_LIBDIR=/usr/local/lib64
28890 SQL_LIBDIR=/usr/local/lib
28892 elif test -f /usr/bin/psql; then
28893 SQL_BINDIR=/usr/local/bin
28894 if test -d /usr/lib64/postgresql; then
28895 SQL_LIBDIR=/usr/lib64/postgresql
28896 elif test -d /usr/lib/postgresql; then
28897 SQL_LIBDIR=/usr/lib/postgresql
28898 elif test -d /usr/lib64; then
28899 SQL_LIBDIR=/usr/lib64
28901 SQL_LIBDIR=/usr/lib
28903 elif test -f $withval/bin/psql; then
28904 SQL_BINDIR=$withval/bin
28905 if test -d $withval/lib64; then
28906 SQL_LIBDIR=$withval/lib64
28908 SQL_LIBDIR=$withval/lib
28911 { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28913 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28914 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28915 { (exit 1); exit 1; }; }
28917 if test -f $SQL_LIBDIR/libpq.so; then
28918 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28920 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28925 if test -f /usr/local/bin/sqlite; then
28926 SQL_BINDIR=/usr/local/bin
28927 if test -d /usr/local/lib64; then
28928 SQL_LIBDIR=/usr/local/lib64
28930 SQL_LIBDIR=/usr/local/lib
28932 elif test -f /usr/bin/sqlite; then
28933 SQL_BINDIR=/usr/bin
28934 if test -d /usr/lib64; then
28935 SQL_LIBDIR=/usr/lib64
28937 SQL_LIBDIR=/usr/lib
28939 elif test -f $withval/bin/sqlite; then
28940 SQL_BINDIR=$withval/bin
28941 if test -d $withval/lib64; then
28942 SQL_LIBDIR=$withval/lib64
28944 SQL_LIBDIR=$withval/lib
28947 { echo "$as_me:$LINENO: result: no" >&5
28948 echo "${ECHO_T}no" >&6; }
28949 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28950 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28951 { (exit 1); exit 1; }; }
28953 if test -f $SQL_LIBDIR/libsqlite.so; then
28954 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28956 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28961 if test -f /usr/local/bin/sqlite3; then
28962 SQL_BINDIR=/usr/local/bin
28963 if test -d /usr/local/lib64; then
28964 SQL_LIBDIR=/usr/local/lib64
28966 SQL_LIBDIR=/usr/local/lib
28968 elif test -f /usr/bin/sqlite3; then
28969 SQL_BINDIR=/usr/bin
28970 if test -d /usr/lib64; then
28971 SQL_LIBDIR=/usr/lib64
28973 SQL_LIBDIR=/usr/lib
28975 elif test -f $withval/bin/sqlite3; then
28976 SQL_BINDIR=$withval/bin
28977 if test -d $withval/lib64; then
28978 SQL_LIBDIR=$withval/lib64
28980 SQL_LIBDIR=$withval/lib
28983 { echo "$as_me:$LINENO: result: no" >&5
28984 echo "${ECHO_T}no" >&6; }
28985 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28986 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28987 { (exit 1); exit 1; }; }
28989 if test -f $SQL_LIBDIR/libsqlite3.so; then
28990 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28992 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28996 { echo "$as_me:$LINENO: result: no" >&5
28997 echo "${ECHO_T}no" >&6; }
28998 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28999 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29000 { (exit 1); exit 1; }; }
29004 { echo "$as_me:$LINENO: result: yes" >&5
29005 echo "${ECHO_T}yes" >&6; }
29008 { echo "$as_me:$LINENO: result: no" >&5
29009 echo "${ECHO_T}no" >&6; }
29014 { echo "$as_me:$LINENO: result: no" >&5
29015 echo "${ECHO_T}no" >&6; }
29028 support_batch_insert=no
29029 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29031 if test $pkg = 0; then
29032 support_batch_insert=yes
29033 # Check whether --enable-batch-insert was given.
29034 if test "${enable_batch_insert+set}" = set; then
29035 enableval=$enable_batch_insert;
29036 if test x$enableval = xno; then
29037 support_batch_insert=no
29039 support_batch_insert=yes
29047 saved_LIBS="${LIBS}"
29048 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
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
29437 LIBS="${saved_LIBS}"
29441 if test x$DB_TYPE = xingres; then
29442 support_batch_insert=yes
29445 if test $support_batch_insert = yes ; then
29447 cat >>confdefs.h <<\_ACEOF
29448 #define HAVE_BATCH_FILE_INSERT 1
29453 cat >>confdefs.h <<\_ACEOF
29454 #define PROTOTYPES 1
29458 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29459 if test -z "$CCOPTS"; then
29460 CCOPTS='-g -O2 -Wall'
29467 largefile_support="no"
29469 # Check whether --enable-largefile was given.
29470 if test "${enable_largefile+set}" = set; then
29471 enableval=$enable_largefile;
29474 if test "$enable_largefile" != no; then
29475 if test -n "$ac_tool_prefix"; then
29476 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29477 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29480 if test "${ac_cv_prog_GETCONF+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29483 if test -n "$GETCONF"; then
29484 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29487 for as_dir in $PATH
29490 test -z "$as_dir" && as_dir=.
29491 for ac_exec_ext in '' $ac_executable_extensions; do
29492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29493 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29503 GETCONF=$ac_cv_prog_GETCONF
29504 if test -n "$GETCONF"; then
29505 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29506 echo "${ECHO_T}$GETCONF" >&6; }
29508 { echo "$as_me:$LINENO: result: no" >&5
29509 echo "${ECHO_T}no" >&6; }
29514 if test -z "$ac_cv_prog_GETCONF"; then
29515 ac_ct_GETCONF=$GETCONF
29516 # Extract the first word of "getconf", so it can be a program name with args.
29517 set dummy getconf; ac_word=$2
29518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29520 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 if test -n "$ac_ct_GETCONF"; then
29524 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29527 for as_dir in $PATH
29530 test -z "$as_dir" && as_dir=.
29531 for ac_exec_ext in '' $ac_executable_extensions; do
29532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29533 ac_cv_prog_ac_ct_GETCONF="getconf"
29534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29543 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29544 if test -n "$ac_ct_GETCONF"; then
29545 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29546 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29548 { echo "$as_me:$LINENO: result: no" >&5
29549 echo "${ECHO_T}no" >&6; }
29552 if test "x$ac_ct_GETCONF" = x; then
29555 case $cross_compiling:$ac_tool_warned in
29557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29558 whose name does not start with the host triplet. If you think this
29559 configuration is useful to you, please write to autoconf@gnu.org." >&5
29560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29561 whose name does not start with the host triplet. If you think this
29562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29563 ac_tool_warned=yes ;;
29565 GETCONF=$ac_ct_GETCONF
29568 GETCONF="$ac_cv_prog_GETCONF"
29571 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29572 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29573 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29576 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29577 ac_cv_sys_largefile_CFLAGS=no
29579 # IRIX 6.2 and later require cc -n32.
29580 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29581 if test "$GCC" != yes; then
29582 ac_cv_sys_largefile_CFLAGS=-n32
29585 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29586 cat >conftest.$ac_ext <<_ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h. */
29601 rm -f conftest.$ac_objext conftest$ac_exeext
29602 if { (ac_try="$ac_link"
29603 case "(($ac_try" in
29604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605 *) ac_try_echo=$ac_try;;
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608 (eval "$ac_link") 2>conftest.er1
29610 grep -v '^ *+' conftest.er1 >conftest.err
29612 cat conftest.err >&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); } && {
29615 test -z "$ac_c_werror_flag" ||
29616 test ! -s conftest.err
29617 } && test -s conftest$ac_exeext &&
29618 $as_test_x conftest$ac_exeext; then
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29624 ac_cv_sys_largefile_CFLAGS=no
29627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29628 conftest$ac_exeext conftest.$ac_ext
29633 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29634 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29635 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29636 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29637 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29640 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29641 ac_cv_sys_largefile_LDFLAGS=no
29645 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29646 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29647 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29648 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29649 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29650 echo $ECHO_N "(cached) $ECHO_C" >&6
29652 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29653 ac_cv_sys_largefile_LIBS=no
29657 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29658 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29660 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29663 -D_FILE_OFFSET_BITS=*) ;;
29664 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29665 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29670 case "$CPPFLAGS" in
29671 '') CPPFLAGS="$ac_flag" ;;
29672 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29680 '') CFLAGS="$ac_flag" ;;
29681 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29686 case "$ac_cv_sys_largefile_LDFLAGS" in
29690 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29691 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29694 case "$ac_cv_sys_largefile_LIBS" in
29698 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29699 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29702 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29703 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29704 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29707 ac_cv_sys_file_offset_bits=no
29708 ac_cv_sys_file_offset_bits=64
29709 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29711 -D_FILE_OFFSET_BITS)
29712 ac_cv_sys_file_offset_bits=1 ;;
29713 -D_FILE_OFFSET_BITS=*)
29714 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29719 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29720 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29721 if test "$ac_cv_sys_file_offset_bits" != no; then
29723 cat >>confdefs.h <<_ACEOF
29724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29728 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29729 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29730 if test "${ac_cv_sys_largefile_source+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 ac_cv_sys_largefile_source=no
29734 ac_cv_sys_largefile_source=1
29735 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29737 -D_LARGEFILE_SOURCE)
29738 ac_cv_sys_largefile_source=1 ;;
29739 -D_LARGEFILE_SOURCE=*)
29740 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29745 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29746 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29747 if test "$ac_cv_sys_largefile_source" != no; then
29749 cat >>confdefs.h <<_ACEOF
29750 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29754 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29755 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29756 if test "${ac_cv_sys_large_files+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29759 ac_cv_sys_large_files=no
29760 ac_cv_sys_large_files=1
29761 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29764 ac_cv_sys_large_files=1 ;;
29766 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29771 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29772 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29773 if test "$ac_cv_sys_large_files" != no; then
29775 cat >>confdefs.h <<_ACEOF
29776 #define _LARGE_FILES $ac_cv_sys_large_files
29783 { echo "$as_me:$LINENO: checking for X" >&5
29784 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29787 # Check whether --with-x was given.
29788 if test "${with_x+set}" = set; then
29792 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29793 if test "x$with_x" = xno; then
29794 # The user explicitly disabled X.
29797 case $x_includes,$x_libraries in #(
29798 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29799 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29800 { (exit 1); exit 1; }; };; #(
29801 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29802 echo $ECHO_N "(cached) $ECHO_C" >&6
29804 # One or both of the vars are not set, and there is no cached value.
29805 ac_x_includes=no ac_x_libraries=no
29806 rm -f -r conftest.dir
29807 if mkdir conftest.dir; then
29809 cat >Imakefile <<'_ACEOF'
29811 @echo incroot='${INCROOT}'
29813 @echo usrlibdir='${USRLIBDIR}'
29815 @echo libdir='${LIBDIR}'
29817 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29819 for ac_var in incroot usrlibdir libdir; do
29820 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29823 for ac_extension in a so sl; do
29824 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29825 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29826 ac_im_usrlibdir=$ac_im_libdir; break
29829 # Screen out bogus values from the imake configuration. They are
29830 # bogus both because they are the default anyway, and because
29831 # using them would break gcc on systems where it needs fixed includes.
29832 case $ac_im_incroot in
29833 /usr/include) ac_x_includes= ;;
29834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29836 case $ac_im_usrlibdir in
29837 /usr/lib | /lib) ;;
29838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29842 rm -f -r conftest.dir
29845 # Standard set of common directories for X headers.
29846 # Check X11 before X11Rn because it is often a symlink to the current release.
29858 /usr/local/X11/include
29859 /usr/local/X11R6/include
29860 /usr/local/X11R5/include
29861 /usr/local/X11R4/include
29863 /usr/local/include/X11
29864 /usr/local/include/X11R6
29865 /usr/local/include/X11R5
29866 /usr/local/include/X11R4
29870 /usr/XFree86/include/X11
29874 /usr/unsupported/include
29875 /usr/athena/include
29876 /usr/local/x11r5/include
29877 /usr/lpp/Xamples/include
29879 /usr/openwin/include
29880 /usr/openwin/share/include'
29882 if test "$ac_x_includes" = no; then
29883 # Guess where to find include files, by looking for Xlib.h.
29884 # First, try using that file with no special directory specified.
29885 cat >conftest.$ac_ext <<_ACEOF
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h. */
29891 #include <X11/Xlib.h>
29893 if { (ac_try="$ac_cpp conftest.$ac_ext"
29894 case "(($ac_try" in
29895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896 *) ac_try_echo=$ac_try;;
29898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29901 grep -v '^ *+' conftest.er1 >conftest.err
29903 cat conftest.err >&5
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); } >/dev/null && {
29906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29907 test ! -s conftest.err
29909 # We can compile using X headers with no special include directory.
29912 echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29915 for ac_dir in $ac_x_header_dirs; do
29916 if test -r "$ac_dir/X11/Xlib.h"; then
29917 ac_x_includes=$ac_dir
29923 rm -f conftest.err conftest.$ac_ext
29924 fi # $ac_x_includes = no
29926 if test "$ac_x_libraries" = no; then
29927 # Check for the libraries.
29928 # See if we find them without any special options.
29929 # Don't add to $LIBS permanently.
29932 cat >conftest.$ac_ext <<_ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29938 #include <X11/Xlib.h>
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (ac_try="$ac_link"
29949 case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_link") 2>conftest.er1
29956 grep -v '^ *+' conftest.er1 >conftest.err
29958 cat conftest.err >&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } && {
29961 test -z "$ac_c_werror_flag" ||
29962 test ! -s conftest.err
29963 } && test -s conftest$ac_exeext &&
29964 $as_test_x conftest$ac_exeext; then
29966 # We can link X programs with no special library path.
29969 echo "$as_me: failed program was:" >&5
29970 sed 's/^/| /' conftest.$ac_ext >&5
29973 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29975 # Don't even attempt the hair of trying to link an X program!
29976 for ac_extension in a so sl; do
29977 if test -r "$ac_dir/libX11.$ac_extension"; then
29978 ac_x_libraries=$ac_dir
29985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29986 conftest$ac_exeext conftest.$ac_ext
29987 fi # $ac_x_libraries = no
29989 case $ac_x_includes,$ac_x_libraries in #(
29990 no,* | *,no | *\'*)
29991 # Didn't find X, or a directory has "'" in its name.
29992 ac_cv_have_x="have_x=no";; #(
29994 # Record where we found X for the cache.
29995 ac_cv_have_x="have_x=yes\
29996 ac_x_includes='$ac_x_includes'\
29997 ac_x_libraries='$ac_x_libraries'"
30003 eval "$ac_cv_have_x"
30006 if test "$have_x" != yes; then
30007 { echo "$as_me:$LINENO: result: $have_x" >&5
30008 echo "${ECHO_T}$have_x" >&6; }
30011 # If each of the values was on the command line, it overrides each guess.
30012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30014 # Update the cache value to reflect the command line values.
30015 ac_cv_have_x="have_x=yes\
30016 ac_x_includes='$x_includes'\
30017 ac_x_libraries='$x_libraries'"
30018 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30019 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30022 if test "$no_x" = yes; then
30023 # Not all programs may use this symbol, but it does not hurt to define it.
30025 cat >>confdefs.h <<\_ACEOF
30026 #define X_DISPLAY_MISSING 1
30029 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30031 if test -n "$x_includes"; then
30032 X_CFLAGS="$X_CFLAGS -I$x_includes"
30035 # It would also be nice to do this for all -L options, not just this one.
30036 if test -n "$x_libraries"; then
30037 X_LIBS="$X_LIBS -L$x_libraries"
30038 # For Solaris; some versions of Sun CC require a space after -R and
30039 # others require no space. Words are not sufficient . . . .
30040 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30041 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30042 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30043 ac_xsave_c_werror_flag=$ac_c_werror_flag
30044 ac_c_werror_flag=yes
30045 cat >conftest.$ac_ext <<_ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h. */
30060 rm -f conftest.$ac_objext conftest$ac_exeext
30061 if { (ac_try="$ac_link"
30062 case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_link") 2>conftest.er1
30069 grep -v '^ *+' conftest.er1 >conftest.err
30071 cat conftest.err >&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } && {
30074 test -z "$ac_c_werror_flag" ||
30075 test ! -s conftest.err
30076 } && test -s conftest$ac_exeext &&
30077 $as_test_x conftest$ac_exeext; then
30078 { echo "$as_me:$LINENO: result: no" >&5
30079 echo "${ECHO_T}no" >&6; }
30080 X_LIBS="$X_LIBS -R$x_libraries"
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30085 LIBS="$ac_xsave_LIBS -R $x_libraries"
30086 cat >conftest.$ac_ext <<_ACEOF
30089 cat confdefs.h >>conftest.$ac_ext
30090 cat >>conftest.$ac_ext <<_ACEOF
30091 /* end confdefs.h. */
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_link") 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } && {
30115 test -z "$ac_c_werror_flag" ||
30116 test ! -s conftest.err
30117 } && test -s conftest$ac_exeext &&
30118 $as_test_x conftest$ac_exeext; then
30119 { echo "$as_me:$LINENO: result: yes" >&5
30120 echo "${ECHO_T}yes" >&6; }
30121 X_LIBS="$X_LIBS -R $x_libraries"
30123 echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30126 { echo "$as_me:$LINENO: result: neither works" >&5
30127 echo "${ECHO_T}neither works" >&6; }
30130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30131 conftest$ac_exeext conftest.$ac_ext
30134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30135 conftest$ac_exeext conftest.$ac_ext
30136 ac_c_werror_flag=$ac_xsave_c_werror_flag
30137 LIBS=$ac_xsave_LIBS
30140 # Check for system-dependent libraries X programs must link with.
30141 # Do this before checking for the system-independent R6 libraries
30142 # (-lICE), since we may need -lsocket or whatever for X linking.
30144 if test "$ISC" = yes; then
30145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30147 # Martyn Johnson says this is needed for Ultrix, if the X
30148 # libraries were built with DECnet support. And Karl Berry says
30149 # the Alpha needs dnet_stub (dnet does not exist).
30150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30151 cat >conftest.$ac_ext <<_ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h. */
30158 /* Override any GCC internal prototype to avoid an error.
30159 Use char because int might match the return type of a GCC
30160 builtin and then its argument prototype would still apply. */
30164 char XOpenDisplay ();
30168 return XOpenDisplay ();
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (ac_try="$ac_link"
30175 case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_link") 2>conftest.er1
30182 grep -v '^ *+' conftest.er1 >conftest.err
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } && {
30187 test -z "$ac_c_werror_flag" ||
30188 test ! -s conftest.err
30189 } && test -s conftest$ac_exeext &&
30190 $as_test_x conftest$ac_exeext; then
30193 echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30196 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30197 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30198 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30201 ac_check_lib_save_LIBS=$LIBS
30202 LIBS="-ldnet $LIBS"
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30210 /* Override any GCC internal prototype to avoid an error.
30211 Use char because int might match the return type of a GCC
30212 builtin and then its argument prototype would still apply. */
30220 return dnet_ntoa ();
30225 rm -f conftest.$ac_objext conftest$ac_exeext
30226 if { (ac_try="$ac_link"
30227 case "(($ac_try" in
30228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229 *) ac_try_echo=$ac_try;;
30231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30232 (eval "$ac_link") 2>conftest.er1
30234 grep -v '^ *+' conftest.er1 >conftest.err
30236 cat conftest.err >&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); } && {
30239 test -z "$ac_c_werror_flag" ||
30240 test ! -s conftest.err
30241 } && test -s conftest$ac_exeext &&
30242 $as_test_x conftest$ac_exeext; then
30243 ac_cv_lib_dnet_dnet_ntoa=yes
30245 echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30248 ac_cv_lib_dnet_dnet_ntoa=no
30251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30252 conftest$ac_exeext conftest.$ac_ext
30253 LIBS=$ac_check_lib_save_LIBS
30255 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30256 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30257 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30258 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30261 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30262 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30263 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30264 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30267 ac_check_lib_save_LIBS=$LIBS
30268 LIBS="-ldnet_stub $LIBS"
30269 cat >conftest.$ac_ext <<_ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h. */
30276 /* Override any GCC internal prototype to avoid an error.
30277 Use char because int might match the return type of a GCC
30278 builtin and then its argument prototype would still apply. */
30286 return dnet_ntoa ();
30291 rm -f conftest.$ac_objext conftest$ac_exeext
30292 if { (ac_try="$ac_link"
30293 case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_link") 2>conftest.er1
30300 grep -v '^ *+' conftest.er1 >conftest.err
30302 cat conftest.err >&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } && {
30305 test -z "$ac_c_werror_flag" ||
30306 test ! -s conftest.err
30307 } && test -s conftest$ac_exeext &&
30308 $as_test_x conftest$ac_exeext; then
30309 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 ac_cv_lib_dnet_stub_dnet_ntoa=no
30317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30318 conftest$ac_exeext conftest.$ac_ext
30319 LIBS=$ac_check_lib_save_LIBS
30321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30322 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30323 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30324 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30331 conftest$ac_exeext conftest.$ac_ext
30332 LIBS="$ac_xsave_LIBS"
30334 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30335 # to get the SysV transport functions.
30336 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30338 # The nsl library prevents programs from opening the X display
30339 # on Irix 5.2, according to T.E. Dickey.
30340 # The functions gethostbyname, getservbyname, and inet_addr are
30341 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30342 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30344 if test "${ac_cv_func_gethostbyname+set}" = set; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30347 cat >conftest.$ac_ext <<_ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h. */
30353 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30355 #define gethostbyname innocuous_gethostbyname
30357 /* System header to define __stub macros and hopefully few prototypes,
30358 which can conflict with char gethostbyname (); below.
30359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30360 <limits.h> exists even on freestanding compilers. */
30363 # include <limits.h>
30365 # include <assert.h>
30368 #undef gethostbyname
30370 /* Override any GCC internal prototype to avoid an error.
30371 Use char because int might match the return type of a GCC
30372 builtin and then its argument prototype would still apply. */
30376 char gethostbyname ();
30377 /* The GNU C library defines this for functions which it implements
30378 to always fail with ENOSYS. Some functions are actually named
30379 something starting with __ and the normal name is an alias. */
30380 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30387 return gethostbyname ();
30392 rm -f conftest.$ac_objext conftest$ac_exeext
30393 if { (ac_try="$ac_link"
30394 case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_link") 2>conftest.er1
30401 grep -v '^ *+' conftest.er1 >conftest.err
30403 cat conftest.err >&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } && {
30406 test -z "$ac_c_werror_flag" ||
30407 test ! -s conftest.err
30408 } && test -s conftest$ac_exeext &&
30409 $as_test_x conftest$ac_exeext; then
30410 ac_cv_func_gethostbyname=yes
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30415 ac_cv_func_gethostbyname=no
30418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30419 conftest$ac_exeext conftest.$ac_ext
30421 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30422 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30424 if test $ac_cv_func_gethostbyname = no; then
30425 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30426 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30427 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30428 echo $ECHO_N "(cached) $ECHO_C" >&6
30430 ac_check_lib_save_LIBS=$LIBS
30432 cat >conftest.$ac_ext <<_ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30439 /* Override any GCC internal prototype to avoid an error.
30440 Use char because int might match the return type of a GCC
30441 builtin and then its argument prototype would still apply. */
30445 char gethostbyname ();
30449 return gethostbyname ();
30454 rm -f conftest.$ac_objext conftest$ac_exeext
30455 if { (ac_try="$ac_link"
30456 case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_link") 2>conftest.er1
30463 grep -v '^ *+' conftest.er1 >conftest.err
30465 cat conftest.err >&5
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } && {
30468 test -z "$ac_c_werror_flag" ||
30469 test ! -s conftest.err
30470 } && test -s conftest$ac_exeext &&
30471 $as_test_x conftest$ac_exeext; then
30472 ac_cv_lib_nsl_gethostbyname=yes
30474 echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30477 ac_cv_lib_nsl_gethostbyname=no
30480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30481 conftest$ac_exeext conftest.$ac_ext
30482 LIBS=$ac_check_lib_save_LIBS
30484 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30485 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30486 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30487 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30490 if test $ac_cv_lib_nsl_gethostbyname = no; then
30491 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30492 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30493 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30496 ac_check_lib_save_LIBS=$LIBS
30498 cat >conftest.$ac_ext <<_ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30505 /* Override any GCC internal prototype to avoid an error.
30506 Use char because int might match the return type of a GCC
30507 builtin and then its argument prototype would still apply. */
30511 char gethostbyname ();
30515 return gethostbyname ();
30520 rm -f conftest.$ac_objext conftest$ac_exeext
30521 if { (ac_try="$ac_link"
30522 case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_link") 2>conftest.er1
30529 grep -v '^ *+' conftest.er1 >conftest.err
30531 cat conftest.err >&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); } && {
30534 test -z "$ac_c_werror_flag" ||
30535 test ! -s conftest.err
30536 } && test -s conftest$ac_exeext &&
30537 $as_test_x conftest$ac_exeext; then
30538 ac_cv_lib_bsd_gethostbyname=yes
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ac_cv_lib_bsd_gethostbyname=no
30546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30547 conftest$ac_exeext conftest.$ac_ext
30548 LIBS=$ac_check_lib_save_LIBS
30550 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30551 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30552 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30559 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30560 # socket/setsockopt and other routines are undefined under SCO ODT
30561 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30562 # on later versions), says Simon Leinen: it contains gethostby*
30563 # variants that don't use the name server (or something). -lsocket
30564 # must be given before -lnsl if both are needed. We assume that
30565 # if connect needs -lnsl, so does gethostbyname.
30566 { echo "$as_me:$LINENO: checking for connect" >&5
30567 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30568 if test "${ac_cv_func_connect+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30579 #define connect innocuous_connect
30581 /* System header to define __stub macros and hopefully few prototypes,
30582 which can conflict with char connect (); below.
30583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30584 <limits.h> exists even on freestanding compilers. */
30587 # include <limits.h>
30589 # include <assert.h>
30594 /* Override any GCC internal prototype to avoid an error.
30595 Use char because int might match the return type of a GCC
30596 builtin and then its argument prototype would still apply. */
30601 /* The GNU C library defines this for functions which it implements
30602 to always fail with ENOSYS. Some functions are actually named
30603 something starting with __ and the normal name is an alias. */
30604 #if defined __stub_connect || defined __stub___connect
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (ac_try="$ac_link"
30618 case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_link") 2>conftest.er1
30625 grep -v '^ *+' conftest.er1 >conftest.err
30627 cat conftest.err >&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } && {
30630 test -z "$ac_c_werror_flag" ||
30631 test ! -s conftest.err
30632 } && test -s conftest$ac_exeext &&
30633 $as_test_x conftest$ac_exeext; then
30634 ac_cv_func_connect=yes
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30639 ac_cv_func_connect=no
30642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30643 conftest$ac_exeext conftest.$ac_ext
30645 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30646 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30648 if test $ac_cv_func_connect = no; then
30649 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30650 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30651 if test "${ac_cv_lib_socket_connect+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 ac_check_lib_save_LIBS=$LIBS
30655 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30663 /* Override any GCC internal prototype to avoid an error.
30664 Use char because int might match the return type of a GCC
30665 builtin and then its argument prototype would still apply. */
30678 rm -f conftest.$ac_objext conftest$ac_exeext
30679 if { (ac_try="$ac_link"
30680 case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_link") 2>conftest.er1
30687 grep -v '^ *+' conftest.er1 >conftest.err
30689 cat conftest.err >&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } && {
30692 test -z "$ac_c_werror_flag" ||
30693 test ! -s conftest.err
30694 } && test -s conftest$ac_exeext &&
30695 $as_test_x conftest$ac_exeext; then
30696 ac_cv_lib_socket_connect=yes
30698 echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30701 ac_cv_lib_socket_connect=no
30704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30705 conftest$ac_exeext conftest.$ac_ext
30706 LIBS=$ac_check_lib_save_LIBS
30708 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30709 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30710 if test $ac_cv_lib_socket_connect = yes; then
30711 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30716 # Guillermo Gomez says -lposix is necessary on A/UX.
30717 { echo "$as_me:$LINENO: checking for remove" >&5
30718 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30719 if test "${ac_cv_func_remove+set}" = set; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30730 #define remove innocuous_remove
30732 /* System header to define __stub macros and hopefully few prototypes,
30733 which can conflict with char remove (); below.
30734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30735 <limits.h> exists even on freestanding compilers. */
30738 # include <limits.h>
30740 # include <assert.h>
30745 /* Override any GCC internal prototype to avoid an error.
30746 Use char because int might match the return type of a GCC
30747 builtin and then its argument prototype would still apply. */
30752 /* The GNU C library defines this for functions which it implements
30753 to always fail with ENOSYS. Some functions are actually named
30754 something starting with __ and the normal name is an alias. */
30755 #if defined __stub_remove || defined __stub___remove
30767 rm -f conftest.$ac_objext conftest$ac_exeext
30768 if { (ac_try="$ac_link"
30769 case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_link") 2>conftest.er1
30776 grep -v '^ *+' conftest.er1 >conftest.err
30778 cat conftest.err >&5
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); } && {
30781 test -z "$ac_c_werror_flag" ||
30782 test ! -s conftest.err
30783 } && test -s conftest$ac_exeext &&
30784 $as_test_x conftest$ac_exeext; then
30785 ac_cv_func_remove=yes
30787 echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30790 ac_cv_func_remove=no
30793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30794 conftest$ac_exeext conftest.$ac_ext
30796 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30797 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30799 if test $ac_cv_func_remove = no; then
30800 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30801 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30802 if test "${ac_cv_lib_posix_remove+set}" = set; then
30803 echo $ECHO_N "(cached) $ECHO_C" >&6
30805 ac_check_lib_save_LIBS=$LIBS
30806 LIBS="-lposix $LIBS"
30807 cat >conftest.$ac_ext <<_ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h. */
30814 /* Override any GCC internal prototype to avoid an error.
30815 Use char because int might match the return type of a GCC
30816 builtin and then its argument prototype would still apply. */
30829 rm -f conftest.$ac_objext conftest$ac_exeext
30830 if { (ac_try="$ac_link"
30831 case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_link") 2>conftest.er1
30838 grep -v '^ *+' conftest.er1 >conftest.err
30840 cat conftest.err >&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); } && {
30843 test -z "$ac_c_werror_flag" ||
30844 test ! -s conftest.err
30845 } && test -s conftest$ac_exeext &&
30846 $as_test_x conftest$ac_exeext; then
30847 ac_cv_lib_posix_remove=yes
30849 echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30852 ac_cv_lib_posix_remove=no
30855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30856 conftest$ac_exeext conftest.$ac_ext
30857 LIBS=$ac_check_lib_save_LIBS
30859 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30860 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30861 if test $ac_cv_lib_posix_remove = yes; then
30862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30867 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30868 { echo "$as_me:$LINENO: checking for shmat" >&5
30869 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30870 if test "${ac_cv_func_shmat+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30873 cat >conftest.$ac_ext <<_ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h. */
30879 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30881 #define shmat innocuous_shmat
30883 /* System header to define __stub macros and hopefully few prototypes,
30884 which can conflict with char shmat (); below.
30885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30886 <limits.h> exists even on freestanding compilers. */
30889 # include <limits.h>
30891 # include <assert.h>
30896 /* Override any GCC internal prototype to avoid an error.
30897 Use char because int might match the return type of a GCC
30898 builtin and then its argument prototype would still apply. */
30903 /* The GNU C library defines this for functions which it implements
30904 to always fail with ENOSYS. Some functions are actually named
30905 something starting with __ and the normal name is an alias. */
30906 #if defined __stub_shmat || defined __stub___shmat
30918 rm -f conftest.$ac_objext conftest$ac_exeext
30919 if { (ac_try="$ac_link"
30920 case "(($ac_try" in
30921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922 *) ac_try_echo=$ac_try;;
30924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925 (eval "$ac_link") 2>conftest.er1
30927 grep -v '^ *+' conftest.er1 >conftest.err
30929 cat conftest.err >&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } && {
30932 test -z "$ac_c_werror_flag" ||
30933 test ! -s conftest.err
30934 } && test -s conftest$ac_exeext &&
30935 $as_test_x conftest$ac_exeext; then
30936 ac_cv_func_shmat=yes
30938 echo "$as_me: failed program was:" >&5
30939 sed 's/^/| /' conftest.$ac_ext >&5
30941 ac_cv_func_shmat=no
30944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30945 conftest$ac_exeext conftest.$ac_ext
30947 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30948 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30950 if test $ac_cv_func_shmat = no; then
30951 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30952 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30953 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30956 ac_check_lib_save_LIBS=$LIBS
30958 cat >conftest.$ac_ext <<_ACEOF
30961 cat confdefs.h >>conftest.$ac_ext
30962 cat >>conftest.$ac_ext <<_ACEOF
30963 /* end confdefs.h. */
30965 /* Override any GCC internal prototype to avoid an error.
30966 Use char because int might match the return type of a GCC
30967 builtin and then its argument prototype would still apply. */
30980 rm -f conftest.$ac_objext conftest$ac_exeext
30981 if { (ac_try="$ac_link"
30982 case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_link") 2>conftest.er1
30989 grep -v '^ *+' conftest.er1 >conftest.err
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } && {
30994 test -z "$ac_c_werror_flag" ||
30995 test ! -s conftest.err
30996 } && test -s conftest$ac_exeext &&
30997 $as_test_x conftest$ac_exeext; then
30998 ac_cv_lib_ipc_shmat=yes
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ac_cv_lib_ipc_shmat=no
31006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31007 conftest$ac_exeext conftest.$ac_ext
31008 LIBS=$ac_check_lib_save_LIBS
31010 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31011 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31012 if test $ac_cv_lib_ipc_shmat = yes; then
31013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31019 # Check for libraries that X11R6 Xt/Xaw programs need.
31020 ac_save_LDFLAGS=$LDFLAGS
31021 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31022 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31023 # check for ICE first), but we must link in the order -lSM -lICE or
31024 # we get undefined symbols. So assume we have SM if we have ICE.
31025 # These have to be linked with before -lX11, unlike the other
31026 # libraries we check for below, so use a different variable.
31027 # John Interrante, Karl Berry
31028 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31029 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31030 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 ac_check_lib_save_LIBS=$LIBS
31034 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31035 cat >conftest.$ac_ext <<_ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31042 /* Override any GCC internal prototype to avoid an error.
31043 Use char because int might match the return type of a GCC
31044 builtin and then its argument prototype would still apply. */
31048 char IceConnectionNumber ();
31052 return IceConnectionNumber ();
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_link") 2>conftest.er1
31066 grep -v '^ *+' conftest.er1 >conftest.err
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } && {
31071 test -z "$ac_c_werror_flag" ||
31072 test ! -s conftest.err
31073 } && test -s conftest$ac_exeext &&
31074 $as_test_x conftest$ac_exeext; then
31075 ac_cv_lib_ICE_IceConnectionNumber=yes
31077 echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31080 ac_cv_lib_ICE_IceConnectionNumber=no
31083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31084 conftest$ac_exeext conftest.$ac_ext
31085 LIBS=$ac_check_lib_save_LIBS
31087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31088 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31089 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31090 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31093 LDFLAGS=$ac_save_LDFLAGS
31159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31166 ac_res=`eval echo '${'$as_ac_Header'}'`
31167 { echo "$as_me:$LINENO: result: $ac_res" >&5
31168 echo "${ECHO_T}$ac_res" >&6; }
31170 # Is the header compilable?
31171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31173 cat >conftest.$ac_ext <<_ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31179 $ac_includes_default
31180 #include <$ac_header>
31182 rm -f conftest.$ac_objext
31183 if { (ac_try="$ac_compile"
31184 case "(($ac_try" in
31185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186 *) ac_try_echo=$ac_try;;
31188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31189 (eval "$ac_compile") 2>conftest.er1
31191 grep -v '^ *+' conftest.er1 >conftest.err
31193 cat conftest.err >&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } && {
31196 test -z "$ac_c_werror_flag" ||
31197 test ! -s conftest.err
31198 } && test -s conftest.$ac_objext; then
31199 ac_header_compiler=yes
31201 echo "$as_me: failed program was:" >&5
31202 sed 's/^/| /' conftest.$ac_ext >&5
31204 ac_header_compiler=no
31207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31209 echo "${ECHO_T}$ac_header_compiler" >&6; }
31211 # Is the header present?
31212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31214 cat >conftest.$ac_ext <<_ACEOF
31217 cat confdefs.h >>conftest.$ac_ext
31218 cat >>conftest.$ac_ext <<_ACEOF
31219 /* end confdefs.h. */
31220 #include <$ac_header>
31222 if { (ac_try="$ac_cpp conftest.$ac_ext"
31223 case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31230 grep -v '^ *+' conftest.er1 >conftest.err
31232 cat conftest.err >&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } >/dev/null && {
31235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31236 test ! -s conftest.err
31238 ac_header_preproc=yes
31240 echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31243 ac_header_preproc=no
31246 rm -f conftest.err conftest.$ac_ext
31247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31248 echo "${ECHO_T}$ac_header_preproc" >&6; }
31250 # So? What about this header?
31251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31257 ac_header_preproc=yes
31260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31278 echo $ECHO_N "(cached) $ECHO_C" >&6
31280 eval "$as_ac_Header=\$ac_header_preproc"
31282 ac_res=`eval echo '${'$as_ac_Header'}'`
31283 { echo "$as_me:$LINENO: result: $ac_res" >&5
31284 echo "${ECHO_T}$ac_res" >&6; }
31287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31288 cat >>confdefs.h <<_ACEOF
31289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31296 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31298 if test "${ac_cv_header_stdc+set}" = set; then
31299 echo $ECHO_N "(cached) $ECHO_C" >&6
31301 cat >conftest.$ac_ext <<_ACEOF
31304 cat confdefs.h >>conftest.$ac_ext
31305 cat >>conftest.$ac_ext <<_ACEOF
31306 /* end confdefs.h. */
31307 #include <stdlib.h>
31308 #include <stdarg.h>
31309 #include <string.h>
31320 rm -f conftest.$ac_objext
31321 if { (ac_try="$ac_compile"
31322 case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_compile") 2>conftest.er1
31329 grep -v '^ *+' conftest.er1 >conftest.err
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } && {
31334 test -z "$ac_c_werror_flag" ||
31335 test ! -s conftest.err
31336 } && test -s conftest.$ac_objext; then
31337 ac_cv_header_stdc=yes
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31342 ac_cv_header_stdc=no
31345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31347 if test $ac_cv_header_stdc = yes; then
31348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31349 cat >conftest.$ac_ext <<_ACEOF
31352 cat confdefs.h >>conftest.$ac_ext
31353 cat >>conftest.$ac_ext <<_ACEOF
31354 /* end confdefs.h. */
31355 #include <string.h>
31358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31359 $EGREP "memchr" >/dev/null 2>&1; then
31362 ac_cv_header_stdc=no
31368 if test $ac_cv_header_stdc = yes; then
31369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31370 cat >conftest.$ac_ext <<_ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31376 #include <stdlib.h>
31379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31380 $EGREP "free" >/dev/null 2>&1; then
31383 ac_cv_header_stdc=no
31389 if test $ac_cv_header_stdc = yes; then
31390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31391 if test "$cross_compiling" = yes; then
31394 cat >conftest.$ac_ext <<_ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h. */
31401 #include <stdlib.h>
31402 #if ((' ' & 0x0FF) == 0x020)
31403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31406 # define ISLOWER(c) \
31407 (('a' <= (c) && (c) <= 'i') \
31408 || ('j' <= (c) && (c) <= 'r') \
31409 || ('s' <= (c) && (c) <= 'z'))
31410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31418 for (i = 0; i < 256; i++)
31419 if (XOR (islower (i), ISLOWER (i))
31420 || toupper (i) != TOUPPER (i))
31425 rm -f conftest$ac_exeext
31426 if { (ac_try="$ac_link"
31427 case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_link") 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31436 { (case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_try") 2>&5
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
31447 echo "$as_me: program exited with status $ac_status" >&5
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ( exit $ac_status )
31452 ac_cv_header_stdc=no
31454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31462 if test $ac_cv_header_stdc = yes; then
31464 cat >>confdefs.h <<\_ACEOF
31465 #define STDC_HEADERS 1
31470 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31471 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31472 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31475 cat >conftest.$ac_ext <<_ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 #include <sys/types.h>
31485 return makedev(0, 0);
31490 rm -f conftest.$ac_objext conftest$ac_exeext
31491 if { (ac_try="$ac_link"
31492 case "(($ac_try" in
31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31494 *) ac_try_echo=$ac_try;;
31496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31497 (eval "$ac_link") 2>conftest.er1
31499 grep -v '^ *+' conftest.er1 >conftest.err
31501 cat conftest.err >&5
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); } && {
31504 test -z "$ac_c_werror_flag" ||
31505 test ! -s conftest.err
31506 } && test -s conftest$ac_exeext &&
31507 $as_test_x conftest$ac_exeext; then
31508 ac_cv_header_sys_types_h_makedev=yes
31510 echo "$as_me: failed program was:" >&5
31511 sed 's/^/| /' conftest.$ac_ext >&5
31513 ac_cv_header_sys_types_h_makedev=no
31516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31517 conftest$ac_exeext conftest.$ac_ext
31520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31521 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31523 if test $ac_cv_header_sys_types_h_makedev = no; then
31524 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31525 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31526 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31527 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31531 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31533 # Is the header compilable?
31534 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31535 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31536 cat >conftest.$ac_ext <<_ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h. */
31542 $ac_includes_default
31543 #include <sys/mkdev.h>
31545 rm -f conftest.$ac_objext
31546 if { (ac_try="$ac_compile"
31547 case "(($ac_try" in
31548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31549 *) ac_try_echo=$ac_try;;
31551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31552 (eval "$ac_compile") 2>conftest.er1
31554 grep -v '^ *+' conftest.er1 >conftest.err
31556 cat conftest.err >&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); } && {
31559 test -z "$ac_c_werror_flag" ||
31560 test ! -s conftest.err
31561 } && test -s conftest.$ac_objext; then
31562 ac_header_compiler=yes
31564 echo "$as_me: failed program was:" >&5
31565 sed 's/^/| /' conftest.$ac_ext >&5
31567 ac_header_compiler=no
31570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31572 echo "${ECHO_T}$ac_header_compiler" >&6; }
31574 # Is the header present?
31575 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31576 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 #include <sys/mkdev.h>
31585 if { (ac_try="$ac_cpp conftest.$ac_ext"
31586 case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31593 grep -v '^ *+' conftest.er1 >conftest.err
31595 cat conftest.err >&5
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); } >/dev/null && {
31598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31599 test ! -s conftest.err
31601 ac_header_preproc=yes
31603 echo "$as_me: failed program was:" >&5
31604 sed 's/^/| /' conftest.$ac_ext >&5
31606 ac_header_preproc=no
31609 rm -f conftest.err conftest.$ac_ext
31610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31611 echo "${ECHO_T}$ac_header_preproc" >&6; }
31613 # So? What about this header?
31614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31616 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31617 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31619 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31620 ac_header_preproc=yes
31623 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31624 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31626 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31628 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31629 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31630 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31632 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31633 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31634 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31638 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31639 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31640 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31641 echo $ECHO_N "(cached) $ECHO_C" >&6
31643 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31645 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31646 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31649 if test $ac_cv_header_sys_mkdev_h = yes; then
31651 cat >>confdefs.h <<\_ACEOF
31652 #define MAJOR_IN_MKDEV 1
31659 if test $ac_cv_header_sys_mkdev_h = no; then
31660 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31661 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31662 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31663 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31667 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31669 # Is the header compilable?
31670 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31671 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31672 cat >conftest.$ac_ext <<_ACEOF
31675 cat confdefs.h >>conftest.$ac_ext
31676 cat >>conftest.$ac_ext <<_ACEOF
31677 /* end confdefs.h. */
31678 $ac_includes_default
31679 #include <sys/sysmacros.h>
31681 rm -f conftest.$ac_objext
31682 if { (ac_try="$ac_compile"
31683 case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_compile") 2>conftest.er1
31690 grep -v '^ *+' conftest.er1 >conftest.err
31692 cat conftest.err >&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } && {
31695 test -z "$ac_c_werror_flag" ||
31696 test ! -s conftest.err
31697 } && test -s conftest.$ac_objext; then
31698 ac_header_compiler=yes
31700 echo "$as_me: failed program was:" >&5
31701 sed 's/^/| /' conftest.$ac_ext >&5
31703 ac_header_compiler=no
31706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31708 echo "${ECHO_T}$ac_header_compiler" >&6; }
31710 # Is the header present?
31711 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31712 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31713 cat >conftest.$ac_ext <<_ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h. */
31719 #include <sys/sysmacros.h>
31721 if { (ac_try="$ac_cpp conftest.$ac_ext"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } >/dev/null && {
31734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31735 test ! -s conftest.err
31737 ac_header_preproc=yes
31739 echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31742 ac_header_preproc=no
31745 rm -f conftest.err conftest.$ac_ext
31746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31747 echo "${ECHO_T}$ac_header_preproc" >&6; }
31749 # So? What about this header?
31750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31752 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31753 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31754 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31755 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31756 ac_header_preproc=yes
31759 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31760 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31761 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31762 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31763 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31764 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31766 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31770 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31774 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31775 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31776 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31779 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31782 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31785 if test $ac_cv_header_sys_sysmacros_h = yes; then
31787 cat >>confdefs.h <<\_ACEOF
31788 #define MAJOR_IN_SYSMACROS 1
31802 ac_header_dirent=no
31803 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31804 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31805 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31806 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31810 cat >conftest.$ac_ext <<_ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 #include <sys/types.h>
31828 rm -f conftest.$ac_objext
31829 if { (ac_try="$ac_compile"
31830 case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_compile") 2>conftest.er1
31837 grep -v '^ *+' conftest.er1 >conftest.err
31839 cat conftest.err >&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && {
31842 test -z "$ac_c_werror_flag" ||
31843 test ! -s conftest.err
31844 } && test -s conftest.$ac_objext; then
31845 eval "$as_ac_Header=yes"
31847 echo "$as_me: failed program was:" >&5
31848 sed 's/^/| /' conftest.$ac_ext >&5
31850 eval "$as_ac_Header=no"
31853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31855 ac_res=`eval echo '${'$as_ac_Header'}'`
31856 { echo "$as_me:$LINENO: result: $ac_res" >&5
31857 echo "${ECHO_T}$ac_res" >&6; }
31858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31859 cat >>confdefs.h <<_ACEOF
31860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31863 ac_header_dirent=$ac_hdr; break
31867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31868 if test $ac_header_dirent = dirent.h; then
31869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31871 if test "${ac_cv_search_opendir+set}" = set; then
31872 echo $ECHO_N "(cached) $ECHO_C" >&6
31874 ac_func_search_save_LIBS=$LIBS
31875 cat >conftest.$ac_ext <<_ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31882 /* Override any GCC internal prototype to avoid an error.
31883 Use char because int might match the return type of a GCC
31884 builtin and then its argument prototype would still apply. */
31897 for ac_lib in '' dir; do
31898 if test -z "$ac_lib"; then
31899 ac_res="none required"
31902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31904 rm -f conftest.$ac_objext conftest$ac_exeext
31905 if { (ac_try="$ac_link"
31906 case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_link") 2>conftest.er1
31913 grep -v '^ *+' conftest.er1 >conftest.err
31915 cat conftest.err >&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); } && {
31918 test -z "$ac_c_werror_flag" ||
31919 test ! -s conftest.err
31920 } && test -s conftest$ac_exeext &&
31921 $as_test_x conftest$ac_exeext; then
31922 ac_cv_search_opendir=$ac_res
31924 echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31932 if test "${ac_cv_search_opendir+set}" = set; then
31936 if test "${ac_cv_search_opendir+set}" = set; then
31939 ac_cv_search_opendir=no
31941 rm conftest.$ac_ext
31942 LIBS=$ac_func_search_save_LIBS
31944 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31945 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31946 ac_res=$ac_cv_search_opendir
31947 if test "$ac_res" != no; then
31948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31953 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31955 if test "${ac_cv_search_opendir+set}" = set; then
31956 echo $ECHO_N "(cached) $ECHO_C" >&6
31958 ac_func_search_save_LIBS=$LIBS
31959 cat >conftest.$ac_ext <<_ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h. */
31966 /* Override any GCC internal prototype to avoid an error.
31967 Use char because int might match the return type of a GCC
31968 builtin and then its argument prototype would still apply. */
31981 for ac_lib in '' x; do
31982 if test -z "$ac_lib"; then
31983 ac_res="none required"
31986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31988 rm -f conftest.$ac_objext conftest$ac_exeext
31989 if { (ac_try="$ac_link"
31990 case "(($ac_try" in
31991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992 *) ac_try_echo=$ac_try;;
31994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995 (eval "$ac_link") 2>conftest.er1
31997 grep -v '^ *+' conftest.er1 >conftest.err
31999 cat conftest.err >&5
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); } && {
32002 test -z "$ac_c_werror_flag" ||
32003 test ! -s conftest.err
32004 } && test -s conftest$ac_exeext &&
32005 $as_test_x conftest$ac_exeext; then
32006 ac_cv_search_opendir=$ac_res
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32016 if test "${ac_cv_search_opendir+set}" = set; then
32020 if test "${ac_cv_search_opendir+set}" = set; then
32023 ac_cv_search_opendir=no
32025 rm conftest.$ac_ext
32026 LIBS=$ac_func_search_save_LIBS
32028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32030 ac_res=$ac_cv_search_opendir
32031 if test "$ac_res" != no; then
32032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32038 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32039 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32040 if test "${ac_cv_header_stat_broken+set}" = set; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 #include <sys/types.h>
32050 #include <sys/stat.h>
32052 #if defined S_ISBLK && defined S_IFDIR
32053 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32056 #if defined S_ISBLK && defined S_IFCHR
32057 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32060 #if defined S_ISLNK && defined S_IFREG
32061 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32064 #if defined S_ISSOCK && defined S_IFREG
32065 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32069 rm -f conftest.$ac_objext
32070 if { (ac_try="$ac_compile"
32071 case "(($ac_try" in
32072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073 *) ac_try_echo=$ac_try;;
32075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076 (eval "$ac_compile") 2>conftest.er1
32078 grep -v '^ *+' conftest.er1 >conftest.err
32080 cat conftest.err >&5
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); } && {
32083 test -z "$ac_c_werror_flag" ||
32084 test ! -s conftest.err
32085 } && test -s conftest.$ac_objext; then
32086 ac_cv_header_stat_broken=no
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_cv_header_stat_broken=yes
32094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32096 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32097 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32098 if test $ac_cv_header_stat_broken = yes; then
32100 cat >>confdefs.h <<\_ACEOF
32101 #define STAT_MACROS_BROKEN 1
32106 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32107 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32108 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32109 echo $ECHO_N "(cached) $ECHO_C" >&6
32111 cat >conftest.$ac_ext <<_ACEOF
32114 cat confdefs.h >>conftest.$ac_ext
32115 cat >>conftest.$ac_ext <<_ACEOF
32116 /* end confdefs.h. */
32117 #include <sys/types.h>
32118 #include <sys/wait.h>
32119 #ifndef WEXITSTATUS
32120 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32123 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32131 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32136 rm -f conftest.$ac_objext
32137 if { (ac_try="$ac_compile"
32138 case "(($ac_try" in
32139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140 *) ac_try_echo=$ac_try;;
32142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143 (eval "$ac_compile") 2>conftest.er1
32145 grep -v '^ *+' conftest.er1 >conftest.err
32147 cat conftest.err >&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); } && {
32150 test -z "$ac_c_werror_flag" ||
32151 test ! -s conftest.err
32152 } && test -s conftest.$ac_objext; then
32153 ac_cv_header_sys_wait_h=yes
32155 echo "$as_me: failed program was:" >&5
32156 sed 's/^/| /' conftest.$ac_ext >&5
32158 ac_cv_header_sys_wait_h=no
32161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32164 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32165 if test $ac_cv_header_sys_wait_h = yes; then
32167 cat >>confdefs.h <<\_ACEOF
32168 #define HAVE_SYS_WAIT_H 1
32173 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32174 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32175 if test "${ac_cv_header_time+set}" = set; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32178 cat >conftest.$ac_ext <<_ACEOF
32181 cat confdefs.h >>conftest.$ac_ext
32182 cat >>conftest.$ac_ext <<_ACEOF
32183 /* end confdefs.h. */
32184 #include <sys/types.h>
32185 #include <sys/time.h>
32191 if ((struct tm *) 0)
32197 rm -f conftest.$ac_objext
32198 if { (ac_try="$ac_compile"
32199 case "(($ac_try" in
32200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_compile") 2>conftest.er1
32206 grep -v '^ *+' conftest.er1 >conftest.err
32208 cat conftest.err >&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); } && {
32211 test -z "$ac_c_werror_flag" ||
32212 test ! -s conftest.err
32213 } && test -s conftest.$ac_objext; then
32214 ac_cv_header_time=yes
32216 echo "$as_me: failed program was:" >&5
32217 sed 's/^/| /' conftest.$ac_ext >&5
32219 ac_cv_header_time=no
32222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32224 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32225 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32226 if test $ac_cv_header_time = yes; then
32228 cat >>confdefs.h <<\_ACEOF
32229 #define TIME_WITH_SYS_TIME 1
32234 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32235 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32236 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32237 echo $ECHO_N "(cached) $ECHO_C" >&6
32239 cat >conftest.$ac_ext <<_ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h. */
32245 $ac_includes_default
32249 static struct stat ac_aggr;
32250 if (ac_aggr.st_blksize)
32256 rm -f conftest.$ac_objext
32257 if { (ac_try="$ac_compile"
32258 case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_compile") 2>conftest.er1
32265 grep -v '^ *+' conftest.er1 >conftest.err
32267 cat conftest.err >&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } && {
32270 test -z "$ac_c_werror_flag" ||
32271 test ! -s conftest.err
32272 } && test -s conftest.$ac_objext; then
32273 ac_cv_member_struct_stat_st_blksize=yes
32275 echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32278 cat >conftest.$ac_ext <<_ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32284 $ac_includes_default
32288 static struct stat ac_aggr;
32289 if (sizeof ac_aggr.st_blksize)
32295 rm -f conftest.$ac_objext
32296 if { (ac_try="$ac_compile"
32297 case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_compile") 2>conftest.er1
32304 grep -v '^ *+' conftest.er1 >conftest.err
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } && {
32309 test -z "$ac_c_werror_flag" ||
32310 test ! -s conftest.err
32311 } && test -s conftest.$ac_objext; then
32312 ac_cv_member_struct_stat_st_blksize=yes
32314 echo "$as_me: failed program was:" >&5
32315 sed 's/^/| /' conftest.$ac_ext >&5
32317 ac_cv_member_struct_stat_st_blksize=no
32320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32325 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32326 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32327 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32329 cat >>confdefs.h <<_ACEOF
32330 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32334 cat >>confdefs.h <<\_ACEOF
32335 #define HAVE_ST_BLKSIZE 1
32341 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32342 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32343 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32346 cat >conftest.$ac_ext <<_ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h. */
32352 $ac_includes_default
32356 static struct stat ac_aggr;
32357 if (ac_aggr.st_blocks)
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
32372 grep -v '^ *+' conftest.er1 >conftest.err
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } && {
32377 test -z "$ac_c_werror_flag" ||
32378 test ! -s conftest.err
32379 } && test -s conftest.$ac_objext; then
32380 ac_cv_member_struct_stat_st_blocks=yes
32382 echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32391 $ac_includes_default
32395 static struct stat ac_aggr;
32396 if (sizeof ac_aggr.st_blocks)
32402 rm -f conftest.$ac_objext
32403 if { (ac_try="$ac_compile"
32404 case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_compile") 2>conftest.er1
32411 grep -v '^ *+' conftest.er1 >conftest.err
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } && {
32416 test -z "$ac_c_werror_flag" ||
32417 test ! -s conftest.err
32418 } && test -s conftest.$ac_objext; then
32419 ac_cv_member_struct_stat_st_blocks=yes
32421 echo "$as_me: failed program was:" >&5
32422 sed 's/^/| /' conftest.$ac_ext >&5
32424 ac_cv_member_struct_stat_st_blocks=no
32427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32433 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32434 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32436 cat >>confdefs.h <<_ACEOF
32437 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32441 cat >>confdefs.h <<\_ACEOF
32442 #define HAVE_ST_BLOCKS 1
32446 case " $LIBOBJS " in
32447 *" fileblocks.$ac_objext "* ) ;;
32448 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32455 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32456 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32457 if test "${ac_cv_struct_tm+set}" = set; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32460 cat >conftest.$ac_ext <<_ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 #include <sys/types.h>
32473 int *p = &tm.tm_sec;
32479 rm -f conftest.$ac_objext
32480 if { (ac_try="$ac_compile"
32481 case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_compile") 2>conftest.er1
32488 grep -v '^ *+' conftest.er1 >conftest.err
32490 cat conftest.err >&5
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); } && {
32493 test -z "$ac_c_werror_flag" ||
32494 test ! -s conftest.err
32495 } && test -s conftest.$ac_objext; then
32496 ac_cv_struct_tm=time.h
32498 echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32501 ac_cv_struct_tm=sys/time.h
32504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32506 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32507 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32508 if test $ac_cv_struct_tm = sys/time.h; then
32510 cat >>confdefs.h <<\_ACEOF
32511 #define TM_IN_SYS_TIME 1
32516 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32517 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32518 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32519 echo $ECHO_N "(cached) $ECHO_C" >&6
32521 cat >conftest.$ac_ext <<_ACEOF
32524 cat confdefs.h >>conftest.$ac_ext
32525 cat >>conftest.$ac_ext <<_ACEOF
32526 /* end confdefs.h. */
32527 #include <sys/types.h>
32528 #include <$ac_cv_struct_tm>
32534 static struct tm ac_aggr;
32535 if (ac_aggr.tm_zone)
32541 rm -f conftest.$ac_objext
32542 if { (ac_try="$ac_compile"
32543 case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_compile") 2>conftest.er1
32550 grep -v '^ *+' conftest.er1 >conftest.err
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } && {
32555 test -z "$ac_c_werror_flag" ||
32556 test ! -s conftest.err
32557 } && test -s conftest.$ac_objext; then
32558 ac_cv_member_struct_tm_tm_zone=yes
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32563 cat >conftest.$ac_ext <<_ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h. */
32569 #include <sys/types.h>
32570 #include <$ac_cv_struct_tm>
32576 static struct tm ac_aggr;
32577 if (sizeof ac_aggr.tm_zone)
32583 rm -f conftest.$ac_objext
32584 if { (ac_try="$ac_compile"
32585 case "(($ac_try" in
32586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32587 *) ac_try_echo=$ac_try;;
32589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32590 (eval "$ac_compile") 2>conftest.er1
32592 grep -v '^ *+' conftest.er1 >conftest.err
32594 cat conftest.err >&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); } && {
32597 test -z "$ac_c_werror_flag" ||
32598 test ! -s conftest.err
32599 } && test -s conftest.$ac_objext; then
32600 ac_cv_member_struct_tm_tm_zone=yes
32602 echo "$as_me: failed program was:" >&5
32603 sed 's/^/| /' conftest.$ac_ext >&5
32605 ac_cv_member_struct_tm_tm_zone=no
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32613 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32614 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32615 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32617 cat >>confdefs.h <<_ACEOF
32618 #define HAVE_STRUCT_TM_TM_ZONE 1
32624 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32626 cat >>confdefs.h <<\_ACEOF
32627 #define HAVE_TM_ZONE 1
32631 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32632 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32633 if test "${ac_cv_have_decl_tzname+set}" = set; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32636 cat >conftest.$ac_ext <<_ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32655 rm -f conftest.$ac_objext
32656 if { (ac_try="$ac_compile"
32657 case "(($ac_try" in
32658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32659 *) ac_try_echo=$ac_try;;
32661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32662 (eval "$ac_compile") 2>conftest.er1
32664 grep -v '^ *+' conftest.er1 >conftest.err
32666 cat conftest.err >&5
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); } && {
32669 test -z "$ac_c_werror_flag" ||
32670 test ! -s conftest.err
32671 } && test -s conftest.$ac_objext; then
32672 ac_cv_have_decl_tzname=yes
32674 echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32677 ac_cv_have_decl_tzname=no
32680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32683 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32684 if test $ac_cv_have_decl_tzname = yes; then
32686 cat >>confdefs.h <<_ACEOF
32687 #define HAVE_DECL_TZNAME 1
32692 cat >>confdefs.h <<_ACEOF
32693 #define HAVE_DECL_TZNAME 0
32700 { echo "$as_me:$LINENO: checking for tzname" >&5
32701 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32702 if test "${ac_cv_var_tzname+set}" = set; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32705 cat >conftest.$ac_ext <<_ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32712 #if !HAVE_DECL_TZNAME
32713 extern char *tzname[];
32719 return tzname[0][0];
32724 rm -f conftest.$ac_objext conftest$ac_exeext
32725 if { (ac_try="$ac_link"
32726 case "(($ac_try" in
32727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728 *) ac_try_echo=$ac_try;;
32730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32731 (eval "$ac_link") 2>conftest.er1
32733 grep -v '^ *+' conftest.er1 >conftest.err
32735 cat conftest.err >&5
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); } && {
32738 test -z "$ac_c_werror_flag" ||
32739 test ! -s conftest.err
32740 } && test -s conftest$ac_exeext &&
32741 $as_test_x conftest$ac_exeext; then
32742 ac_cv_var_tzname=yes
32744 echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32747 ac_cv_var_tzname=no
32750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32751 conftest$ac_exeext conftest.$ac_ext
32753 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32754 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32755 if test $ac_cv_var_tzname = yes; then
32757 cat >>confdefs.h <<\_ACEOF
32758 #define HAVE_TZNAME 1
32765 { echo "$as_me:$LINENO: checking for utime.h" >&5
32766 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32767 if test "${ba_cv_header_utime_h+set}" = set; then
32768 echo $ECHO_N "(cached) $ECHO_C" >&6
32771 cat >conftest.$ac_ext <<_ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h. */
32778 #include <sys/types.h>
32791 rm -f conftest.$ac_objext
32792 if { (ac_try="$ac_compile"
32793 case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_compile") 2>conftest.er1
32800 grep -v '^ *+' conftest.er1 >conftest.err
32802 cat conftest.err >&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } && {
32805 test -z "$ac_c_werror_flag" ||
32806 test ! -s conftest.err
32807 } && test -s conftest.$ac_objext; then
32809 ba_cv_header_utime_h=yes
32812 echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.$ac_ext >&5
32816 ba_cv_header_utime_h=no
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32825 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32826 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32827 test $ba_cv_header_utime_h = yes &&
32828 cat >>confdefs.h <<\_ACEOF
32829 #define HAVE_UTIME_H 1
32833 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32834 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32835 if test "${ba_cv_header_socklen_t+set}" = set; then
32836 echo $ECHO_N "(cached) $ECHO_C" >&6
32839 cat >conftest.$ac_ext <<_ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h. */
32846 #include <sys/types.h>
32847 #include <sys/socket.h>
32859 rm -f conftest.$ac_objext
32860 if { (ac_try="$ac_compile"
32861 case "(($ac_try" in
32862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863 *) ac_try_echo=$ac_try;;
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866 (eval "$ac_compile") 2>conftest.er1
32868 grep -v '^ *+' conftest.er1 >conftest.err
32870 cat conftest.err >&5
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); } && {
32873 test -z "$ac_c_werror_flag" ||
32874 test ! -s conftest.err
32875 } && test -s conftest.$ac_objext; then
32877 ba_cv_header_socklen_t=yes
32880 echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32884 ba_cv_header_socklen_t=no
32889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32893 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32894 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32895 test $ba_cv_header_socklen_t = yes &&
32896 cat >>confdefs.h <<\_ACEOF
32897 #define HAVE_SOCKLEN_T 1
32902 ac_cpp='$CXXCPP $CPPFLAGS'
32903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32907 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32908 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32909 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32913 cat >conftest.$ac_ext <<_ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32920 #include <unistd.h>
32921 #include <sys/types.h>
32922 #include <sys/ioctl.h>
32928 int (*d_ioctl)(int fd, unsigned long int request, ...);
32935 rm -f conftest.$ac_objext
32936 if { (ac_try="$ac_compile"
32937 case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_compile") 2>conftest.er1
32944 grep -v '^ *+' conftest.er1 >conftest.err
32946 cat conftest.err >&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); } && {
32949 test -z "$ac_cxx_werror_flag" ||
32950 test ! -s conftest.err
32951 } && test -s conftest.$ac_objext; then
32953 ba_cv_header_ioctl_req_t=yes
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32960 ba_cv_header_ioctl_req_t=no
32965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32969 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32970 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32971 test $ba_cv_header_ioctl_req_t = yes &&
32972 cat >>confdefs.h <<\_ACEOF
32973 #define HAVE_IOCTL_ULINT_REQUEST 1
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32985 ac_cpp='$CXXCPP $CPPFLAGS'
32986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32990 { echo "$as_me:$LINENO: checking for typeof" >&5
32991 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32992 if test "${ba_cv_have_typeof+set}" = set; then
32993 echo $ECHO_N "(cached) $ECHO_C" >&6
32996 if test "$cross_compiling" = yes; then
32998 ba_cv_have_typeof=no
33002 cat >conftest.$ac_ext <<_ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33009 main(){char *a = 0; a = (typeof a)a;}
33012 rm -f conftest$ac_exeext
33013 if { (ac_try="$ac_link"
33014 case "(($ac_try" in
33015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016 *) ac_try_echo=$ac_try;;
33018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019 (eval "$ac_link") 2>&5
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33023 { (case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_try") 2>&5
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); }; }; then
33033 ba_cv_have_typeof=yes
33036 echo "$as_me: program exited with status $ac_status" >&5
33037 echo "$as_me: failed program was:" >&5
33038 sed 's/^/| /' conftest.$ac_ext >&5
33040 ( exit $ac_status )
33042 ba_cv_have_typeof=no
33045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33052 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33053 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33054 test $ba_cv_have_typeof = yes &&
33055 cat >>confdefs.h <<\_ACEOF
33056 #define HAVE_TYPEOF 1
33060 ac_cpp='$CPP $CPPFLAGS'
33061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33066 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33068 if test "${ac_cv_c_const+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33071 cat >conftest.$ac_ext <<_ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h. */
33081 /* FIXME: Include the comments suggested by Paul. */
33082 #ifndef __cplusplus
33083 /* Ultrix mips cc rejects this. */
33084 typedef int charset[2];
33086 /* SunOS 4.1.1 cc rejects this. */
33087 char const *const *pcpcc;
33089 /* NEC SVR4.0.2 mips cc rejects this. */
33090 struct point {int x, y;};
33091 static struct point const zero = {0,0};
33092 /* AIX XL C 1.02.0.0 rejects this.
33093 It does not let you subtract one const X* pointer from another in
33094 an arm of an if-expression whose if-part is not a constant
33096 const char *g = "string";
33097 pcpcc = &g + (g ? g-g : 0);
33098 /* HPUX 7.0 cc rejects these. */
33100 ppc = (char**) pcpcc;
33101 pcpcc = (char const *const *) ppc;
33102 { /* SCO 3.2v4 cc rejects this. */
33104 char const *s = 0 ? (char *) 0 : (char const *) 0;
33109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33110 int x[] = {25, 17};
33111 const int *foo = &x[0];
33114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33115 typedef const int *iptr;
33119 { /* AIX XL C 1.02.0.0 rejects this saying
33120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33121 struct s { int j; const int *ap[3]; };
33122 struct s *b; b->j = 5;
33124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33125 const int foo = 10;
33126 if (!foo) return 0;
33128 return !cs[0] && !zero.x;
33135 rm -f conftest.$ac_objext
33136 if { (ac_try="$ac_compile"
33137 case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_compile") 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } && {
33149 test -z "$ac_c_werror_flag" ||
33150 test ! -s conftest.err
33151 } && test -s conftest.$ac_objext; then
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33162 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33163 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33164 if test $ac_cv_c_const = no; then
33166 cat >>confdefs.h <<\_ACEOF
33173 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33174 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33176 # The order of these tests is important.
33177 cat >conftest.$ac_ext <<_ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h. */
33184 #include <sys/statvfs.h>
33185 #include <sys/fstyp.h>
33188 if { (ac_try="$ac_cpp conftest.$ac_ext"
33189 case "(($ac_try" in
33190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191 *) ac_try_echo=$ac_try;;
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33196 grep -v '^ *+' conftest.er1 >conftest.err
33198 cat conftest.err >&5
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); } >/dev/null && {
33201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33202 test ! -s conftest.err
33204 cat >>confdefs.h <<\_ACEOF
33205 #define FSTYPE_STATVFS 1
33210 echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33216 rm -f conftest.err conftest.$ac_ext
33217 if test $fstype = no; then
33218 cat >conftest.$ac_ext <<_ACEOF
33221 cat confdefs.h >>conftest.$ac_ext
33222 cat >>conftest.$ac_ext <<_ACEOF
33223 /* end confdefs.h. */
33225 #include <sys/statfs.h>
33226 #include <sys/fstyp.h>
33229 if { (ac_try="$ac_cpp conftest.$ac_ext"
33230 case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33237 grep -v '^ *+' conftest.er1 >conftest.err
33239 cat conftest.err >&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } >/dev/null && {
33242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33243 test ! -s conftest.err
33245 cat >>confdefs.h <<\_ACEOF
33246 #define FSTYPE_USG_STATFS 1
33251 echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33257 rm -f conftest.err conftest.$ac_ext
33259 if test $fstype = no; then
33260 cat >conftest.$ac_ext <<_ACEOF
33263 cat confdefs.h >>conftest.$ac_ext
33264 cat >>conftest.$ac_ext <<_ACEOF
33265 /* end confdefs.h. */
33267 #include <sys/statfs.h>
33268 #include <sys/vmount.h>
33271 if { (ac_try="$ac_cpp conftest.$ac_ext"
33272 case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33279 grep -v '^ *+' conftest.er1 >conftest.err
33281 cat conftest.err >&5
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); } >/dev/null && {
33284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33285 test ! -s conftest.err
33287 cat >>confdefs.h <<\_ACEOF
33288 #define FSTYPE_AIX_STATFS 1
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33299 rm -f conftest.err conftest.$ac_ext
33301 if test $fstype = no; then
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33309 #include <mntent.h>
33312 if { (ac_try="$ac_cpp conftest.$ac_ext"
33313 case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33320 grep -v '^ *+' conftest.er1 >conftest.err
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } >/dev/null && {
33325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33326 test ! -s conftest.err
33328 cat >>confdefs.h <<\_ACEOF
33329 #define FSTYPE_MNTENT 1
33334 echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33340 rm -f conftest.err conftest.$ac_ext
33342 if test $fstype = no; then
33343 cat >conftest.$ac_ext <<_ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h. */
33349 #include <sys/mount.h>
33352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33353 $EGREP "f_type;" >/dev/null 2>&1; then
33354 cat >>confdefs.h <<\_ACEOF
33355 #define FSTYPE_STATFS 1
33362 if test $fstype = no; then
33363 cat >conftest.$ac_ext <<_ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33370 #include <sys/mount.h>
33371 #include <sys/fs_types.h>
33374 if { (ac_try="$ac_cpp conftest.$ac_ext"
33375 case "(($ac_try" in
33376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33377 *) ac_try_echo=$ac_try;;
33379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33382 grep -v '^ *+' conftest.er1 >conftest.err
33384 cat conftest.err >&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); } >/dev/null && {
33387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33388 test ! -s conftest.err
33390 cat >>confdefs.h <<\_ACEOF
33391 #define FSTYPE_GETMNT 1
33396 echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33402 rm -f conftest.err conftest.$ac_ext
33404 { echo "$as_me:$LINENO: result: $fstype" >&5
33405 echo "${ECHO_T}$fstype" >&6; }
33407 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33408 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33409 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33410 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33413 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33414 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33416 # Is the header compilable?
33417 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33418 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33419 cat >conftest.$ac_ext <<_ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h. */
33425 $ac_includes_default
33426 #include <sys/statvfs.h>
33428 rm -f conftest.$ac_objext
33429 if { (ac_try="$ac_compile"
33430 case "(($ac_try" in
33431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33432 *) ac_try_echo=$ac_try;;
33434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33435 (eval "$ac_compile") 2>conftest.er1
33437 grep -v '^ *+' conftest.er1 >conftest.err
33439 cat conftest.err >&5
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); } && {
33442 test -z "$ac_c_werror_flag" ||
33443 test ! -s conftest.err
33444 } && test -s conftest.$ac_objext; then
33445 ac_header_compiler=yes
33447 echo "$as_me: failed program was:" >&5
33448 sed 's/^/| /' conftest.$ac_ext >&5
33450 ac_header_compiler=no
33453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33455 echo "${ECHO_T}$ac_header_compiler" >&6; }
33457 # Is the header present?
33458 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33459 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33460 cat >conftest.$ac_ext <<_ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h. */
33466 #include <sys/statvfs.h>
33468 if { (ac_try="$ac_cpp conftest.$ac_ext"
33469 case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33476 grep -v '^ *+' conftest.er1 >conftest.err
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } >/dev/null && {
33481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33482 test ! -s conftest.err
33484 ac_header_preproc=yes
33486 echo "$as_me: failed program was:" >&5
33487 sed 's/^/| /' conftest.$ac_ext >&5
33489 ac_header_preproc=no
33492 rm -f conftest.err conftest.$ac_ext
33493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33494 echo "${ECHO_T}$ac_header_preproc" >&6; }
33496 # So? What about this header?
33497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33499 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33500 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33502 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33503 ac_header_preproc=yes
33506 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33507 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33508 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33509 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33510 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33511 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33512 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33513 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33514 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33515 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33516 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33517 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33521 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33522 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33523 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33524 echo $ECHO_N "(cached) $ECHO_C" >&6
33526 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33529 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33532 if test $ac_cv_header_sys_statvfs_h = yes; then
33534 cat >>confdefs.h <<\_ACEOF
33535 #define HAVE_SYS_STATVFS_H 1
33542 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33543 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33544 if test "${ac_cv_type_signal+set}" = set; then
33545 echo $ECHO_N "(cached) $ECHO_C" >&6
33547 cat >conftest.$ac_ext <<_ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h. */
33553 #include <sys/types.h>
33554 #include <signal.h>
33559 return *(signal (0, 0)) (0) == 1;
33564 rm -f conftest.$ac_objext
33565 if { (ac_try="$ac_compile"
33566 case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_compile") 2>conftest.er1
33573 grep -v '^ *+' conftest.er1 >conftest.err
33575 cat conftest.err >&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } && {
33578 test -z "$ac_c_werror_flag" ||
33579 test ! -s conftest.err
33580 } && test -s conftest.$ac_objext; then
33581 ac_cv_type_signal=int
33583 echo "$as_me: failed program was:" >&5
33584 sed 's/^/| /' conftest.$ac_ext >&5
33586 ac_cv_type_signal=void
33589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33591 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33592 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33594 cat >>confdefs.h <<_ACEOF
33595 #define RETSIGTYPE $ac_cv_type_signal
33600 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33601 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33602 if test "${bash_cv_signal_vintage+set}" = set; then
33603 echo $ECHO_N "(cached) $ECHO_C" >&6
33606 cat >conftest.$ac_ext <<_ACEOF
33609 cat confdefs.h >>conftest.$ac_ext
33610 cat >>conftest.$ac_ext <<_ACEOF
33611 /* end confdefs.h. */
33612 #include <signal.h>
33618 struct sigaction sa;
33619 sigemptyset(&ss); sigsuspend(&ss);
33620 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33621 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33627 rm -f conftest.$ac_objext conftest$ac_exeext
33628 if { (ac_try="$ac_link"
33629 case "(($ac_try" in
33630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631 *) ac_try_echo=$ac_try;;
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634 (eval "$ac_link") 2>conftest.er1
33636 grep -v '^ *+' conftest.er1 >conftest.err
33638 cat conftest.err >&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); } && {
33641 test -z "$ac_c_werror_flag" ||
33642 test ! -s conftest.err
33643 } && test -s conftest$ac_exeext &&
33644 $as_test_x conftest$ac_exeext; then
33645 bash_cv_signal_vintage="posix"
33647 echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.$ac_ext >&5
33651 cat >conftest.$ac_ext <<_ACEOF
33654 cat confdefs.h >>conftest.$ac_ext
33655 cat >>conftest.$ac_ext <<_ACEOF
33656 /* end confdefs.h. */
33657 #include <signal.h>
33662 int mask = sigmask(SIGINT);
33663 sigsetmask(mask); sigblock(mask); sigpause(mask);
33669 rm -f conftest.$ac_objext conftest$ac_exeext
33670 if { (ac_try="$ac_link"
33671 case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_link") 2>conftest.er1
33678 grep -v '^ *+' conftest.er1 >conftest.err
33680 cat conftest.err >&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } && {
33683 test -z "$ac_c_werror_flag" ||
33684 test ! -s conftest.err
33685 } && test -s conftest$ac_exeext &&
33686 $as_test_x conftest$ac_exeext; then
33687 bash_cv_signal_vintage="4.2bsd"
33689 echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33700 #include <signal.h>
33701 RETSIGTYPE foo() { }
33706 int mask = sigmask(SIGINT);
33707 sigset(SIGINT, foo); sigrelse(SIGINT);
33708 sighold(SIGINT); sigpause(SIGINT);
33714 rm -f conftest.$ac_objext conftest$ac_exeext
33715 if { (ac_try="$ac_link"
33716 case "(($ac_try" in
33717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718 *) ac_try_echo=$ac_try;;
33720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721 (eval "$ac_link") 2>conftest.er1
33723 grep -v '^ *+' conftest.er1 >conftest.err
33725 cat conftest.err >&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } && {
33728 test -z "$ac_c_werror_flag" ||
33729 test ! -s conftest.err
33730 } && test -s conftest$ac_exeext &&
33731 $as_test_x conftest$ac_exeext; then
33732 bash_cv_signal_vintage="svr3"
33734 echo "$as_me: failed program was:" >&5
33735 sed 's/^/| /' conftest.$ac_ext >&5
33737 bash_cv_signal_vintage="v7"
33741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33742 conftest$ac_exeext conftest.$ac_ext
33746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33747 conftest$ac_exeext conftest.$ac_ext
33751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33752 conftest$ac_exeext conftest.$ac_ext
33756 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33757 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33758 if test "$bash_cv_signal_vintage" = "posix"; then
33759 cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_POSIX_SIGNALS 1
33763 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33764 cat >>confdefs.h <<\_ACEOF
33765 #define HAVE_BSD_SIGNALS 1
33768 elif test "$bash_cv_signal_vintage" = "svr3"; then
33769 cat >>confdefs.h <<\_ACEOF
33770 #define HAVE_USG_SIGHOLD 1
33775 { echo "$as_me:$LINENO: checking for mode_t" >&5
33776 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33777 if test "${ac_cv_type_mode_t+set}" = set; then
33778 echo $ECHO_N "(cached) $ECHO_C" >&6
33780 cat >conftest.$ac_ext <<_ACEOF
33783 cat confdefs.h >>conftest.$ac_ext
33784 cat >>conftest.$ac_ext <<_ACEOF
33785 /* end confdefs.h. */
33786 $ac_includes_default
33787 typedef mode_t ac__type_new_;
33791 if ((ac__type_new_ *) 0)
33793 if (sizeof (ac__type_new_))
33799 rm -f conftest.$ac_objext
33800 if { (ac_try="$ac_compile"
33801 case "(($ac_try" in
33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806 (eval "$ac_compile") 2>conftest.er1
33808 grep -v '^ *+' conftest.er1 >conftest.err
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } && {
33813 test -z "$ac_c_werror_flag" ||
33814 test ! -s conftest.err
33815 } && test -s conftest.$ac_objext; then
33816 ac_cv_type_mode_t=yes
33818 echo "$as_me: failed program was:" >&5
33819 sed 's/^/| /' conftest.$ac_ext >&5
33821 ac_cv_type_mode_t=no
33824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33826 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33827 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33828 if test $ac_cv_type_mode_t = yes; then
33832 cat >>confdefs.h <<_ACEOF
33838 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33839 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33840 if test "${ac_cv_type_uid_t+set}" = set; then
33841 echo $ECHO_N "(cached) $ECHO_C" >&6
33843 cat >conftest.$ac_ext <<_ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h. */
33849 #include <sys/types.h>
33852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33853 $EGREP "uid_t" >/dev/null 2>&1; then
33854 ac_cv_type_uid_t=yes
33856 ac_cv_type_uid_t=no
33861 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33862 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33863 if test $ac_cv_type_uid_t = no; then
33865 cat >>confdefs.h <<\_ACEOF
33870 cat >>confdefs.h <<\_ACEOF
33876 { echo "$as_me:$LINENO: checking for size_t" >&5
33877 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33878 if test "${ac_cv_type_size_t+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 cat >conftest.$ac_ext <<_ACEOF
33884 cat confdefs.h >>conftest.$ac_ext
33885 cat >>conftest.$ac_ext <<_ACEOF
33886 /* end confdefs.h. */
33887 $ac_includes_default
33888 typedef size_t ac__type_new_;
33892 if ((ac__type_new_ *) 0)
33894 if (sizeof (ac__type_new_))
33900 rm -f conftest.$ac_objext
33901 if { (ac_try="$ac_compile"
33902 case "(($ac_try" in
33903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33904 *) ac_try_echo=$ac_try;;
33906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33907 (eval "$ac_compile") 2>conftest.er1
33909 grep -v '^ *+' conftest.er1 >conftest.err
33911 cat conftest.err >&5
33912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 (exit $ac_status); } && {
33914 test -z "$ac_c_werror_flag" ||
33915 test ! -s conftest.err
33916 } && test -s conftest.$ac_objext; then
33917 ac_cv_type_size_t=yes
33919 echo "$as_me: failed program was:" >&5
33920 sed 's/^/| /' conftest.$ac_ext >&5
33922 ac_cv_type_size_t=no
33925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33927 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33928 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33929 if test $ac_cv_type_size_t = yes; then
33933 cat >>confdefs.h <<_ACEOF
33934 #define size_t unsigned int
33939 { echo "$as_me:$LINENO: checking for pid_t" >&5
33940 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33941 if test "${ac_cv_type_pid_t+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 cat >conftest.$ac_ext <<_ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h. */
33950 $ac_includes_default
33951 typedef pid_t ac__type_new_;
33955 if ((ac__type_new_ *) 0)
33957 if (sizeof (ac__type_new_))
33963 rm -f conftest.$ac_objext
33964 if { (ac_try="$ac_compile"
33965 case "(($ac_try" in
33966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967 *) ac_try_echo=$ac_try;;
33969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33970 (eval "$ac_compile") 2>conftest.er1
33972 grep -v '^ *+' conftest.er1 >conftest.err
33974 cat conftest.err >&5
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } && {
33977 test -z "$ac_c_werror_flag" ||
33978 test ! -s conftest.err
33979 } && test -s conftest.$ac_objext; then
33980 ac_cv_type_pid_t=yes
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33985 ac_cv_type_pid_t=no
33988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33990 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33991 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33992 if test $ac_cv_type_pid_t = yes; then
33996 cat >>confdefs.h <<_ACEOF
34002 { echo "$as_me:$LINENO: checking for off_t" >&5
34003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34004 if test "${ac_cv_type_off_t+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34013 $ac_includes_default
34014 typedef off_t ac__type_new_;
34018 if ((ac__type_new_ *) 0)
34020 if (sizeof (ac__type_new_))
34026 rm -f conftest.$ac_objext
34027 if { (ac_try="$ac_compile"
34028 case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_compile") 2>conftest.er1
34035 grep -v '^ *+' conftest.er1 >conftest.err
34037 cat conftest.err >&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } && {
34040 test -z "$ac_c_werror_flag" ||
34041 test ! -s conftest.err
34042 } && test -s conftest.$ac_objext; then
34043 ac_cv_type_off_t=yes
34045 echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34048 ac_cv_type_off_t=no
34051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34055 if test $ac_cv_type_off_t = yes; then
34059 cat >>confdefs.h <<_ACEOF
34060 #define off_t long int
34066 { echo "$as_me:$LINENO: checking for intptr_t" >&5
34067 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34068 if test "${ac_cv_type_intptr_t+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34071 cat >conftest.$ac_ext <<_ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h. */
34077 $ac_includes_default
34078 typedef intptr_t ac__type_new_;
34082 if ((ac__type_new_ *) 0)
34084 if (sizeof (ac__type_new_))
34090 rm -f conftest.$ac_objext
34091 if { (ac_try="$ac_compile"
34092 case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_compile") 2>conftest.er1
34099 grep -v '^ *+' conftest.er1 >conftest.err
34101 cat conftest.err >&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); } && {
34104 test -z "$ac_c_werror_flag" ||
34105 test ! -s conftest.err
34106 } && test -s conftest.$ac_objext; then
34107 ac_cv_type_intptr_t=yes
34109 echo "$as_me: failed program was:" >&5
34110 sed 's/^/| /' conftest.$ac_ext >&5
34112 ac_cv_type_intptr_t=no
34115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34117 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34118 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34119 if test $ac_cv_type_intptr_t = yes; then
34121 cat >>confdefs.h <<\_ACEOF
34122 #define HAVE_INTPTR_T 1
34126 for ac_type in 'int' 'long int' 'long long int'; do
34127 cat >conftest.$ac_ext <<_ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h. */
34133 $ac_includes_default
34137 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34144 rm -f conftest.$ac_objext
34145 if { (ac_try="$ac_compile"
34146 case "(($ac_try" in
34147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148 *) ac_try_echo=$ac_try;;
34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151 (eval "$ac_compile") 2>conftest.er1
34153 grep -v '^ *+' conftest.er1 >conftest.err
34155 cat conftest.err >&5
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } && {
34158 test -z "$ac_c_werror_flag" ||
34159 test ! -s conftest.err
34160 } && test -s conftest.$ac_objext; then
34162 cat >>confdefs.h <<_ACEOF
34163 #define intptr_t $ac_type
34168 echo "$as_me: failed program was:" >&5
34169 sed 's/^/| /' conftest.$ac_ext >&5
34174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34175 test -z "$ac_type" && break
34181 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34182 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34183 if test "${ac_cv_type_uintptr_t+set}" = set; then
34184 echo $ECHO_N "(cached) $ECHO_C" >&6
34186 cat >conftest.$ac_ext <<_ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h. */
34192 $ac_includes_default
34193 typedef uintptr_t ac__type_new_;
34197 if ((ac__type_new_ *) 0)
34199 if (sizeof (ac__type_new_))
34205 rm -f conftest.$ac_objext
34206 if { (ac_try="$ac_compile"
34207 case "(($ac_try" in
34208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209 *) ac_try_echo=$ac_try;;
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212 (eval "$ac_compile") 2>conftest.er1
34214 grep -v '^ *+' conftest.er1 >conftest.err
34216 cat conftest.err >&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } && {
34219 test -z "$ac_c_werror_flag" ||
34220 test ! -s conftest.err
34221 } && test -s conftest.$ac_objext; then
34222 ac_cv_type_uintptr_t=yes
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ac_cv_type_uintptr_t=no
34230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34232 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34233 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34234 if test $ac_cv_type_uintptr_t = yes; then
34236 cat >>confdefs.h <<\_ACEOF
34237 #define HAVE_UINTPTR_T 1
34241 for ac_type in 'unsigned int' 'unsigned long int' \
34242 'unsigned long long int'; do
34243 cat >conftest.$ac_ext <<_ACEOF
34246 cat confdefs.h >>conftest.$ac_ext
34247 cat >>conftest.$ac_ext <<_ACEOF
34248 /* end confdefs.h. */
34249 $ac_includes_default
34253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34260 rm -f conftest.$ac_objext
34261 if { (ac_try="$ac_compile"
34262 case "(($ac_try" in
34263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264 *) ac_try_echo=$ac_try;;
34266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267 (eval "$ac_compile") 2>conftest.er1
34269 grep -v '^ *+' conftest.er1 >conftest.err
34271 cat conftest.err >&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); } && {
34274 test -z "$ac_c_werror_flag" ||
34275 test ! -s conftest.err
34276 } && test -s conftest.$ac_objext; then
34278 cat >>confdefs.h <<_ACEOF
34279 #define uintptr_t $ac_type
34284 echo "$as_me: failed program was:" >&5
34285 sed 's/^/| /' conftest.$ac_ext >&5
34290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34291 test -z "$ac_type" && break
34296 { echo "$as_me:$LINENO: checking for ino_t" >&5
34297 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34298 if test "${ac_cv_type_ino_t+set}" = set; then
34299 echo $ECHO_N "(cached) $ECHO_C" >&6
34301 cat >conftest.$ac_ext <<_ACEOF
34304 cat confdefs.h >>conftest.$ac_ext
34305 cat >>conftest.$ac_ext <<_ACEOF
34306 /* end confdefs.h. */
34307 $ac_includes_default
34308 typedef ino_t ac__type_new_;
34312 if ((ac__type_new_ *) 0)
34314 if (sizeof (ac__type_new_))
34320 rm -f conftest.$ac_objext
34321 if { (ac_try="$ac_compile"
34322 case "(($ac_try" in
34323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324 *) ac_try_echo=$ac_try;;
34326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34327 (eval "$ac_compile") 2>conftest.er1
34329 grep -v '^ *+' conftest.er1 >conftest.err
34331 cat conftest.err >&5
34332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); } && {
34334 test -z "$ac_c_werror_flag" ||
34335 test ! -s conftest.err
34336 } && test -s conftest.$ac_objext; then
34337 ac_cv_type_ino_t=yes
34339 echo "$as_me: failed program was:" >&5
34340 sed 's/^/| /' conftest.$ac_ext >&5
34342 ac_cv_type_ino_t=no
34345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34347 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34348 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34349 if test $ac_cv_type_ino_t = yes; then
34353 cat >>confdefs.h <<_ACEOF
34354 #define ino_t unsigned long
34359 { echo "$as_me:$LINENO: checking for dev_t" >&5
34360 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34361 if test "${ac_cv_type_dev_t+set}" = set; then
34362 echo $ECHO_N "(cached) $ECHO_C" >&6
34364 cat >conftest.$ac_ext <<_ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h. */
34370 $ac_includes_default
34371 typedef dev_t ac__type_new_;
34375 if ((ac__type_new_ *) 0)
34377 if (sizeof (ac__type_new_))
34383 rm -f conftest.$ac_objext
34384 if { (ac_try="$ac_compile"
34385 case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_compile") 2>conftest.er1
34392 grep -v '^ *+' conftest.er1 >conftest.err
34394 cat conftest.err >&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } && {
34397 test -z "$ac_c_werror_flag" ||
34398 test ! -s conftest.err
34399 } && test -s conftest.$ac_objext; then
34400 ac_cv_type_dev_t=yes
34402 echo "$as_me: failed program was:" >&5
34403 sed 's/^/| /' conftest.$ac_ext >&5
34405 ac_cv_type_dev_t=no
34408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34411 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34412 if test $ac_cv_type_dev_t = yes; then
34416 cat >>confdefs.h <<_ACEOF
34417 #define dev_t unsigned long
34422 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34423 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34424 if test "${ac_cv_type_daddr_t+set}" = set; then
34425 echo $ECHO_N "(cached) $ECHO_C" >&6
34427 cat >conftest.$ac_ext <<_ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h. */
34433 $ac_includes_default
34434 typedef daddr_t ac__type_new_;
34438 if ((ac__type_new_ *) 0)
34440 if (sizeof (ac__type_new_))
34446 rm -f conftest.$ac_objext
34447 if { (ac_try="$ac_compile"
34448 case "(($ac_try" in
34449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34450 *) ac_try_echo=$ac_try;;
34452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34453 (eval "$ac_compile") 2>conftest.er1
34455 grep -v '^ *+' conftest.er1 >conftest.err
34457 cat conftest.err >&5
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); } && {
34460 test -z "$ac_c_werror_flag" ||
34461 test ! -s conftest.err
34462 } && test -s conftest.$ac_objext; then
34463 ac_cv_type_daddr_t=yes
34465 echo "$as_me: failed program was:" >&5
34466 sed 's/^/| /' conftest.$ac_ext >&5
34468 ac_cv_type_daddr_t=no
34471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34473 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34474 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34475 if test $ac_cv_type_daddr_t = yes; then
34479 cat >>confdefs.h <<_ACEOF
34480 #define daddr_t long
34485 { echo "$as_me:$LINENO: checking for major_t" >&5
34486 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34487 if test "${ac_cv_type_major_t+set}" = set; then
34488 echo $ECHO_N "(cached) $ECHO_C" >&6
34490 cat >conftest.$ac_ext <<_ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34496 $ac_includes_default
34497 typedef major_t ac__type_new_;
34501 if ((ac__type_new_ *) 0)
34503 if (sizeof (ac__type_new_))
34509 rm -f conftest.$ac_objext
34510 if { (ac_try="$ac_compile"
34511 case "(($ac_try" in
34512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34513 *) ac_try_echo=$ac_try;;
34515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34516 (eval "$ac_compile") 2>conftest.er1
34518 grep -v '^ *+' conftest.er1 >conftest.err
34520 cat conftest.err >&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); } && {
34523 test -z "$ac_c_werror_flag" ||
34524 test ! -s conftest.err
34525 } && test -s conftest.$ac_objext; then
34526 ac_cv_type_major_t=yes
34528 echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34531 ac_cv_type_major_t=no
34534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34536 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34537 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34538 if test $ac_cv_type_major_t = yes; then
34542 cat >>confdefs.h <<_ACEOF
34543 #define major_t int
34548 { echo "$as_me:$LINENO: checking for minor_t" >&5
34549 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34550 if test "${ac_cv_type_minor_t+set}" = set; then
34551 echo $ECHO_N "(cached) $ECHO_C" >&6
34553 cat >conftest.$ac_ext <<_ACEOF
34556 cat confdefs.h >>conftest.$ac_ext
34557 cat >>conftest.$ac_ext <<_ACEOF
34558 /* end confdefs.h. */
34559 $ac_includes_default
34560 typedef minor_t ac__type_new_;
34564 if ((ac__type_new_ *) 0)
34566 if (sizeof (ac__type_new_))
34572 rm -f conftest.$ac_objext
34573 if { (ac_try="$ac_compile"
34574 case "(($ac_try" in
34575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34576 *) ac_try_echo=$ac_try;;
34578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34579 (eval "$ac_compile") 2>conftest.er1
34581 grep -v '^ *+' conftest.er1 >conftest.err
34583 cat conftest.err >&5
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); } && {
34586 test -z "$ac_c_werror_flag" ||
34587 test ! -s conftest.err
34588 } && test -s conftest.$ac_objext; then
34589 ac_cv_type_minor_t=yes
34591 echo "$as_me: failed program was:" >&5
34592 sed 's/^/| /' conftest.$ac_ext >&5
34594 ac_cv_type_minor_t=no
34597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34599 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34600 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34601 if test $ac_cv_type_minor_t = yes; then
34605 cat >>confdefs.h <<_ACEOF
34606 #define minor_t int
34611 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34612 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34613 if test "${ac_cv_type_ssize_t+set}" = set; then
34614 echo $ECHO_N "(cached) $ECHO_C" >&6
34616 cat >conftest.$ac_ext <<_ACEOF
34619 cat confdefs.h >>conftest.$ac_ext
34620 cat >>conftest.$ac_ext <<_ACEOF
34621 /* end confdefs.h. */
34622 $ac_includes_default
34623 typedef ssize_t ac__type_new_;
34627 if ((ac__type_new_ *) 0)
34629 if (sizeof (ac__type_new_))
34635 rm -f conftest.$ac_objext
34636 if { (ac_try="$ac_compile"
34637 case "(($ac_try" in
34638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34639 *) ac_try_echo=$ac_try;;
34641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34642 (eval "$ac_compile") 2>conftest.er1
34644 grep -v '^ *+' conftest.er1 >conftest.err
34646 cat conftest.err >&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } && {
34649 test -z "$ac_c_werror_flag" ||
34650 test ! -s conftest.err
34651 } && test -s conftest.$ac_objext; then
34652 ac_cv_type_ssize_t=yes
34654 echo "$as_me: failed program was:" >&5
34655 sed 's/^/| /' conftest.$ac_ext >&5
34657 ac_cv_type_ssize_t=no
34660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34662 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34663 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34664 if test $ac_cv_type_ssize_t = yes; then
34668 cat >>confdefs.h <<_ACEOF
34669 #define ssize_t int
34674 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34675 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34676 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34679 cat >conftest.$ac_ext <<_ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685 $ac_includes_default
34689 static struct stat ac_aggr;
34690 if (ac_aggr.st_blocks)
34696 rm -f conftest.$ac_objext
34697 if { (ac_try="$ac_compile"
34698 case "(($ac_try" in
34699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34700 *) ac_try_echo=$ac_try;;
34702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34703 (eval "$ac_compile") 2>conftest.er1
34705 grep -v '^ *+' conftest.er1 >conftest.err
34707 cat conftest.err >&5
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } && {
34710 test -z "$ac_c_werror_flag" ||
34711 test ! -s conftest.err
34712 } && test -s conftest.$ac_objext; then
34713 ac_cv_member_struct_stat_st_blocks=yes
34715 echo "$as_me: failed program was:" >&5
34716 sed 's/^/| /' conftest.$ac_ext >&5
34718 cat >conftest.$ac_ext <<_ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h. */
34724 $ac_includes_default
34728 static struct stat ac_aggr;
34729 if (sizeof ac_aggr.st_blocks)
34735 rm -f conftest.$ac_objext
34736 if { (ac_try="$ac_compile"
34737 case "(($ac_try" in
34738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34739 *) ac_try_echo=$ac_try;;
34741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34742 (eval "$ac_compile") 2>conftest.er1
34744 grep -v '^ *+' conftest.er1 >conftest.err
34746 cat conftest.err >&5
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); } && {
34749 test -z "$ac_c_werror_flag" ||
34750 test ! -s conftest.err
34751 } && test -s conftest.$ac_objext; then
34752 ac_cv_member_struct_stat_st_blocks=yes
34754 echo "$as_me: failed program was:" >&5
34755 sed 's/^/| /' conftest.$ac_ext >&5
34757 ac_cv_member_struct_stat_st_blocks=no
34760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34765 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34766 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34767 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34769 cat >>confdefs.h <<_ACEOF
34770 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34774 cat >>confdefs.h <<\_ACEOF
34775 #define HAVE_ST_BLOCKS 1
34779 case " $LIBOBJS " in
34780 *" fileblocks.$ac_objext "* ) ;;
34781 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34788 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34789 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34790 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34791 echo $ECHO_N "(cached) $ECHO_C" >&6
34793 cat >conftest.$ac_ext <<_ACEOF
34796 cat confdefs.h >>conftest.$ac_ext
34797 cat >>conftest.$ac_ext <<_ACEOF
34798 /* end confdefs.h. */
34799 $ac_includes_default
34803 static struct stat ac_aggr;
34804 if (ac_aggr.st_rdev)
34810 rm -f conftest.$ac_objext
34811 if { (ac_try="$ac_compile"
34812 case "(($ac_try" in
34813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814 *) ac_try_echo=$ac_try;;
34816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34817 (eval "$ac_compile") 2>conftest.er1
34819 grep -v '^ *+' conftest.er1 >conftest.err
34821 cat conftest.err >&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } && {
34824 test -z "$ac_c_werror_flag" ||
34825 test ! -s conftest.err
34826 } && test -s conftest.$ac_objext; then
34827 ac_cv_member_struct_stat_st_rdev=yes
34829 echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34832 cat >conftest.$ac_ext <<_ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h. */
34838 $ac_includes_default
34842 static struct stat ac_aggr;
34843 if (sizeof ac_aggr.st_rdev)
34849 rm -f conftest.$ac_objext
34850 if { (ac_try="$ac_compile"
34851 case "(($ac_try" in
34852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34853 *) ac_try_echo=$ac_try;;
34855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34856 (eval "$ac_compile") 2>conftest.er1
34858 grep -v '^ *+' conftest.er1 >conftest.err
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } && {
34863 test -z "$ac_c_werror_flag" ||
34864 test ! -s conftest.err
34865 } && test -s conftest.$ac_objext; then
34866 ac_cv_member_struct_stat_st_rdev=yes
34868 echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34871 ac_cv_member_struct_stat_st_rdev=no
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34879 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34880 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34881 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34883 cat >>confdefs.h <<_ACEOF
34884 #define HAVE_STRUCT_STAT_ST_RDEV 1
34888 cat >>confdefs.h <<\_ACEOF
34889 #define HAVE_ST_RDEV 1
34895 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34896 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34897 if test "${ac_cv_struct_tm+set}" = set; then
34898 echo $ECHO_N "(cached) $ECHO_C" >&6
34900 cat >conftest.$ac_ext <<_ACEOF
34903 cat confdefs.h >>conftest.$ac_ext
34904 cat >>conftest.$ac_ext <<_ACEOF
34905 /* end confdefs.h. */
34906 #include <sys/types.h>
34913 int *p = &tm.tm_sec;
34919 rm -f conftest.$ac_objext
34920 if { (ac_try="$ac_compile"
34921 case "(($ac_try" in
34922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34923 *) ac_try_echo=$ac_try;;
34925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34926 (eval "$ac_compile") 2>conftest.er1
34928 grep -v '^ *+' conftest.er1 >conftest.err
34930 cat conftest.err >&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } && {
34933 test -z "$ac_c_werror_flag" ||
34934 test ! -s conftest.err
34935 } && test -s conftest.$ac_objext; then
34936 ac_cv_struct_tm=time.h
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34941 ac_cv_struct_tm=sys/time.h
34944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34946 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34947 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34948 if test $ac_cv_struct_tm = sys/time.h; then
34950 cat >>confdefs.h <<\_ACEOF
34951 #define TM_IN_SYS_TIME 1
34956 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34957 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34958 if test "${ac_cv_c_const+set}" = set; then
34959 echo $ECHO_N "(cached) $ECHO_C" >&6
34961 cat >conftest.$ac_ext <<_ACEOF
34964 cat confdefs.h >>conftest.$ac_ext
34965 cat >>conftest.$ac_ext <<_ACEOF
34966 /* end confdefs.h. */
34971 /* FIXME: Include the comments suggested by Paul. */
34972 #ifndef __cplusplus
34973 /* Ultrix mips cc rejects this. */
34974 typedef int charset[2];
34976 /* SunOS 4.1.1 cc rejects this. */
34977 char const *const *pcpcc;
34979 /* NEC SVR4.0.2 mips cc rejects this. */
34980 struct point {int x, y;};
34981 static struct point const zero = {0,0};
34982 /* AIX XL C 1.02.0.0 rejects this.
34983 It does not let you subtract one const X* pointer from another in
34984 an arm of an if-expression whose if-part is not a constant
34986 const char *g = "string";
34987 pcpcc = &g + (g ? g-g : 0);
34988 /* HPUX 7.0 cc rejects these. */
34990 ppc = (char**) pcpcc;
34991 pcpcc = (char const *const *) ppc;
34992 { /* SCO 3.2v4 cc rejects this. */
34994 char const *s = 0 ? (char *) 0 : (char const *) 0;
34999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35000 int x[] = {25, 17};
35001 const int *foo = &x[0];
35004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35005 typedef const int *iptr;
35009 { /* AIX XL C 1.02.0.0 rejects this saying
35010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35011 struct s { int j; const int *ap[3]; };
35012 struct s *b; b->j = 5;
35014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35015 const int foo = 10;
35016 if (!foo) return 0;
35018 return !cs[0] && !zero.x;
35025 rm -f conftest.$ac_objext
35026 if { (ac_try="$ac_compile"
35027 case "(($ac_try" in
35028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35029 *) ac_try_echo=$ac_try;;
35031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35032 (eval "$ac_compile") 2>conftest.er1
35034 grep -v '^ *+' conftest.er1 >conftest.err
35036 cat conftest.err >&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); } && {
35039 test -z "$ac_c_werror_flag" ||
35040 test ! -s conftest.err
35041 } && test -s conftest.$ac_objext; then
35044 echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35052 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35053 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35054 if test $ac_cv_c_const = no; then
35056 cat >>confdefs.h <<\_ACEOF
35063 { echo "$as_me:$LINENO: checking for char" >&5
35064 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35065 if test "${ac_cv_type_char+set}" = set; then
35066 echo $ECHO_N "(cached) $ECHO_C" >&6
35068 cat >conftest.$ac_ext <<_ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h. */
35074 $ac_includes_default
35075 typedef char ac__type_new_;
35079 if ((ac__type_new_ *) 0)
35081 if (sizeof (ac__type_new_))
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091 *) ac_try_echo=$ac_try;;
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094 (eval "$ac_compile") 2>conftest.er1
35096 grep -v '^ *+' conftest.er1 >conftest.err
35098 cat conftest.err >&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); } && {
35101 test -z "$ac_c_werror_flag" ||
35102 test ! -s conftest.err
35103 } && test -s conftest.$ac_objext; then
35104 ac_cv_type_char=yes
35106 echo "$as_me: failed program was:" >&5
35107 sed 's/^/| /' conftest.$ac_ext >&5
35112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35114 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35115 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35117 # The cast to long int works around a bug in the HP C Compiler
35118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35120 # This bug is HP SR number 8606223364.
35121 { echo "$as_me:$LINENO: checking size of char" >&5
35122 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35123 if test "${ac_cv_sizeof_char+set}" = set; then
35124 echo $ECHO_N "(cached) $ECHO_C" >&6
35126 if test "$cross_compiling" = yes; then
35127 # Depending upon the size, compute the lo and hi bounds.
35128 cat >conftest.$ac_ext <<_ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h. */
35134 $ac_includes_default
35135 typedef char ac__type_sizeof_;
35139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35146 rm -f conftest.$ac_objext
35147 if { (ac_try="$ac_compile"
35148 case "(($ac_try" in
35149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35150 *) ac_try_echo=$ac_try;;
35152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35153 (eval "$ac_compile") 2>conftest.er1
35155 grep -v '^ *+' conftest.er1 >conftest.err
35157 cat conftest.err >&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } && {
35160 test -z "$ac_c_werror_flag" ||
35161 test ! -s conftest.err
35162 } && test -s conftest.$ac_objext; then
35165 cat >conftest.$ac_ext <<_ACEOF
35168 cat confdefs.h >>conftest.$ac_ext
35169 cat >>conftest.$ac_ext <<_ACEOF
35170 /* end confdefs.h. */
35171 $ac_includes_default
35172 typedef char ac__type_sizeof_;
35176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35183 rm -f conftest.$ac_objext
35184 if { (ac_try="$ac_compile"
35185 case "(($ac_try" in
35186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187 *) ac_try_echo=$ac_try;;
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190 (eval "$ac_compile") 2>conftest.er1
35192 grep -v '^ *+' conftest.er1 >conftest.err
35194 cat conftest.err >&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } && {
35197 test -z "$ac_c_werror_flag" ||
35198 test ! -s conftest.err
35199 } && test -s conftest.$ac_objext; then
35200 ac_hi=$ac_mid; break
35202 echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35205 ac_lo=`expr $ac_mid + 1`
35206 if test $ac_lo -le $ac_mid; then
35210 ac_mid=`expr 2 '*' $ac_mid + 1`
35213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35216 echo "$as_me: failed program was:" >&5
35217 sed 's/^/| /' conftest.$ac_ext >&5
35219 cat >conftest.$ac_ext <<_ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h. */
35225 $ac_includes_default
35226 typedef char ac__type_sizeof_;
35230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35237 rm -f conftest.$ac_objext
35238 if { (ac_try="$ac_compile"
35239 case "(($ac_try" in
35240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241 *) ac_try_echo=$ac_try;;
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244 (eval "$ac_compile") 2>conftest.er1
35246 grep -v '^ *+' conftest.er1 >conftest.err
35248 cat conftest.err >&5
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); } && {
35251 test -z "$ac_c_werror_flag" ||
35252 test ! -s conftest.err
35253 } && test -s conftest.$ac_objext; then
35256 cat >conftest.$ac_ext <<_ACEOF
35259 cat confdefs.h >>conftest.$ac_ext
35260 cat >>conftest.$ac_ext <<_ACEOF
35261 /* end confdefs.h. */
35262 $ac_includes_default
35263 typedef char ac__type_sizeof_;
35267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35274 rm -f conftest.$ac_objext
35275 if { (ac_try="$ac_compile"
35276 case "(($ac_try" in
35277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35278 *) ac_try_echo=$ac_try;;
35280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35281 (eval "$ac_compile") 2>conftest.er1
35283 grep -v '^ *+' conftest.er1 >conftest.err
35285 cat conftest.err >&5
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); } && {
35288 test -z "$ac_c_werror_flag" ||
35289 test ! -s conftest.err
35290 } && test -s conftest.$ac_objext; then
35291 ac_lo=$ac_mid; break
35293 echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35296 ac_hi=`expr '(' $ac_mid ')' - 1`
35297 if test $ac_mid -le $ac_hi; then
35301 ac_mid=`expr 2 '*' $ac_mid`
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.$ac_ext >&5
35313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35317 # Binary search between lo and hi bounds.
35318 while test "x$ac_lo" != "x$ac_hi"; do
35319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35320 cat >conftest.$ac_ext <<_ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35326 $ac_includes_default
35327 typedef char ac__type_sizeof_;
35331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35338 rm -f conftest.$ac_objext
35339 if { (ac_try="$ac_compile"
35340 case "(($ac_try" in
35341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35342 *) ac_try_echo=$ac_try;;
35344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35345 (eval "$ac_compile") 2>conftest.er1
35347 grep -v '^ *+' conftest.er1 >conftest.err
35349 cat conftest.err >&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); } && {
35352 test -z "$ac_c_werror_flag" ||
35353 test ! -s conftest.err
35354 } && test -s conftest.$ac_objext; then
35357 echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35360 ac_lo=`expr '(' $ac_mid ')' + 1`
35363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35366 ?*) ac_cv_sizeof_char=$ac_lo;;
35367 '') if test "$ac_cv_type_char" = yes; then
35368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35369 See \`config.log' for more details." >&5
35370 echo "$as_me: error: cannot compute sizeof (char)
35371 See \`config.log' for more details." >&2;}
35372 { (exit 77); exit 77; }; }
35374 ac_cv_sizeof_char=0
35378 cat >conftest.$ac_ext <<_ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384 $ac_includes_default
35385 typedef char ac__type_sizeof_;
35386 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35387 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35389 #include <stdlib.h>
35394 FILE *f = fopen ("conftest.val", "w");
35397 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35399 long int i = longval ();
35400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35402 fprintf (f, "%ld\n", i);
35406 unsigned long int i = ulongval ();
35407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35409 fprintf (f, "%lu\n", i);
35411 return ferror (f) || fclose (f) != 0;
35417 rm -f conftest$ac_exeext
35418 if { (ac_try="$ac_link"
35419 case "(($ac_try" in
35420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35421 *) ac_try_echo=$ac_try;;
35423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35424 (eval "$ac_link") 2>&5
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35428 { (case "(($ac_try" in
35429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35430 *) ac_try_echo=$ac_try;;
35432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35433 (eval "$ac_try") 2>&5
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 ac_cv_sizeof_char=`cat conftest.val`
35439 echo "$as_me: program exited with status $ac_status" >&5
35440 echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35443 ( exit $ac_status )
35444 if test "$ac_cv_type_char" = yes; then
35445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35446 See \`config.log' for more details." >&5
35447 echo "$as_me: error: cannot compute sizeof (char)
35448 See \`config.log' for more details." >&2;}
35449 { (exit 77); exit 77; }; }
35451 ac_cv_sizeof_char=0
35454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35458 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35459 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35463 cat >>confdefs.h <<_ACEOF
35464 #define SIZEOF_CHAR $ac_cv_sizeof_char
35468 { echo "$as_me:$LINENO: checking for short int" >&5
35469 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35470 if test "${ac_cv_type_short_int+set}" = set; then
35471 echo $ECHO_N "(cached) $ECHO_C" >&6
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 $ac_includes_default
35480 typedef short int ac__type_new_;
35484 if ((ac__type_new_ *) 0)
35486 if (sizeof (ac__type_new_))
35492 rm -f conftest.$ac_objext
35493 if { (ac_try="$ac_compile"
35494 case "(($ac_try" in
35495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496 *) ac_try_echo=$ac_try;;
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499 (eval "$ac_compile") 2>conftest.er1
35501 grep -v '^ *+' conftest.er1 >conftest.err
35503 cat conftest.err >&5
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); } && {
35506 test -z "$ac_c_werror_flag" ||
35507 test ! -s conftest.err
35508 } && test -s conftest.$ac_objext; then
35509 ac_cv_type_short_int=yes
35511 echo "$as_me: failed program was:" >&5
35512 sed 's/^/| /' conftest.$ac_ext >&5
35514 ac_cv_type_short_int=no
35517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35519 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35520 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35522 # The cast to long int works around a bug in the HP C Compiler
35523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35525 # This bug is HP SR number 8606223364.
35526 { echo "$as_me:$LINENO: checking size of short int" >&5
35527 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35528 if test "${ac_cv_sizeof_short_int+set}" = set; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35531 if test "$cross_compiling" = yes; then
35532 # Depending upon the size, compute the lo and hi bounds.
35533 cat >conftest.$ac_ext <<_ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h. */
35539 $ac_includes_default
35540 typedef short int ac__type_sizeof_;
35544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35551 rm -f conftest.$ac_objext
35552 if { (ac_try="$ac_compile"
35553 case "(($ac_try" in
35554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35555 *) ac_try_echo=$ac_try;;
35557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35558 (eval "$ac_compile") 2>conftest.er1
35560 grep -v '^ *+' conftest.er1 >conftest.err
35562 cat conftest.err >&5
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); } && {
35565 test -z "$ac_c_werror_flag" ||
35566 test ! -s conftest.err
35567 } && test -s conftest.$ac_objext; then
35570 cat >conftest.$ac_ext <<_ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h. */
35576 $ac_includes_default
35577 typedef short int ac__type_sizeof_;
35581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35588 rm -f conftest.$ac_objext
35589 if { (ac_try="$ac_compile"
35590 case "(($ac_try" in
35591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35592 *) ac_try_echo=$ac_try;;
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595 (eval "$ac_compile") 2>conftest.er1
35597 grep -v '^ *+' conftest.er1 >conftest.err
35599 cat conftest.err >&5
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); } && {
35602 test -z "$ac_c_werror_flag" ||
35603 test ! -s conftest.err
35604 } && test -s conftest.$ac_objext; then
35605 ac_hi=$ac_mid; break
35607 echo "$as_me: failed program was:" >&5
35608 sed 's/^/| /' conftest.$ac_ext >&5
35610 ac_lo=`expr $ac_mid + 1`
35611 if test $ac_lo -le $ac_mid; then
35615 ac_mid=`expr 2 '*' $ac_mid + 1`
35618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35621 echo "$as_me: failed program was:" >&5
35622 sed 's/^/| /' conftest.$ac_ext >&5
35624 cat >conftest.$ac_ext <<_ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h. */
35630 $ac_includes_default
35631 typedef short int ac__type_sizeof_;
35635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35642 rm -f conftest.$ac_objext
35643 if { (ac_try="$ac_compile"
35644 case "(($ac_try" in
35645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646 *) ac_try_echo=$ac_try;;
35648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35649 (eval "$ac_compile") 2>conftest.er1
35651 grep -v '^ *+' conftest.er1 >conftest.err
35653 cat conftest.err >&5
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); } && {
35656 test -z "$ac_c_werror_flag" ||
35657 test ! -s conftest.err
35658 } && test -s conftest.$ac_objext; then
35661 cat >conftest.$ac_ext <<_ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35667 $ac_includes_default
35668 typedef short int ac__type_sizeof_;
35672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35679 rm -f conftest.$ac_objext
35680 if { (ac_try="$ac_compile"
35681 case "(($ac_try" in
35682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35683 *) ac_try_echo=$ac_try;;
35685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35686 (eval "$ac_compile") 2>conftest.er1
35688 grep -v '^ *+' conftest.er1 >conftest.err
35690 cat conftest.err >&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); } && {
35693 test -z "$ac_c_werror_flag" ||
35694 test ! -s conftest.err
35695 } && test -s conftest.$ac_objext; then
35696 ac_lo=$ac_mid; break
35698 echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35701 ac_hi=`expr '(' $ac_mid ')' - 1`
35702 if test $ac_mid -le $ac_hi; then
35706 ac_mid=`expr 2 '*' $ac_mid`
35709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35722 # Binary search between lo and hi bounds.
35723 while test "x$ac_lo" != "x$ac_hi"; do
35724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35725 cat >conftest.$ac_ext <<_ACEOF
35728 cat confdefs.h >>conftest.$ac_ext
35729 cat >>conftest.$ac_ext <<_ACEOF
35730 /* end confdefs.h. */
35731 $ac_includes_default
35732 typedef short int ac__type_sizeof_;
35736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35743 rm -f conftest.$ac_objext
35744 if { (ac_try="$ac_compile"
35745 case "(($ac_try" in
35746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35747 *) ac_try_echo=$ac_try;;
35749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35750 (eval "$ac_compile") 2>conftest.er1
35752 grep -v '^ *+' conftest.er1 >conftest.err
35754 cat conftest.err >&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } && {
35757 test -z "$ac_c_werror_flag" ||
35758 test ! -s conftest.err
35759 } && test -s conftest.$ac_objext; then
35762 echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35765 ac_lo=`expr '(' $ac_mid ')' + 1`
35768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35771 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35772 '') if test "$ac_cv_type_short_int" = yes; then
35773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35774 See \`config.log' for more details." >&5
35775 echo "$as_me: error: cannot compute sizeof (short int)
35776 See \`config.log' for more details." >&2;}
35777 { (exit 77); exit 77; }; }
35779 ac_cv_sizeof_short_int=0
35783 cat >conftest.$ac_ext <<_ACEOF
35786 cat confdefs.h >>conftest.$ac_ext
35787 cat >>conftest.$ac_ext <<_ACEOF
35788 /* end confdefs.h. */
35789 $ac_includes_default
35790 typedef short int ac__type_sizeof_;
35791 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35792 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35794 #include <stdlib.h>
35799 FILE *f = fopen ("conftest.val", "w");
35802 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35804 long int i = longval ();
35805 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35807 fprintf (f, "%ld\n", i);
35811 unsigned long int i = ulongval ();
35812 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35814 fprintf (f, "%lu\n", i);
35816 return ferror (f) || fclose (f) != 0;
35822 rm -f conftest$ac_exeext
35823 if { (ac_try="$ac_link"
35824 case "(($ac_try" in
35825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35826 *) ac_try_echo=$ac_try;;
35828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35829 (eval "$ac_link") 2>&5
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35833 { (case "(($ac_try" in
35834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35835 *) ac_try_echo=$ac_try;;
35837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35838 (eval "$ac_try") 2>&5
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; }; then
35842 ac_cv_sizeof_short_int=`cat conftest.val`
35844 echo "$as_me: program exited with status $ac_status" >&5
35845 echo "$as_me: failed program was:" >&5
35846 sed 's/^/| /' conftest.$ac_ext >&5
35848 ( exit $ac_status )
35849 if test "$ac_cv_type_short_int" = yes; then
35850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35851 See \`config.log' for more details." >&5
35852 echo "$as_me: error: cannot compute sizeof (short int)
35853 See \`config.log' for more details." >&2;}
35854 { (exit 77); exit 77; }; }
35856 ac_cv_sizeof_short_int=0
35859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35863 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35864 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35868 cat >>confdefs.h <<_ACEOF
35869 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35873 { echo "$as_me:$LINENO: checking for int" >&5
35874 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35875 if test "${ac_cv_type_int+set}" = set; then
35876 echo $ECHO_N "(cached) $ECHO_C" >&6
35878 cat >conftest.$ac_ext <<_ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h. */
35884 $ac_includes_default
35885 typedef int ac__type_new_;
35889 if ((ac__type_new_ *) 0)
35891 if (sizeof (ac__type_new_))
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901 *) ac_try_echo=$ac_try;;
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904 (eval "$ac_compile") 2>conftest.er1
35906 grep -v '^ *+' conftest.er1 >conftest.err
35908 cat conftest.err >&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } && {
35911 test -z "$ac_c_werror_flag" ||
35912 test ! -s conftest.err
35913 } && test -s conftest.$ac_objext; then
35916 echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35924 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35925 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35927 # The cast to long int works around a bug in the HP C Compiler
35928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35930 # This bug is HP SR number 8606223364.
35931 { echo "$as_me:$LINENO: checking size of int" >&5
35932 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35933 if test "${ac_cv_sizeof_int+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35936 if test "$cross_compiling" = yes; then
35937 # Depending upon the size, compute the lo and hi bounds.
35938 cat >conftest.$ac_ext <<_ACEOF
35941 cat confdefs.h >>conftest.$ac_ext
35942 cat >>conftest.$ac_ext <<_ACEOF
35943 /* end confdefs.h. */
35944 $ac_includes_default
35945 typedef int ac__type_sizeof_;
35949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35956 rm -f conftest.$ac_objext
35957 if { (ac_try="$ac_compile"
35958 case "(($ac_try" in
35959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35960 *) ac_try_echo=$ac_try;;
35962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35963 (eval "$ac_compile") 2>conftest.er1
35965 grep -v '^ *+' conftest.er1 >conftest.err
35967 cat conftest.err >&5
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); } && {
35970 test -z "$ac_c_werror_flag" ||
35971 test ! -s conftest.err
35972 } && test -s conftest.$ac_objext; then
35975 cat >conftest.$ac_ext <<_ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35981 $ac_includes_default
35982 typedef int ac__type_sizeof_;
35986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35993 rm -f conftest.$ac_objext
35994 if { (ac_try="$ac_compile"
35995 case "(($ac_try" in
35996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35997 *) ac_try_echo=$ac_try;;
35999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36000 (eval "$ac_compile") 2>conftest.er1
36002 grep -v '^ *+' conftest.er1 >conftest.err
36004 cat conftest.err >&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } && {
36007 test -z "$ac_c_werror_flag" ||
36008 test ! -s conftest.err
36009 } && test -s conftest.$ac_objext; then
36010 ac_hi=$ac_mid; break
36012 echo "$as_me: failed program was:" >&5
36013 sed 's/^/| /' conftest.$ac_ext >&5
36015 ac_lo=`expr $ac_mid + 1`
36016 if test $ac_lo -le $ac_mid; then
36020 ac_mid=`expr 2 '*' $ac_mid + 1`
36023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36026 echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36029 cat >conftest.$ac_ext <<_ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h. */
36035 $ac_includes_default
36036 typedef int ac__type_sizeof_;
36040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36047 rm -f conftest.$ac_objext
36048 if { (ac_try="$ac_compile"
36049 case "(($ac_try" in
36050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051 *) ac_try_echo=$ac_try;;
36053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36054 (eval "$ac_compile") 2>conftest.er1
36056 grep -v '^ *+' conftest.er1 >conftest.err
36058 cat conftest.err >&5
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); } && {
36061 test -z "$ac_c_werror_flag" ||
36062 test ! -s conftest.err
36063 } && test -s conftest.$ac_objext; then
36066 cat >conftest.$ac_ext <<_ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h. */
36072 $ac_includes_default
36073 typedef int ac__type_sizeof_;
36077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36084 rm -f conftest.$ac_objext
36085 if { (ac_try="$ac_compile"
36086 case "(($ac_try" in
36087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088 *) ac_try_echo=$ac_try;;
36090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091 (eval "$ac_compile") 2>conftest.er1
36093 grep -v '^ *+' conftest.er1 >conftest.err
36095 cat conftest.err >&5
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); } && {
36098 test -z "$ac_c_werror_flag" ||
36099 test ! -s conftest.err
36100 } && test -s conftest.$ac_objext; then
36101 ac_lo=$ac_mid; break
36103 echo "$as_me: failed program was:" >&5
36104 sed 's/^/| /' conftest.$ac_ext >&5
36106 ac_hi=`expr '(' $ac_mid ')' - 1`
36107 if test $ac_mid -le $ac_hi; then
36111 ac_mid=`expr 2 '*' $ac_mid`
36114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36117 echo "$as_me: failed program was:" >&5
36118 sed 's/^/| /' conftest.$ac_ext >&5
36123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36127 # Binary search between lo and hi bounds.
36128 while test "x$ac_lo" != "x$ac_hi"; do
36129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36130 cat >conftest.$ac_ext <<_ACEOF
36133 cat confdefs.h >>conftest.$ac_ext
36134 cat >>conftest.$ac_ext <<_ACEOF
36135 /* end confdefs.h. */
36136 $ac_includes_default
36137 typedef int ac__type_sizeof_;
36141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36148 rm -f conftest.$ac_objext
36149 if { (ac_try="$ac_compile"
36150 case "(($ac_try" in
36151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36152 *) ac_try_echo=$ac_try;;
36154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36155 (eval "$ac_compile") 2>conftest.er1
36157 grep -v '^ *+' conftest.er1 >conftest.err
36159 cat conftest.err >&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } && {
36162 test -z "$ac_c_werror_flag" ||
36163 test ! -s conftest.err
36164 } && test -s conftest.$ac_objext; then
36167 echo "$as_me: failed program was:" >&5
36168 sed 's/^/| /' conftest.$ac_ext >&5
36170 ac_lo=`expr '(' $ac_mid ')' + 1`
36173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36176 ?*) ac_cv_sizeof_int=$ac_lo;;
36177 '') if test "$ac_cv_type_int" = yes; then
36178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36179 See \`config.log' for more details." >&5
36180 echo "$as_me: error: cannot compute sizeof (int)
36181 See \`config.log' for more details." >&2;}
36182 { (exit 77); exit 77; }; }
36188 cat >conftest.$ac_ext <<_ACEOF
36191 cat confdefs.h >>conftest.$ac_ext
36192 cat >>conftest.$ac_ext <<_ACEOF
36193 /* end confdefs.h. */
36194 $ac_includes_default
36195 typedef int ac__type_sizeof_;
36196 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36197 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36199 #include <stdlib.h>
36204 FILE *f = fopen ("conftest.val", "w");
36207 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36209 long int i = longval ();
36210 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36212 fprintf (f, "%ld\n", i);
36216 unsigned long int i = ulongval ();
36217 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36219 fprintf (f, "%lu\n", i);
36221 return ferror (f) || fclose (f) != 0;
36227 rm -f conftest$ac_exeext
36228 if { (ac_try="$ac_link"
36229 case "(($ac_try" in
36230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231 *) ac_try_echo=$ac_try;;
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_link") 2>&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36238 { (case "(($ac_try" in
36239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36240 *) ac_try_echo=$ac_try;;
36242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36243 (eval "$ac_try") 2>&5
36245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246 (exit $ac_status); }; }; then
36247 ac_cv_sizeof_int=`cat conftest.val`
36249 echo "$as_me: program exited with status $ac_status" >&5
36250 echo "$as_me: failed program was:" >&5
36251 sed 's/^/| /' conftest.$ac_ext >&5
36253 ( exit $ac_status )
36254 if test "$ac_cv_type_int" = yes; then
36255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36256 See \`config.log' for more details." >&5
36257 echo "$as_me: error: cannot compute sizeof (int)
36258 See \`config.log' for more details." >&2;}
36259 { (exit 77); exit 77; }; }
36264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36268 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36269 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36273 cat >>confdefs.h <<_ACEOF
36274 #define SIZEOF_INT $ac_cv_sizeof_int
36278 { echo "$as_me:$LINENO: checking for long int" >&5
36279 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36280 if test "${ac_cv_type_long_int+set}" = set; then
36281 echo $ECHO_N "(cached) $ECHO_C" >&6
36283 cat >conftest.$ac_ext <<_ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h. */
36289 $ac_includes_default
36290 typedef long int ac__type_new_;
36294 if ((ac__type_new_ *) 0)
36296 if (sizeof (ac__type_new_))
36302 rm -f conftest.$ac_objext
36303 if { (ac_try="$ac_compile"
36304 case "(($ac_try" in
36305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306 *) ac_try_echo=$ac_try;;
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309 (eval "$ac_compile") 2>conftest.er1
36311 grep -v '^ *+' conftest.er1 >conftest.err
36313 cat conftest.err >&5
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } && {
36316 test -z "$ac_c_werror_flag" ||
36317 test ! -s conftest.err
36318 } && test -s conftest.$ac_objext; then
36319 ac_cv_type_long_int=yes
36321 echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36324 ac_cv_type_long_int=no
36327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36329 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36330 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36332 # The cast to long int works around a bug in the HP C Compiler
36333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36335 # This bug is HP SR number 8606223364.
36336 { echo "$as_me:$LINENO: checking size of long int" >&5
36337 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36338 if test "${ac_cv_sizeof_long_int+set}" = set; then
36339 echo $ECHO_N "(cached) $ECHO_C" >&6
36341 if test "$cross_compiling" = yes; then
36342 # Depending upon the size, compute the lo and hi bounds.
36343 cat >conftest.$ac_ext <<_ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h. */
36349 $ac_includes_default
36350 typedef long int ac__type_sizeof_;
36354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36361 rm -f conftest.$ac_objext
36362 if { (ac_try="$ac_compile"
36363 case "(($ac_try" in
36364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365 *) ac_try_echo=$ac_try;;
36367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36368 (eval "$ac_compile") 2>conftest.er1
36370 grep -v '^ *+' conftest.er1 >conftest.err
36372 cat conftest.err >&5
36373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374 (exit $ac_status); } && {
36375 test -z "$ac_c_werror_flag" ||
36376 test ! -s conftest.err
36377 } && test -s conftest.$ac_objext; then
36380 cat >conftest.$ac_ext <<_ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h. */
36386 $ac_includes_default
36387 typedef long int ac__type_sizeof_;
36391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36398 rm -f conftest.$ac_objext
36399 if { (ac_try="$ac_compile"
36400 case "(($ac_try" in
36401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36402 *) ac_try_echo=$ac_try;;
36404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36405 (eval "$ac_compile") 2>conftest.er1
36407 grep -v '^ *+' conftest.er1 >conftest.err
36409 cat conftest.err >&5
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); } && {
36412 test -z "$ac_c_werror_flag" ||
36413 test ! -s conftest.err
36414 } && test -s conftest.$ac_objext; then
36415 ac_hi=$ac_mid; break
36417 echo "$as_me: failed program was:" >&5
36418 sed 's/^/| /' conftest.$ac_ext >&5
36420 ac_lo=`expr $ac_mid + 1`
36421 if test $ac_lo -le $ac_mid; then
36425 ac_mid=`expr 2 '*' $ac_mid + 1`
36428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36431 echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36434 cat >conftest.$ac_ext <<_ACEOF
36437 cat confdefs.h >>conftest.$ac_ext
36438 cat >>conftest.$ac_ext <<_ACEOF
36439 /* end confdefs.h. */
36440 $ac_includes_default
36441 typedef long int ac__type_sizeof_;
36445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36452 rm -f conftest.$ac_objext
36453 if { (ac_try="$ac_compile"
36454 case "(($ac_try" in
36455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36456 *) ac_try_echo=$ac_try;;
36458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36459 (eval "$ac_compile") 2>conftest.er1
36461 grep -v '^ *+' conftest.er1 >conftest.err
36463 cat conftest.err >&5
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); } && {
36466 test -z "$ac_c_werror_flag" ||
36467 test ! -s conftest.err
36468 } && test -s conftest.$ac_objext; then
36471 cat >conftest.$ac_ext <<_ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h. */
36477 $ac_includes_default
36478 typedef long int ac__type_sizeof_;
36482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36489 rm -f conftest.$ac_objext
36490 if { (ac_try="$ac_compile"
36491 case "(($ac_try" in
36492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493 *) ac_try_echo=$ac_try;;
36495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36496 (eval "$ac_compile") 2>conftest.er1
36498 grep -v '^ *+' conftest.er1 >conftest.err
36500 cat conftest.err >&5
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } && {
36503 test -z "$ac_c_werror_flag" ||
36504 test ! -s conftest.err
36505 } && test -s conftest.$ac_objext; then
36506 ac_lo=$ac_mid; break
36508 echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36511 ac_hi=`expr '(' $ac_mid ')' - 1`
36512 if test $ac_mid -le $ac_hi; then
36516 ac_mid=`expr 2 '*' $ac_mid`
36519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36522 echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36532 # Binary search between lo and hi bounds.
36533 while test "x$ac_lo" != "x$ac_hi"; do
36534 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36535 cat >conftest.$ac_ext <<_ACEOF
36538 cat confdefs.h >>conftest.$ac_ext
36539 cat >>conftest.$ac_ext <<_ACEOF
36540 /* end confdefs.h. */
36541 $ac_includes_default
36542 typedef long int ac__type_sizeof_;
36546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36553 rm -f conftest.$ac_objext
36554 if { (ac_try="$ac_compile"
36555 case "(($ac_try" in
36556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36557 *) ac_try_echo=$ac_try;;
36559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36560 (eval "$ac_compile") 2>conftest.er1
36562 grep -v '^ *+' conftest.er1 >conftest.err
36564 cat conftest.err >&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } && {
36567 test -z "$ac_c_werror_flag" ||
36568 test ! -s conftest.err
36569 } && test -s conftest.$ac_objext; then
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36575 ac_lo=`expr '(' $ac_mid ')' + 1`
36578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36581 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36582 '') if test "$ac_cv_type_long_int" = yes; then
36583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36584 See \`config.log' for more details." >&5
36585 echo "$as_me: error: cannot compute sizeof (long int)
36586 See \`config.log' for more details." >&2;}
36587 { (exit 77); exit 77; }; }
36589 ac_cv_sizeof_long_int=0
36593 cat >conftest.$ac_ext <<_ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 $ac_includes_default
36600 typedef long int ac__type_sizeof_;
36601 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36602 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36604 #include <stdlib.h>
36609 FILE *f = fopen ("conftest.val", "w");
36612 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36614 long int i = longval ();
36615 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36617 fprintf (f, "%ld\n", i);
36621 unsigned long int i = ulongval ();
36622 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36624 fprintf (f, "%lu\n", i);
36626 return ferror (f) || fclose (f) != 0;
36632 rm -f conftest$ac_exeext
36633 if { (ac_try="$ac_link"
36634 case "(($ac_try" in
36635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36636 *) ac_try_echo=$ac_try;;
36638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36639 (eval "$ac_link") 2>&5
36641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36643 { (case "(($ac_try" in
36644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36645 *) ac_try_echo=$ac_try;;
36647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36648 (eval "$ac_try") 2>&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; }; then
36652 ac_cv_sizeof_long_int=`cat conftest.val`
36654 echo "$as_me: program exited with status $ac_status" >&5
36655 echo "$as_me: failed program was:" >&5
36656 sed 's/^/| /' conftest.$ac_ext >&5
36658 ( exit $ac_status )
36659 if test "$ac_cv_type_long_int" = yes; then
36660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36661 See \`config.log' for more details." >&5
36662 echo "$as_me: error: cannot compute sizeof (long int)
36663 See \`config.log' for more details." >&2;}
36664 { (exit 77); exit 77; }; }
36666 ac_cv_sizeof_long_int=0
36669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36673 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36674 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36678 cat >>confdefs.h <<_ACEOF
36679 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36683 { echo "$as_me:$LINENO: checking for long long int" >&5
36684 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36685 if test "${ac_cv_type_long_long_int+set}" = set; then
36686 echo $ECHO_N "(cached) $ECHO_C" >&6
36688 cat >conftest.$ac_ext <<_ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h. */
36694 $ac_includes_default
36695 typedef long long int ac__type_new_;
36699 if ((ac__type_new_ *) 0)
36701 if (sizeof (ac__type_new_))
36707 rm -f conftest.$ac_objext
36708 if { (ac_try="$ac_compile"
36709 case "(($ac_try" in
36710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36711 *) ac_try_echo=$ac_try;;
36713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36714 (eval "$ac_compile") 2>conftest.er1
36716 grep -v '^ *+' conftest.er1 >conftest.err
36718 cat conftest.err >&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } && {
36721 test -z "$ac_c_werror_flag" ||
36722 test ! -s conftest.err
36723 } && test -s conftest.$ac_objext; then
36724 ac_cv_type_long_long_int=yes
36726 echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36729 ac_cv_type_long_long_int=no
36732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36734 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36735 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36737 # The cast to long int works around a bug in the HP C Compiler
36738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36740 # This bug is HP SR number 8606223364.
36741 { echo "$as_me:$LINENO: checking size of long long int" >&5
36742 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36743 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36744 echo $ECHO_N "(cached) $ECHO_C" >&6
36746 if test "$cross_compiling" = yes; then
36747 # Depending upon the size, compute the lo and hi bounds.
36748 cat >conftest.$ac_ext <<_ACEOF
36751 cat confdefs.h >>conftest.$ac_ext
36752 cat >>conftest.$ac_ext <<_ACEOF
36753 /* end confdefs.h. */
36754 $ac_includes_default
36755 typedef long long int ac__type_sizeof_;
36759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36766 rm -f conftest.$ac_objext
36767 if { (ac_try="$ac_compile"
36768 case "(($ac_try" in
36769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36770 *) ac_try_echo=$ac_try;;
36772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36773 (eval "$ac_compile") 2>conftest.er1
36775 grep -v '^ *+' conftest.er1 >conftest.err
36777 cat conftest.err >&5
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); } && {
36780 test -z "$ac_c_werror_flag" ||
36781 test ! -s conftest.err
36782 } && test -s conftest.$ac_objext; then
36785 cat >conftest.$ac_ext <<_ACEOF
36788 cat confdefs.h >>conftest.$ac_ext
36789 cat >>conftest.$ac_ext <<_ACEOF
36790 /* end confdefs.h. */
36791 $ac_includes_default
36792 typedef long long int ac__type_sizeof_;
36796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36803 rm -f conftest.$ac_objext
36804 if { (ac_try="$ac_compile"
36805 case "(($ac_try" in
36806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36807 *) ac_try_echo=$ac_try;;
36809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36810 (eval "$ac_compile") 2>conftest.er1
36812 grep -v '^ *+' conftest.er1 >conftest.err
36814 cat conftest.err >&5
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); } && {
36817 test -z "$ac_c_werror_flag" ||
36818 test ! -s conftest.err
36819 } && test -s conftest.$ac_objext; then
36820 ac_hi=$ac_mid; break
36822 echo "$as_me: failed program was:" >&5
36823 sed 's/^/| /' conftest.$ac_ext >&5
36825 ac_lo=`expr $ac_mid + 1`
36826 if test $ac_lo -le $ac_mid; then
36830 ac_mid=`expr 2 '*' $ac_mid + 1`
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36836 echo "$as_me: failed program was:" >&5
36837 sed 's/^/| /' conftest.$ac_ext >&5
36839 cat >conftest.$ac_ext <<_ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h. */
36845 $ac_includes_default
36846 typedef long long int ac__type_sizeof_;
36850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36857 rm -f conftest.$ac_objext
36858 if { (ac_try="$ac_compile"
36859 case "(($ac_try" in
36860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36861 *) ac_try_echo=$ac_try;;
36863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36864 (eval "$ac_compile") 2>conftest.er1
36866 grep -v '^ *+' conftest.er1 >conftest.err
36868 cat conftest.err >&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } && {
36871 test -z "$ac_c_werror_flag" ||
36872 test ! -s conftest.err
36873 } && test -s conftest.$ac_objext; then
36876 cat >conftest.$ac_ext <<_ACEOF
36879 cat confdefs.h >>conftest.$ac_ext
36880 cat >>conftest.$ac_ext <<_ACEOF
36881 /* end confdefs.h. */
36882 $ac_includes_default
36883 typedef long long int ac__type_sizeof_;
36887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36894 rm -f conftest.$ac_objext
36895 if { (ac_try="$ac_compile"
36896 case "(($ac_try" in
36897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898 *) ac_try_echo=$ac_try;;
36900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36901 (eval "$ac_compile") 2>conftest.er1
36903 grep -v '^ *+' conftest.er1 >conftest.err
36905 cat conftest.err >&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); } && {
36908 test -z "$ac_c_werror_flag" ||
36909 test ! -s conftest.err
36910 } && test -s conftest.$ac_objext; then
36911 ac_lo=$ac_mid; break
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36916 ac_hi=`expr '(' $ac_mid ')' - 1`
36917 if test $ac_mid -le $ac_hi; then
36921 ac_mid=`expr 2 '*' $ac_mid`
36924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36927 echo "$as_me: failed program was:" >&5
36928 sed 's/^/| /' conftest.$ac_ext >&5
36933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36937 # Binary search between lo and hi bounds.
36938 while test "x$ac_lo" != "x$ac_hi"; do
36939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36940 cat >conftest.$ac_ext <<_ACEOF
36943 cat confdefs.h >>conftest.$ac_ext
36944 cat >>conftest.$ac_ext <<_ACEOF
36945 /* end confdefs.h. */
36946 $ac_includes_default
36947 typedef long long int ac__type_sizeof_;
36951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36958 rm -f conftest.$ac_objext
36959 if { (ac_try="$ac_compile"
36960 case "(($ac_try" in
36961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36962 *) ac_try_echo=$ac_try;;
36964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36965 (eval "$ac_compile") 2>conftest.er1
36967 grep -v '^ *+' conftest.er1 >conftest.err
36969 cat conftest.err >&5
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); } && {
36972 test -z "$ac_c_werror_flag" ||
36973 test ! -s conftest.err
36974 } && test -s conftest.$ac_objext; then
36977 echo "$as_me: failed program was:" >&5
36978 sed 's/^/| /' conftest.$ac_ext >&5
36980 ac_lo=`expr '(' $ac_mid ')' + 1`
36983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36986 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36987 '') if test "$ac_cv_type_long_long_int" = yes; then
36988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36989 See \`config.log' for more details." >&5
36990 echo "$as_me: error: cannot compute sizeof (long long int)
36991 See \`config.log' for more details." >&2;}
36992 { (exit 77); exit 77; }; }
36994 ac_cv_sizeof_long_long_int=0
36998 cat >conftest.$ac_ext <<_ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h. */
37004 $ac_includes_default
37005 typedef long long int ac__type_sizeof_;
37006 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37007 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37009 #include <stdlib.h>
37014 FILE *f = fopen ("conftest.val", "w");
37017 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37019 long int i = longval ();
37020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37022 fprintf (f, "%ld\n", i);
37026 unsigned long int i = ulongval ();
37027 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37029 fprintf (f, "%lu\n", i);
37031 return ferror (f) || fclose (f) != 0;
37037 rm -f conftest$ac_exeext
37038 if { (ac_try="$ac_link"
37039 case "(($ac_try" in
37040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37041 *) ac_try_echo=$ac_try;;
37043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37044 (eval "$ac_link") 2>&5
37046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37048 { (case "(($ac_try" in
37049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37050 *) ac_try_echo=$ac_try;;
37052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37053 (eval "$ac_try") 2>&5
37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); }; }; then
37057 ac_cv_sizeof_long_long_int=`cat conftest.val`
37059 echo "$as_me: program exited with status $ac_status" >&5
37060 echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37063 ( exit $ac_status )
37064 if test "$ac_cv_type_long_long_int" = yes; then
37065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37066 See \`config.log' for more details." >&5
37067 echo "$as_me: error: cannot compute sizeof (long long int)
37068 See \`config.log' for more details." >&2;}
37069 { (exit 77); exit 77; }; }
37071 ac_cv_sizeof_long_long_int=0
37074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37078 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37079 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37083 cat >>confdefs.h <<_ACEOF
37084 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37088 { echo "$as_me:$LINENO: checking for int *" >&5
37089 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37090 if test "${ac_cv_type_int_p+set}" = set; then
37091 echo $ECHO_N "(cached) $ECHO_C" >&6
37093 cat >conftest.$ac_ext <<_ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h. */
37099 $ac_includes_default
37100 typedef int * ac__type_new_;
37104 if ((ac__type_new_ *) 0)
37106 if (sizeof (ac__type_new_))
37112 rm -f conftest.$ac_objext
37113 if { (ac_try="$ac_compile"
37114 case "(($ac_try" in
37115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116 *) ac_try_echo=$ac_try;;
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119 (eval "$ac_compile") 2>conftest.er1
37121 grep -v '^ *+' conftest.er1 >conftest.err
37123 cat conftest.err >&5
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } && {
37126 test -z "$ac_c_werror_flag" ||
37127 test ! -s conftest.err
37128 } && test -s conftest.$ac_objext; then
37129 ac_cv_type_int_p=yes
37131 echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37134 ac_cv_type_int_p=no
37137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37139 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37140 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37142 # The cast to long int works around a bug in the HP C Compiler
37143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37145 # This bug is HP SR number 8606223364.
37146 { echo "$as_me:$LINENO: checking size of int *" >&5
37147 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37148 if test "${ac_cv_sizeof_int_p+set}" = set; then
37149 echo $ECHO_N "(cached) $ECHO_C" >&6
37151 if test "$cross_compiling" = yes; then
37152 # Depending upon the size, compute the lo and hi bounds.
37153 cat >conftest.$ac_ext <<_ACEOF
37156 cat confdefs.h >>conftest.$ac_ext
37157 cat >>conftest.$ac_ext <<_ACEOF
37158 /* end confdefs.h. */
37159 $ac_includes_default
37160 typedef int * ac__type_sizeof_;
37164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37171 rm -f conftest.$ac_objext
37172 if { (ac_try="$ac_compile"
37173 case "(($ac_try" in
37174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175 *) ac_try_echo=$ac_try;;
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178 (eval "$ac_compile") 2>conftest.er1
37180 grep -v '^ *+' conftest.er1 >conftest.err
37182 cat conftest.err >&5
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } && {
37185 test -z "$ac_c_werror_flag" ||
37186 test ! -s conftest.err
37187 } && test -s conftest.$ac_objext; then
37190 cat >conftest.$ac_ext <<_ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37196 $ac_includes_default
37197 typedef int * ac__type_sizeof_;
37201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37208 rm -f conftest.$ac_objext
37209 if { (ac_try="$ac_compile"
37210 case "(($ac_try" in
37211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37212 *) ac_try_echo=$ac_try;;
37214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37215 (eval "$ac_compile") 2>conftest.er1
37217 grep -v '^ *+' conftest.er1 >conftest.err
37219 cat conftest.err >&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); } && {
37222 test -z "$ac_c_werror_flag" ||
37223 test ! -s conftest.err
37224 } && test -s conftest.$ac_objext; then
37225 ac_hi=$ac_mid; break
37227 echo "$as_me: failed program was:" >&5
37228 sed 's/^/| /' conftest.$ac_ext >&5
37230 ac_lo=`expr $ac_mid + 1`
37231 if test $ac_lo -le $ac_mid; then
37235 ac_mid=`expr 2 '*' $ac_mid + 1`
37238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37244 cat >conftest.$ac_ext <<_ACEOF
37247 cat confdefs.h >>conftest.$ac_ext
37248 cat >>conftest.$ac_ext <<_ACEOF
37249 /* end confdefs.h. */
37250 $ac_includes_default
37251 typedef int * ac__type_sizeof_;
37255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37262 rm -f conftest.$ac_objext
37263 if { (ac_try="$ac_compile"
37264 case "(($ac_try" in
37265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37266 *) ac_try_echo=$ac_try;;
37268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37269 (eval "$ac_compile") 2>conftest.er1
37271 grep -v '^ *+' conftest.er1 >conftest.err
37273 cat conftest.err >&5
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); } && {
37276 test -z "$ac_c_werror_flag" ||
37277 test ! -s conftest.err
37278 } && test -s conftest.$ac_objext; then
37281 cat >conftest.$ac_ext <<_ACEOF
37284 cat confdefs.h >>conftest.$ac_ext
37285 cat >>conftest.$ac_ext <<_ACEOF
37286 /* end confdefs.h. */
37287 $ac_includes_default
37288 typedef int * ac__type_sizeof_;
37292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37299 rm -f conftest.$ac_objext
37300 if { (ac_try="$ac_compile"
37301 case "(($ac_try" in
37302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37303 *) ac_try_echo=$ac_try;;
37305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37306 (eval "$ac_compile") 2>conftest.er1
37308 grep -v '^ *+' conftest.er1 >conftest.err
37310 cat conftest.err >&5
37311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312 (exit $ac_status); } && {
37313 test -z "$ac_c_werror_flag" ||
37314 test ! -s conftest.err
37315 } && test -s conftest.$ac_objext; then
37316 ac_lo=$ac_mid; break
37318 echo "$as_me: failed program was:" >&5
37319 sed 's/^/| /' conftest.$ac_ext >&5
37321 ac_hi=`expr '(' $ac_mid ')' - 1`
37322 if test $ac_mid -le $ac_hi; then
37326 ac_mid=`expr 2 '*' $ac_mid`
37329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37332 echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37342 # Binary search between lo and hi bounds.
37343 while test "x$ac_lo" != "x$ac_hi"; do
37344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37345 cat >conftest.$ac_ext <<_ACEOF
37348 cat confdefs.h >>conftest.$ac_ext
37349 cat >>conftest.$ac_ext <<_ACEOF
37350 /* end confdefs.h. */
37351 $ac_includes_default
37352 typedef int * ac__type_sizeof_;
37356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37363 rm -f conftest.$ac_objext
37364 if { (ac_try="$ac_compile"
37365 case "(($ac_try" in
37366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37367 *) ac_try_echo=$ac_try;;
37369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37370 (eval "$ac_compile") 2>conftest.er1
37372 grep -v '^ *+' conftest.er1 >conftest.err
37374 cat conftest.err >&5
37375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376 (exit $ac_status); } && {
37377 test -z "$ac_c_werror_flag" ||
37378 test ! -s conftest.err
37379 } && test -s conftest.$ac_objext; then
37382 echo "$as_me: failed program was:" >&5
37383 sed 's/^/| /' conftest.$ac_ext >&5
37385 ac_lo=`expr '(' $ac_mid ')' + 1`
37388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37391 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37392 '') if test "$ac_cv_type_int_p" = yes; then
37393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37394 See \`config.log' for more details." >&5
37395 echo "$as_me: error: cannot compute sizeof (int *)
37396 See \`config.log' for more details." >&2;}
37397 { (exit 77); exit 77; }; }
37399 ac_cv_sizeof_int_p=0
37403 cat >conftest.$ac_ext <<_ACEOF
37406 cat confdefs.h >>conftest.$ac_ext
37407 cat >>conftest.$ac_ext <<_ACEOF
37408 /* end confdefs.h. */
37409 $ac_includes_default
37410 typedef int * ac__type_sizeof_;
37411 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37412 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37414 #include <stdlib.h>
37419 FILE *f = fopen ("conftest.val", "w");
37422 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37424 long int i = longval ();
37425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37427 fprintf (f, "%ld\n", i);
37431 unsigned long int i = ulongval ();
37432 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37434 fprintf (f, "%lu\n", i);
37436 return ferror (f) || fclose (f) != 0;
37442 rm -f conftest$ac_exeext
37443 if { (ac_try="$ac_link"
37444 case "(($ac_try" in
37445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37446 *) ac_try_echo=$ac_try;;
37448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37449 (eval "$ac_link") 2>&5
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37453 { (case "(($ac_try" in
37454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37455 *) ac_try_echo=$ac_try;;
37457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37458 (eval "$ac_try") 2>&5
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); }; }; then
37462 ac_cv_sizeof_int_p=`cat conftest.val`
37464 echo "$as_me: program exited with status $ac_status" >&5
37465 echo "$as_me: failed program was:" >&5
37466 sed 's/^/| /' conftest.$ac_ext >&5
37468 ( exit $ac_status )
37469 if test "$ac_cv_type_int_p" = yes; then
37470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37471 See \`config.log' for more details." >&5
37472 echo "$as_me: error: cannot compute sizeof (int *)
37473 See \`config.log' for more details." >&2;}
37474 { (exit 77); exit 77; }; }
37476 ac_cv_sizeof_int_p=0
37479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37483 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37484 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37488 cat >>confdefs.h <<_ACEOF
37489 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37494 { echo "$as_me:$LINENO: checking for u_int type" >&5
37495 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37496 if test "${ac_cv_have_u_int+set}" = set; then
37497 echo $ECHO_N "(cached) $ECHO_C" >&6
37500 cat >conftest.$ac_ext <<_ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h. */
37507 #include <sys/types.h>
37519 rm -f conftest.$ac_objext
37520 if { (ac_try="$ac_compile"
37521 case "(($ac_try" in
37522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526 (eval "$ac_compile") 2>conftest.er1
37528 grep -v '^ *+' conftest.er1 >conftest.err
37530 cat conftest.err >&5
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } && {
37533 test -z "$ac_c_werror_flag" ||
37534 test ! -s conftest.err
37535 } && test -s conftest.$ac_objext; then
37537 ac_cv_have_u_int="yes"
37540 echo "$as_me: failed program was:" >&5
37541 sed 's/^/| /' conftest.$ac_ext >&5
37544 ac_cv_have_u_int="no"
37549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37553 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37554 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37555 if test "x$ac_cv_have_u_int" = "xyes" ; then
37556 cat >>confdefs.h <<\_ACEOF
37557 #define HAVE_U_INT 1
37563 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37564 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37565 if test "${ac_cv_have_intmax_t+set}" = set; then
37566 echo $ECHO_N "(cached) $ECHO_C" >&6
37569 cat >conftest.$ac_ext <<_ACEOF
37572 cat confdefs.h >>conftest.$ac_ext
37573 cat >>conftest.$ac_ext <<_ACEOF
37574 /* end confdefs.h. */
37576 #include <sys/types.h>
37588 rm -f conftest.$ac_objext
37589 if { (ac_try="$ac_compile"
37590 case "(($ac_try" in
37591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37592 *) ac_try_echo=$ac_try;;
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595 (eval "$ac_compile") 2>conftest.er1
37597 grep -v '^ *+' conftest.er1 >conftest.err
37599 cat conftest.err >&5
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } && {
37602 test -z "$ac_c_werror_flag" ||
37603 test ! -s conftest.err
37604 } && test -s conftest.$ac_objext; then
37606 ac_cv_have_intmax_t="yes"
37609 echo "$as_me: failed program was:" >&5
37610 sed 's/^/| /' conftest.$ac_ext >&5
37613 cat >conftest.$ac_ext <<_ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h. */
37620 #include <stdint.h>
37632 rm -f conftest.$ac_objext
37633 if { (ac_try="$ac_compile"
37634 case "(($ac_try" in
37635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636 *) ac_try_echo=$ac_try;;
37638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37639 (eval "$ac_compile") 2>conftest.er1
37641 grep -v '^ *+' conftest.er1 >conftest.err
37643 cat conftest.err >&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } && {
37646 test -z "$ac_c_werror_flag" ||
37647 test ! -s conftest.err
37648 } && test -s conftest.$ac_objext; then
37650 ac_cv_have_intmax_t="yes"
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37657 ac_cv_have_intmax_t="no"
37662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37671 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37672 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37673 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37674 cat >>confdefs.h <<\_ACEOF
37675 #define HAVE_INTMAX_T 1
37681 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37682 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37683 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37684 echo $ECHO_N "(cached) $ECHO_C" >&6
37687 cat >conftest.$ac_ext <<_ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h. */
37694 #include <sys/types.h>
37700 u_intmax_t a; a = 1;
37706 rm -f conftest.$ac_objext
37707 if { (ac_try="$ac_compile"
37708 case "(($ac_try" in
37709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710 *) ac_try_echo=$ac_try;;
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713 (eval "$ac_compile") 2>conftest.er1
37715 grep -v '^ *+' conftest.er1 >conftest.err
37717 cat conftest.err >&5
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } && {
37720 test -z "$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37722 } && test -s conftest.$ac_objext; then
37724 ac_cv_have_u_intmax_t="yes"
37727 echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37731 cat >conftest.$ac_ext <<_ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h. */
37738 #include <stdint.h>
37744 u_intmax_t a; a = 1;
37750 rm -f conftest.$ac_objext
37751 if { (ac_try="$ac_compile"
37752 case "(($ac_try" in
37753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754 *) ac_try_echo=$ac_try;;
37756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37757 (eval "$ac_compile") 2>conftest.er1
37759 grep -v '^ *+' conftest.er1 >conftest.err
37761 cat conftest.err >&5
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); } && {
37764 test -z "$ac_c_werror_flag" ||
37765 test ! -s conftest.err
37766 } && test -s conftest.$ac_objext; then
37768 ac_cv_have_u_intmax_t="yes"
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37775 ac_cv_have_u_intmax_t="no"
37780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37789 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37790 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37791 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37792 cat >>confdefs.h <<\_ACEOF
37793 #define HAVE_U_INTMAX_T 1
37799 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37800 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37801 if test "${ac_cv_have_intxx_t+set}" = set; then
37802 echo $ECHO_N "(cached) $ECHO_C" >&6
37805 cat >conftest.$ac_ext <<_ACEOF
37808 cat confdefs.h >>conftest.$ac_ext
37809 cat >>conftest.$ac_ext <<_ACEOF
37810 /* end confdefs.h. */
37812 #include <sys/types.h>
37818 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37824 rm -f conftest.$ac_objext
37825 if { (ac_try="$ac_compile"
37826 case "(($ac_try" in
37827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828 *) ac_try_echo=$ac_try;;
37830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831 (eval "$ac_compile") 2>conftest.er1
37833 grep -v '^ *+' conftest.er1 >conftest.err
37835 cat conftest.err >&5
37836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837 (exit $ac_status); } && {
37838 test -z "$ac_c_werror_flag" ||
37839 test ! -s conftest.err
37840 } && test -s conftest.$ac_objext; then
37842 ac_cv_have_intxx_t="yes"
37845 echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37849 ac_cv_have_intxx_t="no"
37854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37858 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37859 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37860 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37861 cat >>confdefs.h <<\_ACEOF
37862 #define HAVE_INTXX_T 1
37868 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37869 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37870 if test "${ac_cv_have_int64_t+set}" = set; then
37871 echo $ECHO_N "(cached) $ECHO_C" >&6
37874 cat >conftest.$ac_ext <<_ACEOF
37877 cat confdefs.h >>conftest.$ac_ext
37878 cat >>conftest.$ac_ext <<_ACEOF
37879 /* end confdefs.h. */
37881 #include <sys/types.h>
37893 rm -f conftest.$ac_objext
37894 if { (ac_try="$ac_compile"
37895 case "(($ac_try" in
37896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37897 *) ac_try_echo=$ac_try;;
37899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37900 (eval "$ac_compile") 2>conftest.er1
37902 grep -v '^ *+' conftest.er1 >conftest.err
37904 cat conftest.err >&5
37905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906 (exit $ac_status); } && {
37907 test -z "$ac_c_werror_flag" ||
37908 test ! -s conftest.err
37909 } && test -s conftest.$ac_objext; then
37911 ac_cv_have_int64_t="yes"
37914 echo "$as_me: failed program was:" >&5
37915 sed 's/^/| /' conftest.$ac_ext >&5
37918 ac_cv_have_int64_t="no"
37923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37927 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37928 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37929 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37930 cat >>confdefs.h <<\_ACEOF
37931 #define HAVE_INT64_T 1
37937 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37938 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37939 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37940 echo $ECHO_N "(cached) $ECHO_C" >&6
37943 cat >conftest.$ac_ext <<_ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h. */
37950 #include <sys/types.h>
37956 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37962 rm -f conftest.$ac_objext
37963 if { (ac_try="$ac_compile"
37964 case "(($ac_try" in
37965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37966 *) ac_try_echo=$ac_try;;
37968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37969 (eval "$ac_compile") 2>conftest.er1
37971 grep -v '^ *+' conftest.er1 >conftest.err
37973 cat conftest.err >&5
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); } && {
37976 test -z "$ac_c_werror_flag" ||
37977 test ! -s conftest.err
37978 } && test -s conftest.$ac_objext; then
37980 ac_cv_have_u_intxx_t="yes"
37983 echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37987 ac_cv_have_u_intxx_t="no"
37992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37996 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37997 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37998 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37999 cat >>confdefs.h <<\_ACEOF
38000 #define HAVE_U_INTXX_T 1
38006 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
38007 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
38008 if test "${ac_cv_have_u_int64_t+set}" = set; then
38009 echo $ECHO_N "(cached) $ECHO_C" >&6
38012 cat >conftest.$ac_ext <<_ACEOF
38015 cat confdefs.h >>conftest.$ac_ext
38016 cat >>conftest.$ac_ext <<_ACEOF
38017 /* end confdefs.h. */
38019 #include <sys/types.h>
38025 u_int64_t a; a = 1;
38031 rm -f conftest.$ac_objext
38032 if { (ac_try="$ac_compile"
38033 case "(($ac_try" in
38034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38035 *) ac_try_echo=$ac_try;;
38037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38038 (eval "$ac_compile") 2>conftest.er1
38040 grep -v '^ *+' conftest.er1 >conftest.err
38042 cat conftest.err >&5
38043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); } && {
38045 test -z "$ac_c_werror_flag" ||
38046 test ! -s conftest.err
38047 } && test -s conftest.$ac_objext; then
38049 ac_cv_have_u_int64_t="yes"
38052 echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38056 ac_cv_have_u_int64_t="no"
38061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38065 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38066 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38068 cat >>confdefs.h <<\_ACEOF
38069 #define HAVE_U_INT64_T 1
38075 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38076 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38078 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38079 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38080 cat >conftest.$ac_ext <<_ACEOF
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h. */
38087 #include <sys/bitypes.h>
38093 int8_t a; int16_t b; int32_t c;
38094 u_int8_t e; u_int16_t f; u_int32_t g;
38095 a = b = c = e = f = g = 1;
38101 rm -f conftest.$ac_objext
38102 if { (ac_try="$ac_compile"
38103 case "(($ac_try" in
38104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38105 *) ac_try_echo=$ac_try;;
38107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38108 (eval "$ac_compile") 2>conftest.er1
38110 grep -v '^ *+' conftest.er1 >conftest.err
38112 cat conftest.err >&5
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); } && {
38115 test -z "$ac_c_werror_flag" ||
38116 test ! -s conftest.err
38117 } && test -s conftest.$ac_objext; then
38119 cat >>confdefs.h <<\_ACEOF
38120 #define HAVE_U_INTXX_T 1
38123 cat >>confdefs.h <<\_ACEOF
38124 #define HAVE_INTXX_T 1
38127 cat >>confdefs.h <<\_ACEOF
38128 #define HAVE_SYS_BITYPES_H 1
38131 { echo "$as_me:$LINENO: result: yes" >&5
38132 echo "${ECHO_T}yes" >&6; }
38135 echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38139 { echo "$as_me:$LINENO: result: no" >&5
38140 echo "${ECHO_T}no" >&6; }
38145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38148 if test -z "$have_u_intxx_t" ; then
38149 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38150 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38151 if test "${ac_cv_have_uintxx_t+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38155 cat >conftest.$ac_ext <<_ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h. */
38162 #include <sys/types.h>
38168 uint8_t a; uint16_t b;
38169 uint32_t c; a = b = c = 1;
38175 rm -f conftest.$ac_objext
38176 if { (ac_try="$ac_compile"
38177 case "(($ac_try" in
38178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38179 *) ac_try_echo=$ac_try;;
38181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38182 (eval "$ac_compile") 2>conftest.er1
38184 grep -v '^ *+' conftest.er1 >conftest.err
38186 cat conftest.err >&5
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); } && {
38189 test -z "$ac_c_werror_flag" ||
38190 test ! -s conftest.err
38191 } && test -s conftest.$ac_objext; then
38193 ac_cv_have_uintxx_t="yes"
38196 echo "$as_me: failed program was:" >&5
38197 sed 's/^/| /' conftest.$ac_ext >&5
38200 ac_cv_have_uintxx_t="no"
38205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38209 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38210 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38211 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38212 cat >>confdefs.h <<\_ACEOF
38213 #define HAVE_UINTXX_T 1
38219 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38220 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38222 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38223 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38224 cat >conftest.$ac_ext <<_ACEOF
38227 cat confdefs.h >>conftest.$ac_ext
38228 cat >>conftest.$ac_ext <<_ACEOF
38229 /* end confdefs.h. */
38231 #include <sys/bitypes.h>
38237 int64_t a; u_int64_t b;
38244 rm -f conftest.$ac_objext
38245 if { (ac_try="$ac_compile"
38246 case "(($ac_try" in
38247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248 *) ac_try_echo=$ac_try;;
38250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251 (eval "$ac_compile") 2>conftest.er1
38253 grep -v '^ *+' conftest.er1 >conftest.err
38255 cat conftest.err >&5
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); } && {
38258 test -z "$ac_c_werror_flag" ||
38259 test ! -s conftest.err
38260 } && test -s conftest.$ac_objext; then
38262 cat >>confdefs.h <<\_ACEOF
38263 #define HAVE_U_INT64_T 1
38266 cat >>confdefs.h <<\_ACEOF
38267 #define HAVE_INT64_T 1
38270 { echo "$as_me:$LINENO: result: yes" >&5
38271 echo "${ECHO_T}yes" >&6; }
38274 echo "$as_me: failed program was:" >&5
38275 sed 's/^/| /' conftest.$ac_ext >&5
38278 { echo "$as_me:$LINENO: result: no" >&5
38279 echo "${ECHO_T}no" >&6; }
38284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38287 if (test -z "$have_uintxx_t" && \
38288 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38290 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38291 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38292 cat >conftest.$ac_ext <<_ACEOF
38295 cat confdefs.h >>conftest.$ac_ext
38296 cat >>conftest.$ac_ext <<_ACEOF
38297 /* end confdefs.h. */
38299 #include <sys/bitypes.h>
38305 uint8_t a; uint16_t b;
38306 uint32_t c; a = b = c = 1;
38312 rm -f conftest.$ac_objext
38313 if { (ac_try="$ac_compile"
38314 case "(($ac_try" in
38315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38316 *) ac_try_echo=$ac_try;;
38318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38319 (eval "$ac_compile") 2>conftest.er1
38321 grep -v '^ *+' conftest.er1 >conftest.err
38323 cat conftest.err >&5
38324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325 (exit $ac_status); } && {
38326 test -z "$ac_c_werror_flag" ||
38327 test ! -s conftest.err
38328 } && test -s conftest.$ac_objext; then
38330 cat >>confdefs.h <<\_ACEOF
38331 #define HAVE_UINTXX_T 1
38334 { echo "$as_me:$LINENO: result: yes" >&5
38335 echo "${ECHO_T}yes" >&6; }
38338 echo "$as_me: failed program was:" >&5
38339 sed 's/^/| /' conftest.$ac_ext >&5
38342 { echo "$as_me:$LINENO: result: no" >&5
38343 echo "${ECHO_T}no" >&6; }
38348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38384 echo $ECHO_N "(cached) $ECHO_C" >&6
38386 cat >conftest.$ac_ext <<_ACEOF
38389 cat confdefs.h >>conftest.$ac_ext
38390 cat >>conftest.$ac_ext <<_ACEOF
38391 /* end confdefs.h. */
38392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38394 #define $ac_func innocuous_$ac_func
38396 /* System header to define __stub macros and hopefully few prototypes,
38397 which can conflict with char $ac_func (); below.
38398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38399 <limits.h> exists even on freestanding compilers. */
38402 # include <limits.h>
38404 # include <assert.h>
38409 /* Override any GCC internal prototype to avoid an error.
38410 Use char because int might match the return type of a GCC
38411 builtin and then its argument prototype would still apply. */
38416 /* The GNU C library defines this for functions which it implements
38417 to always fail with ENOSYS. Some functions are actually named
38418 something starting with __ and the normal name is an alias. */
38419 #if defined __stub_$ac_func || defined __stub___$ac_func
38426 return $ac_func ();
38431 rm -f conftest.$ac_objext conftest$ac_exeext
38432 if { (ac_try="$ac_link"
38433 case "(($ac_try" in
38434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38435 *) ac_try_echo=$ac_try;;
38437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38438 (eval "$ac_link") 2>conftest.er1
38440 grep -v '^ *+' conftest.er1 >conftest.err
38442 cat conftest.err >&5
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); } && {
38445 test -z "$ac_c_werror_flag" ||
38446 test ! -s conftest.err
38447 } && test -s conftest$ac_exeext &&
38448 $as_test_x conftest$ac_exeext; then
38449 eval "$as_ac_var=yes"
38451 echo "$as_me: failed program was:" >&5
38452 sed 's/^/| /' conftest.$ac_ext >&5
38454 eval "$as_ac_var=no"
38457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38458 conftest$ac_exeext conftest.$ac_ext
38460 ac_res=`eval echo '${'$as_ac_var'}'`
38461 { echo "$as_me:$LINENO: result: $ac_res" >&5
38462 echo "${ECHO_T}$ac_res" >&6; }
38463 if test `eval echo '${'$as_ac_var'}'` = yes; then
38464 cat >>confdefs.h <<_ACEOF
38465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38469 echo 'configure: cannot find needed function.'; exit 1
38476 for ac_func in fchdir
38478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38482 echo $ECHO_N "(cached) $ECHO_C" >&6
38484 cat >conftest.$ac_ext <<_ACEOF
38487 cat confdefs.h >>conftest.$ac_ext
38488 cat >>conftest.$ac_ext <<_ACEOF
38489 /* end confdefs.h. */
38490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38492 #define $ac_func innocuous_$ac_func
38494 /* System header to define __stub macros and hopefully few prototypes,
38495 which can conflict with char $ac_func (); below.
38496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38497 <limits.h> exists even on freestanding compilers. */
38500 # include <limits.h>
38502 # include <assert.h>
38507 /* Override any GCC internal prototype to avoid an error.
38508 Use char because int might match the return type of a GCC
38509 builtin and then its argument prototype would still apply. */
38514 /* The GNU C library defines this for functions which it implements
38515 to always fail with ENOSYS. Some functions are actually named
38516 something starting with __ and the normal name is an alias. */
38517 #if defined __stub_$ac_func || defined __stub___$ac_func
38524 return $ac_func ();
38529 rm -f conftest.$ac_objext conftest$ac_exeext
38530 if { (ac_try="$ac_link"
38531 case "(($ac_try" in
38532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38533 *) ac_try_echo=$ac_try;;
38535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38536 (eval "$ac_link") 2>conftest.er1
38538 grep -v '^ *+' conftest.er1 >conftest.err
38540 cat conftest.err >&5
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); } && {
38543 test -z "$ac_c_werror_flag" ||
38544 test ! -s conftest.err
38545 } && test -s conftest$ac_exeext &&
38546 $as_test_x conftest$ac_exeext; then
38547 eval "$as_ac_var=yes"
38549 echo "$as_me: failed program was:" >&5
38550 sed 's/^/| /' conftest.$ac_ext >&5
38552 eval "$as_ac_var=no"
38555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38556 conftest$ac_exeext conftest.$ac_ext
38558 ac_res=`eval echo '${'$as_ac_var'}'`
38559 { echo "$as_me:$LINENO: result: $ac_res" >&5
38560 echo "${ECHO_T}$ac_res" >&6; }
38561 if test `eval echo '${'$as_ac_var'}'` = yes; then
38562 cat >>confdefs.h <<_ACEOF
38563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38565 cat >>confdefs.h <<\_ACEOF
38566 #define HAVE_FCHDIR 1
38573 for ac_func in strtoll
38575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38579 echo $ECHO_N "(cached) $ECHO_C" >&6
38581 cat >conftest.$ac_ext <<_ACEOF
38584 cat confdefs.h >>conftest.$ac_ext
38585 cat >>conftest.$ac_ext <<_ACEOF
38586 /* end confdefs.h. */
38587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38589 #define $ac_func innocuous_$ac_func
38591 /* System header to define __stub macros and hopefully few prototypes,
38592 which can conflict with char $ac_func (); below.
38593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38594 <limits.h> exists even on freestanding compilers. */
38597 # include <limits.h>
38599 # include <assert.h>
38604 /* Override any GCC internal prototype to avoid an error.
38605 Use char because int might match the return type of a GCC
38606 builtin and then its argument prototype would still apply. */
38611 /* The GNU C library defines this for functions which it implements
38612 to always fail with ENOSYS. Some functions are actually named
38613 something starting with __ and the normal name is an alias. */
38614 #if defined __stub_$ac_func || defined __stub___$ac_func
38621 return $ac_func ();
38626 rm -f conftest.$ac_objext conftest$ac_exeext
38627 if { (ac_try="$ac_link"
38628 case "(($ac_try" in
38629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38630 *) ac_try_echo=$ac_try;;
38632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38633 (eval "$ac_link") 2>conftest.er1
38635 grep -v '^ *+' conftest.er1 >conftest.err
38637 cat conftest.err >&5
38638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38639 (exit $ac_status); } && {
38640 test -z "$ac_c_werror_flag" ||
38641 test ! -s conftest.err
38642 } && test -s conftest$ac_exeext &&
38643 $as_test_x conftest$ac_exeext; then
38644 eval "$as_ac_var=yes"
38646 echo "$as_me: failed program was:" >&5
38647 sed 's/^/| /' conftest.$ac_ext >&5
38649 eval "$as_ac_var=no"
38652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38653 conftest$ac_exeext conftest.$ac_ext
38655 ac_res=`eval echo '${'$as_ac_var'}'`
38656 { echo "$as_me:$LINENO: result: $ac_res" >&5
38657 echo "${ECHO_T}$ac_res" >&6; }
38658 if test `eval echo '${'$as_ac_var'}'` = yes; then
38659 cat >>confdefs.h <<_ACEOF
38660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38662 cat >>confdefs.h <<\_ACEOF
38663 #define HAVE_STRTOLL 1
38670 for ac_func in posix_fadvise
38672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38676 echo $ECHO_N "(cached) $ECHO_C" >&6
38678 cat >conftest.$ac_ext <<_ACEOF
38681 cat confdefs.h >>conftest.$ac_ext
38682 cat >>conftest.$ac_ext <<_ACEOF
38683 /* end confdefs.h. */
38684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38686 #define $ac_func innocuous_$ac_func
38688 /* System header to define __stub macros and hopefully few prototypes,
38689 which can conflict with char $ac_func (); below.
38690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38691 <limits.h> exists even on freestanding compilers. */
38694 # include <limits.h>
38696 # include <assert.h>
38701 /* Override any GCC internal prototype to avoid an error.
38702 Use char because int might match the return type of a GCC
38703 builtin and then its argument prototype would still apply. */
38708 /* The GNU C library defines this for functions which it implements
38709 to always fail with ENOSYS. Some functions are actually named
38710 something starting with __ and the normal name is an alias. */
38711 #if defined __stub_$ac_func || defined __stub___$ac_func
38718 return $ac_func ();
38723 rm -f conftest.$ac_objext conftest$ac_exeext
38724 if { (ac_try="$ac_link"
38725 case "(($ac_try" in
38726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38727 *) ac_try_echo=$ac_try;;
38729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38730 (eval "$ac_link") 2>conftest.er1
38732 grep -v '^ *+' conftest.er1 >conftest.err
38734 cat conftest.err >&5
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); } && {
38737 test -z "$ac_c_werror_flag" ||
38738 test ! -s conftest.err
38739 } && test -s conftest$ac_exeext &&
38740 $as_test_x conftest$ac_exeext; then
38741 eval "$as_ac_var=yes"
38743 echo "$as_me: failed program was:" >&5
38744 sed 's/^/| /' conftest.$ac_ext >&5
38746 eval "$as_ac_var=no"
38749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38750 conftest$ac_exeext conftest.$ac_ext
38752 ac_res=`eval echo '${'$as_ac_var'}'`
38753 { echo "$as_me:$LINENO: result: $ac_res" >&5
38754 echo "${ECHO_T}$ac_res" >&6; }
38755 if test `eval echo '${'$as_ac_var'}'` = yes; then
38756 cat >>confdefs.h <<_ACEOF
38757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38764 for ac_func in fdatasync
38766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38770 echo $ECHO_N "(cached) $ECHO_C" >&6
38772 cat >conftest.$ac_ext <<_ACEOF
38775 cat confdefs.h >>conftest.$ac_ext
38776 cat >>conftest.$ac_ext <<_ACEOF
38777 /* end confdefs.h. */
38778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38780 #define $ac_func innocuous_$ac_func
38782 /* System header to define __stub macros and hopefully few prototypes,
38783 which can conflict with char $ac_func (); below.
38784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38785 <limits.h> exists even on freestanding compilers. */
38788 # include <limits.h>
38790 # include <assert.h>
38795 /* Override any GCC internal prototype to avoid an error.
38796 Use char because int might match the return type of a GCC
38797 builtin and then its argument prototype would still apply. */
38802 /* The GNU C library defines this for functions which it implements
38803 to always fail with ENOSYS. Some functions are actually named
38804 something starting with __ and the normal name is an alias. */
38805 #if defined __stub_$ac_func || defined __stub___$ac_func
38812 return $ac_func ();
38817 rm -f conftest.$ac_objext conftest$ac_exeext
38818 if { (ac_try="$ac_link"
38819 case "(($ac_try" in
38820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38821 *) ac_try_echo=$ac_try;;
38823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38824 (eval "$ac_link") 2>conftest.er1
38826 grep -v '^ *+' conftest.er1 >conftest.err
38828 cat conftest.err >&5
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); } && {
38831 test -z "$ac_c_werror_flag" ||
38832 test ! -s conftest.err
38833 } && test -s conftest$ac_exeext &&
38834 $as_test_x conftest$ac_exeext; then
38835 eval "$as_ac_var=yes"
38837 echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38840 eval "$as_ac_var=no"
38843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38844 conftest$ac_exeext conftest.$ac_ext
38846 ac_res=`eval echo '${'$as_ac_var'}'`
38847 { echo "$as_me:$LINENO: result: $ac_res" >&5
38848 echo "${ECHO_T}$ac_res" >&6; }
38849 if test `eval echo '${'$as_ac_var'}'` = yes; then
38850 cat >>confdefs.h <<_ACEOF
38851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38859 for ac_func in chflags
38861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
38867 cat >conftest.$ac_ext <<_ACEOF
38870 cat confdefs.h >>conftest.$ac_ext
38871 cat >>conftest.$ac_ext <<_ACEOF
38872 /* end confdefs.h. */
38873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38875 #define $ac_func innocuous_$ac_func
38877 /* System header to define __stub macros and hopefully few prototypes,
38878 which can conflict with char $ac_func (); below.
38879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38880 <limits.h> exists even on freestanding compilers. */
38883 # include <limits.h>
38885 # include <assert.h>
38890 /* Override any GCC internal prototype to avoid an error.
38891 Use char because int might match the return type of a GCC
38892 builtin and then its argument prototype would still apply. */
38897 /* The GNU C library defines this for functions which it implements
38898 to always fail with ENOSYS. Some functions are actually named
38899 something starting with __ and the normal name is an alias. */
38900 #if defined __stub_$ac_func || defined __stub___$ac_func
38907 return $ac_func ();
38912 rm -f conftest.$ac_objext conftest$ac_exeext
38913 if { (ac_try="$ac_link"
38914 case "(($ac_try" in
38915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38916 *) ac_try_echo=$ac_try;;
38918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38919 (eval "$ac_link") 2>conftest.er1
38921 grep -v '^ *+' conftest.er1 >conftest.err
38923 cat conftest.err >&5
38924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925 (exit $ac_status); } && {
38926 test -z "$ac_c_werror_flag" ||
38927 test ! -s conftest.err
38928 } && test -s conftest$ac_exeext &&
38929 $as_test_x conftest$ac_exeext; then
38930 eval "$as_ac_var=yes"
38932 echo "$as_me: failed program was:" >&5
38933 sed 's/^/| /' conftest.$ac_ext >&5
38935 eval "$as_ac_var=no"
38938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38939 conftest$ac_exeext conftest.$ac_ext
38941 ac_res=`eval echo '${'$as_ac_var'}'`
38942 { echo "$as_me:$LINENO: result: $ac_res" >&5
38943 echo "${ECHO_T}$ac_res" >&6; }
38944 if test `eval echo '${'$as_ac_var'}'` = yes; then
38945 cat >>confdefs.h <<_ACEOF
38946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38957 for ac_func in snprintf vsnprintf gethostid fseeko
38959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38963 echo $ECHO_N "(cached) $ECHO_C" >&6
38965 cat >conftest.$ac_ext <<_ACEOF
38968 cat confdefs.h >>conftest.$ac_ext
38969 cat >>conftest.$ac_ext <<_ACEOF
38970 /* end confdefs.h. */
38971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38973 #define $ac_func innocuous_$ac_func
38975 /* System header to define __stub macros and hopefully few prototypes,
38976 which can conflict with char $ac_func (); below.
38977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38978 <limits.h> exists even on freestanding compilers. */
38981 # include <limits.h>
38983 # include <assert.h>
38988 /* Override any GCC internal prototype to avoid an error.
38989 Use char because int might match the return type of a GCC
38990 builtin and then its argument prototype would still apply. */
38995 /* The GNU C library defines this for functions which it implements
38996 to always fail with ENOSYS. Some functions are actually named
38997 something starting with __ and the normal name is an alias. */
38998 #if defined __stub_$ac_func || defined __stub___$ac_func
39005 return $ac_func ();
39010 rm -f conftest.$ac_objext conftest$ac_exeext
39011 if { (ac_try="$ac_link"
39012 case "(($ac_try" in
39013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39014 *) ac_try_echo=$ac_try;;
39016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39017 (eval "$ac_link") 2>conftest.er1
39019 grep -v '^ *+' conftest.er1 >conftest.err
39021 cat conftest.err >&5
39022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023 (exit $ac_status); } && {
39024 test -z "$ac_c_werror_flag" ||
39025 test ! -s conftest.err
39026 } && test -s conftest$ac_exeext &&
39027 $as_test_x conftest$ac_exeext; then
39028 eval "$as_ac_var=yes"
39030 echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39033 eval "$as_ac_var=no"
39036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39037 conftest$ac_exeext conftest.$ac_ext
39039 ac_res=`eval echo '${'$as_ac_var'}'`
39040 { echo "$as_me:$LINENO: result: $ac_res" >&5
39041 echo "${ECHO_T}$ac_res" >&6; }
39042 if test `eval echo '${'$as_ac_var'}'` = yes; then
39043 cat >>confdefs.h <<_ACEOF
39044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39051 { echo "$as_me:$LINENO: checking for va_copy" >&5
39052 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39053 if test "${ba_cv_va_copy+set}" = set; then
39054 echo $ECHO_N "(cached) $ECHO_C" >&6
39057 cat >conftest.$ac_ext <<_ACEOF
39060 cat confdefs.h >>conftest.$ac_ext
39061 cat >>conftest.$ac_ext <<_ACEOF
39062 /* end confdefs.h. */
39064 #include <stdarg.h>
39065 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39066 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39072 call_use_va_copy(1,2,3)
39078 rm -f conftest.$ac_objext conftest$ac_exeext
39079 if { (ac_try="$ac_link"
39080 case "(($ac_try" in
39081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39082 *) ac_try_echo=$ac_try;;
39084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39085 (eval "$ac_link") 2>conftest.er1
39087 grep -v '^ *+' conftest.er1 >conftest.err
39089 cat conftest.err >&5
39090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091 (exit $ac_status); } && {
39092 test -z "$ac_c_werror_flag" ||
39093 test ! -s conftest.err
39094 } && test -s conftest$ac_exeext &&
39095 $as_test_x conftest$ac_exeext; then
39100 echo "$as_me: failed program was:" >&5
39101 sed 's/^/| /' conftest.$ac_ext >&5
39109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39110 conftest$ac_exeext conftest.$ac_ext
39114 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39115 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39116 test $ba_cv_va_copy = yes &&
39117 cat >>confdefs.h <<\_ACEOF
39118 #define HAVE_VA_COPY 1
39126 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39132 echo $ECHO_N "(cached) $ECHO_C" >&6
39134 cat >conftest.$ac_ext <<_ACEOF
39137 cat confdefs.h >>conftest.$ac_ext
39138 cat >>conftest.$ac_ext <<_ACEOF
39139 /* end confdefs.h. */
39140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39142 #define $ac_func innocuous_$ac_func
39144 /* System header to define __stub macros and hopefully few prototypes,
39145 which can conflict with char $ac_func (); below.
39146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39147 <limits.h> exists even on freestanding compilers. */
39150 # include <limits.h>
39152 # include <assert.h>
39157 /* Override any GCC internal prototype to avoid an error.
39158 Use char because int might match the return type of a GCC
39159 builtin and then its argument prototype would still apply. */
39164 /* The GNU C library defines this for functions which it implements
39165 to always fail with ENOSYS. Some functions are actually named
39166 something starting with __ and the normal name is an alias. */
39167 #if defined __stub_$ac_func || defined __stub___$ac_func
39174 return $ac_func ();
39179 rm -f conftest.$ac_objext conftest$ac_exeext
39180 if { (ac_try="$ac_link"
39181 case "(($ac_try" in
39182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183 *) ac_try_echo=$ac_try;;
39185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39186 (eval "$ac_link") 2>conftest.er1
39188 grep -v '^ *+' conftest.er1 >conftest.err
39190 cat conftest.err >&5
39191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); } && {
39193 test -z "$ac_c_werror_flag" ||
39194 test ! -s conftest.err
39195 } && test -s conftest$ac_exeext &&
39196 $as_test_x conftest$ac_exeext; then
39197 eval "$as_ac_var=yes"
39199 echo "$as_me: failed program was:" >&5
39200 sed 's/^/| /' conftest.$ac_ext >&5
39202 eval "$as_ac_var=no"
39205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39206 conftest$ac_exeext conftest.$ac_ext
39208 ac_res=`eval echo '${'$as_ac_var'}'`
39209 { echo "$as_me:$LINENO: result: $ac_res" >&5
39210 echo "${ECHO_T}$ac_res" >&6; }
39211 if test `eval echo '${'$as_ac_var'}'` = yes; then
39212 cat >>confdefs.h <<_ACEOF
39213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39220 # If resolver functions are not in libc check for -lnsl or -lresolv.
39221 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39222 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39223 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39224 echo $ECHO_N "(cached) $ECHO_C" >&6
39226 cat >conftest.$ac_ext <<_ACEOF
39229 cat confdefs.h >>conftest.$ac_ext
39230 cat >>conftest.$ac_ext <<_ACEOF
39231 /* end confdefs.h. */
39232 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39234 #define gethostbyname_r innocuous_gethostbyname_r
39236 /* System header to define __stub macros and hopefully few prototypes,
39237 which can conflict with char gethostbyname_r (); below.
39238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39239 <limits.h> exists even on freestanding compilers. */
39242 # include <limits.h>
39244 # include <assert.h>
39247 #undef gethostbyname_r
39249 /* Override any GCC internal prototype to avoid an error.
39250 Use char because int might match the return type of a GCC
39251 builtin and then its argument prototype would still apply. */
39255 char gethostbyname_r ();
39256 /* The GNU C library defines this for functions which it implements
39257 to always fail with ENOSYS. Some functions are actually named
39258 something starting with __ and the normal name is an alias. */
39259 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39266 return gethostbyname_r ();
39271 rm -f conftest.$ac_objext conftest$ac_exeext
39272 if { (ac_try="$ac_link"
39273 case "(($ac_try" in
39274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39275 *) ac_try_echo=$ac_try;;
39277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39278 (eval "$ac_link") 2>conftest.er1
39280 grep -v '^ *+' conftest.er1 >conftest.err
39282 cat conftest.err >&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); } && {
39285 test -z "$ac_c_werror_flag" ||
39286 test ! -s conftest.err
39287 } && test -s conftest$ac_exeext &&
39288 $as_test_x conftest$ac_exeext; then
39289 ac_cv_func_gethostbyname_r=yes
39291 echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39294 ac_cv_func_gethostbyname_r=no
39297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39298 conftest$ac_exeext conftest.$ac_ext
39300 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39301 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39302 if test $ac_cv_func_gethostbyname_r = yes; then
39303 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39304 echo "${ECHO_T}using libc's resolver" >&6; }
39307 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39308 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39309 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39310 echo $ECHO_N "(cached) $ECHO_C" >&6
39312 ac_check_lib_save_LIBS=$LIBS
39314 cat >conftest.$ac_ext <<_ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h. */
39321 /* Override any GCC internal prototype to avoid an error.
39322 Use char because int might match the return type of a GCC
39323 builtin and then its argument prototype would still apply. */
39327 char gethostbyname_r ();
39331 return gethostbyname_r ();
39336 rm -f conftest.$ac_objext conftest$ac_exeext
39337 if { (ac_try="$ac_link"
39338 case "(($ac_try" in
39339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39340 *) ac_try_echo=$ac_try;;
39342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39343 (eval "$ac_link") 2>conftest.er1
39345 grep -v '^ *+' conftest.er1 >conftest.err
39347 cat conftest.err >&5
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); } && {
39350 test -z "$ac_c_werror_flag" ||
39351 test ! -s conftest.err
39352 } && test -s conftest$ac_exeext &&
39353 $as_test_x conftest$ac_exeext; then
39354 ac_cv_lib_nsl_gethostbyname_r=yes
39356 echo "$as_me: failed program was:" >&5
39357 sed 's/^/| /' conftest.$ac_ext >&5
39359 ac_cv_lib_nsl_gethostbyname_r=no
39362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39363 conftest$ac_exeext conftest.$ac_ext
39364 LIBS=$ac_check_lib_save_LIBS
39366 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39367 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39368 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39369 cat >>confdefs.h <<_ACEOF
39370 #define HAVE_LIBNSL 1
39378 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39379 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39380 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39381 echo $ECHO_N "(cached) $ECHO_C" >&6
39383 ac_check_lib_save_LIBS=$LIBS
39384 LIBS="-lresolv $LIBS"
39385 cat >conftest.$ac_ext <<_ACEOF
39388 cat confdefs.h >>conftest.$ac_ext
39389 cat >>conftest.$ac_ext <<_ACEOF
39390 /* end confdefs.h. */
39392 /* Override any GCC internal prototype to avoid an error.
39393 Use char because int might match the return type of a GCC
39394 builtin and then its argument prototype would still apply. */
39398 char gethostbyname_r ();
39402 return gethostbyname_r ();
39407 rm -f conftest.$ac_objext conftest$ac_exeext
39408 if { (ac_try="$ac_link"
39409 case "(($ac_try" in
39410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39411 *) ac_try_echo=$ac_try;;
39413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39414 (eval "$ac_link") 2>conftest.er1
39416 grep -v '^ *+' conftest.er1 >conftest.err
39418 cat conftest.err >&5
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } && {
39421 test -z "$ac_c_werror_flag" ||
39422 test ! -s conftest.err
39423 } && test -s conftest$ac_exeext &&
39424 $as_test_x conftest$ac_exeext; then
39425 ac_cv_lib_resolv_gethostbyname_r=yes
39427 echo "$as_me: failed program was:" >&5
39428 sed 's/^/| /' conftest.$ac_ext >&5
39430 ac_cv_lib_resolv_gethostbyname_r=no
39433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39434 conftest$ac_exeext conftest.$ac_ext
39435 LIBS=$ac_check_lib_save_LIBS
39437 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39438 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39439 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39440 cat >>confdefs.h <<_ACEOF
39441 #define HAVE_LIBRESOLV 1
39444 LIBS="-lresolv $LIBS"
39452 for ac_func in inet_pton
39454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39458 echo $ECHO_N "(cached) $ECHO_C" >&6
39460 cat >conftest.$ac_ext <<_ACEOF
39463 cat confdefs.h >>conftest.$ac_ext
39464 cat >>conftest.$ac_ext <<_ACEOF
39465 /* end confdefs.h. */
39466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39468 #define $ac_func innocuous_$ac_func
39470 /* System header to define __stub macros and hopefully few prototypes,
39471 which can conflict with char $ac_func (); below.
39472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39473 <limits.h> exists even on freestanding compilers. */
39476 # include <limits.h>
39478 # include <assert.h>
39483 /* Override any GCC internal prototype to avoid an error.
39484 Use char because int might match the return type of a GCC
39485 builtin and then its argument prototype would still apply. */
39490 /* The GNU C library defines this for functions which it implements
39491 to always fail with ENOSYS. Some functions are actually named
39492 something starting with __ and the normal name is an alias. */
39493 #if defined __stub_$ac_func || defined __stub___$ac_func
39500 return $ac_func ();
39505 rm -f conftest.$ac_objext conftest$ac_exeext
39506 if { (ac_try="$ac_link"
39507 case "(($ac_try" in
39508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39509 *) ac_try_echo=$ac_try;;
39511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39512 (eval "$ac_link") 2>conftest.er1
39514 grep -v '^ *+' conftest.er1 >conftest.err
39516 cat conftest.err >&5
39517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518 (exit $ac_status); } && {
39519 test -z "$ac_c_werror_flag" ||
39520 test ! -s conftest.err
39521 } && test -s conftest$ac_exeext &&
39522 $as_test_x conftest$ac_exeext; then
39523 eval "$as_ac_var=yes"
39525 echo "$as_me: failed program was:" >&5
39526 sed 's/^/| /' conftest.$ac_ext >&5
39528 eval "$as_ac_var=no"
39531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39532 conftest$ac_exeext conftest.$ac_ext
39534 ac_res=`eval echo '${'$as_ac_var'}'`
39535 { echo "$as_me:$LINENO: result: $ac_res" >&5
39536 echo "${ECHO_T}$ac_res" >&6; }
39537 if test `eval echo '${'$as_ac_var'}'` = yes; then
39538 cat >>confdefs.h <<_ACEOF
39539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39541 cat >>confdefs.h <<\_ACEOF
39542 #define HAVE_INET_PTON 1
39549 for ac_func in inet_ntop
39551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39555 echo $ECHO_N "(cached) $ECHO_C" >&6
39557 cat >conftest.$ac_ext <<_ACEOF
39560 cat confdefs.h >>conftest.$ac_ext
39561 cat >>conftest.$ac_ext <<_ACEOF
39562 /* end confdefs.h. */
39563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39565 #define $ac_func innocuous_$ac_func
39567 /* System header to define __stub macros and hopefully few prototypes,
39568 which can conflict with char $ac_func (); below.
39569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39570 <limits.h> exists even on freestanding compilers. */
39573 # include <limits.h>
39575 # include <assert.h>
39580 /* Override any GCC internal prototype to avoid an error.
39581 Use char because int might match the return type of a GCC
39582 builtin and then its argument prototype would still apply. */
39587 /* The GNU C library defines this for functions which it implements
39588 to always fail with ENOSYS. Some functions are actually named
39589 something starting with __ and the normal name is an alias. */
39590 #if defined __stub_$ac_func || defined __stub___$ac_func
39597 return $ac_func ();
39602 rm -f conftest.$ac_objext conftest$ac_exeext
39603 if { (ac_try="$ac_link"
39604 case "(($ac_try" in
39605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606 *) ac_try_echo=$ac_try;;
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609 (eval "$ac_link") 2>conftest.er1
39611 grep -v '^ *+' conftest.er1 >conftest.err
39613 cat conftest.err >&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } && {
39616 test -z "$ac_c_werror_flag" ||
39617 test ! -s conftest.err
39618 } && test -s conftest$ac_exeext &&
39619 $as_test_x conftest$ac_exeext; then
39620 eval "$as_ac_var=yes"
39622 echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39625 eval "$as_ac_var=no"
39628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39629 conftest$ac_exeext conftest.$ac_ext
39631 ac_res=`eval echo '${'$as_ac_var'}'`
39632 { echo "$as_me:$LINENO: result: $ac_res" >&5
39633 echo "${ECHO_T}$ac_res" >&6; }
39634 if test `eval echo '${'$as_ac_var'}'` = yes; then
39635 cat >>confdefs.h <<_ACEOF
39636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39638 cat >>confdefs.h <<\_ACEOF
39639 #define HAVE_INET_NTOP 1
39646 for ac_func in gethostbyname2
39648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39652 echo $ECHO_N "(cached) $ECHO_C" >&6
39654 cat >conftest.$ac_ext <<_ACEOF
39657 cat confdefs.h >>conftest.$ac_ext
39658 cat >>conftest.$ac_ext <<_ACEOF
39659 /* end confdefs.h. */
39660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39662 #define $ac_func innocuous_$ac_func
39664 /* System header to define __stub macros and hopefully few prototypes,
39665 which can conflict with char $ac_func (); below.
39666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39667 <limits.h> exists even on freestanding compilers. */
39670 # include <limits.h>
39672 # include <assert.h>
39677 /* Override any GCC internal prototype to avoid an error.
39678 Use char because int might match the return type of a GCC
39679 builtin and then its argument prototype would still apply. */
39684 /* The GNU C library defines this for functions which it implements
39685 to always fail with ENOSYS. Some functions are actually named
39686 something starting with __ and the normal name is an alias. */
39687 #if defined __stub_$ac_func || defined __stub___$ac_func
39694 return $ac_func ();
39699 rm -f conftest.$ac_objext conftest$ac_exeext
39700 if { (ac_try="$ac_link"
39701 case "(($ac_try" in
39702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39703 *) ac_try_echo=$ac_try;;
39705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39706 (eval "$ac_link") 2>conftest.er1
39708 grep -v '^ *+' conftest.er1 >conftest.err
39710 cat conftest.err >&5
39711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); } && {
39713 test -z "$ac_c_werror_flag" ||
39714 test ! -s conftest.err
39715 } && test -s conftest$ac_exeext &&
39716 $as_test_x conftest$ac_exeext; then
39717 eval "$as_ac_var=yes"
39719 echo "$as_me: failed program was:" >&5
39720 sed 's/^/| /' conftest.$ac_ext >&5
39722 eval "$as_ac_var=no"
39725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39726 conftest$ac_exeext conftest.$ac_ext
39728 ac_res=`eval echo '${'$as_ac_var'}'`
39729 { echo "$as_me:$LINENO: result: $ac_res" >&5
39730 echo "${ECHO_T}$ac_res" >&6; }
39731 if test `eval echo '${'$as_ac_var'}'` = yes; then
39732 cat >>confdefs.h <<_ACEOF
39733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39735 cat >>confdefs.h <<\_ACEOF
39736 #define HAVE_GETHOSTBYNAME2 1
39743 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39744 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39745 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39746 echo $ECHO_N "(cached) $ECHO_C" >&6
39749 cat >conftest.$ac_ext <<_ACEOF
39752 cat confdefs.h >>conftest.$ac_ext
39753 cat >>conftest.$ac_ext <<_ACEOF
39754 /* end confdefs.h. */
39756 #include <sys/socket.h>
39762 struct sockaddr s; s.sa_len;
39768 rm -f conftest.$ac_objext
39769 if { (ac_try="$ac_compile"
39770 case "(($ac_try" in
39771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39772 *) ac_try_echo=$ac_try;;
39774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39775 (eval "$ac_compile") 2>conftest.er1
39777 grep -v '^ *+' conftest.er1 >conftest.err
39779 cat conftest.err >&5
39780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781 (exit $ac_status); } && {
39782 test -z "$ac_c_werror_flag" ||
39783 test ! -s conftest.err
39784 } && test -s conftest.$ac_objext; then
39786 ac_cv_struct_sockaddr_sa_len=yes
39789 echo "$as_me: failed program was:" >&5
39790 sed 's/^/| /' conftest.$ac_ext >&5
39792 ac_cv_struct_sockaddr_sa_len=no
39797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39801 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39802 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39804 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39806 cat >>confdefs.h <<\_ACEOF
39807 #define HAVE_SA_LEN 1
39813 for ac_func in strftime
39815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39819 echo $ECHO_N "(cached) $ECHO_C" >&6
39821 cat >conftest.$ac_ext <<_ACEOF
39824 cat confdefs.h >>conftest.$ac_ext
39825 cat >>conftest.$ac_ext <<_ACEOF
39826 /* end confdefs.h. */
39827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39829 #define $ac_func innocuous_$ac_func
39831 /* System header to define __stub macros and hopefully few prototypes,
39832 which can conflict with char $ac_func (); below.
39833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39834 <limits.h> exists even on freestanding compilers. */
39837 # include <limits.h>
39839 # include <assert.h>
39844 /* Override any GCC internal prototype to avoid an error.
39845 Use char because int might match the return type of a GCC
39846 builtin and then its argument prototype would still apply. */
39851 /* The GNU C library defines this for functions which it implements
39852 to always fail with ENOSYS. Some functions are actually named
39853 something starting with __ and the normal name is an alias. */
39854 #if defined __stub_$ac_func || defined __stub___$ac_func
39861 return $ac_func ();
39866 rm -f conftest.$ac_objext conftest$ac_exeext
39867 if { (ac_try="$ac_link"
39868 case "(($ac_try" in
39869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39870 *) ac_try_echo=$ac_try;;
39872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39873 (eval "$ac_link") 2>conftest.er1
39875 grep -v '^ *+' conftest.er1 >conftest.err
39877 cat conftest.err >&5
39878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); } && {
39880 test -z "$ac_c_werror_flag" ||
39881 test ! -s conftest.err
39882 } && test -s conftest$ac_exeext &&
39883 $as_test_x conftest$ac_exeext; then
39884 eval "$as_ac_var=yes"
39886 echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.$ac_ext >&5
39889 eval "$as_ac_var=no"
39892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39893 conftest$ac_exeext conftest.$ac_ext
39895 ac_res=`eval echo '${'$as_ac_var'}'`
39896 { echo "$as_me:$LINENO: result: $ac_res" >&5
39897 echo "${ECHO_T}$ac_res" >&6; }
39898 if test `eval echo '${'$as_ac_var'}'` = yes; then
39899 cat >>confdefs.h <<_ACEOF
39900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39904 # strftime is in -lintl on SCO UNIX.
39905 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39906 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39907 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39908 echo $ECHO_N "(cached) $ECHO_C" >&6
39910 ac_check_lib_save_LIBS=$LIBS
39911 LIBS="-lintl $LIBS"
39912 cat >conftest.$ac_ext <<_ACEOF
39915 cat confdefs.h >>conftest.$ac_ext
39916 cat >>conftest.$ac_ext <<_ACEOF
39917 /* end confdefs.h. */
39919 /* Override any GCC internal prototype to avoid an error.
39920 Use char because int might match the return type of a GCC
39921 builtin and then its argument prototype would still apply. */
39929 return strftime ();
39934 rm -f conftest.$ac_objext conftest$ac_exeext
39935 if { (ac_try="$ac_link"
39936 case "(($ac_try" in
39937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39938 *) ac_try_echo=$ac_try;;
39940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39941 (eval "$ac_link") 2>conftest.er1
39943 grep -v '^ *+' conftest.er1 >conftest.err
39945 cat conftest.err >&5
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); } && {
39948 test -z "$ac_c_werror_flag" ||
39949 test ! -s conftest.err
39950 } && test -s conftest$ac_exeext &&
39951 $as_test_x conftest$ac_exeext; then
39952 ac_cv_lib_intl_strftime=yes
39954 echo "$as_me: failed program was:" >&5
39955 sed 's/^/| /' conftest.$ac_ext >&5
39957 ac_cv_lib_intl_strftime=no
39960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39961 conftest$ac_exeext conftest.$ac_ext
39962 LIBS=$ac_check_lib_save_LIBS
39964 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39965 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39966 if test $ac_cv_lib_intl_strftime = yes; then
39967 cat >>confdefs.h <<\_ACEOF
39968 #define HAVE_STRFTIME 1
39971 LIBS="-lintl $LIBS"
39978 for ac_func in vprintf
39980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39984 echo $ECHO_N "(cached) $ECHO_C" >&6
39986 cat >conftest.$ac_ext <<_ACEOF
39989 cat confdefs.h >>conftest.$ac_ext
39990 cat >>conftest.$ac_ext <<_ACEOF
39991 /* end confdefs.h. */
39992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39994 #define $ac_func innocuous_$ac_func
39996 /* System header to define __stub macros and hopefully few prototypes,
39997 which can conflict with char $ac_func (); below.
39998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39999 <limits.h> exists even on freestanding compilers. */
40002 # include <limits.h>
40004 # include <assert.h>
40009 /* Override any GCC internal prototype to avoid an error.
40010 Use char because int might match the return type of a GCC
40011 builtin and then its argument prototype would still apply. */
40016 /* The GNU C library defines this for functions which it implements
40017 to always fail with ENOSYS. Some functions are actually named
40018 something starting with __ and the normal name is an alias. */
40019 #if defined __stub_$ac_func || defined __stub___$ac_func
40026 return $ac_func ();
40031 rm -f conftest.$ac_objext conftest$ac_exeext
40032 if { (ac_try="$ac_link"
40033 case "(($ac_try" in
40034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40035 *) ac_try_echo=$ac_try;;
40037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40038 (eval "$ac_link") 2>conftest.er1
40040 grep -v '^ *+' conftest.er1 >conftest.err
40042 cat conftest.err >&5
40043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40044 (exit $ac_status); } && {
40045 test -z "$ac_c_werror_flag" ||
40046 test ! -s conftest.err
40047 } && test -s conftest$ac_exeext &&
40048 $as_test_x conftest$ac_exeext; then
40049 eval "$as_ac_var=yes"
40051 echo "$as_me: failed program was:" >&5
40052 sed 's/^/| /' conftest.$ac_ext >&5
40054 eval "$as_ac_var=no"
40057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40058 conftest$ac_exeext conftest.$ac_ext
40060 ac_res=`eval echo '${'$as_ac_var'}'`
40061 { echo "$as_me:$LINENO: result: $ac_res" >&5
40062 echo "${ECHO_T}$ac_res" >&6; }
40063 if test `eval echo '${'$as_ac_var'}'` = yes; then
40064 cat >>confdefs.h <<_ACEOF
40065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40068 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40069 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40070 if test "${ac_cv_func__doprnt+set}" = set; then
40071 echo $ECHO_N "(cached) $ECHO_C" >&6
40073 cat >conftest.$ac_ext <<_ACEOF
40076 cat confdefs.h >>conftest.$ac_ext
40077 cat >>conftest.$ac_ext <<_ACEOF
40078 /* end confdefs.h. */
40079 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40081 #define _doprnt innocuous__doprnt
40083 /* System header to define __stub macros and hopefully few prototypes,
40084 which can conflict with char _doprnt (); below.
40085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40086 <limits.h> exists even on freestanding compilers. */
40089 # include <limits.h>
40091 # include <assert.h>
40096 /* Override any GCC internal prototype to avoid an error.
40097 Use char because int might match the return type of a GCC
40098 builtin and then its argument prototype would still apply. */
40103 /* The GNU C library defines this for functions which it implements
40104 to always fail with ENOSYS. Some functions are actually named
40105 something starting with __ and the normal name is an alias. */
40106 #if defined __stub__doprnt || defined __stub____doprnt
40118 rm -f conftest.$ac_objext conftest$ac_exeext
40119 if { (ac_try="$ac_link"
40120 case "(($ac_try" in
40121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122 *) ac_try_echo=$ac_try;;
40124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40125 (eval "$ac_link") 2>conftest.er1
40127 grep -v '^ *+' conftest.er1 >conftest.err
40129 cat conftest.err >&5
40130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131 (exit $ac_status); } && {
40132 test -z "$ac_c_werror_flag" ||
40133 test ! -s conftest.err
40134 } && test -s conftest$ac_exeext &&
40135 $as_test_x conftest$ac_exeext; then
40136 ac_cv_func__doprnt=yes
40138 echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40141 ac_cv_func__doprnt=no
40144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40145 conftest$ac_exeext conftest.$ac_ext
40147 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40148 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40149 if test $ac_cv_func__doprnt = yes; then
40151 cat >>confdefs.h <<\_ACEOF
40152 #define HAVE_DOPRNT 1
40161 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40162 # for constant arguments. Useless!
40163 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40164 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40165 if test "${ac_cv_working_alloca_h+set}" = set; then
40166 echo $ECHO_N "(cached) $ECHO_C" >&6
40168 cat >conftest.$ac_ext <<_ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h. */
40174 #include <alloca.h>
40178 char *p = (char *) alloca (2 * sizeof (int));
40184 rm -f conftest.$ac_objext conftest$ac_exeext
40185 if { (ac_try="$ac_link"
40186 case "(($ac_try" in
40187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40188 *) ac_try_echo=$ac_try;;
40190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40191 (eval "$ac_link") 2>conftest.er1
40193 grep -v '^ *+' conftest.er1 >conftest.err
40195 cat conftest.err >&5
40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197 (exit $ac_status); } && {
40198 test -z "$ac_c_werror_flag" ||
40199 test ! -s conftest.err
40200 } && test -s conftest$ac_exeext &&
40201 $as_test_x conftest$ac_exeext; then
40202 ac_cv_working_alloca_h=yes
40204 echo "$as_me: failed program was:" >&5
40205 sed 's/^/| /' conftest.$ac_ext >&5
40207 ac_cv_working_alloca_h=no
40210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40211 conftest$ac_exeext conftest.$ac_ext
40213 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40214 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40215 if test $ac_cv_working_alloca_h = yes; then
40217 cat >>confdefs.h <<\_ACEOF
40218 #define HAVE_ALLOCA_H 1
40223 { echo "$as_me:$LINENO: checking for alloca" >&5
40224 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40225 if test "${ac_cv_func_alloca_works+set}" = set; then
40226 echo $ECHO_N "(cached) $ECHO_C" >&6
40228 cat >conftest.$ac_ext <<_ACEOF
40231 cat confdefs.h >>conftest.$ac_ext
40232 cat >>conftest.$ac_ext <<_ACEOF
40233 /* end confdefs.h. */
40235 # define alloca __builtin_alloca
40238 # include <malloc.h>
40239 # define alloca _alloca
40241 # ifdef HAVE_ALLOCA_H
40242 # include <alloca.h>
40247 # ifndef alloca /* predefined by HP cc +Olibcalls */
40258 char *p = (char *) alloca (1);
40264 rm -f conftest.$ac_objext conftest$ac_exeext
40265 if { (ac_try="$ac_link"
40266 case "(($ac_try" in
40267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40268 *) ac_try_echo=$ac_try;;
40270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40271 (eval "$ac_link") 2>conftest.er1
40273 grep -v '^ *+' conftest.er1 >conftest.err
40275 cat conftest.err >&5
40276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277 (exit $ac_status); } && {
40278 test -z "$ac_c_werror_flag" ||
40279 test ! -s conftest.err
40280 } && test -s conftest$ac_exeext &&
40281 $as_test_x conftest$ac_exeext; then
40282 ac_cv_func_alloca_works=yes
40284 echo "$as_me: failed program was:" >&5
40285 sed 's/^/| /' conftest.$ac_ext >&5
40287 ac_cv_func_alloca_works=no
40290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40291 conftest$ac_exeext conftest.$ac_ext
40293 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40294 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40296 if test $ac_cv_func_alloca_works = yes; then
40298 cat >>confdefs.h <<\_ACEOF
40299 #define HAVE_ALLOCA 1
40303 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40304 # that cause trouble. Some versions do not even contain alloca or
40305 # contain a buggy version. If you still want to use their alloca,
40306 # use ar to extract alloca.o from them instead of compiling alloca.c.
40308 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40310 cat >>confdefs.h <<\_ACEOF
40315 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40316 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40317 if test "${ac_cv_os_cray+set}" = set; then
40318 echo $ECHO_N "(cached) $ECHO_C" >&6
40320 cat >conftest.$ac_ext <<_ACEOF
40323 cat confdefs.h >>conftest.$ac_ext
40324 cat >>conftest.$ac_ext <<_ACEOF
40325 /* end confdefs.h. */
40326 #if defined CRAY && ! defined CRAY2
40333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40334 $EGREP "webecray" >/dev/null 2>&1; then
40342 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40343 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40344 if test $ac_cv_os_cray = yes; then
40345 for ac_func in _getb67 GETB67 getb67; do
40346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40350 echo $ECHO_N "(cached) $ECHO_C" >&6
40352 cat >conftest.$ac_ext <<_ACEOF
40355 cat confdefs.h >>conftest.$ac_ext
40356 cat >>conftest.$ac_ext <<_ACEOF
40357 /* end confdefs.h. */
40358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40360 #define $ac_func innocuous_$ac_func
40362 /* System header to define __stub macros and hopefully few prototypes,
40363 which can conflict with char $ac_func (); below.
40364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40365 <limits.h> exists even on freestanding compilers. */
40368 # include <limits.h>
40370 # include <assert.h>
40375 /* Override any GCC internal prototype to avoid an error.
40376 Use char because int might match the return type of a GCC
40377 builtin and then its argument prototype would still apply. */
40382 /* The GNU C library defines this for functions which it implements
40383 to always fail with ENOSYS. Some functions are actually named
40384 something starting with __ and the normal name is an alias. */
40385 #if defined __stub_$ac_func || defined __stub___$ac_func
40392 return $ac_func ();
40397 rm -f conftest.$ac_objext conftest$ac_exeext
40398 if { (ac_try="$ac_link"
40399 case "(($ac_try" in
40400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40401 *) ac_try_echo=$ac_try;;
40403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40404 (eval "$ac_link") 2>conftest.er1
40406 grep -v '^ *+' conftest.er1 >conftest.err
40408 cat conftest.err >&5
40409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40410 (exit $ac_status); } && {
40411 test -z "$ac_c_werror_flag" ||
40412 test ! -s conftest.err
40413 } && test -s conftest$ac_exeext &&
40414 $as_test_x conftest$ac_exeext; then
40415 eval "$as_ac_var=yes"
40417 echo "$as_me: failed program was:" >&5
40418 sed 's/^/| /' conftest.$ac_ext >&5
40420 eval "$as_ac_var=no"
40423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40424 conftest$ac_exeext conftest.$ac_ext
40426 ac_res=`eval echo '${'$as_ac_var'}'`
40427 { echo "$as_me:$LINENO: result: $ac_res" >&5
40428 echo "${ECHO_T}$ac_res" >&6; }
40429 if test `eval echo '${'$as_ac_var'}'` = yes; then
40431 cat >>confdefs.h <<_ACEOF
40432 #define CRAY_STACKSEG_END $ac_func
40441 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40442 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40443 if test "${ac_cv_c_stack_direction+set}" = set; then
40444 echo $ECHO_N "(cached) $ECHO_C" >&6
40446 if test "$cross_compiling" = yes; then
40447 ac_cv_c_stack_direction=0
40449 cat >conftest.$ac_ext <<_ACEOF
40452 cat confdefs.h >>conftest.$ac_ext
40453 cat >>conftest.$ac_ext <<_ACEOF
40454 /* end confdefs.h. */
40455 $ac_includes_default
40457 find_stack_direction ()
40459 static char *addr = 0;
40464 return find_stack_direction ();
40467 return (&dummy > addr) ? 1 : -1;
40473 return find_stack_direction () < 0;
40476 rm -f conftest$ac_exeext
40477 if { (ac_try="$ac_link"
40478 case "(($ac_try" in
40479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480 *) ac_try_echo=$ac_try;;
40482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40483 (eval "$ac_link") 2>&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40487 { (case "(($ac_try" in
40488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40489 *) ac_try_echo=$ac_try;;
40491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40492 (eval "$ac_try") 2>&5
40494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495 (exit $ac_status); }; }; then
40496 ac_cv_c_stack_direction=1
40498 echo "$as_me: program exited with status $ac_status" >&5
40499 echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40502 ( exit $ac_status )
40503 ac_cv_c_stack_direction=-1
40505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40510 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40511 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40513 cat >>confdefs.h <<_ACEOF
40514 #define STACK_DIRECTION $ac_cv_c_stack_direction
40520 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40521 # -lseq on Dynix/PTX, -lgen on Unixware.
40522 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40523 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40524 if test "${ac_cv_search_getmntent+set}" = set; then
40525 echo $ECHO_N "(cached) $ECHO_C" >&6
40527 ac_func_search_save_LIBS=$LIBS
40528 cat >conftest.$ac_ext <<_ACEOF
40531 cat confdefs.h >>conftest.$ac_ext
40532 cat >>conftest.$ac_ext <<_ACEOF
40533 /* end confdefs.h. */
40535 /* Override any GCC internal prototype to avoid an error.
40536 Use char because int might match the return type of a GCC
40537 builtin and then its argument prototype would still apply. */
40545 return getmntent ();
40550 for ac_lib in '' sun seq gen; do
40551 if test -z "$ac_lib"; then
40552 ac_res="none required"
40555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561 *) ac_try_echo=$ac_try;;
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564 (eval "$ac_link") 2>conftest.er1
40566 grep -v '^ *+' conftest.er1 >conftest.err
40568 cat conftest.err >&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } && {
40571 test -z "$ac_c_werror_flag" ||
40572 test ! -s conftest.err
40573 } && test -s conftest$ac_exeext &&
40574 $as_test_x conftest$ac_exeext; then
40575 ac_cv_search_getmntent=$ac_res
40577 echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40585 if test "${ac_cv_search_getmntent+set}" = set; then
40589 if test "${ac_cv_search_getmntent+set}" = set; then
40592 ac_cv_search_getmntent=no
40594 rm conftest.$ac_ext
40595 LIBS=$ac_func_search_save_LIBS
40597 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40598 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40599 ac_res=$ac_cv_search_getmntent
40600 if test "$ac_res" != no; then
40601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40602 ac_cv_func_getmntent=yes
40604 cat >>confdefs.h <<\_ACEOF
40605 #define HAVE_GETMNTENT 1
40609 ac_cv_func_getmntent=no
40614 for ac_func in getmntinfo
40616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40620 echo $ECHO_N "(cached) $ECHO_C" >&6
40622 cat >conftest.$ac_ext <<_ACEOF
40625 cat confdefs.h >>conftest.$ac_ext
40626 cat >>conftest.$ac_ext <<_ACEOF
40627 /* end confdefs.h. */
40628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40630 #define $ac_func innocuous_$ac_func
40632 /* System header to define __stub macros and hopefully few prototypes,
40633 which can conflict with char $ac_func (); below.
40634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40635 <limits.h> exists even on freestanding compilers. */
40638 # include <limits.h>
40640 # include <assert.h>
40645 /* Override any GCC internal prototype to avoid an error.
40646 Use char because int might match the return type of a GCC
40647 builtin and then its argument prototype would still apply. */
40652 /* The GNU C library defines this for functions which it implements
40653 to always fail with ENOSYS. Some functions are actually named
40654 something starting with __ and the normal name is an alias. */
40655 #if defined __stub_$ac_func || defined __stub___$ac_func
40662 return $ac_func ();
40667 rm -f conftest.$ac_objext conftest$ac_exeext
40668 if { (ac_try="$ac_link"
40669 case "(($ac_try" in
40670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40671 *) ac_try_echo=$ac_try;;
40673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40674 (eval "$ac_link") 2>conftest.er1
40676 grep -v '^ *+' conftest.er1 >conftest.err
40678 cat conftest.err >&5
40679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680 (exit $ac_status); } && {
40681 test -z "$ac_c_werror_flag" ||
40682 test ! -s conftest.err
40683 } && test -s conftest$ac_exeext &&
40684 $as_test_x conftest$ac_exeext; then
40685 eval "$as_ac_var=yes"
40687 echo "$as_me: failed program was:" >&5
40688 sed 's/^/| /' conftest.$ac_ext >&5
40690 eval "$as_ac_var=no"
40693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40694 conftest$ac_exeext conftest.$ac_ext
40696 ac_res=`eval echo '${'$as_ac_var'}'`
40697 { echo "$as_me:$LINENO: result: $ac_res" >&5
40698 echo "${ECHO_T}$ac_res" >&6; }
40699 if test `eval echo '${'$as_ac_var'}'` = yes; then
40700 cat >>confdefs.h <<_ACEOF
40701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40703 cat >>confdefs.h <<\_ACEOF
40704 #define HAVE_GETMNTINFO 1
40710 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40711 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40712 if test "${ac_cv_func_closedir_void+set}" = set; then
40713 echo $ECHO_N "(cached) $ECHO_C" >&6
40715 if test "$cross_compiling" = yes; then
40716 ac_cv_func_closedir_void=yes
40718 cat >conftest.$ac_ext <<_ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h. */
40724 $ac_includes_default
40725 #include <$ac_header_dirent>
40726 #ifndef __cplusplus
40733 return closedir (opendir (".")) != 0;
40738 rm -f conftest$ac_exeext
40739 if { (ac_try="$ac_link"
40740 case "(($ac_try" in
40741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40742 *) ac_try_echo=$ac_try;;
40744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40745 (eval "$ac_link") 2>&5
40747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40749 { (case "(($ac_try" in
40750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40751 *) ac_try_echo=$ac_try;;
40753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40754 (eval "$ac_try") 2>&5
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 ac_cv_func_closedir_void=no
40760 echo "$as_me: program exited with status $ac_status" >&5
40761 echo "$as_me: failed program was:" >&5
40762 sed 's/^/| /' conftest.$ac_ext >&5
40764 ( exit $ac_status )
40765 ac_cv_func_closedir_void=yes
40767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40772 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40773 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40774 if test $ac_cv_func_closedir_void = yes; then
40776 cat >>confdefs.h <<\_ACEOF
40777 #define CLOSEDIR_VOID 1
40782 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40783 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40784 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40785 echo $ECHO_N "(cached) $ECHO_C" >&6
40787 if test "$cross_compiling" = yes; then
40788 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40789 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40790 { (exit 1); exit 1; }; }
40792 cat >conftest.$ac_ext <<_ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h. */
40798 $ac_includes_default
40802 /* If this system has a BSD-style setpgrp which takes arguments,
40803 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40804 exit successfully. */
40805 return setpgrp (1,1) != -1;
40810 rm -f conftest$ac_exeext
40811 if { (ac_try="$ac_link"
40812 case "(($ac_try" in
40813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40814 *) ac_try_echo=$ac_try;;
40816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40817 (eval "$ac_link") 2>&5
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40821 { (case "(($ac_try" in
40822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40823 *) ac_try_echo=$ac_try;;
40825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40826 (eval "$ac_try") 2>&5
40828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 (exit $ac_status); }; }; then
40830 ac_cv_func_setpgrp_void=no
40832 echo "$as_me: program exited with status $ac_status" >&5
40833 echo "$as_me: failed program was:" >&5
40834 sed 's/^/| /' conftest.$ac_ext >&5
40836 ( exit $ac_status )
40837 ac_cv_func_setpgrp_void=yes
40839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40844 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40845 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40846 if test $ac_cv_func_setpgrp_void = yes; then
40848 cat >>confdefs.h <<\_ACEOF
40849 #define SETPGRP_VOID 1
40853 # AC_FUNC_FNMATCH dnl use local version
40855 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40856 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40857 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40858 echo $ECHO_N "(cached) $ECHO_C" >&6
40860 ac_check_lib_save_LIBS=$LIBS
40861 LIBS="-lintl $LIBS"
40862 cat >conftest.$ac_ext <<_ACEOF
40865 cat confdefs.h >>conftest.$ac_ext
40866 cat >>conftest.$ac_ext <<_ACEOF
40867 /* end confdefs.h. */
40869 /* Override any GCC internal prototype to avoid an error.
40870 Use char because int might match the return type of a GCC
40871 builtin and then its argument prototype would still apply. */
40884 rm -f conftest.$ac_objext conftest$ac_exeext
40885 if { (ac_try="$ac_link"
40886 case "(($ac_try" in
40887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40888 *) ac_try_echo=$ac_try;;
40890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40891 (eval "$ac_link") 2>conftest.er1
40893 grep -v '^ *+' conftest.er1 >conftest.err
40895 cat conftest.err >&5
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); } && {
40898 test -z "$ac_c_werror_flag" ||
40899 test ! -s conftest.err
40900 } && test -s conftest$ac_exeext &&
40901 $as_test_x conftest$ac_exeext; then
40902 ac_cv_lib_intl_gettext=yes
40904 echo "$as_me: failed program was:" >&5
40905 sed 's/^/| /' conftest.$ac_ext >&5
40907 ac_cv_lib_intl_gettext=no
40910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40911 conftest$ac_exeext conftest.$ac_ext
40912 LIBS=$ac_check_lib_save_LIBS
40914 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40915 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40916 if test $ac_cv_lib_intl_gettext = yes; then
40917 LIBS="$LIBS -lintl"
40922 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40923 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40924 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40925 echo $ECHO_N "(cached) $ECHO_C" >&6
40927 ac_check_lib_save_LIBS=$LIBS
40929 cat >conftest.$ac_ext <<_ACEOF
40932 cat confdefs.h >>conftest.$ac_ext
40933 cat >>conftest.$ac_ext <<_ACEOF
40934 /* end confdefs.h. */
40936 /* Override any GCC internal prototype to avoid an error.
40937 Use char because int might match the return type of a GCC
40938 builtin and then its argument prototype would still apply. */
40946 return getpwnam ();
40951 rm -f conftest.$ac_objext conftest$ac_exeext
40952 if { (ac_try="$ac_link"
40953 case "(($ac_try" in
40954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40955 *) ac_try_echo=$ac_try;;
40957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40958 (eval "$ac_link") 2>conftest.er1
40960 grep -v '^ *+' conftest.er1 >conftest.err
40962 cat conftest.err >&5
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } && {
40965 test -z "$ac_c_werror_flag" ||
40966 test ! -s conftest.err
40967 } && test -s conftest$ac_exeext &&
40968 $as_test_x conftest$ac_exeext; then
40969 ac_cv_lib_sun_getpwnam=yes
40971 echo "$as_me: failed program was:" >&5
40972 sed 's/^/| /' conftest.$ac_ext >&5
40974 ac_cv_lib_sun_getpwnam=no
40977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40978 conftest$ac_exeext conftest.$ac_ext
40979 LIBS=$ac_check_lib_save_LIBS
40981 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40982 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40983 if test $ac_cv_lib_sun_getpwnam = yes; then
40984 cat >>confdefs.h <<_ACEOF
40985 #define HAVE_LIBSUN 1
40994 for ac_header in zlib.h
40996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41001 echo $ECHO_N "(cached) $ECHO_C" >&6
41003 ac_res=`eval echo '${'$as_ac_Header'}'`
41004 { echo "$as_me:$LINENO: result: $ac_res" >&5
41005 echo "${ECHO_T}$ac_res" >&6; }
41007 # Is the header compilable?
41008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41010 cat >conftest.$ac_ext <<_ACEOF
41013 cat confdefs.h >>conftest.$ac_ext
41014 cat >>conftest.$ac_ext <<_ACEOF
41015 /* end confdefs.h. */
41016 $ac_includes_default
41017 #include <$ac_header>
41019 rm -f conftest.$ac_objext
41020 if { (ac_try="$ac_compile"
41021 case "(($ac_try" in
41022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023 *) ac_try_echo=$ac_try;;
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026 (eval "$ac_compile") 2>conftest.er1
41028 grep -v '^ *+' conftest.er1 >conftest.err
41030 cat conftest.err >&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } && {
41033 test -z "$ac_c_werror_flag" ||
41034 test ! -s conftest.err
41035 } && test -s conftest.$ac_objext; then
41036 ac_header_compiler=yes
41038 echo "$as_me: failed program was:" >&5
41039 sed 's/^/| /' conftest.$ac_ext >&5
41041 ac_header_compiler=no
41044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41046 echo "${ECHO_T}$ac_header_compiler" >&6; }
41048 # Is the header present?
41049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41051 cat >conftest.$ac_ext <<_ACEOF
41054 cat confdefs.h >>conftest.$ac_ext
41055 cat >>conftest.$ac_ext <<_ACEOF
41056 /* end confdefs.h. */
41057 #include <$ac_header>
41059 if { (ac_try="$ac_cpp conftest.$ac_ext"
41060 case "(($ac_try" in
41061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41062 *) ac_try_echo=$ac_try;;
41064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41067 grep -v '^ *+' conftest.er1 >conftest.err
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } >/dev/null && {
41072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41073 test ! -s conftest.err
41075 ac_header_preproc=yes
41077 echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41080 ac_header_preproc=no
41083 rm -f conftest.err conftest.$ac_ext
41084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41085 echo "${ECHO_T}$ac_header_preproc" >&6; }
41087 # So? What about this header?
41088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41094 ac_header_preproc=yes
41097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41115 echo $ECHO_N "(cached) $ECHO_C" >&6
41117 eval "$as_ac_Header=\$ac_header_preproc"
41119 ac_res=`eval echo '${'$as_ac_Header'}'`
41120 { echo "$as_me:$LINENO: result: $ac_res" >&5
41121 echo "${ECHO_T}$ac_res" >&6; }
41124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41125 cat >>confdefs.h <<_ACEOF
41126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41133 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41134 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41135 if test "${ac_cv_lib_z_deflate+set}" = set; then
41136 echo $ECHO_N "(cached) $ECHO_C" >&6
41138 ac_check_lib_save_LIBS=$LIBS
41140 cat >conftest.$ac_ext <<_ACEOF
41143 cat confdefs.h >>conftest.$ac_ext
41144 cat >>conftest.$ac_ext <<_ACEOF
41145 /* end confdefs.h. */
41147 /* Override any GCC internal prototype to avoid an error.
41148 Use char because int might match the return type of a GCC
41149 builtin and then its argument prototype would still apply. */
41162 rm -f conftest.$ac_objext conftest$ac_exeext
41163 if { (ac_try="$ac_link"
41164 case "(($ac_try" in
41165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41166 *) ac_try_echo=$ac_try;;
41168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41169 (eval "$ac_link") 2>conftest.er1
41171 grep -v '^ *+' conftest.er1 >conftest.err
41173 cat conftest.err >&5
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); } && {
41176 test -z "$ac_c_werror_flag" ||
41177 test ! -s conftest.err
41178 } && test -s conftest$ac_exeext &&
41179 $as_test_x conftest$ac_exeext; then
41180 ac_cv_lib_z_deflate=yes
41182 echo "$as_me: failed program was:" >&5
41183 sed 's/^/| /' conftest.$ac_ext >&5
41185 ac_cv_lib_z_deflate=no
41188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41189 conftest$ac_exeext conftest.$ac_ext
41190 LIBS=$ac_check_lib_save_LIBS
41192 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41193 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41194 if test $ac_cv_lib_z_deflate = yes; then
41199 if test x$ZLIBS = x-lz; then
41200 cat >>confdefs.h <<\_ACEOF
41201 #define HAVE_LIBZ 1
41211 # Check whether --enable-afs was given.
41212 if test "${enable_afs+set}" = set; then
41213 enableval=$enable_afs;
41214 if test x$enableval = xyes; then
41216 elif test x$enableval = xno; then
41225 if test x$support_afs = xyes -o x$support_afs = xauto; then
41227 # Check whether --with-afsdir was given.
41228 if test "${with_afsdir+set}" = set; then
41229 withval=$with_afsdir; with_afsdir=$withval
41234 if test x$with_afsdir = x; then
41235 for root in /usr /usr/local; do
41236 if test -d ${root}/include/afs/ ; then
41237 with_afsdir=${root}
41243 AFS_CFLAGS="-I${with_afsdir}/include"
41245 saved_CFLAGS="${CFLAGS}"
41246 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
41249 for ac_header in afs/stds.h
41251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41256 echo $ECHO_N "(cached) $ECHO_C" >&6
41258 ac_res=`eval echo '${'$as_ac_Header'}'`
41259 { echo "$as_me:$LINENO: result: $ac_res" >&5
41260 echo "${ECHO_T}$ac_res" >&6; }
41262 # Is the header compilable?
41263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41265 cat >conftest.$ac_ext <<_ACEOF
41268 cat confdefs.h >>conftest.$ac_ext
41269 cat >>conftest.$ac_ext <<_ACEOF
41270 /* end confdefs.h. */
41271 $ac_includes_default
41272 #include <$ac_header>
41274 rm -f conftest.$ac_objext
41275 if { (ac_try="$ac_compile"
41276 case "(($ac_try" in
41277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41278 *) ac_try_echo=$ac_try;;
41280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41281 (eval "$ac_compile") 2>conftest.er1
41283 grep -v '^ *+' conftest.er1 >conftest.err
41285 cat conftest.err >&5
41286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287 (exit $ac_status); } && {
41288 test -z "$ac_c_werror_flag" ||
41289 test ! -s conftest.err
41290 } && test -s conftest.$ac_objext; then
41291 ac_header_compiler=yes
41293 echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41296 ac_header_compiler=no
41299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41301 echo "${ECHO_T}$ac_header_compiler" >&6; }
41303 # Is the header present?
41304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41306 cat >conftest.$ac_ext <<_ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h. */
41312 #include <$ac_header>
41314 if { (ac_try="$ac_cpp conftest.$ac_ext"
41315 case "(($ac_try" in
41316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41317 *) ac_try_echo=$ac_try;;
41319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41322 grep -v '^ *+' conftest.er1 >conftest.err
41324 cat conftest.err >&5
41325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326 (exit $ac_status); } >/dev/null && {
41327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41328 test ! -s conftest.err
41330 ac_header_preproc=yes
41332 echo "$as_me: failed program was:" >&5
41333 sed 's/^/| /' conftest.$ac_ext >&5
41335 ac_header_preproc=no
41338 rm -f conftest.err conftest.$ac_ext
41339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41340 echo "${ECHO_T}$ac_header_preproc" >&6; }
41342 # So? What about this header?
41343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41349 ac_header_preproc=yes
41352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41370 echo $ECHO_N "(cached) $ECHO_C" >&6
41372 eval "$as_ac_Header=\$ac_header_preproc"
41374 ac_res=`eval echo '${'$as_ac_Header'}'`
41375 { echo "$as_me:$LINENO: result: $ac_res" >&5
41376 echo "${ECHO_T}$ac_res" >&6; }
41379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41380 cat >>confdefs.h <<_ACEOF
41381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41389 CFLAGS="${saved_CFLAGS}"
41391 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
41393 for arch_type in .a .so
41395 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
41397 if test $pkg = 0; then
41399 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
41405 if test x$support_afs = xyes -a $have_afs != yes; then
41406 { { echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
41407 please either load the afs libraries or rerun configure without --enable-afs" >&5
41408 echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
41409 please either load the afs libraries or rerun configure without --enable-afs" >&2;}
41410 { (exit 1); exit 1; }; }
41412 if test $have_afs = yes; then
41414 cat >>confdefs.h <<\_ACEOF
41419 cat >>confdefs.h <<\_ACEOF
41420 #define HAVE_AFS_ACL 1
41431 # Check whether --enable-acl was given.
41432 if test "${enable_acl+set}" = set; then
41433 enableval=$enable_acl;
41434 if test x$enableval = xyes; then
41436 elif test x$enableval = xno; then
41445 have_extended_acl=no
41446 if test x$support_acl = xyes -o x$support_acl = xauto; then
41447 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41448 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41449 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41450 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41451 echo $ECHO_N "(cached) $ECHO_C" >&6
41453 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41454 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41456 # Is the header compilable?
41457 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41458 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41459 cat >conftest.$ac_ext <<_ACEOF
41462 cat confdefs.h >>conftest.$ac_ext
41463 cat >>conftest.$ac_ext <<_ACEOF
41464 /* end confdefs.h. */
41465 $ac_includes_default
41466 #include <sys/acl.h>
41468 rm -f conftest.$ac_objext
41469 if { (ac_try="$ac_compile"
41470 case "(($ac_try" in
41471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41472 *) ac_try_echo=$ac_try;;
41474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41475 (eval "$ac_compile") 2>conftest.er1
41477 grep -v '^ *+' conftest.er1 >conftest.err
41479 cat conftest.err >&5
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); } && {
41482 test -z "$ac_c_werror_flag" ||
41483 test ! -s conftest.err
41484 } && test -s conftest.$ac_objext; then
41485 ac_header_compiler=yes
41487 echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41490 ac_header_compiler=no
41493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41495 echo "${ECHO_T}$ac_header_compiler" >&6; }
41497 # Is the header present?
41498 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41499 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41500 cat >conftest.$ac_ext <<_ACEOF
41503 cat confdefs.h >>conftest.$ac_ext
41504 cat >>conftest.$ac_ext <<_ACEOF
41505 /* end confdefs.h. */
41506 #include <sys/acl.h>
41508 if { (ac_try="$ac_cpp conftest.$ac_ext"
41509 case "(($ac_try" in
41510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41511 *) ac_try_echo=$ac_try;;
41513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41516 grep -v '^ *+' conftest.er1 >conftest.err
41518 cat conftest.err >&5
41519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41520 (exit $ac_status); } >/dev/null && {
41521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41522 test ! -s conftest.err
41524 ac_header_preproc=yes
41526 echo "$as_me: failed program was:" >&5
41527 sed 's/^/| /' conftest.$ac_ext >&5
41529 ac_header_preproc=no
41532 rm -f conftest.err conftest.$ac_ext
41533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41534 echo "${ECHO_T}$ac_header_preproc" >&6; }
41536 # So? What about this header?
41537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41539 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41540 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41541 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41542 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41543 ac_header_preproc=yes
41546 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41547 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41548 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41549 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41550 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41551 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41552 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41553 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41554 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41555 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41556 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41557 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41561 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41562 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41563 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41564 echo $ECHO_N "(cached) $ECHO_C" >&6
41566 ac_cv_header_sys_acl_h=$ac_header_preproc
41568 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41569 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41572 if test $ac_cv_header_sys_acl_h = yes; then
41574 cat >>confdefs.h <<\_ACEOF
41575 #define HAVE_SYS_ACL_H 1
41581 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41582 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41583 if test "${ac_cv_func_acl_get_file+set}" = set; then
41584 echo $ECHO_N "(cached) $ECHO_C" >&6
41586 cat >conftest.$ac_ext <<_ACEOF
41589 cat confdefs.h >>conftest.$ac_ext
41590 cat >>conftest.$ac_ext <<_ACEOF
41591 /* end confdefs.h. */
41592 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41594 #define acl_get_file innocuous_acl_get_file
41596 /* System header to define __stub macros and hopefully few prototypes,
41597 which can conflict with char acl_get_file (); below.
41598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41599 <limits.h> exists even on freestanding compilers. */
41602 # include <limits.h>
41604 # include <assert.h>
41607 #undef acl_get_file
41609 /* Override any GCC internal prototype to avoid an error.
41610 Use char because int might match the return type of a GCC
41611 builtin and then its argument prototype would still apply. */
41615 char acl_get_file ();
41616 /* The GNU C library defines this for functions which it implements
41617 to always fail with ENOSYS. Some functions are actually named
41618 something starting with __ and the normal name is an alias. */
41619 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41626 return acl_get_file ();
41631 rm -f conftest.$ac_objext conftest$ac_exeext
41632 if { (ac_try="$ac_link"
41633 case "(($ac_try" in
41634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41635 *) ac_try_echo=$ac_try;;
41637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41638 (eval "$ac_link") 2>conftest.er1
41640 grep -v '^ *+' conftest.er1 >conftest.err
41642 cat conftest.err >&5
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); } && {
41645 test -z "$ac_c_werror_flag" ||
41646 test ! -s conftest.err
41647 } && test -s conftest$ac_exeext &&
41648 $as_test_x conftest$ac_exeext; then
41649 ac_cv_func_acl_get_file=yes
41651 echo "$as_me: failed program was:" >&5
41652 sed 's/^/| /' conftest.$ac_ext >&5
41654 ac_cv_func_acl_get_file=no
41657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41658 conftest$ac_exeext conftest.$ac_ext
41660 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41661 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41662 if test $ac_cv_func_acl_get_file = yes; then
41668 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41669 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41670 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41671 echo $ECHO_N "(cached) $ECHO_C" >&6
41673 ac_check_lib_save_LIBS=$LIBS
41675 cat >conftest.$ac_ext <<_ACEOF
41678 cat confdefs.h >>conftest.$ac_ext
41679 cat >>conftest.$ac_ext <<_ACEOF
41680 /* end confdefs.h. */
41682 /* Override any GCC internal prototype to avoid an error.
41683 Use char because int might match the return type of a GCC
41684 builtin and then its argument prototype would still apply. */
41688 char acl_get_file ();
41692 return acl_get_file ();
41697 rm -f conftest.$ac_objext conftest$ac_exeext
41698 if { (ac_try="$ac_link"
41699 case "(($ac_try" in
41700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41701 *) ac_try_echo=$ac_try;;
41703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41704 (eval "$ac_link") 2>conftest.er1
41706 grep -v '^ *+' conftest.er1 >conftest.err
41708 cat conftest.err >&5
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); } && {
41711 test -z "$ac_c_werror_flag" ||
41712 test ! -s conftest.err
41713 } && test -s conftest$ac_exeext &&
41714 $as_test_x conftest$ac_exeext; then
41715 ac_cv_lib_acl_acl_get_file=yes
41717 echo "$as_me: failed program was:" >&5
41718 sed 's/^/| /' conftest.$ac_ext >&5
41720 ac_cv_lib_acl_acl_get_file=no
41723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41724 conftest$ac_exeext conftest.$ac_ext
41725 LIBS=$ac_check_lib_save_LIBS
41727 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41728 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41729 if test $ac_cv_lib_acl_acl_get_file = yes; then
41732 if test $have_afs = yes; then
41733 if test -d /usr/lib64/; then
41734 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
41736 FDLIBS="-L/usr/lib -lacl $FDLIBS"
41739 FDLIBS="-lacl $FDLIBS"
41744 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41745 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41746 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41747 echo $ECHO_N "(cached) $ECHO_C" >&6
41749 ac_check_lib_save_LIBS=$LIBS
41750 LIBS="-lpacl $LIBS"
41751 cat >conftest.$ac_ext <<_ACEOF
41754 cat confdefs.h >>conftest.$ac_ext
41755 cat >>conftest.$ac_ext <<_ACEOF
41756 /* end confdefs.h. */
41758 /* Override any GCC internal prototype to avoid an error.
41759 Use char because int might match the return type of a GCC
41760 builtin and then its argument prototype would still apply. */
41764 char acl_get_file ();
41768 return acl_get_file ();
41773 rm -f conftest.$ac_objext conftest$ac_exeext
41774 if { (ac_try="$ac_link"
41775 case "(($ac_try" in
41776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41777 *) ac_try_echo=$ac_try;;
41779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41780 (eval "$ac_link") 2>conftest.er1
41782 grep -v '^ *+' conftest.er1 >conftest.err
41784 cat conftest.err >&5
41785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41786 (exit $ac_status); } && {
41787 test -z "$ac_c_werror_flag" ||
41788 test ! -s conftest.err
41789 } && test -s conftest$ac_exeext &&
41790 $as_test_x conftest$ac_exeext; then
41791 ac_cv_lib_pacl_acl_get_file=yes
41793 echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41796 ac_cv_lib_pacl_acl_get_file=no
41799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41800 conftest$ac_exeext conftest.$ac_ext
41801 LIBS=$ac_check_lib_save_LIBS
41803 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41804 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41805 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41808 FDLIBS="-lpacl $FDLIBS"
41812 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41813 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41814 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41815 echo $ECHO_N "(cached) $ECHO_C" >&6
41817 ac_check_lib_save_LIBS=$LIBS
41819 cat >conftest.$ac_ext <<_ACEOF
41822 cat confdefs.h >>conftest.$ac_ext
41823 cat >>conftest.$ac_ext <<_ACEOF
41824 /* end confdefs.h. */
41826 /* Override any GCC internal prototype to avoid an error.
41827 Use char because int might match the return type of a GCC
41828 builtin and then its argument prototype would still apply. */
41836 return acltotext ();
41841 rm -f conftest.$ac_objext conftest$ac_exeext
41842 if { (ac_try="$ac_link"
41843 case "(($ac_try" in
41844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41845 *) ac_try_echo=$ac_try;;
41847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41848 (eval "$ac_link") 2>conftest.er1
41850 grep -v '^ *+' conftest.er1 >conftest.err
41852 cat conftest.err >&5
41853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854 (exit $ac_status); } && {
41855 test -z "$ac_c_werror_flag" ||
41856 test ! -s conftest.err
41857 } && test -s conftest$ac_exeext &&
41858 $as_test_x conftest$ac_exeext; then
41859 ac_cv_lib_sec_acltotext=yes
41861 echo "$as_me: failed program was:" >&5
41862 sed 's/^/| /' conftest.$ac_ext >&5
41864 ac_cv_lib_sec_acltotext=no
41867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41868 conftest$ac_exeext conftest.$ac_ext
41869 LIBS=$ac_check_lib_save_LIBS
41871 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41872 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41873 if test $ac_cv_lib_sec_acltotext = yes; then
41876 FDLIBS="-lsec $FDLIBS"
41878 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41879 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41880 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41881 echo $ECHO_N "(cached) $ECHO_C" >&6
41883 ac_check_lib_save_LIBS=$LIBS
41885 cat >conftest.$ac_ext <<_ACEOF
41888 cat confdefs.h >>conftest.$ac_ext
41889 cat >>conftest.$ac_ext <<_ACEOF
41890 /* end confdefs.h. */
41892 /* Override any GCC internal prototype to avoid an error.
41893 Use char because int might match the return type of a GCC
41894 builtin and then its argument prototype would still apply. */
41898 char acl_totext ();
41902 return acl_totext ();
41907 rm -f conftest.$ac_objext conftest$ac_exeext
41908 if { (ac_try="$ac_link"
41909 case "(($ac_try" in
41910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41911 *) ac_try_echo=$ac_try;;
41913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41914 (eval "$ac_link") 2>conftest.er1
41916 grep -v '^ *+' conftest.er1 >conftest.err
41918 cat conftest.err >&5
41919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920 (exit $ac_status); } && {
41921 test -z "$ac_c_werror_flag" ||
41922 test ! -s conftest.err
41923 } && test -s conftest$ac_exeext &&
41924 $as_test_x conftest$ac_exeext; then
41925 ac_cv_lib_sec_acl_totext=yes
41927 echo "$as_me: failed program was:" >&5
41928 sed 's/^/| /' conftest.$ac_ext >&5
41930 ac_cv_lib_sec_acl_totext=no
41933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41934 conftest$ac_exeext conftest.$ac_ext
41935 LIBS=$ac_check_lib_save_LIBS
41937 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41938 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41939 if test $ac_cv_lib_sec_acl_totext = yes; then
41941 have_extended_acl=yes
41963 if test x$support_acl = xyes -a $have_acl != yes; then
41964 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41965 please either load the acl libraries or rerun configure without --enable-acl" >&5
41966 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41967 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41968 { (exit 1); exit 1; }; }
41970 if test $have_acl = yes; then
41972 cat >>confdefs.h <<\_ACEOF
41978 if test $have_extended_acl = yes; then
41980 cat >>confdefs.h <<\_ACEOF
41981 #define HAVE_EXTENDED_ACL 1
41989 # Check whether --enable-xattr was given.
41990 if test "${enable_xattr+set}" = set; then
41991 enableval=$enable_xattr;
41992 if test x$enableval = xyes; then
41994 elif test x$enableval = xno; then
42003 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42004 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42005 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42006 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42007 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42008 echo $ECHO_N "(cached) $ECHO_C" >&6
42010 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42011 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42013 # Is the header compilable?
42014 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42015 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
42016 cat >conftest.$ac_ext <<_ACEOF
42019 cat confdefs.h >>conftest.$ac_ext
42020 cat >>conftest.$ac_ext <<_ACEOF
42021 /* end confdefs.h. */
42022 $ac_includes_default
42023 #include <sys/extattr.h>
42025 rm -f conftest.$ac_objext
42026 if { (ac_try="$ac_compile"
42027 case "(($ac_try" in
42028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42029 *) ac_try_echo=$ac_try;;
42031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42032 (eval "$ac_compile") 2>conftest.er1
42034 grep -v '^ *+' conftest.er1 >conftest.err
42036 cat conftest.err >&5
42037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038 (exit $ac_status); } && {
42039 test -z "$ac_c_werror_flag" ||
42040 test ! -s conftest.err
42041 } && test -s conftest.$ac_objext; then
42042 ac_header_compiler=yes
42044 echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42047 ac_header_compiler=no
42050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42052 echo "${ECHO_T}$ac_header_compiler" >&6; }
42054 # Is the header present?
42055 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42056 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
42057 cat >conftest.$ac_ext <<_ACEOF
42060 cat confdefs.h >>conftest.$ac_ext
42061 cat >>conftest.$ac_ext <<_ACEOF
42062 /* end confdefs.h. */
42063 #include <sys/extattr.h>
42065 if { (ac_try="$ac_cpp conftest.$ac_ext"
42066 case "(($ac_try" in
42067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42068 *) ac_try_echo=$ac_try;;
42070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42073 grep -v '^ *+' conftest.er1 >conftest.err
42075 cat conftest.err >&5
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); } >/dev/null && {
42078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42079 test ! -s conftest.err
42081 ac_header_preproc=yes
42083 echo "$as_me: failed program was:" >&5
42084 sed 's/^/| /' conftest.$ac_ext >&5
42086 ac_header_preproc=no
42089 rm -f conftest.err conftest.$ac_ext
42090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42091 echo "${ECHO_T}$ac_header_preproc" >&6; }
42093 # So? What about this header?
42094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42096 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42097 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42098 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
42099 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
42100 ac_header_preproc=yes
42103 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
42104 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
42105 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
42106 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
42107 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
42108 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
42109 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
42110 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42111 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
42112 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
42113 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
42114 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
42118 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42119 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42120 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42121 echo $ECHO_N "(cached) $ECHO_C" >&6
42123 ac_cv_header_sys_extattr_h=$ac_header_preproc
42125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42126 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42129 if test $ac_cv_header_sys_extattr_h = yes; then
42131 cat >>confdefs.h <<\_ACEOF
42132 #define HAVE_SYS_EXTATTR_H 1
42138 if test "${ac_cv_header_libutil_h+set}" = set; then
42139 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42140 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42141 if test "${ac_cv_header_libutil_h+set}" = set; then
42142 echo $ECHO_N "(cached) $ECHO_C" >&6
42144 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42145 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42147 # Is the header compilable?
42148 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
42149 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
42150 cat >conftest.$ac_ext <<_ACEOF
42153 cat confdefs.h >>conftest.$ac_ext
42154 cat >>conftest.$ac_ext <<_ACEOF
42155 /* end confdefs.h. */
42156 $ac_includes_default
42157 #include <libutil.h>
42159 rm -f conftest.$ac_objext
42160 if { (ac_try="$ac_compile"
42161 case "(($ac_try" in
42162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42163 *) ac_try_echo=$ac_try;;
42165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42166 (eval "$ac_compile") 2>conftest.er1
42168 grep -v '^ *+' conftest.er1 >conftest.err
42170 cat conftest.err >&5
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); } && {
42173 test -z "$ac_c_werror_flag" ||
42174 test ! -s conftest.err
42175 } && test -s conftest.$ac_objext; then
42176 ac_header_compiler=yes
42178 echo "$as_me: failed program was:" >&5
42179 sed 's/^/| /' conftest.$ac_ext >&5
42181 ac_header_compiler=no
42184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42186 echo "${ECHO_T}$ac_header_compiler" >&6; }
42188 # Is the header present?
42189 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
42190 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
42191 cat >conftest.$ac_ext <<_ACEOF
42194 cat confdefs.h >>conftest.$ac_ext
42195 cat >>conftest.$ac_ext <<_ACEOF
42196 /* end confdefs.h. */
42197 #include <libutil.h>
42199 if { (ac_try="$ac_cpp conftest.$ac_ext"
42200 case "(($ac_try" in
42201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42202 *) ac_try_echo=$ac_try;;
42204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42207 grep -v '^ *+' conftest.er1 >conftest.err
42209 cat conftest.err >&5
42210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211 (exit $ac_status); } >/dev/null && {
42212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42213 test ! -s conftest.err
42215 ac_header_preproc=yes
42217 echo "$as_me: failed program was:" >&5
42218 sed 's/^/| /' conftest.$ac_ext >&5
42220 ac_header_preproc=no
42223 rm -f conftest.err conftest.$ac_ext
42224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42225 echo "${ECHO_T}$ac_header_preproc" >&6; }
42227 # So? What about this header?
42228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42230 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
42231 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42232 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
42233 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
42234 ac_header_preproc=yes
42237 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
42238 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
42239 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
42240 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
42241 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
42242 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
42243 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
42244 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
42245 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
42246 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
42247 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
42248 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
42252 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42253 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42254 if test "${ac_cv_header_libutil_h+set}" = set; then
42255 echo $ECHO_N "(cached) $ECHO_C" >&6
42257 ac_cv_header_libutil_h=$ac_header_preproc
42259 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42260 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42263 if test $ac_cv_header_libutil_h = yes; then
42265 cat >>confdefs.h <<\_ACEOF
42266 #define HAVE_LIBUTIL_H 1
42275 for ac_func in extattr_get_link extattr_set_link extattr_list_link
42277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42283 cat >conftest.$ac_ext <<_ACEOF
42286 cat confdefs.h >>conftest.$ac_ext
42287 cat >>conftest.$ac_ext <<_ACEOF
42288 /* end confdefs.h. */
42289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42291 #define $ac_func innocuous_$ac_func
42293 /* System header to define __stub macros and hopefully few prototypes,
42294 which can conflict with char $ac_func (); below.
42295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42296 <limits.h> exists even on freestanding compilers. */
42299 # include <limits.h>
42301 # include <assert.h>
42306 /* Override any GCC internal prototype to avoid an error.
42307 Use char because int might match the return type of a GCC
42308 builtin and then its argument prototype would still apply. */
42313 /* The GNU C library defines this for functions which it implements
42314 to always fail with ENOSYS. Some functions are actually named
42315 something starting with __ and the normal name is an alias. */
42316 #if defined __stub_$ac_func || defined __stub___$ac_func
42323 return $ac_func ();
42328 rm -f conftest.$ac_objext conftest$ac_exeext
42329 if { (ac_try="$ac_link"
42330 case "(($ac_try" in
42331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42332 *) ac_try_echo=$ac_try;;
42334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42335 (eval "$ac_link") 2>conftest.er1
42337 grep -v '^ *+' conftest.er1 >conftest.err
42339 cat conftest.err >&5
42340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341 (exit $ac_status); } && {
42342 test -z "$ac_c_werror_flag" ||
42343 test ! -s conftest.err
42344 } && test -s conftest$ac_exeext &&
42345 $as_test_x conftest$ac_exeext; then
42346 eval "$as_ac_var=yes"
42348 echo "$as_me: failed program was:" >&5
42349 sed 's/^/| /' conftest.$ac_ext >&5
42351 eval "$as_ac_var=no"
42354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42355 conftest$ac_exeext conftest.$ac_ext
42357 ac_res=`eval echo '${'$as_ac_var'}'`
42358 { echo "$as_me:$LINENO: result: $ac_res" >&5
42359 echo "${ECHO_T}$ac_res" >&6; }
42360 if test `eval echo '${'$as_ac_var'}'` = yes; then
42361 cat >>confdefs.h <<_ACEOF
42362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42367 cat >>confdefs.h <<\_ACEOF
42368 #define HAVE_EXTATTR_GET_LINK 1
42372 cat >>confdefs.h <<\_ACEOF
42373 #define HAVE_EXTATTR_SET_LINK 1
42377 cat >>confdefs.h <<\_ACEOF
42378 #define HAVE_EXTATTR_LIST_LINK 1
42387 if test $have_xattr = no; then
42391 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42397 echo $ECHO_N "(cached) $ECHO_C" >&6
42399 cat >conftest.$ac_ext <<_ACEOF
42402 cat confdefs.h >>conftest.$ac_ext
42403 cat >>conftest.$ac_ext <<_ACEOF
42404 /* end confdefs.h. */
42405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42407 #define $ac_func innocuous_$ac_func
42409 /* System header to define __stub macros and hopefully few prototypes,
42410 which can conflict with char $ac_func (); below.
42411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42412 <limits.h> exists even on freestanding compilers. */
42415 # include <limits.h>
42417 # include <assert.h>
42422 /* Override any GCC internal prototype to avoid an error.
42423 Use char because int might match the return type of a GCC
42424 builtin and then its argument prototype would still apply. */
42429 /* The GNU C library defines this for functions which it implements
42430 to always fail with ENOSYS. Some functions are actually named
42431 something starting with __ and the normal name is an alias. */
42432 #if defined __stub_$ac_func || defined __stub___$ac_func
42439 return $ac_func ();
42444 rm -f conftest.$ac_objext conftest$ac_exeext
42445 if { (ac_try="$ac_link"
42446 case "(($ac_try" in
42447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42448 *) ac_try_echo=$ac_try;;
42450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42451 (eval "$ac_link") 2>conftest.er1
42453 grep -v '^ *+' conftest.er1 >conftest.err
42455 cat conftest.err >&5
42456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42457 (exit $ac_status); } && {
42458 test -z "$ac_c_werror_flag" ||
42459 test ! -s conftest.err
42460 } && test -s conftest$ac_exeext &&
42461 $as_test_x conftest$ac_exeext; then
42462 eval "$as_ac_var=yes"
42464 echo "$as_me: failed program was:" >&5
42465 sed 's/^/| /' conftest.$ac_ext >&5
42467 eval "$as_ac_var=no"
42470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42471 conftest$ac_exeext conftest.$ac_ext
42473 ac_res=`eval echo '${'$as_ac_var'}'`
42474 { echo "$as_me:$LINENO: result: $ac_res" >&5
42475 echo "${ECHO_T}$ac_res" >&6; }
42476 if test `eval echo '${'$as_ac_var'}'` = yes; then
42477 cat >>confdefs.h <<_ACEOF
42478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42483 cat >>confdefs.h <<\_ACEOF
42484 #define HAVE_EXTATTR_GET_FILE 1
42488 cat >>confdefs.h <<\_ACEOF
42489 #define HAVE_EXTATTR_SET_FILE 1
42493 cat >>confdefs.h <<\_ACEOF
42494 #define HAVE_EXTATTR_LIST_FILE 1
42504 if test $have_xattr = yes; then
42505 have_extattr_string_in_libc=no
42508 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42514 echo $ECHO_N "(cached) $ECHO_C" >&6
42516 cat >conftest.$ac_ext <<_ACEOF
42519 cat confdefs.h >>conftest.$ac_ext
42520 cat >>conftest.$ac_ext <<_ACEOF
42521 /* end confdefs.h. */
42522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42524 #define $ac_func innocuous_$ac_func
42526 /* System header to define __stub macros and hopefully few prototypes,
42527 which can conflict with char $ac_func (); below.
42528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42529 <limits.h> exists even on freestanding compilers. */
42532 # include <limits.h>
42534 # include <assert.h>
42539 /* Override any GCC internal prototype to avoid an error.
42540 Use char because int might match the return type of a GCC
42541 builtin and then its argument prototype would still apply. */
42546 /* The GNU C library defines this for functions which it implements
42547 to always fail with ENOSYS. Some functions are actually named
42548 something starting with __ and the normal name is an alias. */
42549 #if defined __stub_$ac_func || defined __stub___$ac_func
42556 return $ac_func ();
42561 rm -f conftest.$ac_objext conftest$ac_exeext
42562 if { (ac_try="$ac_link"
42563 case "(($ac_try" in
42564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42565 *) ac_try_echo=$ac_try;;
42567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42568 (eval "$ac_link") 2>conftest.er1
42570 grep -v '^ *+' conftest.er1 >conftest.err
42572 cat conftest.err >&5
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } && {
42575 test -z "$ac_c_werror_flag" ||
42576 test ! -s conftest.err
42577 } && test -s conftest$ac_exeext &&
42578 $as_test_x conftest$ac_exeext; then
42579 eval "$as_ac_var=yes"
42581 echo "$as_me: failed program was:" >&5
42582 sed 's/^/| /' conftest.$ac_ext >&5
42584 eval "$as_ac_var=no"
42587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42588 conftest$ac_exeext conftest.$ac_ext
42590 ac_res=`eval echo '${'$as_ac_var'}'`
42591 { echo "$as_me:$LINENO: result: $ac_res" >&5
42592 echo "${ECHO_T}$ac_res" >&6; }
42593 if test `eval echo '${'$as_ac_var'}'` = yes; then
42594 cat >>confdefs.h <<_ACEOF
42595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42598 have_extattr_string_in_libc=yes
42600 cat >>confdefs.h <<\_ACEOF
42601 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42605 cat >>confdefs.h <<\_ACEOF
42606 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42615 if test $have_extattr_string_in_libc = no; then
42616 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42617 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42618 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42619 echo $ECHO_N "(cached) $ECHO_C" >&6
42621 ac_check_lib_save_LIBS=$LIBS
42622 LIBS="-lutil $LIBS"
42623 cat >conftest.$ac_ext <<_ACEOF
42626 cat confdefs.h >>conftest.$ac_ext
42627 cat >>conftest.$ac_ext <<_ACEOF
42628 /* end confdefs.h. */
42630 /* Override any GCC internal prototype to avoid an error.
42631 Use char because int might match the return type of a GCC
42632 builtin and then its argument prototype would still apply. */
42636 char extattr_namespace_to_string extattr_string_to_namespace ();
42640 return extattr_namespace_to_string extattr_string_to_namespace ();
42645 rm -f conftest.$ac_objext conftest$ac_exeext
42646 if { (ac_try="$ac_link"
42647 case "(($ac_try" in
42648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42649 *) ac_try_echo=$ac_try;;
42651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42652 (eval "$ac_link") 2>conftest.er1
42654 grep -v '^ *+' conftest.er1 >conftest.err
42656 cat conftest.err >&5
42657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658 (exit $ac_status); } && {
42659 test -z "$ac_c_werror_flag" ||
42660 test ! -s conftest.err
42661 } && test -s conftest$ac_exeext &&
42662 $as_test_x conftest$ac_exeext; then
42663 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42665 echo "$as_me: failed program was:" >&5
42666 sed 's/^/| /' conftest.$ac_ext >&5
42668 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42672 conftest$ac_exeext conftest.$ac_ext
42673 LIBS=$ac_check_lib_save_LIBS
42675 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42676 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42677 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42680 cat >>confdefs.h <<\_ACEOF
42681 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42685 cat >>confdefs.h <<\_ACEOF
42686 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42689 FDLIBS="-lutil $FDLIBS"
42697 if test $have_xattr = no; then
42698 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42699 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42700 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42701 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42702 echo $ECHO_N "(cached) $ECHO_C" >&6
42704 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42705 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42707 # Is the header compilable?
42708 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42709 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42710 cat >conftest.$ac_ext <<_ACEOF
42713 cat confdefs.h >>conftest.$ac_ext
42714 cat >>conftest.$ac_ext <<_ACEOF
42715 /* end confdefs.h. */
42716 $ac_includes_default
42717 #include <sys/xattr.h>
42719 rm -f conftest.$ac_objext
42720 if { (ac_try="$ac_compile"
42721 case "(($ac_try" in
42722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42723 *) ac_try_echo=$ac_try;;
42725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42726 (eval "$ac_compile") 2>conftest.er1
42728 grep -v '^ *+' conftest.er1 >conftest.err
42730 cat conftest.err >&5
42731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732 (exit $ac_status); } && {
42733 test -z "$ac_c_werror_flag" ||
42734 test ! -s conftest.err
42735 } && test -s conftest.$ac_objext; then
42736 ac_header_compiler=yes
42738 echo "$as_me: failed program was:" >&5
42739 sed 's/^/| /' conftest.$ac_ext >&5
42741 ac_header_compiler=no
42744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42746 echo "${ECHO_T}$ac_header_compiler" >&6; }
42748 # Is the header present?
42749 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42750 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42751 cat >conftest.$ac_ext <<_ACEOF
42754 cat confdefs.h >>conftest.$ac_ext
42755 cat >>conftest.$ac_ext <<_ACEOF
42756 /* end confdefs.h. */
42757 #include <sys/xattr.h>
42759 if { (ac_try="$ac_cpp conftest.$ac_ext"
42760 case "(($ac_try" in
42761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42762 *) ac_try_echo=$ac_try;;
42764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42767 grep -v '^ *+' conftest.er1 >conftest.err
42769 cat conftest.err >&5
42770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42771 (exit $ac_status); } >/dev/null && {
42772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42773 test ! -s conftest.err
42775 ac_header_preproc=yes
42777 echo "$as_me: failed program was:" >&5
42778 sed 's/^/| /' conftest.$ac_ext >&5
42780 ac_header_preproc=no
42783 rm -f conftest.err conftest.$ac_ext
42784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42785 echo "${ECHO_T}$ac_header_preproc" >&6; }
42787 # So? What about this header?
42788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42790 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42791 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42792 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42793 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42794 ac_header_preproc=yes
42797 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42798 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42799 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42800 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42801 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42802 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42803 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42804 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42805 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42806 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42807 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42808 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42812 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42813 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42814 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42815 echo $ECHO_N "(cached) $ECHO_C" >&6
42817 ac_cv_header_sys_xattr_h=$ac_header_preproc
42819 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42820 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42823 if test $ac_cv_header_sys_xattr_h = yes; then
42825 cat >>confdefs.h <<\_ACEOF
42826 #define HAVE_SYS_XATTR_H 1
42835 for ac_func in llistxattr lgetxattr lsetxattr
42837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42841 echo $ECHO_N "(cached) $ECHO_C" >&6
42843 cat >conftest.$ac_ext <<_ACEOF
42846 cat confdefs.h >>conftest.$ac_ext
42847 cat >>conftest.$ac_ext <<_ACEOF
42848 /* end confdefs.h. */
42849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42851 #define $ac_func innocuous_$ac_func
42853 /* System header to define __stub macros and hopefully few prototypes,
42854 which can conflict with char $ac_func (); below.
42855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42856 <limits.h> exists even on freestanding compilers. */
42859 # include <limits.h>
42861 # include <assert.h>
42866 /* Override any GCC internal prototype to avoid an error.
42867 Use char because int might match the return type of a GCC
42868 builtin and then its argument prototype would still apply. */
42873 /* The GNU C library defines this for functions which it implements
42874 to always fail with ENOSYS. Some functions are actually named
42875 something starting with __ and the normal name is an alias. */
42876 #if defined __stub_$ac_func || defined __stub___$ac_func
42883 return $ac_func ();
42888 rm -f conftest.$ac_objext conftest$ac_exeext
42889 if { (ac_try="$ac_link"
42890 case "(($ac_try" in
42891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42892 *) ac_try_echo=$ac_try;;
42894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42895 (eval "$ac_link") 2>conftest.er1
42897 grep -v '^ *+' conftest.er1 >conftest.err
42899 cat conftest.err >&5
42900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901 (exit $ac_status); } && {
42902 test -z "$ac_c_werror_flag" ||
42903 test ! -s conftest.err
42904 } && test -s conftest$ac_exeext &&
42905 $as_test_x conftest$ac_exeext; then
42906 eval "$as_ac_var=yes"
42908 echo "$as_me: failed program was:" >&5
42909 sed 's/^/| /' conftest.$ac_ext >&5
42911 eval "$as_ac_var=no"
42914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42915 conftest$ac_exeext conftest.$ac_ext
42917 ac_res=`eval echo '${'$as_ac_var'}'`
42918 { echo "$as_me:$LINENO: result: $ac_res" >&5
42919 echo "${ECHO_T}$ac_res" >&6; }
42920 if test `eval echo '${'$as_ac_var'}'` = yes; then
42921 cat >>confdefs.h <<_ACEOF
42922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42927 cat >>confdefs.h <<\_ACEOF
42928 #define HAVE_LLISTXATTR 1
42932 cat >>confdefs.h <<\_ACEOF
42933 #define HAVE_LGETXATTR 1
42937 cat >>confdefs.h <<\_ACEOF
42938 #define HAVE_LSETXATTR 1
42947 if test $have_xattr = no; then
42951 for ac_func in listxattr getxattr setxattr
42953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42957 echo $ECHO_N "(cached) $ECHO_C" >&6
42959 cat >conftest.$ac_ext <<_ACEOF
42962 cat confdefs.h >>conftest.$ac_ext
42963 cat >>conftest.$ac_ext <<_ACEOF
42964 /* end confdefs.h. */
42965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42967 #define $ac_func innocuous_$ac_func
42969 /* System header to define __stub macros and hopefully few prototypes,
42970 which can conflict with char $ac_func (); below.
42971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42972 <limits.h> exists even on freestanding compilers. */
42975 # include <limits.h>
42977 # include <assert.h>
42982 /* Override any GCC internal prototype to avoid an error.
42983 Use char because int might match the return type of a GCC
42984 builtin and then its argument prototype would still apply. */
42989 /* The GNU C library defines this for functions which it implements
42990 to always fail with ENOSYS. Some functions are actually named
42991 something starting with __ and the normal name is an alias. */
42992 #if defined __stub_$ac_func || defined __stub___$ac_func
42999 return $ac_func ();
43004 rm -f conftest.$ac_objext conftest$ac_exeext
43005 if { (ac_try="$ac_link"
43006 case "(($ac_try" in
43007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43008 *) ac_try_echo=$ac_try;;
43010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43011 (eval "$ac_link") 2>conftest.er1
43013 grep -v '^ *+' conftest.er1 >conftest.err
43015 cat conftest.err >&5
43016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017 (exit $ac_status); } && {
43018 test -z "$ac_c_werror_flag" ||
43019 test ! -s conftest.err
43020 } && test -s conftest$ac_exeext &&
43021 $as_test_x conftest$ac_exeext; then
43022 eval "$as_ac_var=yes"
43024 echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43027 eval "$as_ac_var=no"
43030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43031 conftest$ac_exeext conftest.$ac_ext
43033 ac_res=`eval echo '${'$as_ac_var'}'`
43034 { echo "$as_me:$LINENO: result: $ac_res" >&5
43035 echo "${ECHO_T}$ac_res" >&6; }
43036 if test `eval echo '${'$as_ac_var'}'` = yes; then
43037 cat >>confdefs.h <<_ACEOF
43038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43043 cat >>confdefs.h <<\_ACEOF
43044 #define HAVE_LISTXATTR 1
43048 cat >>confdefs.h <<\_ACEOF
43049 #define HAVE_GETXATTR 1
43053 cat >>confdefs.h <<\_ACEOF
43054 #define HAVE_SETXATTR 1
43065 if test $have_xattr = no; then
43066 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43067 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43068 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43069 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43070 echo $ECHO_N "(cached) $ECHO_C" >&6
43072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43073 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43075 # Is the header compilable?
43076 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
43077 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
43078 cat >conftest.$ac_ext <<_ACEOF
43081 cat confdefs.h >>conftest.$ac_ext
43082 cat >>conftest.$ac_ext <<_ACEOF
43083 /* end confdefs.h. */
43084 $ac_includes_default
43085 #include <sys/attr.h>
43087 rm -f conftest.$ac_objext
43088 if { (ac_try="$ac_compile"
43089 case "(($ac_try" in
43090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43091 *) ac_try_echo=$ac_try;;
43093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43094 (eval "$ac_compile") 2>conftest.er1
43096 grep -v '^ *+' conftest.er1 >conftest.err
43098 cat conftest.err >&5
43099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100 (exit $ac_status); } && {
43101 test -z "$ac_c_werror_flag" ||
43102 test ! -s conftest.err
43103 } && test -s conftest.$ac_objext; then
43104 ac_header_compiler=yes
43106 echo "$as_me: failed program was:" >&5
43107 sed 's/^/| /' conftest.$ac_ext >&5
43109 ac_header_compiler=no
43112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43114 echo "${ECHO_T}$ac_header_compiler" >&6; }
43116 # Is the header present?
43117 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
43118 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
43119 cat >conftest.$ac_ext <<_ACEOF
43122 cat confdefs.h >>conftest.$ac_ext
43123 cat >>conftest.$ac_ext <<_ACEOF
43124 /* end confdefs.h. */
43125 #include <sys/attr.h>
43127 if { (ac_try="$ac_cpp conftest.$ac_ext"
43128 case "(($ac_try" in
43129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43130 *) ac_try_echo=$ac_try;;
43132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43135 grep -v '^ *+' conftest.er1 >conftest.err
43137 cat conftest.err >&5
43138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43139 (exit $ac_status); } >/dev/null && {
43140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43141 test ! -s conftest.err
43143 ac_header_preproc=yes
43145 echo "$as_me: failed program was:" >&5
43146 sed 's/^/| /' conftest.$ac_ext >&5
43148 ac_header_preproc=no
43151 rm -f conftest.err conftest.$ac_ext
43152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43153 echo "${ECHO_T}$ac_header_preproc" >&6; }
43155 # So? What about this header?
43156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43158 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43159 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43160 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
43161 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
43162 ac_header_preproc=yes
43165 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
43166 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
43167 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
43168 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
43169 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
43170 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
43171 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
43172 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43173 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
43174 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
43175 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
43176 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
43180 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43181 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43182 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43183 echo $ECHO_N "(cached) $ECHO_C" >&6
43185 ac_cv_header_sys_attr_h=$ac_header_preproc
43187 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43188 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43191 if test $ac_cv_header_sys_attr_h = yes; then
43193 cat >>confdefs.h <<\_ACEOF
43194 #define HAVE_SYS_ATTR_H 1
43200 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43201 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43202 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43203 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43204 echo $ECHO_N "(cached) $ECHO_C" >&6
43206 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43207 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43209 # Is the header compilable?
43210 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
43211 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
43212 cat >conftest.$ac_ext <<_ACEOF
43215 cat confdefs.h >>conftest.$ac_ext
43216 cat >>conftest.$ac_ext <<_ACEOF
43217 /* end confdefs.h. */
43218 $ac_includes_default
43219 #include <sys/nvpair.h>
43221 rm -f conftest.$ac_objext
43222 if { (ac_try="$ac_compile"
43223 case "(($ac_try" in
43224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43225 *) ac_try_echo=$ac_try;;
43227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43228 (eval "$ac_compile") 2>conftest.er1
43230 grep -v '^ *+' conftest.er1 >conftest.err
43232 cat conftest.err >&5
43233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234 (exit $ac_status); } && {
43235 test -z "$ac_c_werror_flag" ||
43236 test ! -s conftest.err
43237 } && test -s conftest.$ac_objext; then
43238 ac_header_compiler=yes
43240 echo "$as_me: failed program was:" >&5
43241 sed 's/^/| /' conftest.$ac_ext >&5
43243 ac_header_compiler=no
43246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43248 echo "${ECHO_T}$ac_header_compiler" >&6; }
43250 # Is the header present?
43251 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
43252 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
43253 cat >conftest.$ac_ext <<_ACEOF
43256 cat confdefs.h >>conftest.$ac_ext
43257 cat >>conftest.$ac_ext <<_ACEOF
43258 /* end confdefs.h. */
43259 #include <sys/nvpair.h>
43261 if { (ac_try="$ac_cpp conftest.$ac_ext"
43262 case "(($ac_try" in
43263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43264 *) ac_try_echo=$ac_try;;
43266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43269 grep -v '^ *+' conftest.er1 >conftest.err
43271 cat conftest.err >&5
43272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43273 (exit $ac_status); } >/dev/null && {
43274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43275 test ! -s conftest.err
43277 ac_header_preproc=yes
43279 echo "$as_me: failed program was:" >&5
43280 sed 's/^/| /' conftest.$ac_ext >&5
43282 ac_header_preproc=no
43285 rm -f conftest.err conftest.$ac_ext
43286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43287 echo "${ECHO_T}$ac_header_preproc" >&6; }
43289 # So? What about this header?
43290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43292 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
43293 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43294 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
43295 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
43296 ac_header_preproc=yes
43299 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
43300 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
43301 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
43302 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
43303 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
43304 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
43305 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
43306 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
43307 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
43308 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
43309 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
43310 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
43314 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43315 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43316 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43317 echo $ECHO_N "(cached) $ECHO_C" >&6
43319 ac_cv_header_sys_nvpair_h=$ac_header_preproc
43321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43322 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43325 if test $ac_cv_header_sys_nvpair_h = yes; then
43327 cat >>confdefs.h <<\_ACEOF
43328 #define HAVE_SYS_NVPAIR_H 1
43334 if test "${ac_cv_header_attr_h+set}" = set; then
43335 { echo "$as_me:$LINENO: checking for attr.h" >&5
43336 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43337 if test "${ac_cv_header_attr_h+set}" = set; then
43338 echo $ECHO_N "(cached) $ECHO_C" >&6
43340 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43341 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43343 # Is the header compilable?
43344 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43345 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43346 cat >conftest.$ac_ext <<_ACEOF
43349 cat confdefs.h >>conftest.$ac_ext
43350 cat >>conftest.$ac_ext <<_ACEOF
43351 /* end confdefs.h. */
43352 $ac_includes_default
43355 rm -f conftest.$ac_objext
43356 if { (ac_try="$ac_compile"
43357 case "(($ac_try" in
43358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43359 *) ac_try_echo=$ac_try;;
43361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43362 (eval "$ac_compile") 2>conftest.er1
43364 grep -v '^ *+' conftest.er1 >conftest.err
43366 cat conftest.err >&5
43367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43368 (exit $ac_status); } && {
43369 test -z "$ac_c_werror_flag" ||
43370 test ! -s conftest.err
43371 } && test -s conftest.$ac_objext; then
43372 ac_header_compiler=yes
43374 echo "$as_me: failed program was:" >&5
43375 sed 's/^/| /' conftest.$ac_ext >&5
43377 ac_header_compiler=no
43380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43382 echo "${ECHO_T}$ac_header_compiler" >&6; }
43384 # Is the header present?
43385 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43386 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43387 cat >conftest.$ac_ext <<_ACEOF
43390 cat confdefs.h >>conftest.$ac_ext
43391 cat >>conftest.$ac_ext <<_ACEOF
43392 /* end confdefs.h. */
43395 if { (ac_try="$ac_cpp conftest.$ac_ext"
43396 case "(($ac_try" in
43397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43398 *) ac_try_echo=$ac_try;;
43400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43403 grep -v '^ *+' conftest.er1 >conftest.err
43405 cat conftest.err >&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); } >/dev/null && {
43408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43409 test ! -s conftest.err
43411 ac_header_preproc=yes
43413 echo "$as_me: failed program was:" >&5
43414 sed 's/^/| /' conftest.$ac_ext >&5
43416 ac_header_preproc=no
43419 rm -f conftest.err conftest.$ac_ext
43420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43421 echo "${ECHO_T}$ac_header_preproc" >&6; }
43423 # So? What about this header?
43424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43426 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43427 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43428 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43429 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43430 ac_header_preproc=yes
43433 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43434 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43435 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
43436 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
43437 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43438 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43439 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
43440 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43441 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43442 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43443 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43444 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43448 { echo "$as_me:$LINENO: checking for attr.h" >&5
43449 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43450 if test "${ac_cv_header_attr_h+set}" = set; then
43451 echo $ECHO_N "(cached) $ECHO_C" >&6
43453 ac_cv_header_attr_h=$ac_header_preproc
43455 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43456 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43459 if test $ac_cv_header_attr_h = yes; then
43461 cat >>confdefs.h <<\_ACEOF
43462 #define HAVE_ATTR_H 1
43474 for ac_func in openat fstatat unlinkat fchownat futimesat
43476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43480 echo $ECHO_N "(cached) $ECHO_C" >&6
43482 cat >conftest.$ac_ext <<_ACEOF
43485 cat confdefs.h >>conftest.$ac_ext
43486 cat >>conftest.$ac_ext <<_ACEOF
43487 /* end confdefs.h. */
43488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43490 #define $ac_func innocuous_$ac_func
43492 /* System header to define __stub macros and hopefully few prototypes,
43493 which can conflict with char $ac_func (); below.
43494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43495 <limits.h> exists even on freestanding compilers. */
43498 # include <limits.h>
43500 # include <assert.h>
43505 /* Override any GCC internal prototype to avoid an error.
43506 Use char because int might match the return type of a GCC
43507 builtin and then its argument prototype would still apply. */
43512 /* The GNU C library defines this for functions which it implements
43513 to always fail with ENOSYS. Some functions are actually named
43514 something starting with __ and the normal name is an alias. */
43515 #if defined __stub_$ac_func || defined __stub___$ac_func
43522 return $ac_func ();
43527 rm -f conftest.$ac_objext conftest$ac_exeext
43528 if { (ac_try="$ac_link"
43529 case "(($ac_try" in
43530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43531 *) ac_try_echo=$ac_try;;
43533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43534 (eval "$ac_link") 2>conftest.er1
43536 grep -v '^ *+' conftest.er1 >conftest.err
43538 cat conftest.err >&5
43539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43540 (exit $ac_status); } && {
43541 test -z "$ac_c_werror_flag" ||
43542 test ! -s conftest.err
43543 } && test -s conftest$ac_exeext &&
43544 $as_test_x conftest$ac_exeext; then
43545 eval "$as_ac_var=yes"
43547 echo "$as_me: failed program was:" >&5
43548 sed 's/^/| /' conftest.$ac_ext >&5
43550 eval "$as_ac_var=no"
43553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43554 conftest$ac_exeext conftest.$ac_ext
43556 ac_res=`eval echo '${'$as_ac_var'}'`
43557 { echo "$as_me:$LINENO: result: $ac_res" >&5
43558 echo "${ECHO_T}$ac_res" >&6; }
43559 if test `eval echo '${'$as_ac_var'}'` = yes; then
43560 cat >>confdefs.h <<_ACEOF
43561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43566 cat >>confdefs.h <<\_ACEOF
43567 #define HAVE_OPENAT 1
43571 cat >>confdefs.h <<\_ACEOF
43572 #define HAVE_FSTATAT 1
43576 cat >>confdefs.h <<\_ACEOF
43577 #define HAVE_UNLINKAT 1
43581 cat >>confdefs.h <<\_ACEOF
43582 #define HAVE_FCHOWNAT 1
43586 cat >>confdefs.h <<\_ACEOF
43587 #define HAVE_FUTIMESAT 1
43596 if test $have_xattr = yes; then
43597 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43598 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43599 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43600 echo $ECHO_N "(cached) $ECHO_C" >&6
43602 ac_check_lib_save_LIBS=$LIBS
43603 LIBS="-lnvpair $LIBS"
43604 cat >conftest.$ac_ext <<_ACEOF
43607 cat confdefs.h >>conftest.$ac_ext
43608 cat >>conftest.$ac_ext <<_ACEOF
43609 /* end confdefs.h. */
43611 /* Override any GCC internal prototype to avoid an error.
43612 Use char because int might match the return type of a GCC
43613 builtin and then its argument prototype would still apply. */
43617 char nvlist_next_nvpair ();
43621 return nvlist_next_nvpair ();
43626 rm -f conftest.$ac_objext conftest$ac_exeext
43627 if { (ac_try="$ac_link"
43628 case "(($ac_try" in
43629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43630 *) ac_try_echo=$ac_try;;
43632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43633 (eval "$ac_link") 2>conftest.er1
43635 grep -v '^ *+' conftest.er1 >conftest.err
43637 cat conftest.err >&5
43638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639 (exit $ac_status); } && {
43640 test -z "$ac_c_werror_flag" ||
43641 test ! -s conftest.err
43642 } && test -s conftest$ac_exeext &&
43643 $as_test_x conftest$ac_exeext; then
43644 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43646 echo "$as_me: failed program was:" >&5
43647 sed 's/^/| /' conftest.$ac_ext >&5
43649 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43653 conftest$ac_exeext conftest.$ac_ext
43654 LIBS=$ac_check_lib_save_LIBS
43656 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43657 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43658 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43661 cat >>confdefs.h <<\_ACEOF
43662 #define HAVE_NVLIST_NEXT_NVPAIR 1
43665 FDLIBS="-lnvpair $FDLIBS"
43673 if test x$support_xattr = xyes -a $have_xattr != yes; then
43674 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43675 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43676 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43677 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43678 { (exit 1); exit 1; }; }
43680 if test $have_xattr = yes; then
43682 cat >>confdefs.h <<\_ACEOF
43683 #define HAVE_XATTR 1
43691 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43692 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43693 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43694 echo $ECHO_N "(cached) $ECHO_C" >&6
43696 ac_check_lib_save_LIBS=$LIBS
43697 LIBS="-lpthread $LIBS"
43698 cat >conftest.$ac_ext <<_ACEOF
43701 cat confdefs.h >>conftest.$ac_ext
43702 cat >>conftest.$ac_ext <<_ACEOF
43703 /* end confdefs.h. */
43705 /* Override any GCC internal prototype to avoid an error.
43706 Use char because int might match the return type of a GCC
43707 builtin and then its argument prototype would still apply. */
43711 char pthread_create ();
43715 return pthread_create ();
43720 rm -f conftest.$ac_objext conftest$ac_exeext
43721 if { (ac_try="$ac_link"
43722 case "(($ac_try" in
43723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43724 *) ac_try_echo=$ac_try;;
43726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43727 (eval "$ac_link") 2>conftest.er1
43729 grep -v '^ *+' conftest.er1 >conftest.err
43731 cat conftest.err >&5
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); } && {
43734 test -z "$ac_c_werror_flag" ||
43735 test ! -s conftest.err
43736 } && test -s conftest$ac_exeext &&
43737 $as_test_x conftest$ac_exeext; then
43738 ac_cv_lib_pthread_pthread_create=yes
43740 echo "$as_me: failed program was:" >&5
43741 sed 's/^/| /' conftest.$ac_ext >&5
43743 ac_cv_lib_pthread_pthread_create=no
43746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43747 conftest$ac_exeext conftest.$ac_ext
43748 LIBS=$ac_check_lib_save_LIBS
43750 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43751 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43752 if test $ac_cv_lib_pthread_pthread_create = yes; then
43753 PTHREAD_LIB="-lpthread"
43756 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43757 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43758 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43759 echo $ECHO_N "(cached) $ECHO_C" >&6
43761 ac_check_lib_save_LIBS=$LIBS
43762 LIBS="-lpthreads $LIBS"
43763 cat >conftest.$ac_ext <<_ACEOF
43766 cat confdefs.h >>conftest.$ac_ext
43767 cat >>conftest.$ac_ext <<_ACEOF
43768 /* end confdefs.h. */
43770 /* Override any GCC internal prototype to avoid an error.
43771 Use char because int might match the return type of a GCC
43772 builtin and then its argument prototype would still apply. */
43776 char pthread_create ();
43780 return pthread_create ();
43785 rm -f conftest.$ac_objext conftest$ac_exeext
43786 if { (ac_try="$ac_link"
43787 case "(($ac_try" in
43788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43789 *) ac_try_echo=$ac_try;;
43791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43792 (eval "$ac_link") 2>conftest.er1
43794 grep -v '^ *+' conftest.er1 >conftest.err
43796 cat conftest.err >&5
43797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43798 (exit $ac_status); } && {
43799 test -z "$ac_c_werror_flag" ||
43800 test ! -s conftest.err
43801 } && test -s conftest$ac_exeext &&
43802 $as_test_x conftest$ac_exeext; then
43803 ac_cv_lib_pthreads_pthread_create=yes
43805 echo "$as_me: failed program was:" >&5
43806 sed 's/^/| /' conftest.$ac_ext >&5
43808 ac_cv_lib_pthreads_pthread_create=no
43811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43812 conftest$ac_exeext conftest.$ac_ext
43813 LIBS=$ac_check_lib_save_LIBS
43815 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43816 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43817 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43818 PTHREAD_LIB="-lpthreads"
43821 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43822 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43823 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43824 echo $ECHO_N "(cached) $ECHO_C" >&6
43826 ac_check_lib_save_LIBS=$LIBS
43828 cat >conftest.$ac_ext <<_ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h. */
43835 /* Override any GCC internal prototype to avoid an error.
43836 Use char because int might match the return type of a GCC
43837 builtin and then its argument prototype would still apply. */
43841 char pthread_create ();
43845 return pthread_create ();
43850 rm -f conftest.$ac_objext conftest$ac_exeext
43851 if { (ac_try="$ac_link"
43852 case "(($ac_try" in
43853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43854 *) ac_try_echo=$ac_try;;
43856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43857 (eval "$ac_link") 2>conftest.er1
43859 grep -v '^ *+' conftest.er1 >conftest.err
43861 cat conftest.err >&5
43862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863 (exit $ac_status); } && {
43864 test -z "$ac_c_werror_flag" ||
43865 test ! -s conftest.err
43866 } && test -s conftest$ac_exeext &&
43867 $as_test_x conftest$ac_exeext; then
43868 ac_cv_lib_c_r_pthread_create=yes
43870 echo "$as_me: failed program was:" >&5
43871 sed 's/^/| /' conftest.$ac_ext >&5
43873 ac_cv_lib_c_r_pthread_create=no
43876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43877 conftest$ac_exeext conftest.$ac_ext
43878 LIBS=$ac_check_lib_save_LIBS
43880 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43881 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43882 if test $ac_cv_lib_c_r_pthread_create = yes; then
43883 PTHREAD_LIB="-lc_r"
43886 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43887 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43888 if test "${ac_cv_func_pthread_create+set}" = set; then
43889 echo $ECHO_N "(cached) $ECHO_C" >&6
43891 cat >conftest.$ac_ext <<_ACEOF
43894 cat confdefs.h >>conftest.$ac_ext
43895 cat >>conftest.$ac_ext <<_ACEOF
43896 /* end confdefs.h. */
43897 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43899 #define pthread_create innocuous_pthread_create
43901 /* System header to define __stub macros and hopefully few prototypes,
43902 which can conflict with char pthread_create (); below.
43903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43904 <limits.h> exists even on freestanding compilers. */
43907 # include <limits.h>
43909 # include <assert.h>
43912 #undef pthread_create
43914 /* Override any GCC internal prototype to avoid an error.
43915 Use char because int might match the return type of a GCC
43916 builtin and then its argument prototype would still apply. */
43920 char pthread_create ();
43921 /* The GNU C library defines this for functions which it implements
43922 to always fail with ENOSYS. Some functions are actually named
43923 something starting with __ and the normal name is an alias. */
43924 #if defined __stub_pthread_create || defined __stub___pthread_create
43931 return pthread_create ();
43936 rm -f conftest.$ac_objext conftest$ac_exeext
43937 if { (ac_try="$ac_link"
43938 case "(($ac_try" in
43939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43940 *) ac_try_echo=$ac_try;;
43942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43943 (eval "$ac_link") 2>conftest.er1
43945 grep -v '^ *+' conftest.er1 >conftest.err
43947 cat conftest.err >&5
43948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949 (exit $ac_status); } && {
43950 test -z "$ac_c_werror_flag" ||
43951 test ! -s conftest.err
43952 } && test -s conftest$ac_exeext &&
43953 $as_test_x conftest$ac_exeext; then
43954 ac_cv_func_pthread_create=yes
43956 echo "$as_me: failed program was:" >&5
43957 sed 's/^/| /' conftest.$ac_ext >&5
43959 ac_cv_func_pthread_create=no
43962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43963 conftest$ac_exeext conftest.$ac_ext
43965 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43966 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43983 for ac_header in sys/prctl.h sys/capability.h
43985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43990 echo $ECHO_N "(cached) $ECHO_C" >&6
43992 ac_res=`eval echo '${'$as_ac_Header'}'`
43993 { echo "$as_me:$LINENO: result: $ac_res" >&5
43994 echo "${ECHO_T}$ac_res" >&6; }
43996 # Is the header compilable?
43997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43999 cat >conftest.$ac_ext <<_ACEOF
44002 cat confdefs.h >>conftest.$ac_ext
44003 cat >>conftest.$ac_ext <<_ACEOF
44004 /* end confdefs.h. */
44005 $ac_includes_default
44006 #include <$ac_header>
44008 rm -f conftest.$ac_objext
44009 if { (ac_try="$ac_compile"
44010 case "(($ac_try" in
44011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44012 *) ac_try_echo=$ac_try;;
44014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44015 (eval "$ac_compile") 2>conftest.er1
44017 grep -v '^ *+' conftest.er1 >conftest.err
44019 cat conftest.err >&5
44020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021 (exit $ac_status); } && {
44022 test -z "$ac_c_werror_flag" ||
44023 test ! -s conftest.err
44024 } && test -s conftest.$ac_objext; then
44025 ac_header_compiler=yes
44027 echo "$as_me: failed program was:" >&5
44028 sed 's/^/| /' conftest.$ac_ext >&5
44030 ac_header_compiler=no
44033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44035 echo "${ECHO_T}$ac_header_compiler" >&6; }
44037 # Is the header present?
44038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44040 cat >conftest.$ac_ext <<_ACEOF
44043 cat confdefs.h >>conftest.$ac_ext
44044 cat >>conftest.$ac_ext <<_ACEOF
44045 /* end confdefs.h. */
44046 #include <$ac_header>
44048 if { (ac_try="$ac_cpp conftest.$ac_ext"
44049 case "(($ac_try" in
44050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44051 *) ac_try_echo=$ac_try;;
44053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44056 grep -v '^ *+' conftest.er1 >conftest.err
44058 cat conftest.err >&5
44059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44060 (exit $ac_status); } >/dev/null && {
44061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44062 test ! -s conftest.err
44064 ac_header_preproc=yes
44066 echo "$as_me: failed program was:" >&5
44067 sed 's/^/| /' conftest.$ac_ext >&5
44069 ac_header_preproc=no
44072 rm -f conftest.err conftest.$ac_ext
44073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44074 echo "${ECHO_T}$ac_header_preproc" >&6; }
44076 # So? What about this header?
44077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44083 ac_header_preproc=yes
44086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44104 echo $ECHO_N "(cached) $ECHO_C" >&6
44106 eval "$as_ac_Header=\$ac_header_preproc"
44108 ac_res=`eval echo '${'$as_ac_Header'}'`
44109 { echo "$as_me:$LINENO: result: $ac_res" >&5
44110 echo "${ECHO_T}$ac_res" >&6; }
44113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44114 cat >>confdefs.h <<_ACEOF
44115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44124 for ac_func in prctl setreuid
44126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44130 echo $ECHO_N "(cached) $ECHO_C" >&6
44132 cat >conftest.$ac_ext <<_ACEOF
44135 cat confdefs.h >>conftest.$ac_ext
44136 cat >>conftest.$ac_ext <<_ACEOF
44137 /* end confdefs.h. */
44138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44140 #define $ac_func innocuous_$ac_func
44142 /* System header to define __stub macros and hopefully few prototypes,
44143 which can conflict with char $ac_func (); below.
44144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44145 <limits.h> exists even on freestanding compilers. */
44148 # include <limits.h>
44150 # include <assert.h>
44155 /* Override any GCC internal prototype to avoid an error.
44156 Use char because int might match the return type of a GCC
44157 builtin and then its argument prototype would still apply. */
44162 /* The GNU C library defines this for functions which it implements
44163 to always fail with ENOSYS. Some functions are actually named
44164 something starting with __ and the normal name is an alias. */
44165 #if defined __stub_$ac_func || defined __stub___$ac_func
44172 return $ac_func ();
44177 rm -f conftest.$ac_objext conftest$ac_exeext
44178 if { (ac_try="$ac_link"
44179 case "(($ac_try" in
44180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44181 *) ac_try_echo=$ac_try;;
44183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44184 (eval "$ac_link") 2>conftest.er1
44186 grep -v '^ *+' conftest.er1 >conftest.err
44188 cat conftest.err >&5
44189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44190 (exit $ac_status); } && {
44191 test -z "$ac_c_werror_flag" ||
44192 test ! -s conftest.err
44193 } && test -s conftest$ac_exeext &&
44194 $as_test_x conftest$ac_exeext; then
44195 eval "$as_ac_var=yes"
44197 echo "$as_me: failed program was:" >&5
44198 sed 's/^/| /' conftest.$ac_ext >&5
44200 eval "$as_ac_var=no"
44203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44204 conftest$ac_exeext conftest.$ac_ext
44206 ac_res=`eval echo '${'$as_ac_var'}'`
44207 { echo "$as_me:$LINENO: result: $ac_res" >&5
44208 echo "${ECHO_T}$ac_res" >&6; }
44209 if test `eval echo '${'$as_ac_var'}'` = yes; then
44210 cat >>confdefs.h <<_ACEOF
44211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44217 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
44218 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
44219 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
44220 echo $ECHO_N "(cached) $ECHO_C" >&6
44222 ac_check_lib_save_LIBS=$LIBS
44224 cat >conftest.$ac_ext <<_ACEOF
44227 cat confdefs.h >>conftest.$ac_ext
44228 cat >>conftest.$ac_ext <<_ACEOF
44229 /* end confdefs.h. */
44231 /* Override any GCC internal prototype to avoid an error.
44232 Use char because int might match the return type of a GCC
44233 builtin and then its argument prototype would still apply. */
44237 char cap_set_proc ();
44241 return cap_set_proc ();
44246 rm -f conftest.$ac_objext conftest$ac_exeext
44247 if { (ac_try="$ac_link"
44248 case "(($ac_try" in
44249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44250 *) ac_try_echo=$ac_try;;
44252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44253 (eval "$ac_link") 2>conftest.er1
44255 grep -v '^ *+' conftest.er1 >conftest.err
44257 cat conftest.err >&5
44258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44259 (exit $ac_status); } && {
44260 test -z "$ac_c_werror_flag" ||
44261 test ! -s conftest.err
44262 } && test -s conftest$ac_exeext &&
44263 $as_test_x conftest$ac_exeext; then
44264 ac_cv_lib_cap_cap_set_proc=yes
44266 echo "$as_me: failed program was:" >&5
44267 sed 's/^/| /' conftest.$ac_ext >&5
44269 ac_cv_lib_cap_cap_set_proc=no
44272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44273 conftest$ac_exeext conftest.$ac_ext
44274 LIBS=$ac_check_lib_save_LIBS
44276 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
44277 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
44278 if test $ac_cv_lib_cap_cap_set_proc = yes; then
44284 if test x$CAP_LIBS = x-lcap; then
44286 cat >>confdefs.h <<\_ACEOF
44287 #define HAVE_LIBCAP 1
44294 cat >>confdefs.h <<\_ACEOF
44299 CFLAGS=${CFLAGS--O}
44301 if test x$have_gcc = xyes ; then
44302 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44303 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44305 LDFLAGS=${LDFLAGS--O}
44306 DB_LIBS="${SQL_LFLAGS}"
44307 CPPFLAGS="$CPPFLAGS"
44334 PFILES="platforms/Makefile"
44339 hostname=`uname -n | cut -d '.' -f 1`
44340 if test x${hostname} = x ; then
44341 hostname="localhost"
44343 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44344 if test ! $? = 0; then
44345 hostname="localhost"
44348 case "$DISTNAME" in
44351 PSCMD="ps -e -o pid,comm"
44352 PFILES="${PFILES} \
44353 platforms/aix/Makefile"
44354 TAPEDRIVE="/dev/rmt0.1"
44358 PTHREAD_LIB="-lpthread -lexc"
44359 if test "${CC}" = "gcc" ; then
44366 TAPEDRIVE="/dev/nrmt0"
44369 DISTVER=`uname -a |awk '{print $3}'`
44370 TAPEDRIVE="/dev/nrmt0"
44371 PTHREAD_LIB="-pthread"
44372 CFLAGS="${CFLAGS} -pthread"
44373 PSCMD="ps -ax -o pid,command"
44376 PFILES="${PFILES} \
44377 platforms/bsdi/Makefile \
44378 platforms/bsdi/bacula-fd \
44379 platforms/bsdi/bacula-sd \
44380 platforms/bsdi/bacula-dir"
44381 largefile_support="yes"
44384 DISTVER=`uname -a |awk '{print $3}'`
44385 TAPEDRIVE="/dev/nrst0"
44387 WCFLAGS="-mwindows"
44388 WLDFLAGS="-mwindows"
44392 TAPEDRIVE="/dev/nst0"
44393 PSCMD="ps -e -o pid,command"
44395 PFILES="${PFILES} \
44396 platforms/darwin/Makefile"
44400 TAPEDRIVE="/dev/nst0"
44401 PSCMD="ps -e -o pid,command"
44403 PFILES="${PFILES} \
44404 platforms/osx/Makefile"
44407 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44410 DISTVER=`cat /etc/debian_version`
44411 if test -f /etc/lsb-release ; then
44413 if test "x$DISTRIB_ID" != "x" ; then
44414 DISTNAME=$DISTRIB_ID
44416 if test "x$DISTRIB_RELEASE" != "x" ; then
44417 DISTVER=$DISTRIB_RELEASE
44420 if test "$DISTNAME" = "Ubuntu" ; then
44423 TAPEDRIVE="/dev/nst0"
44424 PSCMD="ps -e -o pid,command"
44425 if test "$DISTNAME" = "ubuntu" ; then
44426 PFILES="${PFILES} \
44427 platforms/ubuntu/Makefile \
44428 platforms/ubuntu/bacula-fd \
44429 platforms/ubuntu/bacula-sd \
44430 platforms/ubuntu/bacula-dir"
44432 PFILES="${PFILES} \
44433 platforms/debian/Makefile \
44434 platforms/debian/bacula-fd \
44435 platforms/debian/bacula-sd \
44436 platforms/debian/bacula-dir"
44440 DISTVER=`uname -a |awk '{print $3}'`
44441 VER=`echo $DISTVER | cut -c 1`
44442 if test x$VER = x4 ; then
44443 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44444 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44448 TAPEDRIVE="/dev/nrsa0"
44449 PSCMD="ps -ax -o pid,command"
44450 PFILES="${PFILES} \
44451 platforms/freebsd/Makefile \
44452 platforms/freebsd/bacula-fd \
44453 platforms/freebsd/bacula-sd \
44454 platforms/freebsd/bacula-dir"
44455 largefile_support="yes"
44458 PSCMD="UNIX95=1; ps -e -o pid,comm"
44459 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44461 TAPEDRIVE="/dev/rmt/0hnb"
44462 PTHREAD_LIB="-lpthread"
44463 cat >>confdefs.h <<\_ACEOF
44464 #define _INCLUDE_LONGLONG 1
44470 TAPEDRIVE="/dev/rmt/0cbn"
44471 PSCMD="ps -e -o pid,comm"
44472 PFILES="${PFILES} \
44473 platforms/irix/Makefile \
44474 platforms/irix/bacula-fd \
44475 platforms/irix/bacula-sd \
44476 platforms/irix/bacula-dir"
44479 DISTVER=`uname -a |awk '{print $3}'`
44482 TAPEDRIVE="/dev/nrst0"
44483 PSCMD="ps -ax -o pid,command"
44484 PTHREAD_LIB="-pthread"
44485 CFLAGS="${CFLAGS} -pthread"
44488 DISTVER=`uname -a |awk '{print $3}'`
44491 TAPEDRIVE="/dev/nrst0"
44492 PSCMD="ps -ax -o pid,command"
44493 PTHREAD_LIB="-pthread"
44494 CFLAGS="${CFLAGS} -pthread"
44495 PFILES="${PFILES} \
44496 platforms/openbsd/Makefile \
44497 platforms/openbsd/bacula-fd \
44498 platforms/openbsd/bacula-sd \
44499 platforms/openbsd/bacula-dir"
44502 if test -f /etc/whitebox-release ; then
44503 f=/etc/whitebox-release
44505 f=/etc/redhat-release
44507 if test `cat $f | grep release |\
44508 cut -f 3 -d ' '`x = "Enterprise"x ; then
44509 DISTVER="Enterprise "`cat $f | grep release |\
44512 DISTVER=`cat /etc/redhat-release | grep release |\
44515 TAPEDRIVE="/dev/nst0"
44516 PSCMD="ps -e -o pid,command"
44517 PFILES="${PFILES} \
44518 platforms/redhat/Makefile \
44519 platforms/redhat/bacula-fd \
44520 platforms/redhat/bacula-sd \
44521 platforms/redhat/bacula-dir
44525 DISTVER=`cat /etc/mandrake-release | grep release |\
44527 TAPEDRIVE="/dev/nst0"
44528 PSCMD="ps -e -o pid,command"
44529 PFILES="${PFILES} \
44530 platforms/mandrake/Makefile \
44531 platforms/mandrake/bacula-fd \
44532 platforms/mandrake/bacula-sd \
44533 platforms/mandrake/bacula-dir \
44537 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44538 TAPEDRIVE="/dev/nst0"
44539 PSCMD="ps -e -o pid,command"
44540 PFILES="${PFILES} \
44541 platforms/gentoo/Makefile \
44542 platforms/gentoo/bacula-init \
44543 platforms/gentoo/bacula-fd \
44544 platforms/gentoo/bacula-sd \
44545 platforms/gentoo/bacula-dir"
44548 DISTVER=`cat /etc/slackware-version`
44549 TAPEDRIVE="/dev/nst0"
44550 PSCMD="ps -e -o pid,command"
44551 PFILES="${PFILES} \
44552 platforms/slackware/Makefile \
44553 platforms/slackware/rc.bacula-fd \
44554 platforms/slackware/rc.bacula-sd \
44555 platforms/slackware/rc.bacula-dir\
44556 platforms/slackware/functions.bacula"
44560 TAPEDRIVE="/dev/rmt/0cbn"
44561 PSCMD="ps -e -o pid,comm"
44562 PFILES="${PFILES} \
44563 platforms/solaris/Makefile \
44564 platforms/solaris/bacula-fd \
44565 platforms/solaris/bacula-sd \
44566 platforms/solaris/bacula-dir"
44567 if test x$DISTVER = x5.6 ; then
44568 cat >>confdefs.h <<\_ACEOF
44569 #define HAVE_OLD_SOCKOPT 1
44573 LIBS="$LIBS -lresolv -lrt"
44576 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44578 TAPEDRIVE="/dev/nst0"
44579 PSCMD="ps -e -o pid,command"
44580 PFILES="${PFILES} \
44581 platforms/suse/Makefile \
44582 platforms/suse/bacula-fd \
44583 platforms/suse/bacula-sd \
44584 platforms/suse/bacula-dir \
44585 platforms/suse/bacula"
44590 TAPEDRIVE="/dev/nst0"
44591 PSCMD="ps -e -o pid,command"
44592 PFILES="${PFILES} \
44593 platforms/suse/Makefile \
44594 platforms/suse/bacula-fd \
44595 platforms/suse/bacula-sd \
44596 platforms/suse/bacula-dir"
44600 TAPEDRIVE="/dev/nst0"
44603 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44609 LIBS="$PTHREAD_LIB $LIBS"
44611 cat >>confdefs.h <<_ACEOF
44615 cat >>confdefs.h <<_ACEOF
44626 MCOMMON=./autoconf/Make.common
44629 if test "x${subsysdir}" = "x${sbindir}" ; then
44632 echo "You have set both --sbindir and --with-subsys-dir"
44633 echo " equal to: ${subsysdir} "
44634 echo "This is not permitted. Please reconfigure."
44636 echo "Aborting configuration ..."
44642 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"
44644 ac_config_commands="$ac_config_commands default"
44646 cat >confcache <<\_ACEOF
44647 # This file is a shell script that caches the results of configure
44648 # tests run on this system so they can be shared between configure
44649 # scripts and configure runs, see configure's option --config-cache.
44650 # It is not useful on other systems. If it contains results you don't
44651 # want to keep, you may remove or edit it.
44653 # config.status only pays attention to the cache file if you give it
44654 # the --recheck option to rerun configure.
44656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44658 # following values.
44662 # The following way of writing the cache mishandles newlines in values,
44663 # but we know of no workaround that is simple, portable, and efficient.
44664 # So, we kill variables containing newlines.
44665 # Ultrix sh set writes to stderr and can't be redirected directly,
44666 # and sets the high bit in the cache file unless we assign to the vars.
44668 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44669 eval ac_val=\$$ac_var
44673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44677 _ | IFS | as_nl) ;; #(
44678 *) $as_unset $ac_var ;;
44684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44685 *${as_nl}ac_space=\ *)
44686 # `set' does not quote correctly, so add quotes (double-quote
44687 # substitution turns \\\\ into \\, and sed turns \\ into \).
44690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44693 # `set' quotes correctly as required by POSIX, so do not add quotes.
44694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44708 if test -w "$cache_file"; then
44709 test "x$cache_file" != "x/dev/null" &&
44710 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44711 echo "$as_me: updating cache $cache_file" >&6;}
44712 cat confcache >$cache_file
44714 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44715 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44721 # Let make expand exec_prefix.
44722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44724 DEFS=-DHAVE_CONFIG_H
44728 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44729 # 1. Remove the extension, and $U if already installed.
44730 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44731 ac_i=`echo "$ac_i" | sed "$ac_script"`
44732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44733 # will be set to the directory where LIBOBJS objects are built.
44734 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44735 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44737 LIBOBJS=$ac_libobjs
44739 LTLIBOBJS=$ac_ltlibobjs
44743 : ${CONFIG_STATUS=./config.status}
44744 ac_clean_files_save=$ac_clean_files
44745 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44746 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44747 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44748 cat >$CONFIG_STATUS <<_ACEOF
44750 # Generated by $as_me.
44751 # Run this file to recreate the current configuration.
44752 # Compiler output produced by configure, useful for debugging
44753 # configure, is in config.log if it exists.
44756 ac_cs_recheck=false
44758 SHELL=\${CONFIG_SHELL-$SHELL}
44761 cat >>$CONFIG_STATUS <<\_ACEOF
44762 ## --------------------- ##
44763 ## M4sh Initialization. ##
44764 ## --------------------- ##
44766 # Be more Bourne compatible
44767 DUALCASE=1; export DUALCASE # for MKS sh
44768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44771 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44772 # is contrary to our usage. Disable this feature.
44773 alias -g '${1+"$@"}'='"$@"'
44774 setopt NO_GLOB_SUBST
44776 case `(set -o) 2>/dev/null` in
44777 *posix*) set -o posix ;;
44786 # Avoid depending upon Character Ranges.
44787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44790 as_cr_digits='0123456789'
44791 as_cr_alnum=$as_cr_Letters$as_cr_digits
44793 # The user is always right.
44794 if test "${PATH_SEPARATOR+set}" != set; then
44795 echo "#! /bin/sh" >conf$$.sh
44796 echo "exit 0" >>conf$$.sh
44798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44806 # Support unset when possible.
44807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44815 # We need space, tab and new line, in precisely that order. Quoting is
44816 # there to prevent editors from complaining about space-tab.
44817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44818 # splitting by setting IFS to empty value.)
44823 # Find who we are. Look in the path if we contain no directory separator.
44825 *[\\/]* ) as_myself=$0 ;;
44826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44827 for as_dir in $PATH
44830 test -z "$as_dir" && as_dir=.
44831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44837 # We did not find ourselves, most probably we were run as `sh COMMAND'
44838 # in which case we are not to be found in the path.
44839 if test "x$as_myself" = x; then
44842 if test ! -f "$as_myself"; then
44843 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44844 { (exit 1); exit 1; }
44847 # Work around bugs in pre-3.0 UWIN ksh.
44848 for as_var in ENV MAIL MAILPATH
44849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44859 LC_TELEPHONE LC_TIME
44861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44862 eval $as_var=C; export $as_var
44864 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44868 # Required to use basename.
44869 if expr a : '\(a\)' >/dev/null 2>&1 &&
44870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44877 as_basename=basename
44883 # Name of the executable.
44884 as_me=`$as_basename -- "$0" ||
44885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44886 X"$0" : 'X\(//\)$' \| \
44887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44889 sed '/^.*\/\([^/][^/]*\)\/*$/{
44908 as_lineno_1=$LINENO
44909 as_lineno_2=$LINENO
44910 test "x$as_lineno_1" != "x$as_lineno_2" &&
44911 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44913 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44914 # uniformly replaced by the line number. The first 'sed' inserts a
44915 # line-number line after each line using $LINENO; the second 'sed'
44916 # does the real work. The second script uses 'N' to pair each
44917 # line-number line with the line containing $LINENO, and appends
44918 # trailing '-' during substitution so that $LINENO is not a special
44919 # case at line end.
44920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44921 # scripts with optimization help from Paolo Bonzini. Blame Lee
44922 # E. McMahon (1931-1989) for sed's syntax. :-)
44934 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44937 ' >$as_me.lineno &&
44938 chmod +x "$as_me.lineno" ||
44939 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44940 { (exit 1); exit 1; }; }
44942 # Don't try to exec as it changes $[0], causing all sort of problems
44943 # (the dirname of $[0] is not the place where we might find the
44944 # original and so on. Autoconf is especially sensitive to this).
44945 . "./$as_me.lineno"
44946 # Exit status is that of the last command.
44951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44957 ECHO_C= ECHO_N= ECHO_T=
44958 case `echo -n x` in
44960 case `echo 'x\c'` in
44961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44968 if expr a : '\(a\)' >/dev/null 2>&1 &&
44969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44975 rm -f conf$$ conf$$.exe conf$$.file
44976 if test -d conf$$.dir; then
44977 rm -f conf$$.dir/conf$$.file
44983 if ln -s conf$$.file conf$$ 2>/dev/null; then
44985 # ... but there are two gotchas:
44986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44988 # In both cases, we have to default to `cp -p'.
44989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44991 elif ln conf$$.file conf$$ 2>/dev/null; then
44996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44997 rmdir conf$$.dir 2>/dev/null
44999 if mkdir -p . 2>/dev/null; then
45002 test -d ./-p && rmdir ./-p
45006 if test -x / >/dev/null 2>&1; then
45007 as_test_x='test -x'
45009 if ls -dL / >/dev/null 2>&1; then
45016 if test -d "$1"; then
45022 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45023 ???[sx]*):;;*)false;;esac;fi
45027 as_executable_p=$as_test_x
45029 # Sed expression to map a string onto a valid CPP name.
45030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45032 # Sed expression to map a string onto a valid variable name.
45033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45038 # Save the log message, to keep $[0] and so on meaningful, and to
45039 # report actual input values of CONFIG_FILES etc. instead of their
45040 # values after options handling.
45042 This file was extended by $as_me, which was
45043 generated by GNU Autoconf 2.61. Invocation command line was
45045 CONFIG_FILES = $CONFIG_FILES
45046 CONFIG_HEADERS = $CONFIG_HEADERS
45047 CONFIG_LINKS = $CONFIG_LINKS
45048 CONFIG_COMMANDS = $CONFIG_COMMANDS
45051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45056 cat >>$CONFIG_STATUS <<_ACEOF
45057 # Files that config.status was made for.
45058 config_files="$ac_config_files"
45059 config_headers="$ac_config_headers"
45060 config_commands="$ac_config_commands"
45064 cat >>$CONFIG_STATUS <<\_ACEOF
45066 \`$as_me' instantiates files from templates according to the
45067 current configuration.
45069 Usage: $0 [OPTIONS] [FILE]...
45071 -h, --help print this help, then exit
45072 -V, --version print version number and configuration settings, then exit
45073 -q, --quiet do not print progress messages
45074 -d, --debug don't remove temporary files
45075 --recheck update $as_me by reconfiguring in the same conditions
45076 --file=FILE[:TEMPLATE]
45077 instantiate the configuration file FILE
45078 --header=FILE[:TEMPLATE]
45079 instantiate the configuration header FILE
45081 Configuration files:
45084 Configuration headers:
45087 Configuration commands:
45090 Report bugs to <bug-autoconf@gnu.org>."
45093 cat >>$CONFIG_STATUS <<_ACEOF
45096 configured by $0, generated by GNU Autoconf 2.61,
45097 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45099 Copyright (C) 2006 Free Software Foundation, Inc.
45100 This config.status script is free software; the Free Software Foundation
45101 gives unlimited permission to copy, distribute and modify it."
45108 cat >>$CONFIG_STATUS <<\_ACEOF
45109 # If no file are specified by the user, then we need to provide default
45110 # value. By we need to know if files were specified by the user.
45116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45128 # Handling of the options.
45129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45132 echo "$ac_cs_version"; exit ;;
45133 --debug | --debu | --deb | --de | --d | -d )
45135 --file | --fil | --fi | --f )
45137 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45138 ac_need_defaults=false;;
45139 --header | --heade | --head | --hea )
45141 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45142 ac_need_defaults=false;;
45144 # Conflict between --help and --header
45145 { echo "$as_me: error: ambiguous option: $1
45146 Try \`$0 --help' for more information." >&2
45147 { (exit 1); exit 1; }; };;
45148 --help | --hel | -h )
45149 echo "$ac_cs_usage"; exit ;;
45150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45154 # This is an error.
45155 -*) { echo "$as_me: error: unrecognized option: $1
45156 Try \`$0 --help' for more information." >&2
45157 { (exit 1); exit 1; }; } ;;
45159 *) ac_config_targets="$ac_config_targets $1"
45160 ac_need_defaults=false ;;
45166 ac_configure_extra_args=
45168 if $ac_cs_silent; then
45170 ac_configure_extra_args="$ac_configure_extra_args --silent"
45174 cat >>$CONFIG_STATUS <<_ACEOF
45175 if \$ac_cs_recheck; then
45176 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45177 CONFIG_SHELL=$SHELL
45178 export CONFIG_SHELL
45179 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45183 cat >>$CONFIG_STATUS <<\_ACEOF
45187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45188 ## Running $as_me. ##
45194 cat >>$CONFIG_STATUS <<_ACEOF
45200 # The HP-UX ksh and POSIX shell print the target directory to stdout
45201 # if CDPATH is set.
45202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45204 sed_quote_subst='$sed_quote_subst'
45205 double_quote_subst='$double_quote_subst'
45206 delay_variable_subst='$delay_variable_subst'
45207 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45208 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45209 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45210 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45211 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45212 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45213 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45214 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45215 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45216 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45217 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45218 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45219 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45220 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45221 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45222 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45223 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45224 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45225 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45226 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45227 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45228 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45229 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45230 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45231 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45232 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45233 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45234 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45235 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45236 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45237 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45238 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45239 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45240 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45241 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45242 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45243 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45244 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45245 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45246 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45247 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45248 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45249 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45251 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"`'
45252 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"`'
45253 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45254 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45255 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45256 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45257 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45258 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45259 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45260 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45261 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45262 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45263 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45264 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45265 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45266 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45267 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45268 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45269 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45270 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45271 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45272 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45273 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45274 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45275 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45276 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45277 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45278 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45279 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45280 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45281 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45282 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45283 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45284 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45285 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45286 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45287 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45288 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45289 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45290 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45291 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45292 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45293 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45294 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45295 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45296 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45297 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45298 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45299 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45300 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45301 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45302 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45303 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45304 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45305 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45306 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45307 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45308 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45309 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45310 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45311 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45312 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45313 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45314 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45315 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45316 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45317 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45318 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45319 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45320 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45321 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45322 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45323 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45324 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45325 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45326 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45327 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45328 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45329 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45330 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45331 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45332 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45333 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45334 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45335 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45336 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45337 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45338 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45339 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45340 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45341 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45342 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45343 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45344 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45345 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45346 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45347 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45348 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45349 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45350 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45351 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45352 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45353 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45354 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45355 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45356 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45357 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45358 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45359 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45360 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45361 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45362 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45363 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45364 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45365 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45366 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45367 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45368 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45369 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45370 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45371 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45372 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45373 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45374 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45375 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45376 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45377 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45380 LTCFLAGS='$LTCFLAGS'
45381 compiler='$compiler_DEFAULT'
45383 # Quote evaled strings.
45395 deplibs_check_method \
45404 lt_cv_sys_global_symbol_pipe \
45405 lt_cv_sys_global_symbol_to_cdecl \
45406 lt_cv_sys_global_symbol_to_c_name_address \
45407 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45410 lt_prog_compiler_no_builtin_flag \
45411 lt_prog_compiler_wl \
45412 lt_prog_compiler_pic \
45413 lt_prog_compiler_static \
45414 lt_cv_prog_compiler_c_o \
45422 export_dynamic_flag_spec \
45423 whole_archive_flag_spec \
45424 compiler_needs_object \
45426 allow_undefined_flag \
45427 no_undefined_flag \
45428 hardcode_libdir_flag_spec \
45429 hardcode_libdir_flag_spec_ld \
45430 hardcode_libdir_separator \
45435 variables_saved_for_relink \
45437 library_names_spec \
45442 compiler_lib_search_dirs \
45447 compiler_lib_search_path \
45450 lt_prog_compiler_no_builtin_flag_CXX \
45451 lt_prog_compiler_wl_CXX \
45452 lt_prog_compiler_pic_CXX \
45453 lt_prog_compiler_static_CXX \
45454 lt_cv_prog_compiler_c_o_CXX \
45455 export_dynamic_flag_spec_CXX \
45456 whole_archive_flag_spec_CXX \
45457 compiler_needs_object_CXX \
45459 allow_undefined_flag_CXX \
45460 no_undefined_flag_CXX \
45461 hardcode_libdir_flag_spec_CXX \
45462 hardcode_libdir_flag_spec_ld_CXX \
45463 hardcode_libdir_separator_CXX \
45464 fix_srcfile_path_CXX \
45465 exclude_expsyms_CXX \
45466 include_expsyms_CXX \
45467 file_list_spec_CXX \
45468 compiler_lib_search_dirs_CXX \
45469 predep_objects_CXX \
45470 postdep_objects_CXX \
45473 compiler_lib_search_path_CXX; do
45474 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45475 *[\\\\\\\`\\"\\\$]*)
45476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45484 # Double-quote double-evaled strings.
45485 for var in reload_cmds \
45486 old_postinstall_cmds \
45487 old_postuninstall_cmds \
45489 extract_expsyms_cmds \
45490 old_archive_from_new_cmds \
45491 old_archive_from_expsyms_cmds \
45493 archive_expsym_cmds \
45495 module_expsym_cmds \
45496 export_symbols_cmds \
45499 postuninstall_cmds \
45501 sys_lib_search_path_spec \
45502 sys_lib_dlsearch_path_spec \
45503 old_archive_cmds_CXX \
45504 old_archive_from_new_cmds_CXX \
45505 old_archive_from_expsyms_cmds_CXX \
45507 archive_expsym_cmds_CXX \
45509 module_expsym_cmds_CXX \
45510 export_symbols_cmds_CXX \
45511 prelink_cmds_CXX; do
45512 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45513 *[\\\\\\\`\\"\\\$]*)
45514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45522 # Fix-up fallback echo if it was mangled by the above quoting rules.
45524 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45528 ac_aux_dir='$ac_aux_dir'
45529 xsi_shell='$xsi_shell'
45530 lt_shell_append='$lt_shell_append'
45532 # See if we are running on zsh, and set the options which allow our
45533 # commands through without removal of \ escapes INIT.
45534 if test -n "\${ZSH_VERSION+set}" ; then
45535 setopt NO_GLOB_SUBST
45541 TIMESTAMP='$TIMESTAMP'
45549 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45550 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45552 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45553 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45554 LINGUAS="${LINGUAS-%UNSET%}"
45559 cat >>$CONFIG_STATUS <<\_ACEOF
45561 # Handling of arguments.
45562 for ac_config_target in $ac_config_targets
45564 case $ac_config_target in
45565 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45566 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45567 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45568 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45570 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45571 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45572 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45573 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45574 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45575 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45576 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45577 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45578 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45579 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45580 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45581 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45582 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45583 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45584 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45585 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45586 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45587 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45588 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45589 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45590 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45591 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45592 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45593 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45594 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45595 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45596 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45597 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45598 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45599 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45600 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45601 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45602 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45603 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45604 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45605 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45606 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45607 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45608 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45609 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45610 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45611 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45612 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45613 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45614 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45615 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45616 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45617 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45618 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45619 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45620 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45621 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45622 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45623 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45624 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45625 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45626 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45627 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45628 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45629 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45630 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45631 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45632 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45633 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45634 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45635 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45636 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45637 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45638 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45639 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45640 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45641 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45642 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45643 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45644 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45645 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45646 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45647 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45648 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45649 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45650 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45651 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45652 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45653 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45654 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45655 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45656 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45657 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45658 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45659 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45660 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45661 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45662 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45663 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45664 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45665 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45666 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45667 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45668 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45669 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45670 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45671 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45672 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45673 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45674 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45675 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45676 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45678 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45679 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45680 { (exit 1); exit 1; }; };;
45685 # If the user did not use the arguments to specify the items to instantiate,
45686 # then the envvar interface is used. Set only those that are not.
45687 # We use the long form for the default assignment because of an extremely
45688 # bizarre bug on SunOS 4.1.3.
45689 if $ac_need_defaults; then
45690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45695 # Have a temporary directory for convenience. Make it in the build tree
45696 # simply because there is no reason against having it here, and in addition,
45697 # creating and moving files from /tmp can sometimes cause problems.
45698 # Hook for its removal unless debugging.
45699 # Note that there is a small window in which the directory will not be cleaned:
45700 # after its creation but before its name has been assigned to `$tmp'.
45704 trap 'exit_status=$?
45705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45707 trap '{ (exit 1); exit 1; }' 1 2 13 15
45709 # Create a (secure) tmp directory for tmp files.
45712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45713 test -n "$tmp" && test -d "$tmp"
45716 tmp=./conf$$-$RANDOM
45717 (umask 077 && mkdir "$tmp")
45720 echo "$me: cannot create a temporary directory in ." >&2
45721 { (exit 1); exit 1; }
45725 # Set up the sed scripts for CONFIG_FILES section.
45728 # No need to generate the scripts if there are no CONFIG_FILES.
45729 # This happens for instance when ./config.status config.h
45730 if test -n "$CONFIG_FILES"; then
45734 # Create sed commands to just substitute file output variables.
45736 # Remaining file output variables are in a fragment that also has non-file
45742 for ac_last_try in false false false false false :; do
45743 cat >conf$$subs.sed <<_ACEOF
45744 SHELL!$SHELL$ac_delim
45745 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45746 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45747 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45748 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45749 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45750 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45751 exec_prefix!$exec_prefix$ac_delim
45752 prefix!$prefix$ac_delim
45753 program_transform_name!$program_transform_name$ac_delim
45754 bindir!$bindir$ac_delim
45755 sbindir!$sbindir$ac_delim
45756 libexecdir!$libexecdir$ac_delim
45757 datarootdir!$datarootdir$ac_delim
45758 datadir!$datadir$ac_delim
45759 sysconfdir!$sysconfdir$ac_delim
45760 sharedstatedir!$sharedstatedir$ac_delim
45761 localstatedir!$localstatedir$ac_delim
45762 includedir!$includedir$ac_delim
45763 oldincludedir!$oldincludedir$ac_delim
45764 docdir!$docdir$ac_delim
45765 infodir!$infodir$ac_delim
45766 htmldir!$htmldir$ac_delim
45767 dvidir!$dvidir$ac_delim
45768 pdfdir!$pdfdir$ac_delim
45769 psdir!$psdir$ac_delim
45770 libdir!$libdir$ac_delim
45771 localedir!$localedir$ac_delim
45772 mandir!$mandir$ac_delim
45773 DEFS!$DEFS$ac_delim
45774 ECHO_C!$ECHO_C$ac_delim
45775 ECHO_N!$ECHO_N$ac_delim
45776 ECHO_T!$ECHO_T$ac_delim
45777 LIBS!$LIBS$ac_delim
45778 build_alias!$build_alias$ac_delim
45779 host_alias!$host_alias$ac_delim
45780 target_alias!$target_alias$ac_delim
45781 BUILD_DIR!$BUILD_DIR$ac_delim
45782 TOP_DIR!$TOP_DIR$ac_delim
45783 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45784 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45785 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45786 TRUEPRG!$TRUEPRG$ac_delim
45787 FALSEPRG!$FALSEPRG$ac_delim
45788 VERSION!$VERSION$ac_delim
45789 DATE!$DATE$ac_delim
45790 LSMDATE!$LSMDATE$ac_delim
45791 BACULA!$BACULA$ac_delim
45792 post_host!$post_host$ac_delim
45793 BDB_VERSION!$BDB_VERSION$ac_delim
45794 LIBBAC_LT_RELEASE!$LIBBAC_LT_RELEASE$ac_delim
45795 LIBBACCFG_LT_RELEASE!$LIBBACCFG_LT_RELEASE$ac_delim
45796 LIBBACPY_LT_RELEASE!$LIBBACPY_LT_RELEASE$ac_delim
45797 LIBBACSQL_LT_RELEASE!$LIBBACSQL_LT_RELEASE$ac_delim
45798 LIBBACFIND_LT_RELEASE!$LIBBACFIND_LT_RELEASE$ac_delim
45800 CFLAGS!$CFLAGS$ac_delim
45801 LDFLAGS!$LDFLAGS$ac_delim
45802 CPPFLAGS!$CPPFLAGS$ac_delim
45803 ac_ct_CC!$ac_ct_CC$ac_delim
45804 EXEEXT!$EXEEXT$ac_delim
45805 OBJEXT!$OBJEXT$ac_delim
45807 CXXFLAGS!$CXXFLAGS$ac_delim
45808 ac_ct_CXX!$ac_ct_CXX$ac_delim
45810 GREP!$GREP$ac_delim
45811 EGREP!$EGREP$ac_delim
45812 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45813 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45814 INSTALL_DATA!$INSTALL_DATA$ac_delim
45816 REMOVE!$REMOVE$ac_delim
45819 ECHO!$ECHO$ac_delim
45823 OPENSSL!$OPENSSL$ac_delim
45826 MKISOFS!$MKISOFS$ac_delim
45827 PYTHON!$PYTHON$ac_delim
45828 GROWISOFS!$GROWISOFS$ac_delim
45829 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45830 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45831 PKGCONFIG!$PKGCONFIG$ac_delim
45832 QMAKE!$QMAKE$ac_delim
45833 GMAKE!$GMAKE$ac_delim
45834 WXCONFIG!$WXCONFIG$ac_delim
45835 WXFLAGS!$WXFLAGS$ac_delim
45836 CDRECORD!$CDRECORD$ac_delim
45837 PIDOF!$PIDOF$ac_delim
45840 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45842 elif $ac_last_try; then
45843 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45844 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45845 { (exit 1); exit 1; }; }
45847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45851 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45852 if test -n "$ac_eof"; then
45853 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45854 ac_eof=`expr $ac_eof + 1`
45857 cat >>$CONFIG_STATUS <<_ACEOF
45858 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45860 /^[ ]*@MCOMMON@[ ]*$/{
45866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45867 s/^/s,@/; s/!/@,|#_!!_#|/
45870 s/'"$ac_delim"'$/,g/; t
45872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45873 ' >>$CONFIG_STATUS <conf$$subs.sed
45874 rm -f conf$$subs.sed
45875 cat >>$CONFIG_STATUS <<_ACEOF
45881 for ac_last_try in false false false false false :; do
45882 cat >conf$$subs.sed <<_ACEOF
45884 ARFLAGS!$ARFLAGS$ac_delim
45885 MAKE_SHELL!$MAKE_SHELL$ac_delim
45886 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45887 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45888 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45889 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45890 LIBTOOL!$LIBTOOL$ac_delim
45891 build!$build$ac_delim
45892 build_cpu!$build_cpu$ac_delim
45893 build_vendor!$build_vendor$ac_delim
45894 build_os!$build_os$ac_delim
45895 host!$host$ac_delim
45896 host_cpu!$host_cpu$ac_delim
45897 host_vendor!$host_vendor$ac_delim
45898 host_os!$host_os$ac_delim
45899 FGREP!$FGREP$ac_delim
45901 DUMPBIN!$DUMPBIN$ac_delim
45902 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45904 LN_S!$LN_S$ac_delim
45905 OBJDUMP!$OBJDUMP$ac_delim
45906 STRIP!$STRIP$ac_delim
45907 RANLIB!$RANLIB$ac_delim
45908 lt_ECHO!$lt_ECHO$ac_delim
45909 DSYMUTIL!$DSYMUTIL$ac_delim
45910 NMEDIT!$NMEDIT$ac_delim
45911 LIPO!$LIPO$ac_delim
45912 OTOOL!$OTOOL$ac_delim
45913 OTOOL64!$OTOOL64$ac_delim
45914 CXXCPP!$CXXCPP$ac_delim
45915 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45916 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45917 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45918 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45919 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45920 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45921 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45922 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45923 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45924 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45925 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45926 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45927 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45928 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45929 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45930 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45931 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45932 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45933 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45934 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45935 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45936 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45937 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45938 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45939 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45940 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45941 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45942 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45943 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45944 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45945 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45946 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45947 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45948 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45949 SET_MAKE!$SET_MAKE$ac_delim
45950 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45951 USE_NLS!$USE_NLS$ac_delim
45952 MSGFMT!$MSGFMT$ac_delim
45953 GMSGFMT!$GMSGFMT$ac_delim
45954 XGETTEXT!$XGETTEXT$ac_delim
45955 MSGMERGE!$MSGMERGE$ac_delim
45956 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45957 LIBICONV!$LIBICONV$ac_delim
45958 LTLIBICONV!$LTLIBICONV$ac_delim
45959 INTLLIBS!$INTLLIBS$ac_delim
45960 LIBINTL!$LIBINTL$ac_delim
45961 LTLIBINTL!$LTLIBINTL$ac_delim
45962 POSUB!$POSUB$ac_delim
45963 GLIBC2!$GLIBC2$ac_delim
45964 ALLOCA!$ALLOCA$ac_delim
45965 GLIBC21!$GLIBC21$ac_delim
45966 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45967 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45968 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45969 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45970 INTLBISON!$INTLBISON$ac_delim
45971 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45972 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45973 CATOBJEXT!$CATOBJEXT$ac_delim
45974 DATADIRNAME!$DATADIRNAME$ac_delim
45975 INSTOBJEXT!$INSTOBJEXT$ac_delim
45976 GENCAT!$GENCAT$ac_delim
45977 INTLOBJS!$INTLOBJS$ac_delim
45978 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45979 BAT_DIR!$BAT_DIR$ac_delim
45982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45984 elif $ac_last_try; then
45985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45986 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45987 { (exit 1); exit 1; }; }
45989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45993 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45994 if test -n "$ac_eof"; then
45995 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45996 ac_eof=`expr $ac_eof + 1`
45999 cat >>$CONFIG_STATUS <<_ACEOF
46000 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46004 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46005 s/^/s,@/; s/!/@,|#_!!_#|/
46008 s/'"$ac_delim"'$/,g/; t
46010 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46011 ' >>$CONFIG_STATUS <conf$$subs.sed
46012 rm -f conf$$subs.sed
46013 cat >>$CONFIG_STATUS <<_ACEOF
46019 for ac_last_try in false false false false false :; do
46020 cat >conf$$subs.sed <<_ACEOF
46021 QWT_INC!$QWT_INC$ac_delim
46022 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
46023 QWT_LIB!$QWT_LIB$ac_delim
46025 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
46026 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
46027 WX_DIR!$WX_DIR$ac_delim
46028 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
46029 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
46030 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
46031 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
46032 STATIC_FD!$STATIC_FD$ac_delim
46033 STATIC_SD!$STATIC_SD$ac_delim
46034 STATIC_DIR!$STATIC_DIR$ac_delim
46035 STATIC_CONS!$STATIC_CONS$ac_delim
46036 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
46037 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
46038 ALL_DIRS!$ALL_DIRS$ac_delim
46039 DIRD_DIR!$DIRD_DIR$ac_delim
46040 DIR_TOOLS!$DIR_TOOLS$ac_delim
46041 STORED_DIR!$STORED_DIR$ac_delim
46042 CONS_INC!$CONS_INC$ac_delim
46043 CONS_OBJ!$CONS_OBJ$ac_delim
46044 CONS_SRC!$CONS_SRC$ac_delim
46045 CONS_LIBS!$CONS_LIBS$ac_delim
46046 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
46047 READLINE_SRC!$READLINE_SRC$ac_delim
46048 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
46049 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
46050 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
46051 OPENSSL_INC!$OPENSSL_INC$ac_delim
46052 working_dir!$working_dir$ac_delim
46053 archivedir!$archivedir$ac_delim
46054 basename!$basename$ac_delim
46055 hostname!$hostname$ac_delim
46056 scriptdir!$scriptdir$ac_delim
46057 bsrdir!$bsrdir$ac_delim
46058 logdir!$logdir$ac_delim
46059 plugindir!$plugindir$ac_delim
46060 dump_email!$dump_email$ac_delim
46061 job_email!$job_email$ac_delim
46062 smtp_host!$smtp_host$ac_delim
46063 piddir!$piddir$ac_delim
46064 subsysdir!$subsysdir$ac_delim
46065 baseport!$baseport$ac_delim
46066 dir_port!$dir_port$ac_delim
46067 fd_port!$fd_port$ac_delim
46068 sd_port!$sd_port$ac_delim
46069 dir_password!$dir_password$ac_delim
46070 fd_password!$fd_password$ac_delim
46071 sd_password!$sd_password$ac_delim
46072 mon_dir_password!$mon_dir_password$ac_delim
46073 mon_fd_password!$mon_fd_password$ac_delim
46074 mon_sd_password!$mon_sd_password$ac_delim
46075 db_name!$db_name$ac_delim
46076 db_user!$db_user$ac_delim
46077 db_password!$db_password$ac_delim
46078 db_port!$db_port$ac_delim
46079 dir_user!$dir_user$ac_delim
46080 dir_group!$dir_group$ac_delim
46081 sd_user!$sd_user$ac_delim
46082 sd_group!$sd_group$ac_delim
46083 fd_user!$fd_user$ac_delim
46084 fd_group!$fd_group$ac_delim
46085 SBINPERM!$SBINPERM$ac_delim
46086 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
46087 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
46088 SQL_BINDIR!$SQL_BINDIR$ac_delim
46089 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
46090 uncomment_dbi!$uncomment_dbi$ac_delim
46091 DB_PROG!$DB_PROG$ac_delim
46092 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
46093 cats!$cats$ac_delim
46094 DB_TYPE!$DB_TYPE$ac_delim
46095 GETCONF!$GETCONF$ac_delim
46096 XMKMF!$XMKMF$ac_delim
46097 X_CFLAGS!$X_CFLAGS$ac_delim
46098 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
46099 X_LIBS!$X_LIBS$ac_delim
46100 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
46101 LIBOBJS!$LIBOBJS$ac_delim
46102 ZLIBS!$ZLIBS$ac_delim
46103 AFS_CFLAGS!$AFS_CFLAGS$ac_delim
46104 AFS_LIBS!$AFS_LIBS$ac_delim
46105 CAP_LIBS!$CAP_LIBS$ac_delim
46106 FDLIBS!$FDLIBS$ac_delim
46107 DEBUG!$DEBUG$ac_delim
46108 DINCLUDE!$DINCLUDE$ac_delim
46109 DLIB!$DLIB$ac_delim
46110 DB_LIBS!$DB_LIBS$ac_delim
46111 WCFLAGS!$WCFLAGS$ac_delim
46112 WLDFLAGS!$WLDFLAGS$ac_delim
46113 WRAPLIBS!$WRAPLIBS$ac_delim
46114 OBJLIST!$OBJLIST$ac_delim
46115 TAPEDRIVE!$TAPEDRIVE$ac_delim
46116 PSCMD!$PSCMD$ac_delim
46117 WIN32!$WIN32$ac_delim
46120 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46122 elif $ac_last_try; then
46123 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46124 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46125 { (exit 1); exit 1; }; }
46127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46131 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46132 if test -n "$ac_eof"; then
46133 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46134 ac_eof=`expr $ac_eof + 1`
46137 cat >>$CONFIG_STATUS <<_ACEOF
46138 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
46139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46142 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46143 s/^/s,@/; s/!/@,|#_!!_#|/
46146 s/'"$ac_delim"'$/,g/; t
46148 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46149 ' >>$CONFIG_STATUS <conf$$subs.sed
46150 rm -f conf$$subs.sed
46151 cat >>$CONFIG_STATUS <<_ACEOF
46157 for ac_last_try in false false false false false :; do
46158 cat >conf$$subs.sed <<_ACEOF
46159 MACOSX!$MACOSX$ac_delim
46160 DISTNAME!$DISTNAME$ac_delim
46161 DISTVER!$DISTVER$ac_delim
46162 LTLIBOBJS!$LTLIBOBJS$ac_delim
46165 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
46167 elif $ac_last_try; then
46168 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46169 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46170 { (exit 1); exit 1; }; }
46172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46176 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46177 if test -n "$ac_eof"; then
46178 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46179 ac_eof=`expr $ac_eof + 1`
46182 cat >>$CONFIG_STATUS <<_ACEOF
46183 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
46184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46187 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46188 s/^/s,@/; s/!/@,|#_!!_#|/
46191 s/'"$ac_delim"'$/,g/; t
46193 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46194 ' >>$CONFIG_STATUS <conf$$subs.sed
46195 rm -f conf$$subs.sed
46196 cat >>$CONFIG_STATUS <<_ACEOF
46203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46205 # trailing colons and then remove the whole line if VPATH becomes empty
46206 # (actually we leave an empty line to preserve line numbers).
46207 if test "x$srcdir" = x.; then
46208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46209 s/:*\$(srcdir):*/:/
46210 s/:*\${srcdir}:*/:/
46212 s/^\([^=]*=[ ]*\):*/\1/
46218 cat >>$CONFIG_STATUS <<\_ACEOF
46219 fi # test -n "$CONFIG_FILES"
46222 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
46225 :[FHLC]) ac_mode=$ac_tag; continue;;
46227 case $ac_mode$ac_tag in
46229 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46230 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46231 { (exit 1); exit 1; }; };;
46232 :[FH]-) ac_tag=-:-;;
46233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46250 -) ac_f="$tmp/stdin";;
46251 *) # Look for the file first in the build tree, then in the source tree
46252 # (if the path is not absolute). The absolute path cannot be DOS-style,
46253 # because $ac_f cannot contain `:'.
46257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46259 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46260 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46261 { (exit 1); exit 1; }; };;
46263 ac_file_inputs="$ac_file_inputs $ac_f"
46266 # Let's still pretend it is `configure' which instantiates (i.e., don't
46267 # use $as_me), people would be surprised to read:
46268 # /* config.h. Generated by config.status. */
46269 configure_input="Generated from "`IFS=:
46270 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46271 if test x"$ac_file" != x-; then
46272 configure_input="$ac_file. $configure_input"
46273 { echo "$as_me:$LINENO: creating $ac_file" >&5
46274 echo "$as_me: creating $ac_file" >&6;}
46278 *:-:* | *:-) cat >"$tmp/stdin";;
46283 ac_dir=`$as_dirname -- "$ac_file" ||
46284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46285 X"$ac_file" : 'X\(//\)[^/]' \| \
46286 X"$ac_file" : 'X\(//\)$' \| \
46287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46293 /^X\(\/\/\)[^/].*/{
46308 -*) as_dir=./$as_dir;;
46310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46315 *) as_qdir=$as_dir;;
46317 as_dirs="'$as_qdir' $as_dirs"
46318 as_dir=`$as_dirname -- "$as_dir" ||
46319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46320 X"$as_dir" : 'X\(//\)[^/]' \| \
46321 X"$as_dir" : 'X\(//\)$' \| \
46322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46328 /^X\(\/\/\)[^/].*/{
46341 test -d "$as_dir" && break
46343 test -z "$as_dirs" || eval "mkdir $as_dirs"
46344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46346 { (exit 1); exit 1; }; }; }
46350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46353 # A ".." for each directory in $ac_dir_suffix.
46354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46355 case $ac_top_builddir_sub in
46356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46360 ac_abs_top_builddir=$ac_pwd
46361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46362 # for backward compatibility:
46363 ac_top_builddir=$ac_top_build_prefix
46366 .) # We are building in place.
46368 ac_top_srcdir=$ac_top_builddir_sub
46369 ac_abs_top_srcdir=$ac_pwd ;;
46370 [\\/]* | ?:[\\/]* ) # Absolute name.
46371 ac_srcdir=$srcdir$ac_dir_suffix;
46372 ac_top_srcdir=$srcdir
46373 ac_abs_top_srcdir=$srcdir ;;
46374 *) # Relative name.
46375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46376 ac_top_srcdir=$ac_top_build_prefix$srcdir
46377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46389 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46390 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46394 cat >>$CONFIG_STATUS <<\_ACEOF
46395 # If the template does not know about datarootdir, expand it.
46396 # FIXME: This hack should be removed a few years after 2.60.
46397 ac_datarootdir_hack=; ac_datarootdir_seen=
46399 case `sed -n '/datarootdir/ {
46408 ' $ac_file_inputs` in
46409 *datarootdir*) ac_datarootdir_seen=yes;;
46410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46411 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46412 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46414 cat >>$CONFIG_STATUS <<_ACEOF
46415 ac_datarootdir_hack='
46416 s&@datadir@&$datadir&g
46417 s&@docdir@&$docdir&g
46418 s&@infodir@&$infodir&g
46419 s&@localedir@&$localedir&g
46420 s&@mandir@&$mandir&g
46421 s&\\\${datarootdir}&$datarootdir&g' ;;
46425 # Neutralize VPATH when `$srcdir' = `.'.
46426 # Shell code in configure.ac might set extrasub.
46427 # FIXME: do we really want to maintain this feature?
46428 cat >>$CONFIG_STATUS <<_ACEOF
46432 cat >>$CONFIG_STATUS <<\_ACEOF
46434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46435 s&@configure_input@&$configure_input&;t t
46436 s&@top_builddir@&$ac_top_builddir_sub&;t t
46437 s&@srcdir@&$ac_srcdir&;t t
46438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46439 s&@top_srcdir@&$ac_top_srcdir&;t t
46440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46441 s&@builddir@&$ac_builddir&;t t
46442 s&@abs_builddir@&$ac_abs_builddir&;t t
46443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46444 s&@INSTALL@&$ac_INSTALL&;t t
46445 $ac_datarootdir_hack
46446 " $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
46448 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46449 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46451 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46452 which seems to be undefined. Please make sure it is defined." >&5
46453 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46454 which seems to be undefined. Please make sure it is defined." >&2;}
46458 -) cat "$tmp/out"; rm -f "$tmp/out";;
46459 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46468 # Transform confdefs.h into a sed script `conftest.defines', that
46469 # substitutes the proper values into config.h.in to produce config.h.
46470 rm -f conftest.defines conftest.tail
46471 # First, append a space to every undef/define line, to ease matching.
46472 echo 's/$/ /' >conftest.defines
46473 # Then, protect against being on the right side of a sed subst, or in
46474 # an unquoted here document, in config.status. If some macros were
46475 # called several times there might be several #defines for the same
46476 # symbol, which is useless. But do not sort them, since the last
46477 # AC_DEFINE must be honored.
46478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46479 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46480 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46481 # PARAMS is the parameter list in the macro definition--in most cases, it's
46482 # just an empty string.
46483 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
46484 ac_dB='\\)[ (].*,\\1define\\2'
46492 s/^[ ]*#[ ]*define[ ][ ]*//
46497 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46498 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46499 ' >>conftest.defines
46501 # Remove the space that was appended to ease matching.
46502 # Then replace #undef with comments. This is necessary, for
46503 # example, in the case of _POSIX_SOURCE, which is predefined and required
46504 # on some systems where configure will not decide to define it.
46505 # (The regexp can be short, since the line contains either #define or #undef.)
46507 s,^[ #]*u.*,/* & */,' >>conftest.defines
46509 # Break up conftest.defines:
46510 ac_max_sed_lines=50
46512 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46513 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46514 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46516 ac_in='$ac_file_inputs'
46517 ac_out='"$tmp/out1"'
46518 ac_nxt='"$tmp/out2"'
46522 # Write a here document:
46523 cat >>$CONFIG_STATUS <<_ACEOF
46524 # First, check the format of the line:
46525 cat >"\$tmp/defines.sed" <<\\CEOF
46526 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46527 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46531 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46533 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46534 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46535 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46536 grep . conftest.tail >/dev/null || break
46537 rm -f conftest.defines
46538 mv conftest.tail conftest.defines
46540 rm -f conftest.defines conftest.tail
46542 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46543 cat >>$CONFIG_STATUS <<\_ACEOF
46544 if test x"$ac_file" != x-; then
46545 echo "/* $configure_input */" >"$tmp/config.h"
46546 cat "$ac_result" >>"$tmp/config.h"
46547 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46548 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46549 echo "$as_me: $ac_file is unchanged" >&6;}
46552 mv "$tmp/config.h" $ac_file
46555 echo "/* $configure_input */"
46561 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46562 echo "$as_me: executing $ac_file commands" >&6;}
46567 case $ac_file$ac_mode in
46570 # See if we are running on zsh, and set the options which allow our
46571 # commands through without removal of \ escapes.
46572 if test -n "${ZSH_VERSION+set}" ; then
46573 setopt NO_GLOB_SUBST
46576 cfgfile="${ofile}T"
46577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46580 cat <<_LT_EOF >> "$cfgfile"
46583 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46584 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46589 # 2006, 2007, 2008 Free Software Foundation, Inc.
46590 # Written by Gordon Matzigkeit, 1996
46592 # This file is part of GNU Libtool.
46594 # GNU Libtool is free software; you can redistribute it and/or
46595 # modify it under the terms of the GNU General Public License as
46596 # published by the Free Software Foundation; either version 2 of
46597 # the License, or (at your option) any later version.
46599 # As a special exception to the GNU General Public License,
46600 # if you distribute this file as part of a program or library that
46601 # is built using GNU Libtool, you may include this file under the
46602 # same distribution terms that you use for the rest of that program.
46604 # GNU Libtool is distributed in the hope that it will be useful,
46605 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46607 # GNU General Public License for more details.
46609 # You should have received a copy of the GNU General Public License
46610 # along with GNU Libtool; see the file COPYING. If not, a copy
46611 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46612 # obtained by writing to the Free Software Foundation, Inc.,
46613 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46616 # The names of the tagged configurations supported by this script.
46617 available_tags="CXX "
46619 # ### BEGIN LIBTOOL CONFIG
46621 # Which release of libtool.m4 was used?
46622 macro_version=$macro_version
46623 macro_revision=$macro_revision
46625 # Whether or not to build shared libraries.
46626 build_libtool_libs=$enable_shared
46628 # Whether or not to build static libraries.
46629 build_old_libs=$enable_static
46631 # What type of objects to build.
46634 # Whether or not to optimize for fast installation.
46635 fast_install=$enable_fast_install
46638 host_alias=$host_alias
46642 # The build system.
46643 build_alias=$build_alias
46647 # A sed program that does not truncate output.
46650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46651 Xsed="\$SED -e 1s/^X//"
46653 # A grep program that handles long lines.
46659 # A literal string matcher.
46662 # A BSD- or MS-compatible name lister.
46665 # Whether we need soft or hard links.
46668 # What is the maximum length of a command?
46669 max_cmd_len=$max_cmd_len
46671 # Object file suffix (normally "o").
46674 # Executable file suffix (normally "").
46677 # whether the shell understands "unset".
46680 # turn spaces into newlines.
46683 # turn newlines into spaces.
46686 # How to create reloadable object files.
46687 reload_flag=$lt_reload_flag
46688 reload_cmds=$lt_reload_cmds
46690 # An object symbol dumper.
46691 OBJDUMP=$lt_OBJDUMP
46693 # Method to check whether dependent libraries are shared objects.
46694 deplibs_check_method=$lt_deplibs_check_method
46696 # Command to use when deplibs_check_method == "file_magic".
46697 file_magic_cmd=$lt_file_magic_cmd
46701 AR_FLAGS=$lt_AR_FLAGS
46703 # A symbol stripping program.
46706 # Commands used to install an old-style archive.
46708 old_postinstall_cmds=$lt_old_postinstall_cmds
46709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46714 # LTCC compiler flags.
46715 LTCFLAGS=$lt_CFLAGS
46717 # Take the output of nm and produce a listing of raw symbols and C names.
46718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46720 # Transform the output of nm in a proper C declaration.
46721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46723 # Transform the output of nm in a C name address pair.
46724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46726 # Transform the output of nm in a C name address pair when lib prefix is needed.
46727 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46729 # The name of the directory that contains temporary libtool files.
46732 # Shell to use when invoking shell scripts.
46735 # An echo program that does not interpret backslashes.
46738 # Used to examine libraries when file_magic_cmd begins with "file".
46739 MAGIC_CMD=$MAGIC_CMD
46741 # Must we lock files when doing compilation?
46742 need_locks=$lt_need_locks
46744 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46745 DSYMUTIL=$lt_DSYMUTIL
46747 # Tool to change global to local symbols on Mac OS X.
46750 # Tool to manipulate fat objects and archives on Mac OS X.
46753 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46756 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46757 OTOOL64=$lt_OTOOL64
46759 # Old archive suffix (normally "a").
46762 # Shared library suffix (normally ".so").
46763 shrext_cmds=$lt_shrext_cmds
46765 # The commands to extract the exported symbol list from a shared archive.
46766 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46768 # Variables whose values should be saved in libtool wrapper scripts and
46769 # restored at link time.
46770 variables_saved_for_relink=$lt_variables_saved_for_relink
46772 # Do we need the "lib" prefix for modules?
46773 need_lib_prefix=$need_lib_prefix
46775 # Do we need a version for libraries?
46776 need_version=$need_version
46778 # Library versioning type.
46779 version_type=$version_type
46781 # Shared library runtime path variable.
46782 runpath_var=$runpath_var
46784 # Shared library path variable.
46785 shlibpath_var=$shlibpath_var
46787 # Is shlibpath searched before the hard-coded library search path?
46788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46790 # Format of library name prefix.
46791 libname_spec=$lt_libname_spec
46793 # List of archive names. First name is the real one, the rest are links.
46794 # The last name is the one that the linker finds with -lNAME
46795 library_names_spec=$lt_library_names_spec
46797 # The coded name of the library, if different from the real name.
46798 soname_spec=$lt_soname_spec
46800 # Command to use after installation of a shared archive.
46801 postinstall_cmds=$lt_postinstall_cmds
46803 # Command to use after uninstallation of a shared archive.
46804 postuninstall_cmds=$lt_postuninstall_cmds
46806 # Commands used to finish a libtool library installation in a directory.
46807 finish_cmds=$lt_finish_cmds
46809 # As "finish_cmds", except a single script fragment to be evaled but
46811 finish_eval=$lt_finish_eval
46813 # Whether we should hardcode library paths into libraries.
46814 hardcode_into_libs=$hardcode_into_libs
46816 # Compile-time system search path for libraries.
46817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46819 # Run-time system search path for libraries.
46820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46822 # Whether dlopen is supported.
46823 dlopen_support=$enable_dlopen
46825 # Whether dlopen of programs is supported.
46826 dlopen_self=$enable_dlopen_self
46828 # Whether dlopen of statically linked programs is supported.
46829 dlopen_self_static=$enable_dlopen_self_static
46831 # Commands to strip libraries.
46832 old_striplib=$lt_old_striplib
46833 striplib=$lt_striplib
46836 # The linker used to build libraries.
46839 # Commands used to build an old-style archive.
46840 old_archive_cmds=$lt_old_archive_cmds
46842 # A language specific compiler.
46845 # Is the compiler the GNU compiler?
46848 # Compiler flag to turn off builtin functions.
46849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46851 # How to pass a linker flag through the compiler.
46852 wl=$lt_lt_prog_compiler_wl
46854 # Additional compiler flags for building library objects.
46855 pic_flag=$lt_lt_prog_compiler_pic
46857 # Compiler flag to prevent dynamic linking.
46858 link_static_flag=$lt_lt_prog_compiler_static
46860 # Does compiler simultaneously support -c and -o options?
46861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46863 # Whether or not to add -lc for building shared libraries.
46864 build_libtool_need_lc=$archive_cmds_need_lc
46866 # Whether or not to disallow shared libs when runtime libs are static.
46867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46869 # Compiler flag to allow reflexive dlopens.
46870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46872 # Compiler flag to generate shared objects directly from archives.
46873 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46875 # Whether the compiler copes with passing no objects directly.
46876 compiler_needs_object=$lt_compiler_needs_object
46878 # Create an old-style archive from a shared archive.
46879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46881 # Create a temporary old-style archive to link instead of a shared archive.
46882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46884 # Commands used to build a shared archive.
46885 archive_cmds=$lt_archive_cmds
46886 archive_expsym_cmds=$lt_archive_expsym_cmds
46888 # Commands used to build a loadable module if different from building
46889 # a shared archive.
46890 module_cmds=$lt_module_cmds
46891 module_expsym_cmds=$lt_module_expsym_cmds
46893 # Whether we are building with GNU ld or not.
46894 with_gnu_ld=$lt_with_gnu_ld
46896 # Flag that allows shared libraries with undefined symbols to be built.
46897 allow_undefined_flag=$lt_allow_undefined_flag
46899 # Flag that enforces no undefined symbols.
46900 no_undefined_flag=$lt_no_undefined_flag
46902 # Flag to hardcode \$libdir into a binary during linking.
46903 # This must work even if \$libdir does not exist
46904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46906 # If ld is used when linking, flag to hardcode \$libdir into a binary
46907 # during linking. This must work even if \$libdir does not exist.
46908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46910 # Whether we need a single "-rpath" flag with a separated argument.
46911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46914 # DIR into the resulting binary.
46915 hardcode_direct=$hardcode_direct
46917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46918 # DIR into the resulting binary and the resulting library dependency is
46919 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46920 # library is relocated.
46921 hardcode_direct_absolute=$hardcode_direct_absolute
46923 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46924 # into the resulting binary.
46925 hardcode_minus_L=$hardcode_minus_L
46927 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46928 # into the resulting binary.
46929 hardcode_shlibpath_var=$hardcode_shlibpath_var
46931 # Set to "yes" if building a shared library automatically hardcodes DIR
46932 # into the library and all subsequent libraries and executables linked
46934 hardcode_automatic=$hardcode_automatic
46936 # Set to yes if linker adds runtime paths of dependent libraries
46937 # to runtime path list.
46938 inherit_rpath=$inherit_rpath
46940 # Whether libtool must link a program against all its dependency libraries.
46941 link_all_deplibs=$link_all_deplibs
46943 # Fix the shell variable \$srcfile for the compiler.
46944 fix_srcfile_path=$lt_fix_srcfile_path
46946 # Set to "yes" if exported symbols are required.
46947 always_export_symbols=$always_export_symbols
46949 # The commands to list exported symbols.
46950 export_symbols_cmds=$lt_export_symbols_cmds
46952 # Symbols that should not be listed in the preloaded symbols.
46953 exclude_expsyms=$lt_exclude_expsyms
46955 # Symbols that must always be exported.
46956 include_expsyms=$lt_include_expsyms
46958 # Commands necessary for linking programs (against libraries) with templates.
46959 prelink_cmds=$lt_prelink_cmds
46961 # Specify filename containing input files.
46962 file_list_spec=$lt_file_list_spec
46964 # How to hardcode a shared library path into an executable.
46965 hardcode_action=$hardcode_action
46967 # The directories searched by this compiler when creating a shared library.
46968 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46970 # Dependencies to place before and after the objects being linked to
46971 # create a shared library.
46972 predep_objects=$lt_predep_objects
46973 postdep_objects=$lt_postdep_objects
46974 predeps=$lt_predeps
46975 postdeps=$lt_postdeps
46977 # The library search path used internally by the compiler when linking
46978 # a shared library.
46979 compiler_lib_search_path=$lt_compiler_lib_search_path
46981 # ### END LIBTOOL CONFIG
46987 cat <<\_LT_EOF >> "$cfgfile"
46988 # AIX sometimes has problems with the GCC collect2 program. For some
46989 # reason, if we set the COLLECT_NAMES environment variable, the problems
46990 # vanish in a puff of smoke.
46991 if test "X${COLLECT_NAMES+set}" != Xset; then
46993 export COLLECT_NAMES
47000 ltmain="$ac_aux_dir/ltmain.sh"
47003 # We use sed instead of cat because bash on DJGPP gets confused if
47004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47005 # text mode, it properly converts lines to CR/LF. This bash problem
47006 # is reportedly fixed, but why not run on old versions too?
47007 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47008 || (rm -f "$cfgfile"; exit 1)
47012 cat << \_LT_EOF >> "$cfgfile"
47014 # func_dirname file append nondir_replacement
47015 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47016 # otherwise set result to NONDIR_REPLACEMENT.
47020 */*) func_dirname_result="${1%/*}${2}" ;;
47021 * ) func_dirname_result="${3}" ;;
47025 # func_basename file
47028 func_basename_result="${1##*/}"
47031 # func_dirname_and_basename file append nondir_replacement
47032 # perform func_basename and func_dirname in a single function
47034 # dirname: Compute the dirname of FILE. If nonempty,
47035 # add APPEND to the result, otherwise set result
47036 # to NONDIR_REPLACEMENT.
47037 # value returned in "$func_dirname_result"
47038 # basename: Compute filename of FILE.
47039 # value retuned in "$func_basename_result"
47040 # Implementation must be kept synchronized with func_dirname
47041 # and func_basename. For efficiency, we do not delegate to
47042 # those functions but instead duplicate the functionality here.
47043 func_dirname_and_basename ()
47046 */*) func_dirname_result="${1%/*}${2}" ;;
47047 * ) func_dirname_result="${3}" ;;
47049 func_basename_result="${1##*/}"
47052 # func_stripname prefix suffix name
47053 # strip PREFIX and SUFFIX off of NAME.
47054 # PREFIX and SUFFIX must not contain globbing or regex special
47055 # characters, hashes, percent signs, but SUFFIX may contain a leading
47056 # dot (in which case that matches only a dot).
47059 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47060 # positional parameters, so assign one to ordinary parameter first.
47061 func_stripname_result=${3}
47062 func_stripname_result=${func_stripname_result#"${1}"}
47063 func_stripname_result=${func_stripname_result%"${2}"}
47069 func_opt_split_opt=${1%%=*}
47070 func_opt_split_arg=${1#*=}
47077 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47078 *) func_lo2o_result=${1} ;;
47082 # func_xform libobj-or-source
47085 func_xform_result=${1%.*}.lo
47088 # func_arith arithmetic-term...
47091 func_arith_result=$(( $* ))
47095 # STRING may not start with a hyphen.
47098 func_len_result=${#1}
47103 *) # Bourne compatible functions.
47104 cat << \_LT_EOF >> "$cfgfile"
47106 # func_dirname file append nondir_replacement
47107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47108 # otherwise set result to NONDIR_REPLACEMENT.
47111 # Extract subdirectory from the argument.
47112 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47113 if test "X$func_dirname_result" = "X${1}"; then
47114 func_dirname_result="${3}"
47116 func_dirname_result="$func_dirname_result${2}"
47120 # func_basename file
47123 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47127 # func_stripname prefix suffix name
47128 # strip PREFIX and SUFFIX off of NAME.
47129 # PREFIX and SUFFIX must not contain globbing or regex special
47130 # characters, hashes, percent signs, but SUFFIX may contain a leading
47131 # dot (in which case that matches only a dot).
47132 # func_strip_suffix prefix name
47136 .*) func_stripname_result=`$ECHO "X${3}" \
47137 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47138 *) func_stripname_result=`$ECHO "X${3}" \
47139 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47144 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47145 my_sed_long_arg='1s/^-[^=]*=//'
47150 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47151 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47157 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47160 # func_xform libobj-or-source
47163 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47166 # func_arith arithmetic-term...
47169 func_arith_result=`expr "$@"`
47173 # STRING may not start with a hyphen.
47176 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47182 case $lt_shell_append in
47184 cat << \_LT_EOF >> "$cfgfile"
47186 # func_append var value
47187 # Append VALUE to the end of shell variable VAR.
47195 cat << \_LT_EOF >> "$cfgfile"
47197 # func_append var value
47198 # Append VALUE to the end of shell variable VAR.
47209 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47210 || (rm -f "$cfgfile"; exit 1)
47212 mv -f "$cfgfile" "$ofile" ||
47213 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47217 cat <<_LT_EOF >> "$ofile"
47219 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47221 # The linker used to build libraries.
47224 # Commands used to build an old-style archive.
47225 old_archive_cmds=$lt_old_archive_cmds_CXX
47227 # A language specific compiler.
47228 CC=$lt_compiler_CXX
47230 # Is the compiler the GNU compiler?
47233 # Compiler flag to turn off builtin functions.
47234 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
47236 # How to pass a linker flag through the compiler.
47237 wl=$lt_lt_prog_compiler_wl_CXX
47239 # Additional compiler flags for building library objects.
47240 pic_flag=$lt_lt_prog_compiler_pic_CXX
47242 # Compiler flag to prevent dynamic linking.
47243 link_static_flag=$lt_lt_prog_compiler_static_CXX
47245 # Does compiler simultaneously support -c and -o options?
47246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
47248 # Whether or not to add -lc for building shared libraries.
47249 build_libtool_need_lc=$archive_cmds_need_lc_CXX
47251 # Whether or not to disallow shared libs when runtime libs are static.
47252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
47254 # Compiler flag to allow reflexive dlopens.
47255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
47257 # Compiler flag to generate shared objects directly from archives.
47258 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
47260 # Whether the compiler copes with passing no objects directly.
47261 compiler_needs_object=$lt_compiler_needs_object_CXX
47263 # Create an old-style archive from a shared archive.
47264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
47266 # Create a temporary old-style archive to link instead of a shared archive.
47267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
47269 # Commands used to build a shared archive.
47270 archive_cmds=$lt_archive_cmds_CXX
47271 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
47273 # Commands used to build a loadable module if different from building
47274 # a shared archive.
47275 module_cmds=$lt_module_cmds_CXX
47276 module_expsym_cmds=$lt_module_expsym_cmds_CXX
47278 # Whether we are building with GNU ld or not.
47279 with_gnu_ld=$lt_with_gnu_ld_CXX
47281 # Flag that allows shared libraries with undefined symbols to be built.
47282 allow_undefined_flag=$lt_allow_undefined_flag_CXX
47284 # Flag that enforces no undefined symbols.
47285 no_undefined_flag=$lt_no_undefined_flag_CXX
47287 # Flag to hardcode \$libdir into a binary during linking.
47288 # This must work even if \$libdir does not exist
47289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
47291 # If ld is used when linking, flag to hardcode \$libdir into a binary
47292 # during linking. This must work even if \$libdir does not exist.
47293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
47295 # Whether we need a single "-rpath" flag with a separated argument.
47296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
47298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47299 # DIR into the resulting binary.
47300 hardcode_direct=$hardcode_direct_CXX
47302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47303 # DIR into the resulting binary and the resulting library dependency is
47304 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47305 # library is relocated.
47306 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
47308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47309 # into the resulting binary.
47310 hardcode_minus_L=$hardcode_minus_L_CXX
47312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47313 # into the resulting binary.
47314 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
47316 # Set to "yes" if building a shared library automatically hardcodes DIR
47317 # into the library and all subsequent libraries and executables linked
47319 hardcode_automatic=$hardcode_automatic_CXX
47321 # Set to yes if linker adds runtime paths of dependent libraries
47322 # to runtime path list.
47323 inherit_rpath=$inherit_rpath_CXX
47325 # Whether libtool must link a program against all its dependency libraries.
47326 link_all_deplibs=$link_all_deplibs_CXX
47328 # Fix the shell variable \$srcfile for the compiler.
47329 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47331 # Set to "yes" if exported symbols are required.
47332 always_export_symbols=$always_export_symbols_CXX
47334 # The commands to list exported symbols.
47335 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47337 # Symbols that should not be listed in the preloaded symbols.
47338 exclude_expsyms=$lt_exclude_expsyms_CXX
47340 # Symbols that must always be exported.
47341 include_expsyms=$lt_include_expsyms_CXX
47343 # Commands necessary for linking programs (against libraries) with templates.
47344 prelink_cmds=$lt_prelink_cmds_CXX
47346 # Specify filename containing input files.
47347 file_list_spec=$lt_file_list_spec_CXX
47349 # How to hardcode a shared library path into an executable.
47350 hardcode_action=$hardcode_action_CXX
47352 # The directories searched by this compiler when creating a shared library.
47353 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47355 # Dependencies to place before and after the objects being linked to
47356 # create a shared library.
47357 predep_objects=$lt_predep_objects_CXX
47358 postdep_objects=$lt_postdep_objects_CXX
47359 predeps=$lt_predeps_CXX
47360 postdeps=$lt_postdeps_CXX
47362 # The library search path used internally by the compiler when linking
47363 # a shared library.
47364 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47366 # ### END LIBTOOL TAG CONFIG: CXX
47371 for ac_file in $CONFIG_FILES; do
47372 # Support "outfile[:infile[:infile...]]"
47374 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47376 # PO directories have a Makefile.in generated from Makefile.in.in.
47377 case "$ac_file" in */Makefile.in)
47378 # Adjust a relative srcdir.
47379 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47380 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47381 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47382 # In autoconf-2.13 it is called $ac_given_srcdir.
47383 # In autoconf-2.50 it is called $srcdir.
47384 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47385 case "$ac_given_srcdir" in
47386 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47387 /*) top_srcdir="$ac_given_srcdir" ;;
47388 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
47390 # Treat a directory as a PO directory if and only if it has a
47391 # POTFILES.in file. This allows packages to have multiple PO
47392 # directories under different names or in different locations.
47393 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47394 rm -f "$ac_dir/POTFILES"
47395 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47396 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47397 POMAKEFILEDEPS="POTFILES.in"
47398 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47399 # on $ac_dir but don't depend on user-specified configuration
47401 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47402 # The LINGUAS file contains the set of available languages.
47403 if test -n "$OBSOLETE_ALL_LINGUAS"; then
47404 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47406 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47407 # Hide the ALL_LINGUAS assigment from automake.
47408 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47409 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47411 # The set of available languages was given in configure.in.
47412 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47415 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47416 # Compute UPDATEPOFILES
47417 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47418 # Compute DUMMYPOFILES
47419 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47421 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47422 case "$ac_given_srcdir" in
47424 *) srcdirpre='$(srcdir)/' ;;
47430 for lang in $ALL_LINGUAS; do
47431 POFILES="$POFILES $srcdirpre$lang.po"
47432 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47433 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47434 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47436 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47437 # environment variable.
47439 if test -n "$ALL_LINGUAS"; then
47440 for presentlang in $ALL_LINGUAS; do
47442 if test "%UNSET%" != "$LINGUAS"; then
47443 desiredlanguages="$LINGUAS"
47445 desiredlanguages="$ALL_LINGUAS"
47447 for desiredlang in $desiredlanguages; do
47448 # Use the presentlang catalog if desiredlang is
47449 # a. equal to presentlang, or
47450 # b. a variant of presentlang (because in this case,
47451 # presentlang can be used as a fallback for messages
47452 # which are not translated in the desiredlang catalog).
47453 case "$desiredlang" in
47454 "$presentlang"*) useit=yes;;
47457 if test $useit = yes; then
47458 INST_LINGUAS="$INST_LINGUAS $presentlang"
47463 if test -n "$INST_LINGUAS"; then
47464 for lang in $INST_LINGUAS; do
47465 CATALOGS="$CATALOGS $lang.gmo"
47468 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47469 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"
47470 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47471 if test -f "$f"; then
47473 *.orig | *.bak | *~) ;;
47474 *) cat "$f" >> "$ac_dir/Makefile" ;;
47489 { (exit 0); exit 0; }
47491 chmod +x $CONFIG_STATUS
47492 ac_clean_files=$ac_clean_files_save
47495 # configure is writing to config.log, and then calls config.status.
47496 # config.status does its own redirection, appending to config.log.
47497 # Unfortunately, on DOS this fails, as config.log is still kept open
47498 # by configure, so config.status won't be able to write to it; its
47499 # output is simply discarded. So we exec the FD to /dev/null,
47500 # effectively closing config.log, so it can be properly (re)opened and
47501 # appended to by config.status. When coming back to configure, we
47502 # need to make the FD available again.
47503 if test "$no_create" != yes; then
47505 ac_config_status_args=
47506 test "$silent" = yes &&
47507 ac_config_status_args="$ac_config_status_args --quiet"
47509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47512 # would make configure fail if this is the last instruction.
47513 $ac_cs_success || { (exit 1); exit 1; }
47517 if test "${support_bat}" = "yes" ; then
47518 if test "x$QMAKE" = "xnone"; then
47519 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47520 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47521 { (exit 1); exit 1; }; }
47526 echo "Creating bat Makefile"
47531 ${MAKE:-make} clean
47535 if test X"$GCC" = "Xyes" ; then
47536 echo "Doing make of dependencies"
47537 ${MAKE:-make} depend
47541 chmod 755 install_conf_file build-depkgs-qt-console
47545 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47546 chmod 755 dvd-handler dvd-simulator
47547 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47551 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
47552 chmod 755 $c/update_postgresql_tables_10_to_11
47557 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
47558 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
47560 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
47561 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
47563 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
47564 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
47566 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
47567 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47569 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47570 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47573 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
47574 chmod 755 $c/sqlite
47577 chmod 755 src/win32/build-depkgs-mingw32
47579 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47580 largefile_support="yes"
47583 if test X"$GCC" = "Xyes" ; then
47584 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47585 if test "x${CCVERSION}" = "x" ; then
47586 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47588 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47589 if test x"${CXXVERSION}" = x ; then
47590 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47594 # clean up any old junk
47598 ${MAKE:-make} clean
47600 if test "x${db_type}" = "xInternal" ; then
47603 echo "You have not specified either --enable-client-only or one of the"
47604 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47605 echo " This is not permitted. Please reconfigure."
47607 echo "Aborting the configuration ..."
47614 Configuration on `date`:
47616 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47617 Bacula version: ${BACULA} ${VERSION} (${DATE})
47618 Source code location: ${srcdir}
47619 Install binaries: ${sbindir}
47620 Install libraries: ${libdir}
47621 Install config files: ${sysconfdir}
47622 Scripts directory: ${scriptdir}
47623 Archive directory: ${archivedir}
47624 Working directory: ${working_dir}
47625 PID directory: ${piddir}
47626 Subsys directory: ${subsysdir}
47627 Man directory: ${mandir}
47628 Data directory: ${datarootdir}
47629 Plugin directory: ${plugindir}
47630 C Compiler: ${CC} ${CCVERSION}
47631 C++ Compiler: ${CXX} ${CXXVERSION}
47632 Compiler flags: ${WCFLAGS} ${CFLAGS}
47633 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47635 Statically Linked Tools: ${support_static_tools}
47636 Statically Linked FD: ${support_static_fd}
47637 Statically Linked SD: ${support_static_sd}
47638 Statically Linked DIR: ${support_static_dir}
47639 Statically Linked CONS: ${support_static_cons}
47640 Database type: ${db_type}
47641 Database port: ${db_port}
47642 Database lib: ${DB_LIBS}
47643 Database name: ${db_name}
47644 Database user: ${db_user}
47646 Job Output Email: ${job_email}
47647 Traceback Email: ${dump_email}
47648 SMTP Host Address: ${smtp_host}
47650 Director Port: ${dir_port}
47651 File daemon Port: ${fd_port}
47652 Storage daemon Port: ${sd_port}
47654 Director User: ${dir_user}
47655 Director Group: ${dir_group}
47656 Storage Daemon User: ${sd_user}
47657 Storage DaemonGroup: ${sd_group}
47658 File Daemon User: ${fd_user}
47659 File Daemon Group: ${fd_group}
47661 SQL binaries Directory ${SQL_BINDIR}
47663 Large file support: $largefile_support
47664 Bacula conio support: ${got_conio} ${CONS_LIBS}
47665 readline support: ${got_readline} ${PRTREADLINE_SRC}
47666 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47667 TLS support: ${support_tls}
47668 Encryption support: ${support_crypto}
47669 ZLIB support: ${have_zlib}
47670 enable-smartalloc: ${support_smartalloc}
47671 enable-lockmgr: ${support_lockmgr}
47672 bat support: ${support_bat}
47673 enable-gnome: ${support_gnome} ${gnome_version}
47674 enable-bwx-console: ${support_wx_console} ${wx_version}
47675 enable-tray-monitor: ${support_tray_monitor}
47676 client-only: ${build_client_only}
47677 build-dird: ${build_dird}
47678 build-stored: ${build_stored}
47679 Plugin support: ${have_plugins}
47680 AFS support: ${have_afs}
47681 ACL support: ${have_acl}
47682 XATTR support: ${have_xattr}
47683 Python support: ${support_python} ${PYTHON_LIBS}
47684 Batch insert enabled: ${support_batch_insert}
47688 # create a small shell script useful for support with
47689 # configure options and config.out info
47690 cat > scripts/bacula_config << EOF
47693 $ $0 $ac_configure_args
47695 cat config.out >> scripts/bacula_config
47696 echo __EOC__ >> scripts/bacula_config
47697 chmod 755 scripts/bacula_config
47701 # Display a warning message if postgresql client lib is <= 8.1
47702 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47703 -a x$support_batch_insert = xyes
47705 echo "WARNING: Your PostgreSQL client library is too old to detect "
47706 echo " if it was compiled with --enable-thread-safety, consider to"
47707 echo " upgrade it in order to avoid problems with Batch insert mode"